@azure-tools/typespec-azure-resource-manager 0.62.0-dev.3 → 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.
Files changed (37) hide show
  1. package/README.md +51 -24
  2. package/dist/generated-defs/Azure.ResourceManager.Private.d.ts +42 -0
  3. package/dist/generated-defs/Azure.ResourceManager.Private.d.ts.map +1 -1
  4. package/dist/generated-defs/Azure.ResourceManager.d.ts +26 -12
  5. package/dist/generated-defs/Azure.ResourceManager.d.ts.map +1 -1
  6. package/dist/src/linter.d.ts.map +1 -1
  7. package/dist/src/linter.js +2 -0
  8. package/dist/src/linter.js.map +1 -1
  9. package/dist/src/operations.d.ts +30 -3
  10. package/dist/src/operations.d.ts.map +1 -1
  11. package/dist/src/operations.js +97 -28
  12. package/dist/src/operations.js.map +1 -1
  13. package/dist/src/private.decorators.d.ts.map +1 -1
  14. package/dist/src/private.decorators.js +177 -3
  15. package/dist/src/private.decorators.js.map +1 -1
  16. package/dist/src/resource.d.ts +30 -16
  17. package/dist/src/resource.d.ts.map +1 -1
  18. package/dist/src/resource.js +75 -89
  19. package/dist/src/resource.js.map +1 -1
  20. package/dist/src/rules/secret-prop.d.ts +4 -0
  21. package/dist/src/rules/secret-prop.d.ts.map +1 -0
  22. package/dist/src/rules/secret-prop.js +57 -0
  23. package/dist/src/rules/secret-prop.js.map +1 -0
  24. package/dist/src/tsp-index.d.ts.map +1 -1
  25. package/dist/src/tsp-index.js +2 -1
  26. package/dist/src/tsp-index.js.map +1 -1
  27. package/lib/decorators.tsp +45 -12
  28. package/lib/extension/operations.tsp +116 -31
  29. package/lib/legacy-types/extension-operations.tsp +31 -10
  30. package/lib/legacy-types/extension.tsp +51 -24
  31. package/lib/legacy-types/operations.tsp +61 -26
  32. package/lib/legacy-types/resource.tsp +25 -3
  33. package/lib/operations.tsp +1 -0
  34. package/lib/private-endpoints.tsp +69 -113
  35. package/lib/private-links.tsp +17 -7
  36. package/lib/private.decorators.tsp +88 -0
  37. package/package.json +1 -1
package/README.md CHANGED
@@ -60,6 +60,7 @@ Available ruleSets:
60
60
  | `@azure-tools/typespec-azure-resource-manager/resource-name` | Check the resource name. |
61
61
  | `@azure-tools/typespec-azure-resource-manager/retry-after` | Check if retry-after header appears in response body. |
62
62
  | [`@azure-tools/typespec-azure-resource-manager/unsupported-type`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/unsupported-type) | Check for unsupported ARM types. |
63
+ | [`@azure-tools/typespec-azure-resource-manager/secret-prop`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/secret-prop) | RPC-v1-13: Check that property with names indicating sensitive information(e.g. contains auth, password, token, secret, etc.) are marked with @secret decorator. |
63
64
  | [`@azure-tools/typespec-azure-resource-manager/no-empty-model`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-empty-model) | ARM Properties with type:object that don't reference a model definition are not allowed. ARM doesn't allow generic type definitions as this leads to bad customer experience. |
64
65
 
65
66
  ## Decorators
@@ -71,6 +72,7 @@ Available ruleSets:
71
72
  - [`@armProviderNamespace`](#@armprovidernamespace)
72
73
  - [`@armProviderNameValue`](#@armprovidernamevalue)
73
74
  - [`@armResourceAction`](#@armresourceaction)
75
+ - [`@armResourceCheckExistence`](#@armresourcecheckexistence)
74
76
  - [`@armResourceCollectionAction`](#@armresourcecollectionaction)
75
77
  - [`@armResourceCreateOrUpdate`](#@armresourcecreateorupdate)
76
78
  - [`@armResourceDelete`](#@armresourcedelete)
@@ -182,7 +184,7 @@ None
182
184
  #### `@armResourceAction`
183
185
 
184
186
  ```typespec
185
- @Azure.ResourceManager.armResourceAction(resourceType: Model)
187
+ @Azure.ResourceManager.armResourceAction(resourceModel: Model, resourceName?: valueof string)
186
188
  ```
187
189
 
188
190
  ##### Target
@@ -191,9 +193,29 @@ None
191
193
 
192
194
  ##### Parameters
193
195
 
194
- | Name | Type | Description |
195
- | ------------ | ------- | -------------- |
196
- | resourceType | `Model` | Resource model |
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. |
197
219
 
198
220
  #### `@armResourceCollectionAction`
199
221
 
@@ -214,7 +236,7 @@ None
214
236
  #### `@armResourceCreateOrUpdate`
215
237
 
216
238
  ```typespec
217
- @Azure.ResourceManager.armResourceCreateOrUpdate(resourceType: Model)
239
+ @Azure.ResourceManager.armResourceCreateOrUpdate(resourceModel: Model, resourceName?: valueof string)
218
240
  ```
219
241
 
220
242
  ##### Target
@@ -223,14 +245,15 @@ None
223
245
 
224
246
  ##### Parameters
225
247
 
226
- | Name | Type | Description |
227
- | ------------ | ------- | -------------- |
228
- | resourceType | `Model` | Resource model |
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. |
229
252
 
230
253
  #### `@armResourceDelete`
231
254
 
232
255
  ```typespec
233
- @Azure.ResourceManager.armResourceDelete(resourceType: Model)
256
+ @Azure.ResourceManager.armResourceDelete(resourceModel: Model, resourceName?: valueof string)
234
257
  ```
235
258
 
236
259
  ##### Target
@@ -239,14 +262,15 @@ None
239
262
 
240
263
  ##### Parameters
241
264
 
242
- | Name | Type | Description |
243
- | ------------ | ------- | -------------- |
244
- | resourceType | `Model` | Resource model |
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. |
245
269
 
246
270
  #### `@armResourceList`
247
271
 
248
272
  ```typespec
249
- @Azure.ResourceManager.armResourceList(resourceType: Model)
273
+ @Azure.ResourceManager.armResourceList(resourceModel: Model, resourceName?: valueof string)
250
274
  ```
251
275
 
252
276
  ##### Target
@@ -255,9 +279,10 @@ None
255
279
 
256
280
  ##### Parameters
257
281
 
258
- | Name | Type | Description |
259
- | ------------ | ------- | -------------- |
260
- | resourceType | `Model` | Resource model |
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. |
261
286
 
262
287
  #### `@armResourceOperations`
263
288
 
@@ -296,7 +321,7 @@ individually tagged
296
321
  #### `@armResourceRead`
297
322
 
298
323
  ```typespec
299
- @Azure.ResourceManager.armResourceRead(resourceType: Model)
324
+ @Azure.ResourceManager.armResourceRead(resourceModel: Model, resourceName?: valueof string)
300
325
  ```
301
326
 
302
327
  ##### Target
@@ -305,14 +330,15 @@ individually tagged
305
330
 
306
331
  ##### Parameters
307
332
 
308
- | Name | Type | Description |
309
- | ------------ | ------- | -------------- |
310
- | resourceType | `Model` | Resource model |
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. |
311
337
 
312
338
  #### `@armResourceUpdate`
313
339
 
314
340
  ```typespec
315
- @Azure.ResourceManager.armResourceUpdate(resourceType: Model)
341
+ @Azure.ResourceManager.armResourceUpdate(resourceModel: Model, resourceName?: valueof string)
316
342
  ```
317
343
 
318
344
  ##### Target
@@ -321,9 +347,10 @@ individually tagged
321
347
 
322
348
  ##### Parameters
323
349
 
324
- | Name | Type | Description |
325
- | ------------ | ------- | -------------- |
326
- | resourceType | `Model` | Resource model |
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. |
327
354
 
328
355
  #### `@armVirtualResource`
329
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":["../../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;;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;CACjD,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;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,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C;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 resourceType Resource model
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, resourceType: Model) => void;
118
+ export type ArmResourceActionDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
118
119
  /**
119
120
  *
120
121
  *
121
122
  *
122
- * @param resourceType Resource model
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, resourceType: Model) => void;
126
+ export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
125
127
  /**
126
128
  *
127
129
  *
128
130
  *
129
- * @param resourceType Resource model
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, resourceType: Model) => void;
134
+ export type ArmResourceReadDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
132
135
  /**
133
136
  *
134
137
  *
135
138
  *
136
- * @param resourceType Resource model
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, resourceType: Model) => void;
142
+ export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
139
143
  /**
140
144
  *
141
145
  *
142
146
  *
143
- * @param resourceType Resource model
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, resourceType: Model) => void;
150
+ export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Operation, resourceModel: Model, resourceName?: string) => void;
146
151
  /**
147
152
  *
148
153
  *
149
154
  *
150
- * @param resourceType Resource model
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, resourceType: Model) => void;
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,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,KACd,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;AAEnG;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,iBAAiB,CAAC,EAAE,MAAM,KACvB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,GAAG,UAAU,EAAE,SAAS,EAAE,KACvB,IAAI,CAAC;AAEV;;;;;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C;IACpD,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,mBAAmB,EAAE,4BAA4B,CAAC;IAClD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,cAAc,EAAE,uBAAuB,CAAC;IACxC,oBAAoB,EAAE,6BAA6B,CAAC;IACpD,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,yBAAyB,EAAE,kCAAkC,CAAC;IAC9D,eAAe,EAAE,wBAAwB,CAAC;IAC1C,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,eAAe,EAAE,wBAAwB,CAAC;IAC1C,yBAAyB,EAAE,kCAAkC,CAAC;IAC9D,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,WAAW,EAAE,oBAAoB,CAAC;CACnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAuEA,eAAO,MAAM,OAAO,+CAElB,CAAC"}
1
+ {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAyEA,eAAO,MAAM,OAAO,+CAElB,CAAC"}
@@ -31,6 +31,7 @@ import { operationsInterfaceMissingRule } from "./rules/operations-interface-mis
31
31
  import { patchEnvelopePropertiesRules } from "./rules/patch-envelope-properties.js";
32
32
  import { resourceNameRule } from "./rules/resource-name.js";
33
33
  import { retryAfterRule } from "./rules/retry-after.js";
34
+ import { secretProprule } from "./rules/secret-prop.js";
34
35
  import { unsupportedTypeRule } from "./rules/unsupported-type.js";
35
36
  const rules = [
36
37
  armNoRecordRule,
@@ -65,6 +66,7 @@ const rules = [
65
66
  resourceNameRule,
66
67
  retryAfterRule,
67
68
  unsupportedTypeRule,
69
+ secretProprule,
68
70
  noEmptyModel,
69
71
  ];
70
72
  export const $linter = defineLinter({
@@ -1 +1 @@
1
- {"version":3,"file":"linter.js","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,O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A8B;IAC9B,4BAA4B;IAC5B,mBAAmB;IACnB,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,cAAc;IACd,YAAY;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAClC,KAAK;CACN,CAAC,CAAC"}
@@ -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;AAYtF,OAAO,EACL,0BAA0B,EAC1B,oCAAoC,EACpC,kCAAkC,EAClC,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,mDAAmD,CAAC;AAY3D,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACxF,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvF,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,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