You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| baseTypeIt | `"Tenant" \| "Subscription" \| "ResourceGroup" \| "Location" \| "Extension"` | The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension" |
| baseType | `"Tenant" \| "Subscription" \| "ResourceGroup" \| "Location" \| "Extension"` | The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension" |
* Marks the operation as being a collection action
21
+
* Marks the operation as being a collection action that is not associated with a specific resource instance.
22
+
* Collection actions are operations that act on a resource collection rather than a single resource,
23
+
* such as `checkNameAvailability` or provider-level actions.
22
24
*/
23
25
exporttypeArmResourceCollectionActionDecorator=(
24
26
context: DecoratorContext,
25
27
target: Operation,
26
28
)=>DecoratorValidatorCallbacks|void;
27
29
28
30
/**
29
-
* `@armResourceType` sets the value fo the decorated string
30
-
* property to the type of the Azure Resource Manager resource.
31
-
*
32
-
* @param resource The resource to get the type of
31
+
* `@armProviderNameValue` sets the provider namespace value on operations.
32
+
* It is used internally to inject the correct provider namespace path segment
33
+
* for resource operations in auto-generated routes.
33
34
*/
34
35
exporttypeArmProviderNameValueDecorator=(
35
36
context: DecoratorContext,
@@ -70,7 +71,6 @@ export type IdentifiersDecorator = (
70
71
* namespace Microsoft.ContosoService;
71
72
* ```
72
73
* @param providerNamespace Provider namespace
73
-
* @param libraryNamespaces a library namespace containing types for this namespace
74
74
*/
75
75
exporttypeArmProviderNamespaceDecorator=(
76
76
context: DecoratorContext,
@@ -91,7 +91,9 @@ export type UseLibraryNamespaceDecorator = (
91
91
)=>DecoratorValidatorCallbacks|void;
92
92
93
93
/**
94
-
* `@armLibraryNamespace` designates a namespace as containign Azure Resource Manager Provider information.
94
+
* `@armLibraryNamespace` designates a namespace as containing Azure Resource Manager Provider information.
95
+
* This is used for library namespaces that define reusable ARM resource types that can be shared
96
+
* across multiple provider specifications.
95
97
*
96
98
* @example
97
99
* ```typespec
@@ -189,8 +191,10 @@ export type ExtensionResourceDecorator = (
189
191
)=>DecoratorValidatorCallbacks|void;
190
192
191
193
/**
192
-
*
193
-
*
194
+
* Marks the operation as a custom action on a specific Azure Resource Manager resource type.
195
+
* This decorator associates a POST action operation with its resource,
196
+
* identifying the semantics of the operation as a resource action over a specific resource for documentation,
197
+
* resource validation, and use by downstream emitters.
194
198
*
195
199
* @param resourceModel Resource model
196
200
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
@@ -203,8 +207,9 @@ export type ArmResourceActionDecorator = (
203
207
)=>DecoratorValidatorCallbacks|void;
204
208
205
209
/**
206
-
*
207
-
*
210
+
* Marks the operation as a create or update (PUT) operation for a specific Azure Resource Manager resource type.
211
+
* This decorator identifies the semantics of the operation as a CreateOrReplace lifecycle operation over a particular resource,
212
+
* for use in documentation, resource validation, and downstream emitters.
208
213
*
209
214
* @param resourceModel Resource model
210
215
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
@@ -217,8 +222,9 @@ export type ArmResourceCreateOrUpdateDecorator = (
217
222
)=>DecoratorValidatorCallbacks|void;
218
223
219
224
/**
220
-
*
221
-
*
225
+
* Marks the operation as a read (GET) operation for a specific Azure Resource Manager resource type.
226
+
* This decorator identifies the semantics of the operation as a Read lifecycle operation over a particular resource,
227
+
* for use in documentation, resource validation, and downstream emitters.
222
228
*
223
229
* @param resourceModel Resource model
224
230
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
@@ -231,8 +237,9 @@ export type ArmResourceReadDecorator = (
231
237
)=>DecoratorValidatorCallbacks|void;
232
238
233
239
/**
234
-
*
235
-
*
240
+
* Marks the operation as an update (PATCH) operation for a specific Azure Resource Manager resource type.
241
+
* This decorator identifies the operation as an Update lifecycle operation over the resource for use in documentation,
242
+
* resource validation, and downstream emitters.
236
243
*
237
244
* @param resourceModel Resource model
238
245
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
@@ -245,8 +252,9 @@ export type ArmResourceUpdateDecorator = (
245
252
)=>DecoratorValidatorCallbacks|void;
246
253
247
254
/**
248
-
*
249
-
*
255
+
* Marks the operation as a delete (DELETE) operation for a specific Azure Resource Manager resource type.
256
+
* This decorator identifies the operation as a Delete lifecycle operation over the resource for us in documentation,
257
+
* resource validation, and downstream emitters.
250
258
*
251
259
* @param resourceModel Resource model
252
260
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
@@ -259,8 +267,9 @@ export type ArmResourceDeleteDecorator = (
259
267
)=>DecoratorValidatorCallbacks|void;
260
268
261
269
/**
262
-
*
263
-
*
270
+
* Marks the operation as a list (GET collection) operation for a specific Azure Resource Manager resource type.
271
+
* This decorator identifies the semantics of the operation as a collection list operation over a resource type and a particular scope for documentation,
272
+
* resource validation, and downstream emitters.
264
273
*
265
274
* @param resourceModel Resource model
266
275
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
@@ -326,9 +335,9 @@ export type ArmCommonTypesVersionDecorator = (
326
335
327
336
/**
328
337
* This decorator is used on Azure Resource Manager resources that are not based on
329
-
* Azure.ResourceManager common types.
338
+
* Azure.ResourceManager common types. It marks a model as an ARM virtual resource,
339
+
* which is useful for defining the scope of resources used only as parents for child resources, or scopes for extension resources.
330
340
*
331
-
* @param propertiesType : The type of the resource properties.
332
341
* @param provider Optional. The resource provider namespace for the virtual resource.
333
342
*/
334
343
exporttypeArmVirtualResourceDecorator=(
@@ -338,14 +347,15 @@ export type ArmVirtualResourceDecorator = (
338
347
)=>DecoratorValidatorCallbacks|void;
339
348
340
349
/**
341
-
* This decorator sets the base type of the given resource.
350
+
* This decorator sets the base type of the given resource, indicating where in the
351
+
* Azure Resource Manager hierarchy the resource is located.
342
352
*
343
-
* @parambaseTypeIt The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension"
353
+
* @parambaseType The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension"
0 commit comments