@azure-tools/typespec-azure-core 0.31.0-dev.8 → 0.31.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/foundations.tsp +34 -29
- package/lib/models.tsp +3 -3
- package/lib/operations.tsp +89 -86
- package/package.json +1 -1
package/lib/foundations.tsp
CHANGED
|
@@ -65,17 +65,19 @@ model ResourceBody<T> {
|
|
|
65
65
|
// TODO: There is a ARM linter rule that verifies that
|
|
66
66
|
// there is no response body. However, long running
|
|
67
67
|
// operations are allowed to have it.
|
|
68
|
-
alias ResourceCreatedResponse<T extends
|
|
68
|
+
alias ResourceCreatedResponse<T extends TypeSpec.Reflection.Model> = TypeSpec.Http.Response<201> &
|
|
69
|
+
T;
|
|
69
70
|
|
|
70
71
|
alias ResourceOkResponse<T> = TypeSpec.Http.Response<200> & T;
|
|
71
72
|
|
|
72
|
-
alias ResourceCreatedOrOkResponse<T extends
|
|
73
|
+
alias ResourceCreatedOrOkResponse<T extends TypeSpec.Reflection.Model> = ResourceCreatedResponse<T> | ResourceOkResponse<T>;
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* Response describing the location of a created resource.
|
|
76
77
|
* @template T The type of the created resource.
|
|
77
78
|
*/
|
|
78
|
-
model LocationOfCreatedResourceResponse<T extends
|
|
79
|
+
model LocationOfCreatedResourceResponse<T extends TypeSpec.Reflection.Model>
|
|
80
|
+
is TypeSpec.Http.CreatedResponse {
|
|
79
81
|
@finalLocation
|
|
80
82
|
@TypeSpec.Http.header("Location")
|
|
81
83
|
location: ResourceLocation<T>;
|
|
@@ -85,7 +87,7 @@ model LocationOfCreatedResourceResponse<T extends object> is TypeSpec.Http.Creat
|
|
|
85
87
|
* Response describing the location of a resource created with a service-provided name.
|
|
86
88
|
* @template T The type of the created resource.
|
|
87
89
|
*/
|
|
88
|
-
model LocationOfCreatedResourceWithServiceProvidedNameResponse<T extends
|
|
90
|
+
model LocationOfCreatedResourceWithServiceProvidedNameResponse<T extends TypeSpec.Reflection.Model>
|
|
89
91
|
is TypeSpec.Http.AcceptedResponse {
|
|
90
92
|
@finalLocation
|
|
91
93
|
@TypeSpec.Http.header("Location")
|
|
@@ -172,7 +174,7 @@ model InnerError {
|
|
|
172
174
|
* @template TResource The type of the resource.
|
|
173
175
|
*/
|
|
174
176
|
@omitKeyProperties
|
|
175
|
-
model ResourceCreateOrReplaceModel<TResource extends
|
|
177
|
+
model ResourceCreateOrReplaceModel<TResource extends TypeSpec.Reflection.Model>
|
|
176
178
|
is UpdateableProperties<DefaultKeyVisibility<TResource, "read">>;
|
|
177
179
|
|
|
178
180
|
/**
|
|
@@ -219,14 +221,14 @@ model CollectionKeysOf<TResource> {}
|
|
|
219
221
|
* @template TCustom An object describing custom request parameters.
|
|
220
222
|
*/
|
|
221
223
|
@Private.spreadCustomParameters(TCustom)
|
|
222
|
-
model CustomParameters<TCustom extends
|
|
224
|
+
model CustomParameters<TCustom extends TypeSpec.Reflection.Model> {}
|
|
223
225
|
|
|
224
226
|
/**
|
|
225
227
|
* A model describing a set of custom response properties.
|
|
226
228
|
* @template TCustom An object describing custom response properties.
|
|
227
229
|
*/
|
|
228
230
|
@Private.spreadCustomResponseProperties(TCustom)
|
|
229
|
-
model CustomResponseFields<TCustom extends
|
|
231
|
+
model CustomResponseFields<TCustom extends TypeSpec.Reflection.Model> {}
|
|
230
232
|
|
|
231
233
|
/**
|
|
232
234
|
* A model describing a customized page of resources.
|
|
@@ -235,7 +237,10 @@ model CustomResponseFields<TCustom extends object> {}
|
|
|
235
237
|
*/
|
|
236
238
|
@pagedResult
|
|
237
239
|
@doc("Paged collection of {name} items", TResource)
|
|
238
|
-
model CustomPage<
|
|
240
|
+
model CustomPage<
|
|
241
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
242
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
243
|
+
> {
|
|
239
244
|
@doc("The {name} items on this page", TResource)
|
|
240
245
|
@items
|
|
241
246
|
value: TResource[];
|
|
@@ -269,9 +274,9 @@ model CustomizationFields {
|
|
|
269
274
|
* @template TErrorResponse The type of the error response. If not provided, the default error response type will be used.
|
|
270
275
|
*/
|
|
271
276
|
op Operation<
|
|
272
|
-
TParams,
|
|
277
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
273
278
|
TResponse,
|
|
274
|
-
Traits extends
|
|
279
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
275
280
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
276
281
|
>(
|
|
277
282
|
...TraitProperties<
|
|
@@ -290,9 +295,9 @@ op Operation<
|
|
|
290
295
|
*/
|
|
291
296
|
#suppress "@azure-tools/typespec-providerhub/no-inline-model" "This operation signature is not used in Azure Resource Manager operations (yet)"
|
|
292
297
|
op LongRunningOperation<
|
|
293
|
-
TParams,
|
|
298
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
294
299
|
TResponse = AcceptedResponse,
|
|
295
|
-
Traits extends
|
|
300
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
296
301
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
297
302
|
> is Operation<TParams, TResponse & Foundations.LongRunningStatusLocation, Traits, TErrorResponse>;
|
|
298
303
|
|
|
@@ -308,7 +313,7 @@ op GetOperationStatus<
|
|
|
308
313
|
TParams = {},
|
|
309
314
|
TStatusResult = never,
|
|
310
315
|
TStatusError = Error,
|
|
311
|
-
Traits extends
|
|
316
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
312
317
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
313
318
|
> is Foundations.Operation<
|
|
314
319
|
{
|
|
@@ -335,10 +340,10 @@ op GetOperationStatus<
|
|
|
335
340
|
@autoRoute
|
|
336
341
|
@Private.ensureResourceType(TResource)
|
|
337
342
|
op ResourceOperation<
|
|
338
|
-
TResource extends
|
|
339
|
-
TParams,
|
|
340
|
-
TResponse,
|
|
341
|
-
Traits extends
|
|
343
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
344
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
345
|
+
TResponse, // No constraint here on purpose, some responses are unions
|
|
346
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
342
347
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
343
348
|
> is Operation<Foundations.ItemKeysOf<TResource> & TParams, TResponse, Traits, TErrorResponse>;
|
|
344
349
|
|
|
@@ -354,10 +359,10 @@ op ResourceOperation<
|
|
|
354
359
|
@autoRoute
|
|
355
360
|
@Private.ensureResourceType(TResource)
|
|
356
361
|
op ResourceCollectionOperation<
|
|
357
|
-
TResource extends
|
|
358
|
-
TParams,
|
|
359
|
-
TResponse,
|
|
360
|
-
Traits extends
|
|
362
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
363
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
364
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
365
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
361
366
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
362
367
|
> is Operation<
|
|
363
368
|
Foundations.CollectionKeysOf<TResource> & TParams,
|
|
@@ -377,10 +382,10 @@ op ResourceCollectionOperation<
|
|
|
377
382
|
@listsResource(TResource)
|
|
378
383
|
@Private.ensureResourceType(TResource)
|
|
379
384
|
op ResourceList<
|
|
380
|
-
TResource extends
|
|
381
|
-
TParams,
|
|
382
|
-
TResponse,
|
|
383
|
-
Traits extends
|
|
385
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
386
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
387
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
388
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
384
389
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
385
390
|
> is ResourceCollectionOperation<TResource, TParams, TResponse, Traits, TErrorResponse>;
|
|
386
391
|
|
|
@@ -393,8 +398,8 @@ op ResourceList<
|
|
|
393
398
|
#suppress "@azure-tools/typespec-providerhub/no-inline-model" "This operation signature is not used in Azure Resource Manager operations (yet)"
|
|
394
399
|
@autoRoute
|
|
395
400
|
op NonPagedResourceList<
|
|
396
|
-
TResource extends
|
|
397
|
-
Traits extends
|
|
401
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
402
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
398
403
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
399
404
|
> is Foundations.ResourceList<
|
|
400
405
|
TResource,
|
|
@@ -412,8 +417,8 @@ op NonPagedResourceList<
|
|
|
412
417
|
*/
|
|
413
418
|
@updatesResource(TResource)
|
|
414
419
|
op LongRunningResourceUpdate<
|
|
415
|
-
TResource extends
|
|
416
|
-
Traits extends
|
|
420
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
421
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
417
422
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
418
423
|
> is Foundations.ResourceOperation<
|
|
419
424
|
TResource,
|
package/lib/models.tsp
CHANGED
|
@@ -14,7 +14,7 @@ namespace Azure.Core;
|
|
|
14
14
|
@pagedResult
|
|
15
15
|
@friendlyName("Paged{name}", TResource)
|
|
16
16
|
@doc("Paged collection of {name} items", TResource)
|
|
17
|
-
model Page<TResource extends
|
|
17
|
+
model Page<TResource extends TypeSpec.Reflection.Model> {
|
|
18
18
|
@doc("The {name} items on this page", TResource)
|
|
19
19
|
@items
|
|
20
20
|
value: TResource[];
|
|
@@ -47,14 +47,14 @@ model ResponseProperty<T extends string> {}
|
|
|
47
47
|
@resource("operations")
|
|
48
48
|
@parentResource(TResource)
|
|
49
49
|
model ResourceOperationStatus<
|
|
50
|
-
TResource,
|
|
50
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
51
51
|
TStatusResult = TResource,
|
|
52
52
|
TStatusError = Foundations.Error
|
|
53
53
|
> is Azure.Core.Foundations.OperationStatus<TStatusResult, TStatusError>;
|
|
54
54
|
|
|
55
55
|
#suppress "@azure-tools/typespec-providerhub/no-inline-model" "This is acceptable in Azure.Core."
|
|
56
56
|
alias ResourceOperationStatusResponse<
|
|
57
|
-
TResource,
|
|
57
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
58
58
|
TStatusResult,
|
|
59
59
|
TStatusError
|
|
60
60
|
> = ResourceOperationStatus<TResource, TStatusResult, TStatusError>;
|
package/lib/operations.tsp
CHANGED
|
@@ -23,9 +23,9 @@ using Azure.Core.Traits.Private;
|
|
|
23
23
|
*/
|
|
24
24
|
@Foundations.Private.needsRoute
|
|
25
25
|
op RpcOperation<
|
|
26
|
-
TParams,
|
|
27
|
-
TResponse,
|
|
28
|
-
Traits extends
|
|
26
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
27
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
28
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
29
29
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
30
30
|
> is Foundations.Operation<
|
|
31
31
|
TParams & TraitProperties<Traits, TraitLocation.Parameters>,
|
|
@@ -46,11 +46,11 @@ op RpcOperation<
|
|
|
46
46
|
@Foundations.Private.needsRoute
|
|
47
47
|
@post
|
|
48
48
|
op LongRunningRpcOperation<
|
|
49
|
-
TParams,
|
|
50
|
-
TResponse,
|
|
51
|
-
TStatusResult,
|
|
49
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
50
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
51
|
+
TStatusResult extends TypeSpec.Reflection.Model,
|
|
52
52
|
TStatusError = Foundations.Error,
|
|
53
|
-
Traits extends
|
|
53
|
+
Traits extends TypeSpec.Reflection.Model = {},
|
|
54
54
|
TErrorResponse = Azure.Core.Foundations.ErrorResponse
|
|
55
55
|
> is Foundations.Operation<
|
|
56
56
|
TParams & TraitProperties<Traits, TraitLocation.Parameters>,
|
|
@@ -96,8 +96,8 @@ interface ResourceOperations<
|
|
|
96
96
|
*/
|
|
97
97
|
@createsOrReplacesResource(TResource)
|
|
98
98
|
ResourceCreateOrReplace<
|
|
99
|
-
TResource extends
|
|
100
|
-
Traits extends
|
|
99
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
100
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
101
101
|
> is Foundations.ResourceOperation<
|
|
102
102
|
TResource,
|
|
103
103
|
Foundations.ResourceBody<TResource> &
|
|
@@ -123,8 +123,8 @@ interface ResourceOperations<
|
|
|
123
123
|
*/
|
|
124
124
|
@createsOrReplacesResource(TResource)
|
|
125
125
|
LongRunningResourceCreateOrReplace<
|
|
126
|
-
TResource extends
|
|
127
|
-
Traits extends
|
|
126
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
127
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
128
128
|
> is Foundations.ResourceOperation<
|
|
129
129
|
TResource,
|
|
130
130
|
Foundations.ResourceBody<TResource> &
|
|
@@ -151,8 +151,8 @@ interface ResourceOperations<
|
|
|
151
151
|
*/
|
|
152
152
|
@createsOrUpdatesResource(TResource)
|
|
153
153
|
ResourceCreateOrUpdate<
|
|
154
|
-
TResource extends
|
|
155
|
-
Traits extends
|
|
154
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
155
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
156
156
|
> is Foundations.ResourceOperation<
|
|
157
157
|
TResource,
|
|
158
158
|
{
|
|
@@ -183,8 +183,8 @@ interface ResourceOperations<
|
|
|
183
183
|
*/
|
|
184
184
|
@createsOrUpdatesResource(TResource)
|
|
185
185
|
LongRunningResourceCreateOrUpdate<
|
|
186
|
-
TResource extends
|
|
187
|
-
Traits extends
|
|
186
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
187
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
188
188
|
> is Foundations.ResourceOperation<
|
|
189
189
|
TResource,
|
|
190
190
|
{
|
|
@@ -216,8 +216,8 @@ interface ResourceOperations<
|
|
|
216
216
|
*/
|
|
217
217
|
@updatesResource(TResource)
|
|
218
218
|
ResourceUpdate<
|
|
219
|
-
TResource extends
|
|
220
|
-
Traits extends
|
|
219
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
220
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
221
221
|
> is Foundations.ResourceOperation<
|
|
222
222
|
TResource,
|
|
223
223
|
{
|
|
@@ -241,8 +241,8 @@ interface ResourceOperations<
|
|
|
241
241
|
#suppress "@azure-tools/typespec-providerhub/no-inline-model" "This operation signature is not used in Azure Resource Manager operations (yet)"
|
|
242
242
|
@createsResource(TResource)
|
|
243
243
|
ResourceCreateWithServiceProvidedName<
|
|
244
|
-
TResource extends
|
|
245
|
-
Traits extends
|
|
244
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
245
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
246
246
|
> is Foundations.ResourceCollectionOperation<
|
|
247
247
|
TResource,
|
|
248
248
|
Foundations.ResourceBody<TResource> &
|
|
@@ -261,8 +261,8 @@ interface ResourceOperations<
|
|
|
261
261
|
#suppress "@azure-tools/typespec-providerhub/no-inline-model" "This operation signature is not used in Azure Resource Manager operations (yet)"
|
|
262
262
|
@createsResource(TResource)
|
|
263
263
|
LongRunningResourceCreateWithServiceProvidedName<
|
|
264
|
-
TResource extends
|
|
265
|
-
Traits extends
|
|
264
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
265
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
266
266
|
> is Foundations.ResourceCollectionOperation<
|
|
267
267
|
TResource,
|
|
268
268
|
Foundations.ResourceBody<TResource> &
|
|
@@ -280,8 +280,8 @@ interface ResourceOperations<
|
|
|
280
280
|
*/
|
|
281
281
|
@readsResource(TResource)
|
|
282
282
|
ResourceRead<
|
|
283
|
-
TResource extends
|
|
284
|
-
Traits extends
|
|
283
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
284
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
285
285
|
> is Foundations.ResourceOperation<
|
|
286
286
|
TResource,
|
|
287
287
|
TraitProperties<Traits & InterfaceTraits, TraitLocation.Parameters, TraitContext.Read>,
|
|
@@ -299,8 +299,8 @@ interface ResourceOperations<
|
|
|
299
299
|
#suppress "@azure-tools/typespec-providerhub/no-inline-model" "This operation signature is not used in Azure Resource Manager operations (yet)"
|
|
300
300
|
@deletesResource(TResource)
|
|
301
301
|
ResourceDelete<
|
|
302
|
-
TResource extends
|
|
303
|
-
Traits extends
|
|
302
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
303
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
304
304
|
> is Foundations.ResourceOperation<
|
|
305
305
|
TResource,
|
|
306
306
|
TraitProperties<Traits & InterfaceTraits, TraitLocation.Parameters, TraitContext.Delete>,
|
|
@@ -318,8 +318,8 @@ interface ResourceOperations<
|
|
|
318
318
|
#suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "We do support bodies in data plane service APIs..."
|
|
319
319
|
@deletesResource(TResource)
|
|
320
320
|
LongRunningResourceDelete<
|
|
321
|
-
TResource extends
|
|
322
|
-
Traits extends
|
|
321
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
322
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
323
323
|
> is Foundations.ResourceOperation<
|
|
324
324
|
TResource,
|
|
325
325
|
TraitProperties<Traits & InterfaceTraits, TraitLocation.Parameters, TraitContext.Delete>,
|
|
@@ -335,7 +335,10 @@ interface ResourceOperations<
|
|
|
335
335
|
* @template TResource Resource type.
|
|
336
336
|
* @template Traits Object describing the traits of the operation.
|
|
337
337
|
*/
|
|
338
|
-
ResourceList<
|
|
338
|
+
ResourceList<
|
|
339
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
340
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
341
|
+
> is Foundations.ResourceList<
|
|
339
342
|
TResource,
|
|
340
343
|
TraitProperties<Traits & InterfaceTraits, TraitLocation.Parameters, TraitContext.List>,
|
|
341
344
|
Foundations.CustomPage<TResource, Traits & InterfaceTraits>,
|
|
@@ -353,10 +356,10 @@ interface ResourceOperations<
|
|
|
353
356
|
@action
|
|
354
357
|
@actionSeparator(":")
|
|
355
358
|
ResourceAction<
|
|
356
|
-
TResource extends
|
|
357
|
-
TParams,
|
|
358
|
-
TResponse,
|
|
359
|
-
Traits extends
|
|
359
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
360
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
361
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
362
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
360
363
|
> is Foundations.ResourceOperation<
|
|
361
364
|
TResource,
|
|
362
365
|
TParams &
|
|
@@ -377,10 +380,10 @@ interface ResourceOperations<
|
|
|
377
380
|
@collectionAction(TResource)
|
|
378
381
|
@actionSeparator(":")
|
|
379
382
|
ResourceCollectionAction<
|
|
380
|
-
TResource extends
|
|
381
|
-
TParams,
|
|
382
|
-
TResponse,
|
|
383
|
-
Traits extends
|
|
383
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
384
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
385
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
386
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
384
387
|
> is Foundations.ResourceCollectionOperation<
|
|
385
388
|
TResource,
|
|
386
389
|
TParams &
|
|
@@ -404,11 +407,11 @@ interface ResourceOperations<
|
|
|
404
407
|
@action
|
|
405
408
|
@actionSeparator(":")
|
|
406
409
|
LongRunningResourceAction<
|
|
407
|
-
TResource extends
|
|
408
|
-
TParams,
|
|
409
|
-
TStatusResult,
|
|
410
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
411
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
412
|
+
TStatusResult extends TypeSpec.Reflection.Model,
|
|
410
413
|
TStatusError = Foundations.Error,
|
|
411
|
-
Traits extends
|
|
414
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
412
415
|
> is Foundations.ResourceOperation<
|
|
413
416
|
TResource,
|
|
414
417
|
TParams &
|
|
@@ -435,11 +438,11 @@ interface ResourceOperations<
|
|
|
435
438
|
@collectionAction(TResource)
|
|
436
439
|
@actionSeparator(":")
|
|
437
440
|
LongRunningResourceCollectionAction<
|
|
438
|
-
TResource extends
|
|
439
|
-
TParams,
|
|
440
|
-
TStatusResult,
|
|
441
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
442
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
443
|
+
TStatusResult extends TypeSpec.Reflection.Model,
|
|
441
444
|
TStatusError = Foundations.Error,
|
|
442
|
-
Traits extends
|
|
445
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
443
446
|
> is Foundations.ResourceCollectionOperation<
|
|
444
447
|
TResource,
|
|
445
448
|
TParams &
|
|
@@ -462,10 +465,10 @@ interface ResourceOperations<
|
|
|
462
465
|
@readsResource(ResourceOperationStatus<TResource>)
|
|
463
466
|
@Foundations.Private.ensureResourceType(TResource)
|
|
464
467
|
GetResourceOperationStatus<
|
|
465
|
-
TResource,
|
|
468
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
466
469
|
TStatusResult = TResource,
|
|
467
470
|
TStatusError = Foundations.Error,
|
|
468
|
-
Traits extends
|
|
471
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
469
472
|
> is Foundations.ResourceOperation<
|
|
470
473
|
ResourceOperationStatus<TResource, TStatusResult, TStatusError>,
|
|
471
474
|
{},
|
|
@@ -486,8 +489,8 @@ alias StandardResourceOperations = ResourceOperations<NoConditionalRequests &
|
|
|
486
489
|
*/
|
|
487
490
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
488
491
|
op ResourceCreateOrReplace<
|
|
489
|
-
TResource extends
|
|
490
|
-
Traits extends
|
|
492
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
493
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
491
494
|
> is StandardResourceOperations.ResourceCreateOrReplace<TResource, Traits>;
|
|
492
495
|
|
|
493
496
|
/**
|
|
@@ -497,8 +500,8 @@ op ResourceCreateOrReplace<
|
|
|
497
500
|
*/
|
|
498
501
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
499
502
|
op LongRunningResourceCreateOrReplace<
|
|
500
|
-
TResource extends
|
|
501
|
-
Traits extends
|
|
503
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
504
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
502
505
|
> is StandardResourceOperations.LongRunningResourceCreateOrReplace<TResource, Traits>;
|
|
503
506
|
|
|
504
507
|
/**
|
|
@@ -508,8 +511,8 @@ op LongRunningResourceCreateOrReplace<
|
|
|
508
511
|
*/
|
|
509
512
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
510
513
|
op ResourceCreateOrUpdate<
|
|
511
|
-
TResource extends
|
|
512
|
-
Traits extends
|
|
514
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
515
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
513
516
|
> is StandardResourceOperations.ResourceCreateOrUpdate<TResource, Traits>;
|
|
514
517
|
|
|
515
518
|
/**
|
|
@@ -519,8 +522,8 @@ op ResourceCreateOrUpdate<
|
|
|
519
522
|
*/
|
|
520
523
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
521
524
|
op LongRunningResourceCreateOrUpdate<
|
|
522
|
-
TResource extends
|
|
523
|
-
Traits extends
|
|
525
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
526
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
524
527
|
> is StandardResourceOperations.LongRunningResourceCreateOrUpdate<TResource, Traits>;
|
|
525
528
|
|
|
526
529
|
/**
|
|
@@ -530,8 +533,8 @@ op LongRunningResourceCreateOrUpdate<
|
|
|
530
533
|
*/
|
|
531
534
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
532
535
|
op ResourceUpdate<
|
|
533
|
-
TResource extends
|
|
534
|
-
Traits extends
|
|
536
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
537
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
535
538
|
> is StandardResourceOperations.ResourceUpdate<TResource, Traits>;
|
|
536
539
|
|
|
537
540
|
/**
|
|
@@ -541,8 +544,8 @@ op ResourceUpdate<
|
|
|
541
544
|
*/
|
|
542
545
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
543
546
|
op ResourceCreateWithServiceProvidedName<
|
|
544
|
-
TResource extends
|
|
545
|
-
Traits extends
|
|
547
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
548
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
546
549
|
> is StandardResourceOperations.ResourceCreateWithServiceProvidedName<TResource, Traits>;
|
|
547
550
|
|
|
548
551
|
/**
|
|
@@ -552,8 +555,8 @@ op ResourceCreateWithServiceProvidedName<
|
|
|
552
555
|
*/
|
|
553
556
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
554
557
|
op LongRunningResourceCreateWithServiceProvidedName<
|
|
555
|
-
TResource extends
|
|
556
|
-
Traits extends
|
|
558
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
559
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
557
560
|
> is StandardResourceOperations.LongRunningResourceCreateWithServiceProvidedName<TResource, Traits>;
|
|
558
561
|
|
|
559
562
|
/**
|
|
@@ -563,8 +566,8 @@ op LongRunningResourceCreateWithServiceProvidedName<
|
|
|
563
566
|
*/
|
|
564
567
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
565
568
|
op ResourceRead<
|
|
566
|
-
TResource extends
|
|
567
|
-
Traits extends
|
|
569
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
570
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
568
571
|
> is StandardResourceOperations.ResourceRead<TResource, Traits>;
|
|
569
572
|
|
|
570
573
|
/**
|
|
@@ -574,8 +577,8 @@ op ResourceRead<
|
|
|
574
577
|
*/
|
|
575
578
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
576
579
|
op ResourceDelete<
|
|
577
|
-
TResource extends
|
|
578
|
-
Traits extends
|
|
580
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
581
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
579
582
|
> is StandardResourceOperations.ResourceDelete<TResource, Traits>;
|
|
580
583
|
|
|
581
584
|
/**
|
|
@@ -585,8 +588,8 @@ op ResourceDelete<
|
|
|
585
588
|
*/
|
|
586
589
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
587
590
|
op LongRunningResourceDelete<
|
|
588
|
-
TResource extends
|
|
589
|
-
Traits extends
|
|
591
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
592
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
590
593
|
> is StandardResourceOperations.LongRunningResourceDelete<TResource, Traits>;
|
|
591
594
|
|
|
592
595
|
/**
|
|
@@ -596,8 +599,8 @@ op LongRunningResourceDelete<
|
|
|
596
599
|
*/
|
|
597
600
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
598
601
|
op ResourceList<
|
|
599
|
-
TResource extends
|
|
600
|
-
Traits extends
|
|
602
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
603
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
601
604
|
> is StandardResourceOperations.ResourceList<TResource, Traits>;
|
|
602
605
|
|
|
603
606
|
/**
|
|
@@ -609,10 +612,10 @@ op ResourceList<
|
|
|
609
612
|
*/
|
|
610
613
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
611
614
|
op ResourceAction<
|
|
612
|
-
TResource extends
|
|
613
|
-
TParams,
|
|
614
|
-
TResponse,
|
|
615
|
-
Traits extends
|
|
615
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
616
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
617
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
618
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
616
619
|
> is StandardResourceOperations.ResourceAction<TResource, TParams, TResponse, Traits>;
|
|
617
620
|
|
|
618
621
|
/**
|
|
@@ -624,10 +627,10 @@ op ResourceAction<
|
|
|
624
627
|
*/
|
|
625
628
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
626
629
|
op ResourceCollectionAction<
|
|
627
|
-
TResource extends
|
|
628
|
-
TParams,
|
|
629
|
-
TResponse,
|
|
630
|
-
Traits extends
|
|
630
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
631
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
632
|
+
TResponse extends TypeSpec.Reflection.Model,
|
|
633
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
631
634
|
> is StandardResourceOperations.ResourceCollectionAction<TResource, TParams, TResponse, Traits>;
|
|
632
635
|
|
|
633
636
|
/**
|
|
@@ -640,11 +643,11 @@ op ResourceCollectionAction<
|
|
|
640
643
|
*/
|
|
641
644
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
642
645
|
op LongRunningResourceAction<
|
|
643
|
-
TResource extends
|
|
644
|
-
TParams,
|
|
645
|
-
TStatusResult,
|
|
646
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
647
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
648
|
+
TStatusResult extends TypeSpec.Reflection.Model,
|
|
646
649
|
TStatusError = Foundations.Error,
|
|
647
|
-
Traits extends
|
|
650
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
648
651
|
> is StandardResourceOperations.LongRunningResourceAction<
|
|
649
652
|
TResource,
|
|
650
653
|
TParams,
|
|
@@ -663,11 +666,11 @@ op LongRunningResourceAction<
|
|
|
663
666
|
*/
|
|
664
667
|
@deprecated("Use the equivalent operation from the ResourceOperations interface.")
|
|
665
668
|
op LongRunningResourceCollectionAction<
|
|
666
|
-
TResource extends
|
|
667
|
-
TParams,
|
|
668
|
-
TStatusResult,
|
|
669
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
670
|
+
TParams extends TypeSpec.Reflection.Model,
|
|
671
|
+
TStatusResult extends TypeSpec.Reflection.Model,
|
|
669
672
|
TStatusError = Foundations.Error,
|
|
670
|
-
Traits extends
|
|
673
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
671
674
|
> is StandardResourceOperations.LongRunningResourceAction<
|
|
672
675
|
TResource,
|
|
673
676
|
TParams,
|
|
@@ -688,10 +691,10 @@ op LongRunningResourceCollectionAction<
|
|
|
688
691
|
@readsResource(ResourceOperationStatus<TResource>)
|
|
689
692
|
@Foundations.Private.ensureResourceType(TResource)
|
|
690
693
|
op GetResourceOperationStatus<
|
|
691
|
-
TResource,
|
|
694
|
+
TResource extends TypeSpec.Reflection.Model,
|
|
692
695
|
TStatusResult = TResource,
|
|
693
696
|
TStatusError = Foundations.Error,
|
|
694
|
-
Traits extends
|
|
697
|
+
Traits extends TypeSpec.Reflection.Model = {}
|
|
695
698
|
> is Foundations.ResourceOperation<
|
|
696
699
|
ResourceOperationStatus<TResource, TStatusResult, TStatusError>,
|
|
697
700
|
{},
|
package/package.json
CHANGED