@azure-tools/typespec-azure-resource-manager 0.62.0-dev.4 → 0.62.0-dev.5
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/README.md +50 -24
- package/dist/generated-defs/Azure.ResourceManager.Private.d.ts +42 -0
- package/dist/generated-defs/Azure.ResourceManager.Private.d.ts.map +1 -1
- package/dist/generated-defs/Azure.ResourceManager.d.ts +26 -12
- package/dist/generated-defs/Azure.ResourceManager.d.ts.map +1 -1
- package/dist/src/operations.d.ts +30 -3
- package/dist/src/operations.d.ts.map +1 -1
- package/dist/src/operations.js +97 -28
- package/dist/src/operations.js.map +1 -1
- package/dist/src/private.decorators.d.ts.map +1 -1
- package/dist/src/private.decorators.js +177 -3
- package/dist/src/private.decorators.js.map +1 -1
- package/dist/src/resource.d.ts +30 -16
- package/dist/src/resource.d.ts.map +1 -1
- package/dist/src/resource.js +75 -89
- package/dist/src/resource.js.map +1 -1
- package/dist/src/tsp-index.d.ts.map +1 -1
- package/dist/src/tsp-index.js +2 -1
- package/dist/src/tsp-index.js.map +1 -1
- package/lib/decorators.tsp +45 -12
- package/lib/extension/operations.tsp +116 -31
- package/lib/legacy-types/extension-operations.tsp +31 -10
- package/lib/legacy-types/extension.tsp +51 -24
- package/lib/legacy-types/operations.tsp +61 -26
- package/lib/legacy-types/resource.tsp +25 -3
- package/lib/operations.tsp +1 -0
- package/lib/private-endpoints.tsp +69 -113
- package/lib/private-links.tsp +17 -7
- package/lib/private.decorators.tsp +88 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ Available ruleSets:
|
|
|
72
72
|
- [`@armProviderNamespace`](#@armprovidernamespace)
|
|
73
73
|
- [`@armProviderNameValue`](#@armprovidernamevalue)
|
|
74
74
|
- [`@armResourceAction`](#@armresourceaction)
|
|
75
|
+
- [`@armResourceCheckExistence`](#@armresourcecheckexistence)
|
|
75
76
|
- [`@armResourceCollectionAction`](#@armresourcecollectionaction)
|
|
76
77
|
- [`@armResourceCreateOrUpdate`](#@armresourcecreateorupdate)
|
|
77
78
|
- [`@armResourceDelete`](#@armresourcedelete)
|
|
@@ -183,7 +184,7 @@ None
|
|
|
183
184
|
#### `@armResourceAction`
|
|
184
185
|
|
|
185
186
|
```typespec
|
|
186
|
-
@Azure.ResourceManager.armResourceAction(
|
|
187
|
+
@Azure.ResourceManager.armResourceAction(resourceModel: Model, resourceName?: valueof string)
|
|
187
188
|
```
|
|
188
189
|
|
|
189
190
|
##### Target
|
|
@@ -192,9 +193,29 @@ None
|
|
|
192
193
|
|
|
193
194
|
##### Parameters
|
|
194
195
|
|
|
195
|
-
| Name
|
|
196
|
-
|
|
|
197
|
-
|
|
|
196
|
+
| Name | Type | Description |
|
|
197
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
198
|
+
| resourceModel | `Model` | Resource model |
|
|
199
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
200
|
+
|
|
201
|
+
#### `@armResourceCheckExistence`
|
|
202
|
+
|
|
203
|
+
Marks the operation as being a check existence (HEAD) operation
|
|
204
|
+
|
|
205
|
+
```typespec
|
|
206
|
+
@Azure.ResourceManager.armResourceCheckExistence(resourceModel: Model, resourceName?: valueof string)
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
##### Target
|
|
210
|
+
|
|
211
|
+
`Operation`
|
|
212
|
+
|
|
213
|
+
##### Parameters
|
|
214
|
+
|
|
215
|
+
| Name | Type | Description |
|
|
216
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
217
|
+
| resourceModel | `Model` | Resource model |
|
|
218
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
198
219
|
|
|
199
220
|
#### `@armResourceCollectionAction`
|
|
200
221
|
|
|
@@ -215,7 +236,7 @@ None
|
|
|
215
236
|
#### `@armResourceCreateOrUpdate`
|
|
216
237
|
|
|
217
238
|
```typespec
|
|
218
|
-
@Azure.ResourceManager.armResourceCreateOrUpdate(
|
|
239
|
+
@Azure.ResourceManager.armResourceCreateOrUpdate(resourceModel: Model, resourceName?: valueof string)
|
|
219
240
|
```
|
|
220
241
|
|
|
221
242
|
##### Target
|
|
@@ -224,14 +245,15 @@ None
|
|
|
224
245
|
|
|
225
246
|
##### Parameters
|
|
226
247
|
|
|
227
|
-
| Name
|
|
228
|
-
|
|
|
229
|
-
|
|
|
248
|
+
| Name | Type | Description |
|
|
249
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
250
|
+
| resourceModel | `Model` | Resource model |
|
|
251
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
230
252
|
|
|
231
253
|
#### `@armResourceDelete`
|
|
232
254
|
|
|
233
255
|
```typespec
|
|
234
|
-
@Azure.ResourceManager.armResourceDelete(
|
|
256
|
+
@Azure.ResourceManager.armResourceDelete(resourceModel: Model, resourceName?: valueof string)
|
|
235
257
|
```
|
|
236
258
|
|
|
237
259
|
##### Target
|
|
@@ -240,14 +262,15 @@ None
|
|
|
240
262
|
|
|
241
263
|
##### Parameters
|
|
242
264
|
|
|
243
|
-
| Name
|
|
244
|
-
|
|
|
245
|
-
|
|
|
265
|
+
| Name | Type | Description |
|
|
266
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
267
|
+
| resourceModel | `Model` | Resource model |
|
|
268
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
246
269
|
|
|
247
270
|
#### `@armResourceList`
|
|
248
271
|
|
|
249
272
|
```typespec
|
|
250
|
-
@Azure.ResourceManager.armResourceList(
|
|
273
|
+
@Azure.ResourceManager.armResourceList(resourceModel: Model, resourceName?: valueof string)
|
|
251
274
|
```
|
|
252
275
|
|
|
253
276
|
##### Target
|
|
@@ -256,9 +279,10 @@ None
|
|
|
256
279
|
|
|
257
280
|
##### Parameters
|
|
258
281
|
|
|
259
|
-
| Name
|
|
260
|
-
|
|
|
261
|
-
|
|
|
282
|
+
| Name | Type | Description |
|
|
283
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
284
|
+
| resourceModel | `Model` | Resource model |
|
|
285
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
262
286
|
|
|
263
287
|
#### `@armResourceOperations`
|
|
264
288
|
|
|
@@ -297,7 +321,7 @@ individually tagged
|
|
|
297
321
|
#### `@armResourceRead`
|
|
298
322
|
|
|
299
323
|
```typespec
|
|
300
|
-
@Azure.ResourceManager.armResourceRead(
|
|
324
|
+
@Azure.ResourceManager.armResourceRead(resourceModel: Model, resourceName?: valueof string)
|
|
301
325
|
```
|
|
302
326
|
|
|
303
327
|
##### Target
|
|
@@ -306,14 +330,15 @@ individually tagged
|
|
|
306
330
|
|
|
307
331
|
##### Parameters
|
|
308
332
|
|
|
309
|
-
| Name
|
|
310
|
-
|
|
|
311
|
-
|
|
|
333
|
+
| Name | Type | Description |
|
|
334
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
335
|
+
| resourceModel | `Model` | Resource model |
|
|
336
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
312
337
|
|
|
313
338
|
#### `@armResourceUpdate`
|
|
314
339
|
|
|
315
340
|
```typespec
|
|
316
|
-
@Azure.ResourceManager.armResourceUpdate(
|
|
341
|
+
@Azure.ResourceManager.armResourceUpdate(resourceModel: Model, resourceName?: valueof string)
|
|
317
342
|
```
|
|
318
343
|
|
|
319
344
|
##### Target
|
|
@@ -322,9 +347,10 @@ individually tagged
|
|
|
322
347
|
|
|
323
348
|
##### Parameters
|
|
324
349
|
|
|
325
|
-
| Name
|
|
326
|
-
|
|
|
327
|
-
|
|
|
350
|
+
| Name | Type | Description |
|
|
351
|
+
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
|
|
352
|
+
| resourceModel | `Model` | Resource model |
|
|
353
|
+
| resourceName | `valueof string` | Optional. The name of the resource. If not provided, the name of the resource model will be used. |
|
|
328
354
|
|
|
329
355
|
#### `@armVirtualResource`
|
|
330
356
|
|
|
@@ -114,6 +114,44 @@ export type LegacyTypeDecorator = (context: DecoratorContext, target: Model | Op
|
|
|
114
114
|
* @param parentType The parent type of the resource (Subscription, ResourceGroup, Tenant, Extension)
|
|
115
115
|
*/
|
|
116
116
|
export type ResourceParentTypeDecorator = (context: DecoratorContext, target: Model, parentType: "Subscription" | "ResourceGroup" | "Tenant" | "Extension") => void;
|
|
117
|
+
/**
|
|
118
|
+
* Marks a resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
|
|
119
|
+
*
|
|
120
|
+
* @param target The operation to associate the resourceType with
|
|
121
|
+
* @param resourceType The resource model
|
|
122
|
+
* @param operationType The type of operation being performed
|
|
123
|
+
* @param resourceName Optional. The name of the resource. If not provided, the resource type will be used
|
|
124
|
+
*/
|
|
125
|
+
export type LegacyResourceOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Marks an extension resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
|
|
128
|
+
*
|
|
129
|
+
* @param target The operation to associate the resourceType with
|
|
130
|
+
* @param targetResourceType The resource model for the target resource
|
|
131
|
+
* @param extensionResourceType The resource model for the extension resource
|
|
132
|
+
* @param operationType The type of operation being performed
|
|
133
|
+
* @param resourceName Optional. The name of the resource. If not provided, the scope and resource name will be used
|
|
134
|
+
*/
|
|
135
|
+
export type ExtensionResourceOperationDecorator = (context: DecoratorContext, target: Operation, targetResourceType: Model, extensionResourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
|
|
136
|
+
/**
|
|
137
|
+
* Marks an extension resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
|
|
138
|
+
*
|
|
139
|
+
* @param target The operation to associate the resourceType with
|
|
140
|
+
* @param targetResourceType The resource model for the target resource
|
|
141
|
+
* @param extensionResourceType The resource model for the extension resource
|
|
142
|
+
* @param operationType The type of operation being performed
|
|
143
|
+
* @param resourceName Optional. The name of the resource. If not provided, the scope and resource name will be used
|
|
144
|
+
*/
|
|
145
|
+
export type BuiltInResourceOperationDecorator = (context: DecoratorContext, target: Operation, parentResourceType: Model, builtInResourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
|
|
146
|
+
/**
|
|
147
|
+
* Marks a resource operation with the associated resource, operation type, and name. If no name is provided, the name is calculated by resource type.
|
|
148
|
+
*
|
|
149
|
+
* @param target The operation to associate the resourceType with
|
|
150
|
+
* @param resourceType The resource model
|
|
151
|
+
* @param operationType The type of operation being performed
|
|
152
|
+
* @param resourceName Optional. The name of the resource. If not provided, the resource type will be used
|
|
153
|
+
*/
|
|
154
|
+
export type LegacyExtensionResourceOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, operationType: "read" | "createOrUpdate" | "update" | "delete" | "list" | "action" | "checkExistence", resourceName?: string) => void;
|
|
117
155
|
export type AzureResourceManagerPrivateDecorators = {
|
|
118
156
|
resourceParameterBaseFor: ResourceParameterBaseForDecorator;
|
|
119
157
|
resourceBaseParametersOf: ResourceBaseParametersOfDecorator;
|
|
@@ -132,5 +170,9 @@ export type AzureResourceManagerPrivateDecorators = {
|
|
|
132
170
|
armBodyRoot: ArmBodyRootDecorator;
|
|
133
171
|
legacyType: LegacyTypeDecorator;
|
|
134
172
|
resourceParentType: ResourceParentTypeDecorator;
|
|
173
|
+
legacyResourceOperation: LegacyResourceOperationDecorator;
|
|
174
|
+
extensionResourceOperation: ExtensionResourceOperationDecorator;
|
|
175
|
+
builtInResourceOperation: BuiltInResourceOperationDecorator;
|
|
176
|
+
legacyExtensionResourceOperation: LegacyExtensionResourceOperationDecorator;
|
|
135
177
|
};
|
|
136
178
|
//# sourceMappingURL=Azure.ResourceManager.Private.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,MAAM,EACN,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,IAAI,KACT,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,KAAK,KAChB,IAAI,CAAC;AAEV;;;;;;;GAOG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,KAClB,IAAI,CAAC;AAgBV;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC7C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,KAAK,KACZ,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,CAChD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,KACd,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,sCAAsC,GAAG,CACnD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,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AE,OAAO,KAChB,IAAI,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,KAC3C,IAAI,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,cAAc,GAAG,eAAe,GAAG,QAAQ,GAAG,WAAW,KAClE,IAAI,CAAC;AAEV,MAAM,MAAM,qCAAqC,GAAG;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,WAAW,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;IAC5E,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,mBAAmB,CAAC;IAChC,kBAAkB,EAAE,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,MAAM,EACN,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;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AAC;IAC5D,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,WAAW,EAAE,oBAAoB,CAAC;IAClC,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,6BAA6B,EAAE,sCAAsC,CAAC;IACtE,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;IAC5E,WAAW,EAAE,oBAAoB,CAAC;IAClC,UAAU,EAAE,mBAAmB,CAAC;IAChC,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,uBAAuB,EAAE,gCAAgC,CAAC;IAC1D,0BAA0B,EAAE,mCAAmC,CAAC;IAChE,wBAAwB,EAAE,iCAAiC,CAAC;IAC5D,gCAAgC,EAAE,yCAAyC,CAAC;CAC7E,CAAC"}
|
|
@@ -112,44 +112,57 @@ export type ExtensionResourceDecorator = (context: DecoratorContext, target: Mod
|
|
|
112
112
|
*
|
|
113
113
|
*
|
|
114
114
|
*
|
|
115
|
-
* @param
|
|
115
|
+
* @param resourceModel Resource model
|
|
116
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
116
117
|
*/
|
|
117
|
-
export type ArmResourceActionDecorator = (context: DecoratorContext, target: Operation,
|
|
118
|
+
export type ArmResourceActionDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
118
119
|
/**
|
|
119
120
|
*
|
|
120
121
|
*
|
|
121
122
|
*
|
|
122
|
-
* @param
|
|
123
|
+
* @param resourceModel Resource model
|
|
124
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
123
125
|
*/
|
|
124
|
-
export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, target: Operation,
|
|
126
|
+
export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
125
127
|
/**
|
|
126
128
|
*
|
|
127
129
|
*
|
|
128
130
|
*
|
|
129
|
-
* @param
|
|
131
|
+
* @param resourceModel Resource model
|
|
132
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
130
133
|
*/
|
|
131
|
-
export type ArmResourceReadDecorator = (context: DecoratorContext, target: Operation,
|
|
134
|
+
export type ArmResourceReadDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
132
135
|
/**
|
|
133
136
|
*
|
|
134
137
|
*
|
|
135
138
|
*
|
|
136
|
-
* @param
|
|
139
|
+
* @param resourceModel Resource model
|
|
140
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
137
141
|
*/
|
|
138
|
-
export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Operation,
|
|
142
|
+
export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
139
143
|
/**
|
|
140
144
|
*
|
|
141
145
|
*
|
|
142
146
|
*
|
|
143
|
-
* @param
|
|
147
|
+
* @param resourceModel Resource model
|
|
148
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
144
149
|
*/
|
|
145
|
-
export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Operation,
|
|
150
|
+
export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
146
151
|
/**
|
|
147
152
|
*
|
|
148
153
|
*
|
|
149
154
|
*
|
|
150
|
-
* @param
|
|
155
|
+
* @param resourceModel Resource model
|
|
156
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
151
157
|
*/
|
|
152
|
-
export type ArmResourceListDecorator = (context: DecoratorContext, target: Operation,
|
|
158
|
+
export type ArmResourceListDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
159
|
+
/**
|
|
160
|
+
* Marks the operation as being a check existence (HEAD) operation
|
|
161
|
+
*
|
|
162
|
+
* @param resourceModel Resource model
|
|
163
|
+
* @param resourceName Optional. The name of the resource. If not provided, the name of the resource model will be used.
|
|
164
|
+
*/
|
|
165
|
+
export type ArmResourceCheckExistenceDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
|
|
153
166
|
/**
|
|
154
167
|
* This decorator is used to identify interfaces containing resource operations.
|
|
155
168
|
* By default, it marks the interface with the `@autoRoute` decorator so that
|
|
@@ -225,6 +238,7 @@ export type AzureResourceManagerDecorators = {
|
|
|
225
238
|
armResourceUpdate: ArmResourceUpdateDecorator;
|
|
226
239
|
armResourceDelete: ArmResourceDeleteDecorator;
|
|
227
240
|
armResourceList: ArmResourceListDecorator;
|
|
241
|
+
armResourceCheckExistence: ArmResourceCheckExistenceDecorator;
|
|
228
242
|
armResourceOperations: ArmResourceOperationsDecorator;
|
|
229
243
|
armCommonTypesVersion: ArmCommonTypesVersionDecorator;
|
|
230
244
|
armVirtualResource: ArmVirtualResourceDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.ResourceManager.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAA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AC;IAChD,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,WAAW,EAAE,oBAAoB,CAAC;CACnC,CAAC"}
|
package/dist/src/operations.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DecoratorContext, Model, Operation, Program } from "@typespec/compiler";
|
|
2
2
|
import { HttpOperation } from "@typespec/http";
|
|
3
|
-
import { ArmResourceActionDecorator, ArmResourceCollectionActionDecorator, ArmResourceCreateOrUpdateDecorator, ArmResourceDeleteDecorator, ArmResourceListDecorator, ArmResourceReadDecorator, ArmResourceUpdateDecorator } from "../generated-defs/Azure.ResourceManager.js";
|
|
3
|
+
import { ArmResourceActionDecorator, ArmResourceCheckExistenceDecorator, ArmResourceCollectionActionDecorator, ArmResourceCreateOrUpdateDecorator, ArmResourceDeleteDecorator, ArmResourceListDecorator, ArmResourceReadDecorator, ArmResourceUpdateDecorator } from "../generated-defs/Azure.ResourceManager.js";
|
|
4
4
|
import { ArmOperationOptions, ArmOperationRouteDecorator, RenamePathParameterDecorator } from "../generated-defs/Azure.ResourceManager.Legacy.js";
|
|
5
|
-
export type ArmLifecycleOperationKind = "read" | "createOrUpdate" | "update" | "delete";
|
|
5
|
+
export type ArmLifecycleOperationKind = "read" | "createOrUpdate" | "update" | "delete" | "checkExistence";
|
|
6
6
|
export type ArmOperationKind = ArmLifecycleOperationKind | "list" | "action" | "other";
|
|
7
7
|
export interface ArmResourceOperation extends ArmResourceOperationData {
|
|
8
8
|
path: string;
|
|
@@ -13,12 +13,14 @@ export interface ArmLifecycleOperations {
|
|
|
13
13
|
createOrUpdate?: ArmResourceOperation;
|
|
14
14
|
update?: ArmResourceOperation;
|
|
15
15
|
delete?: ArmResourceOperation;
|
|
16
|
+
checkExistence?: ArmResourceOperation;
|
|
16
17
|
}
|
|
17
18
|
export interface ArmResourceLifecycleOperations {
|
|
18
19
|
read?: ArmResourceOperation[];
|
|
19
20
|
createOrUpdate?: ArmResourceOperation[];
|
|
20
21
|
update?: ArmResourceOperation[];
|
|
21
22
|
delete?: ArmResourceOperation[];
|
|
23
|
+
checkExistence?: ArmResourceOperation[];
|
|
22
24
|
}
|
|
23
25
|
export interface ArmResolvedOperationsForResource {
|
|
24
26
|
lifecycle: ArmResourceLifecycleOperations;
|
|
@@ -39,21 +41,44 @@ interface ArmResourceOperationData {
|
|
|
39
41
|
kind: ArmOperationKind;
|
|
40
42
|
operation: Operation;
|
|
41
43
|
operationGroup: string;
|
|
44
|
+
resourceModelName: string;
|
|
45
|
+
resourceName?: string;
|
|
46
|
+
resourceKind?: "legacy" | "legacy-extension";
|
|
42
47
|
}
|
|
43
48
|
/** Identifying information for an arm operation */
|
|
44
|
-
interface ArmOperationIdentifier {
|
|
49
|
+
export interface ArmOperationIdentifier {
|
|
45
50
|
name: string;
|
|
46
51
|
kind: ArmOperationKind;
|
|
47
52
|
operationGroup: string;
|
|
48
53
|
operation: Operation;
|
|
49
54
|
resource?: Model;
|
|
55
|
+
resourceName?: string;
|
|
56
|
+
resourceKind?: "legacy" | "legacy-extension";
|
|
50
57
|
}
|
|
58
|
+
export interface ArmLifecycleOperationData {
|
|
59
|
+
read?: ArmResourceOperationData;
|
|
60
|
+
createOrUpdate?: ArmResourceOperationData;
|
|
61
|
+
update?: ArmResourceOperationData;
|
|
62
|
+
delete?: ArmResourceOperationData;
|
|
63
|
+
checkExistence?: ArmResourceOperationData;
|
|
64
|
+
}
|
|
65
|
+
export interface ArmResourceOperationsData {
|
|
66
|
+
lifecycle: ArmLifecycleOperationData;
|
|
67
|
+
lists: {
|
|
68
|
+
[key: string]: ArmResourceOperationData;
|
|
69
|
+
};
|
|
70
|
+
actions: {
|
|
71
|
+
[key: string]: ArmResourceOperationData;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export declare function getArmResourceOperations(program: Program, resourceType: Model): ArmResourceOperationsData;
|
|
51
75
|
export declare function resolveResourceOperations(program: Program, resourceType: Model): ArmResourceOperations;
|
|
52
76
|
export declare const getArmOperationList: (program: Program, type: Model) => Set<ArmOperationIdentifier> | undefined, setArmOperationList: (program: Program, type: Model, value: Set<ArmOperationIdentifier>) => void;
|
|
53
77
|
export declare function getArmResourceOperationList(program: Program, resourceType: Model): Set<ArmOperationIdentifier>;
|
|
54
78
|
export declare function addArmResourceOperation(program: Program, resourceType: Model, operationData: ArmOperationIdentifier): void;
|
|
55
79
|
export declare const getArmResourceOperationData: (program: Program, type: Operation) => ArmResourceOperationData | undefined, setArmResourceOperationData: (program: Program, type: Operation, value: ArmResourceOperationData) => void;
|
|
56
80
|
export declare function setArmOperationIdentifier(program: Program, target: Operation, resourceType: Model, data: ArmResourceOperationData): void;
|
|
81
|
+
export declare const $armResourceCheckExistence: ArmResourceCheckExistenceDecorator;
|
|
57
82
|
export declare const $armResourceRead: ArmResourceReadDecorator;
|
|
58
83
|
export declare const $armResourceCreateOrUpdate: ArmResourceCreateOrUpdateDecorator;
|
|
59
84
|
export declare const $armResourceUpdate: ArmResourceUpdateDecorator;
|
|
@@ -74,5 +99,7 @@ export declare function getRouteOptions(program: Program, target: Operation): Ar
|
|
|
74
99
|
* @returns
|
|
75
100
|
*/
|
|
76
101
|
export declare const $renamePathParameter: RenamePathParameterDecorator;
|
|
102
|
+
export declare function getDefaultLegacyExtensionResourceName(path: string, resourceName: string, operationKind: ArmOperationKind): string;
|
|
103
|
+
export declare function getResourceNameForOperation(program: Program, operation: ArmResourceOperationData, operationPath: string): string | undefined;
|
|
77
104
|
export {};
|
|
78
105
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAGhB,KAAK,EACL,SAAS,EACT,OAAO,EACR,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EAA4B,aAAa,EAAe,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src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