@azure-tools/typespec-azure-resource-manager 0.42.0-dev.14 → 0.42.0-dev.15
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/common-types/managed-identity.tsp +10 -5
- package/lib/models.tsp +68 -22
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ using Azure.ResourceManager.Private;
|
|
|
2
2
|
|
|
3
3
|
namespace Azure.ResourceManager.Foundations;
|
|
4
4
|
|
|
5
|
+
#deprecated "Please change ManagedIdentityProperties to ManagedServiceIdentity."
|
|
6
|
+
alias ManagedIdentityProperties = ManagedServiceIdentity;
|
|
5
7
|
/**
|
|
6
8
|
* The properties of the managed service identities assigned to this resource.
|
|
7
9
|
*/
|
|
@@ -18,8 +20,7 @@ namespace Azure.ResourceManager.Foundations;
|
|
|
18
20
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
19
21
|
"managedidentity.json"
|
|
20
22
|
)
|
|
21
|
-
|
|
22
|
-
model ManagedIdentityProperties {
|
|
23
|
+
model ManagedServiceIdentity {
|
|
23
24
|
@doc("The Active Directory tenant id of the principal.")
|
|
24
25
|
@visibility("read")
|
|
25
26
|
tenantId?: string;
|
|
@@ -32,9 +33,14 @@ model ManagedIdentityProperties {
|
|
|
32
33
|
type: ManagedServiceIdentityType;
|
|
33
34
|
|
|
34
35
|
@doc("The identities assigned to this resource by the user.")
|
|
35
|
-
userAssignedIdentities?:
|
|
36
|
+
userAssignedIdentities?: UserAssignedIdentities;
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */
|
|
40
|
+
model UserAssignedIdentities is Record<UserAssignedIdentity>;
|
|
41
|
+
|
|
42
|
+
#deprecated "Please change ManagedSystemIdentityProperties to SystemAssignedServiceIdentity."
|
|
43
|
+
alias ManagedSystemIdentityProperties = SystemAssignedServiceIdentity;
|
|
38
44
|
/**
|
|
39
45
|
* The properties of the service-assigned identity associated with this resource.
|
|
40
46
|
*/
|
|
@@ -51,8 +57,7 @@ model ManagedIdentityProperties {
|
|
|
51
57
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
52
58
|
"managedidentity.json"
|
|
53
59
|
)
|
|
54
|
-
|
|
55
|
-
model ManagedSystemIdentityProperties {
|
|
60
|
+
model SystemAssignedServiceIdentity {
|
|
56
61
|
@doc("The Active Directory tenant id of the principal.")
|
|
57
62
|
@visibility("read")
|
|
58
63
|
tenantId?: string;
|
package/lib/models.tsp
CHANGED
|
@@ -171,7 +171,9 @@ model DefaultProvisioningStateProperty {
|
|
|
171
171
|
provisioningState?: ResourceProvisioningState;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Model representing the standard `extendedLocation` envelope property for a resource.
|
|
176
|
+
* Spread this model into a Resource Model, if the resource supports extended locations
|
|
175
177
|
*
|
|
176
178
|
* @example
|
|
177
179
|
* ```typespec
|
|
@@ -185,56 +187,88 @@ model ExtendedLocationProperty {
|
|
|
185
187
|
extendedLocation: Foundations.ExtendedLocation;
|
|
186
188
|
}
|
|
187
189
|
|
|
190
|
+
#deprecated "Please change ManagedServiceIdentity to ManagedServiceIdentityProperty."
|
|
191
|
+
alias ManagedServiceIdentity = ManagedServiceIdentityProperty;
|
|
192
|
+
|
|
188
193
|
/**
|
|
189
|
-
*
|
|
194
|
+
* Model representing the standard `ManagedServiceIdentity` envelope property for a resource.
|
|
195
|
+
* Spread this model into a resource model if the resource supports both system-assigned and user-assigned managed identities.
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
*
|
|
199
|
+
* ```typespec
|
|
200
|
+
* model Foo is TrackedResource<FooProperties> {
|
|
201
|
+
* ...ResourceNameParameter<Foo>;
|
|
202
|
+
* ...ManagedServiceIdentityProperty;
|
|
203
|
+
* }
|
|
204
|
+
* ```
|
|
190
205
|
*/
|
|
191
206
|
@doc("The managed service identities envelope.")
|
|
192
|
-
model
|
|
207
|
+
model ManagedServiceIdentityProperty {
|
|
193
208
|
@doc("The managed service identities assigned to this resource.")
|
|
194
|
-
identity?:
|
|
209
|
+
identity?: Foundations.ManagedServiceIdentity;
|
|
195
210
|
}
|
|
196
211
|
|
|
212
|
+
#deprecated "Please change ManagedSystemAssignedIdentity to ManagedSystemAssignedIdentityProperty."
|
|
213
|
+
alias ManagedSystemAssignedIdentity = ManagedSystemAssignedIdentityProperty;
|
|
197
214
|
/**
|
|
198
|
-
*
|
|
199
|
-
*
|
|
215
|
+
* Model representing the standard `SystemAssignedServiceIdentity` envelope property for a resource.
|
|
216
|
+
* Spread this model into a resource model if the resource supports system-assigned managed identities
|
|
217
|
+
* but does not support user-assigned managed identities.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
*
|
|
221
|
+
* ```typespec
|
|
222
|
+
* model Foo is TrackedResource<FooProperties> {
|
|
223
|
+
* ...ResourceNameParameter<Foo>;
|
|
224
|
+
* ...ManagedSystemAssignedIdentityProperty;
|
|
225
|
+
* }
|
|
226
|
+
* ```
|
|
200
227
|
*/
|
|
201
228
|
@doc("Managed identity for services that are constrained to system-assigned managed identities.")
|
|
202
|
-
model
|
|
229
|
+
model ManagedSystemAssignedIdentityProperty {
|
|
203
230
|
@doc("The managed service identities assigned to this resource.")
|
|
204
|
-
identity?:
|
|
231
|
+
identity?: Foundations.SystemAssignedServiceIdentity;
|
|
205
232
|
}
|
|
206
233
|
|
|
234
|
+
#deprecated "`EntityTag` will be deprecated. Please use `EntityTagProperty` instead."
|
|
235
|
+
alias EntityTag = EntityTagProperty;
|
|
207
236
|
/**
|
|
208
237
|
* Model used only to spread in the standard `eTag` envelope property for a resource
|
|
238
|
+
*
|
|
209
239
|
* @example
|
|
210
240
|
*
|
|
211
241
|
* ```typespec
|
|
212
242
|
* model Foo is TrackedResource<FooProperties> {
|
|
213
243
|
* // Only have standard Succeeded, Failed, Cancelled states
|
|
214
|
-
* ...
|
|
244
|
+
* ...EntityTagProperty;
|
|
215
245
|
* }
|
|
216
246
|
* ```
|
|
217
247
|
*/
|
|
218
248
|
@doc("The eTag property envelope.")
|
|
219
|
-
model
|
|
249
|
+
model EntityTagProperty {
|
|
220
250
|
@doc("If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.")
|
|
221
251
|
@visibility("read")
|
|
222
252
|
eTag?: string;
|
|
223
253
|
}
|
|
224
254
|
|
|
255
|
+
#deprecated "`ResourceKind` will be deprecated. Please use `ResourceKindProperty` instead."
|
|
256
|
+
alias ResourceKind = ResourceKindProperty;
|
|
225
257
|
/**
|
|
226
|
-
* Model
|
|
258
|
+
* Model representing the standard `kind` envelope property for a resource.
|
|
259
|
+
* Spread this model into a resource model if the resource support ARM `kind`.
|
|
260
|
+
*
|
|
227
261
|
* @example
|
|
228
262
|
*
|
|
229
263
|
* ```typespec
|
|
230
264
|
* model Foo is TrackedResource<FooProperties> {
|
|
231
265
|
* // Only have standard Succeeded, Failed, Cancelled states
|
|
232
|
-
* ...
|
|
266
|
+
* ...ResourceKindProperty;
|
|
233
267
|
* }
|
|
234
268
|
* ```
|
|
235
269
|
*/
|
|
236
270
|
@doc("The resource kind property envelope.")
|
|
237
|
-
model
|
|
271
|
+
model ResourceKindProperty {
|
|
238
272
|
@doc("Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.")
|
|
239
273
|
@pattern("^[-\\w\\._,\\(\\\\\\)]+$")
|
|
240
274
|
@visibility("read", "create")
|
|
@@ -249,53 +283,65 @@ model ResourceKind {
|
|
|
249
283
|
@friendlyName("{name}ListResult", Resource)
|
|
250
284
|
model ResourceListResult<Resource extends ArmResource> is Azure.Core.Page<Resource>;
|
|
251
285
|
|
|
286
|
+
#deprecated "`ResourcePlan` will be deprecated. Please use `ResourcePlanProperty` instead."
|
|
287
|
+
alias ResourcePlan = ResourcePlanProperty;
|
|
252
288
|
/**
|
|
253
|
-
* Model
|
|
289
|
+
* Model representing the standard `plan` envelope property for a resource.
|
|
290
|
+
* Spread this model into a resource Model if the resource supports ARM `plan`.
|
|
291
|
+
*
|
|
254
292
|
* @example
|
|
255
293
|
*
|
|
256
294
|
* ```typespec
|
|
257
295
|
* model Foo is TrackedResource<FooProperties> {
|
|
258
296
|
* // Only have standard Succeeded, Failed, Cancelled states
|
|
259
|
-
* ...
|
|
297
|
+
* ...ResourcePlanProperty;
|
|
260
298
|
* }
|
|
261
299
|
* ```
|
|
262
300
|
*/
|
|
263
301
|
@doc("The resource plan property envelope.")
|
|
264
|
-
model
|
|
302
|
+
model ResourcePlanProperty {
|
|
265
303
|
@doc("Details of the resource plan.")
|
|
266
304
|
plan?: ResourcePlanType;
|
|
267
305
|
}
|
|
268
306
|
|
|
307
|
+
#deprecated "`ResourceSku` will be deprecated. Please use `ResourceSkuProperty` instead."
|
|
308
|
+
alias ResourceSku = ResourceSkuProperty;
|
|
269
309
|
/**
|
|
270
|
-
* Model
|
|
310
|
+
* Model representing the standard `sku` envelope property for a resource.
|
|
311
|
+
* Spread this model into a resource model if the resource supports standard ARM `sku`.
|
|
312
|
+
*
|
|
271
313
|
* @example
|
|
272
314
|
*
|
|
273
315
|
* ```typespec
|
|
274
316
|
* model Foo is TrackedResource<FooProperties> {
|
|
275
317
|
* // Only have standard Succeeded, Failed, Cancelled states
|
|
276
|
-
* ...
|
|
318
|
+
* ...ResourceSkuProperty;
|
|
277
319
|
* }
|
|
278
320
|
* ```
|
|
279
321
|
*/
|
|
280
322
|
@doc("The SKU (Stock Keeping Unit) assigned to this resource.")
|
|
281
|
-
model
|
|
323
|
+
model ResourceSkuProperty {
|
|
282
324
|
@doc("The SKU (Stock Keeping Unit) assigned to this resource.")
|
|
283
325
|
sku?: ResourceSkuType;
|
|
284
326
|
}
|
|
285
327
|
|
|
328
|
+
#deprecated "`ManagedBy` will be deprecated. Please use `ManagedByProperty` instead."
|
|
329
|
+
alias ManagedBy = ManagedByProperty;
|
|
286
330
|
/**
|
|
287
|
-
* Model
|
|
331
|
+
* Model representing the standard `managedBy` envelope property for a resource.
|
|
332
|
+
* Spread this model into a resource model if the resource is managed by another entity.
|
|
333
|
+
*
|
|
288
334
|
* @example
|
|
289
335
|
*
|
|
290
336
|
* ```typespec
|
|
291
337
|
* model Foo is TrackedResource<FooProperties> {
|
|
292
338
|
* // Only have standard Succeeded, Failed, Cancelled states
|
|
293
|
-
* ...
|
|
339
|
+
* ...ManagedByProperty;
|
|
294
340
|
* }
|
|
295
341
|
* ```
|
|
296
342
|
*/
|
|
297
343
|
@doc("The managedBy property envelope.")
|
|
298
|
-
model
|
|
344
|
+
model ManagedByProperty {
|
|
299
345
|
@doc("The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.")
|
|
300
346
|
managedBy?: string;
|
|
301
347
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.42.0-dev.
|
|
3
|
+
"version": "0.42.0-dev.15",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|