@azure-tools/typespec-azure-resource-manager 0.38.0 → 0.39.0-dev.1
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 +22 -22
- package/lib/arm.foundations.tsp +49 -5
- package/lib/common-types.tsp +4 -4
- package/lib/decorators.tsp +20 -20
- package/lib/interfaces.tsp +3 -3
- package/lib/models.tsp +10 -10
- package/lib/operations.tsp +246 -102
- package/lib/private.decorators.tsp +5 -5
- package/lib/responses.tsp +12 -12
- package/package.json +20 -19
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ Available ruleSets:
|
|
|
82
82
|
#### `@armCommonTypesVersion`
|
|
83
83
|
|
|
84
84
|
This decorator is used either on a namespace or a version enum value to indicate
|
|
85
|
-
the version of the
|
|
85
|
+
the version of the Azure Resource Manager common-types to use for refs in emitted Swagger files.
|
|
86
86
|
|
|
87
87
|
```typespec
|
|
88
88
|
@Azure.ResourceManager.armCommonTypesVersion(version: valueof string | EnumMember)
|
|
@@ -100,7 +100,7 @@ the version of the ARM common-types to use for refs in emitted Swagger files.
|
|
|
100
100
|
|
|
101
101
|
#### `@armLibraryNamespace`
|
|
102
102
|
|
|
103
|
-
`@armLibraryNamespace` designates a namespace as containign
|
|
103
|
+
`@armLibraryNamespace` designates a namespace as containign Azure Resource Manager Provider information.
|
|
104
104
|
|
|
105
105
|
```typespec
|
|
106
106
|
@Azure.ResourceManager.armLibraryNamespace
|
|
@@ -123,7 +123,7 @@ namespace Microsoft.Contoso;
|
|
|
123
123
|
|
|
124
124
|
#### `@armProviderNamespace`
|
|
125
125
|
|
|
126
|
-
`@armProviderNamespace` sets the
|
|
126
|
+
`@armProviderNamespace` sets the Azure Resource Manager provider name. It will default to use the
|
|
127
127
|
Namespace element value unless an override value is specified.
|
|
128
128
|
|
|
129
129
|
```typespec
|
|
@@ -155,7 +155,7 @@ namespace Microsoft.ContosoService;
|
|
|
155
155
|
#### `@armProviderNameValue`
|
|
156
156
|
|
|
157
157
|
`@armResourceType` sets the value fo the decorated string
|
|
158
|
-
property to the type of the
|
|
158
|
+
property to the type of the Azure Resource Manager resource.
|
|
159
159
|
|
|
160
160
|
```typespec
|
|
161
161
|
@Azure.ResourceManager.armProviderNameValue
|
|
@@ -328,13 +328,13 @@ clients.
|
|
|
328
328
|
|
|
329
329
|
#### `@extensionResource`
|
|
330
330
|
|
|
331
|
-
`@extensionResource` marks an
|
|
331
|
+
`@extensionResource` marks an Azure Resource Manager resource model as an Extension resource.
|
|
332
332
|
Extension resource extends other resource types. URL path is appended
|
|
333
333
|
to another segment {scope} which refers to another Resource URL.
|
|
334
334
|
|
|
335
335
|
`{resourceUri}/providers/Microsoft.Contoso/accessPermissions`
|
|
336
336
|
|
|
337
|
-
See more details on [different
|
|
337
|
+
See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
338
338
|
|
|
339
339
|
```typespec
|
|
340
340
|
@Azure.ResourceManager.extensionResource
|
|
@@ -350,12 +350,12 @@ None
|
|
|
350
350
|
|
|
351
351
|
#### `@locationResource`
|
|
352
352
|
|
|
353
|
-
`@locationResource` marks an
|
|
353
|
+
`@locationResource` marks an Azure Resource Manager resource model as a location based resource.
|
|
354
354
|
|
|
355
355
|
Location based resources have REST API paths like
|
|
356
356
|
`/subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.Contoso/employees`
|
|
357
357
|
|
|
358
|
-
See more details on [different
|
|
358
|
+
See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
359
359
|
|
|
360
360
|
```typespec
|
|
361
361
|
@Azure.ResourceManager.locationResource
|
|
@@ -371,13 +371,13 @@ None
|
|
|
371
371
|
|
|
372
372
|
#### `@resourceGroupResource`
|
|
373
373
|
|
|
374
|
-
`@resourceGroupResource` marks an
|
|
375
|
-
This is the default option for
|
|
374
|
+
`@resourceGroupResource` marks an Azure Resource Manager resource model as a resource group level resource.
|
|
375
|
+
This is the default option for Azure Resource Manager resources. It is provided for symmetry and clarity, and
|
|
376
376
|
you typically do not need to specify it.
|
|
377
377
|
|
|
378
378
|
`/subscription/{id}/resourcegroups/{rg}/providers/Microsoft.Contoso/employees`
|
|
379
379
|
|
|
380
|
-
See more details on [different
|
|
380
|
+
See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
381
381
|
|
|
382
382
|
```typespec
|
|
383
383
|
@Azure.ResourceManager.resourceGroupResource
|
|
@@ -393,12 +393,12 @@ None
|
|
|
393
393
|
|
|
394
394
|
#### `@singleton`
|
|
395
395
|
|
|
396
|
-
`@singleton` marks an
|
|
396
|
+
`@singleton` marks an Azure Resource Manager resource model as a singleton resource.
|
|
397
397
|
|
|
398
398
|
Singleton resources only have a single instance with a fixed key name.
|
|
399
399
|
`.../providers/Microsoft.Contoso/monthlyReports/default`
|
|
400
400
|
|
|
401
|
-
See more details on [different
|
|
401
|
+
See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
402
402
|
|
|
403
403
|
```typespec
|
|
404
404
|
@Azure.ResourceManager.singleton(keyValue?: valueof string | default)
|
|
@@ -416,12 +416,12 @@ See more details on [different ARM resource type here.](https://azure.github.io/
|
|
|
416
416
|
|
|
417
417
|
#### `@subscriptionResource`
|
|
418
418
|
|
|
419
|
-
`@subscriptionResource` marks an
|
|
419
|
+
`@subscriptionResource` marks an Azure Resource Manager resource model as a subscription resource.
|
|
420
420
|
|
|
421
421
|
Subscription resources have REST API paths like:
|
|
422
422
|
`/subscription/{id}/providers/Microsoft.Contoso/employees`
|
|
423
423
|
|
|
424
|
-
See more details on [different
|
|
424
|
+
See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
425
425
|
|
|
426
426
|
```typespec
|
|
427
427
|
@Azure.ResourceManager.subscriptionResource
|
|
@@ -437,12 +437,12 @@ None
|
|
|
437
437
|
|
|
438
438
|
#### `@tenantResource`
|
|
439
439
|
|
|
440
|
-
`@tenantResource` marks an
|
|
440
|
+
`@tenantResource` marks an Azure Resource Manager resource model as a Tenant resource/Root resource/Top-Level resource.
|
|
441
441
|
|
|
442
442
|
Tenant resources have REST API paths like:
|
|
443
443
|
`/provider/Microsoft.Contoso/FooResources`
|
|
444
444
|
|
|
445
|
-
See more details on [different
|
|
445
|
+
See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
446
446
|
|
|
447
447
|
```typespec
|
|
448
448
|
@Azure.ResourceManager.tenantResource
|
|
@@ -458,8 +458,8 @@ None
|
|
|
458
458
|
|
|
459
459
|
#### `@useLibraryNamespace`
|
|
460
460
|
|
|
461
|
-
Declare the
|
|
462
|
-
This allows sharing
|
|
461
|
+
Declare the Azure Resource Manager library namespaces used in this provider.
|
|
462
|
+
This allows sharing Azure Resource Manager resource types across specifications
|
|
463
463
|
|
|
464
464
|
```typespec
|
|
465
465
|
@Azure.ResourceManager.useLibraryNamespace(...namespaces: Namespace[])
|
|
@@ -471,6 +471,6 @@ This allows sharing ARM resource types across specifications
|
|
|
471
471
|
|
|
472
472
|
##### Parameters
|
|
473
473
|
|
|
474
|
-
| Name | Type | Description
|
|
475
|
-
| ---------- | ------------------- |
|
|
476
|
-
| namespaces | `model Namespace[]` | The namespaces of
|
|
474
|
+
| Name | Type | Description |
|
|
475
|
+
| ---------- | ------------------- | ------------------------------------------------------------------------ |
|
|
476
|
+
| namespaces | `model Namespace[]` | The namespaces of Azure Resource Manager libraries used in this provider |
|
package/lib/arm.foundations.tsp
CHANGED
|
@@ -17,9 +17,9 @@ A list of REST API operations supported by an Azure Resource Provider. It contai
|
|
|
17
17
|
model OperationListResult is Azure.Core.Page<Operation>;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Base model that defines common properties for all
|
|
20
|
+
* Base model that defines common properties for all Azure Resource Manager resources.
|
|
21
21
|
*/
|
|
22
|
-
@doc("Common properties for all
|
|
22
|
+
@doc("Common properties for all Azure Resource Manager resources.")
|
|
23
23
|
model ArmResource extends ArmResourceBase {
|
|
24
24
|
@doc("Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}")
|
|
25
25
|
@visibility("read")
|
|
@@ -295,11 +295,11 @@ model ErrorAdditionalInfo {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
* Standard type definition for
|
|
298
|
+
* Standard type definition for Azure Resource Manager Tags property.
|
|
299
299
|
*
|
|
300
300
|
* It is included in the TrackedResource template definition.
|
|
301
301
|
*/
|
|
302
|
-
@doc("The
|
|
302
|
+
@doc("The Azure Resource Manager Resource tags.")
|
|
303
303
|
model ArmTagsProperty {
|
|
304
304
|
@doc("Resource tags.")
|
|
305
305
|
tags?: Record<string>;
|
|
@@ -636,7 +636,7 @@ model Operation {
|
|
|
636
636
|
name?: string;
|
|
637
637
|
|
|
638
638
|
@doc("""
|
|
639
|
-
Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
|
|
639
|
+
Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations.
|
|
640
640
|
""")
|
|
641
641
|
@visibility("read")
|
|
642
642
|
isDataAction?: boolean;
|
|
@@ -751,3 +751,47 @@ op checkNameAvailability<
|
|
|
751
751
|
@body
|
|
752
752
|
body: Request,
|
|
753
753
|
): Response | ErrorResponse;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* @dev The base template for Azure Resource Manager Operations.
|
|
757
|
+
* @param Parameters The parameter object for the operation.
|
|
758
|
+
* @param Response The response or union of responses for success.
|
|
759
|
+
* @param ErrorResponse The error response.
|
|
760
|
+
*/
|
|
761
|
+
op ArmReadOperation<Parameters extends {}, Response extends {}, ErrorResponse extends {}>(
|
|
762
|
+
...Parameters,
|
|
763
|
+
): Response | ErrorResponse;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @dev The base temlate for Azure Resource Manager PUT Operations.
|
|
767
|
+
* @param HttpParameters The parameter object for the operation.
|
|
768
|
+
* @param BodyParameter The body parameter
|
|
769
|
+
* @param Response The response or union of responses for success.
|
|
770
|
+
* @param ErrorResponse The error response.
|
|
771
|
+
*/
|
|
772
|
+
op ArmCreateOperation<
|
|
773
|
+
HttpParameters extends {},
|
|
774
|
+
BodyParameter extends {},
|
|
775
|
+
Response extends {},
|
|
776
|
+
ErrorResponse extends {}
|
|
777
|
+
>(
|
|
778
|
+
...HttpParameters,
|
|
779
|
+
@doc("Resource create parameters.") @body resource: BodyParameter,
|
|
780
|
+
): Response | ErrorResponse;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* @dev The base temlate for Azure Resource Manager PATCH Operations.
|
|
784
|
+
* @param HttpParameters The parameter object for the operation.
|
|
785
|
+
* @param BodyParameter The body parameter
|
|
786
|
+
* @param Response The response or union of responses for success.
|
|
787
|
+
* @param ErrorResponse The error response.
|
|
788
|
+
*/
|
|
789
|
+
op ArmUpdateOperation<
|
|
790
|
+
HttpParameters extends {},
|
|
791
|
+
BodyParameter extends {},
|
|
792
|
+
Response extends {},
|
|
793
|
+
ErrorResponse extends {}
|
|
794
|
+
>(
|
|
795
|
+
...HttpParameters,
|
|
796
|
+
@doc("The resource properties to be updated.") @body properties: BodyParameter,
|
|
797
|
+
): Response | ErrorResponse;
|
package/lib/common-types.tsp
CHANGED
|
@@ -5,14 +5,14 @@ using TypeSpec.Versioning;
|
|
|
5
5
|
namespace Azure.ResourceManager.CommonTypes;
|
|
6
6
|
|
|
7
7
|
@Private.armCommonTypesVersions
|
|
8
|
-
@doc("The
|
|
8
|
+
@doc("The Azure Resource Manager common-types versions.")
|
|
9
9
|
enum Versions {
|
|
10
|
-
@doc("The
|
|
10
|
+
@doc("The Azure Resource Manager v3 common types.")
|
|
11
11
|
v3,
|
|
12
12
|
|
|
13
|
-
@doc("The
|
|
13
|
+
@doc("The Azure Resource Manager v4 common types.")
|
|
14
14
|
v4,
|
|
15
15
|
|
|
16
|
-
@doc("The
|
|
16
|
+
@doc("The Azure Resource Manager v5 common types.")
|
|
17
17
|
v5,
|
|
18
18
|
}
|
package/lib/decorators.tsp
CHANGED
|
@@ -3,7 +3,7 @@ using TypeSpec.Reflection;
|
|
|
3
3
|
namespace Azure.ResourceManager;
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* `@armProviderNamespace` sets the
|
|
6
|
+
* `@armProviderNamespace` sets the Azure Resource Manager provider name. It will default to use the
|
|
7
7
|
* Namespace element value unless an override value is specified.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
@@ -25,14 +25,14 @@ namespace Azure.ResourceManager;
|
|
|
25
25
|
extern dec armProviderNamespace(target: Namespace, providerNamespace?: valueof string);
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Declare the
|
|
29
|
-
* This allows sharing
|
|
30
|
-
* @param namespaces The namespaces of
|
|
28
|
+
* Declare the Azure Resource Manager library namespaces used in this provider.
|
|
29
|
+
* This allows sharing Azure Resource Manager resource types across specifications
|
|
30
|
+
* @param namespaces The namespaces of Azure Resource Manager libraries used in this provider
|
|
31
31
|
*/
|
|
32
32
|
extern dec useLibraryNamespace(target: Namespace, ...namespaces: Namespace[]);
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* `@armLibraryNamespace` designates a namespace as containign
|
|
35
|
+
* `@armLibraryNamespace` designates a namespace as containign Azure Resource Manager Provider information.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
*
|
|
@@ -45,72 +45,72 @@ extern dec useLibraryNamespace(target: Namespace, ...namespaces: Namespace[]);
|
|
|
45
45
|
extern dec armLibraryNamespace(target: Namespace);
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* `@singleton` marks an
|
|
48
|
+
* `@singleton` marks an Azure Resource Manager resource model as a singleton resource.
|
|
49
49
|
*
|
|
50
50
|
* Singleton resources only have a single instance with a fixed key name.
|
|
51
51
|
* `.../providers/Microsoft.Contoso/monthlyReports/default`
|
|
52
52
|
*
|
|
53
|
-
* See more details on [different
|
|
53
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
54
54
|
*
|
|
55
55
|
* @param keyValue The name of the singleton resource. Default name is "default".
|
|
56
56
|
*/
|
|
57
57
|
extern dec singleton(target: Model, keyValue?: valueof string | "default");
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* `@tenantResource` marks an
|
|
60
|
+
* `@tenantResource` marks an Azure Resource Manager resource model as a Tenant resource/Root resource/Top-Level resource.
|
|
61
61
|
*
|
|
62
62
|
* Tenant resources have REST API paths like:
|
|
63
63
|
* `/provider/Microsoft.Contoso/FooResources`
|
|
64
64
|
*
|
|
65
|
-
* See more details on [different
|
|
65
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
66
66
|
*/
|
|
67
67
|
extern dec tenantResource(target: Model);
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* `@subscriptionResource` marks an
|
|
70
|
+
* `@subscriptionResource` marks an Azure Resource Manager resource model as a subscription resource.
|
|
71
71
|
*
|
|
72
72
|
* Subscription resources have REST API paths like:
|
|
73
73
|
* `/subscription/{id}/providers/Microsoft.Contoso/employees`
|
|
74
74
|
*
|
|
75
|
-
* See more details on [different
|
|
75
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
76
76
|
*/
|
|
77
77
|
extern dec subscriptionResource(target: Model);
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* `@locationResource` marks an
|
|
80
|
+
* `@locationResource` marks an Azure Resource Manager resource model as a location based resource.
|
|
81
81
|
*
|
|
82
82
|
* Location based resources have REST API paths like
|
|
83
83
|
* `/subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.Contoso/employees`
|
|
84
84
|
*
|
|
85
|
-
* See more details on [different
|
|
85
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
86
86
|
*/
|
|
87
87
|
extern dec locationResource(target: Model);
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* `@resourceGroupResource` marks an
|
|
91
|
-
* This is the default option for
|
|
90
|
+
* `@resourceGroupResource` marks an Azure Resource Manager resource model as a resource group level resource.
|
|
91
|
+
* This is the default option for Azure Resource Manager resources. It is provided for symmetry and clarity, and
|
|
92
92
|
* you typically do not need to specify it.
|
|
93
93
|
*
|
|
94
94
|
* `/subscription/{id}/resourcegroups/{rg}/providers/Microsoft.Contoso/employees`
|
|
95
95
|
*
|
|
96
|
-
* See more details on [different
|
|
96
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
97
97
|
*/
|
|
98
98
|
extern dec resourceGroupResource(target: Model);
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
* `@extensionResource` marks an
|
|
101
|
+
* `@extensionResource` marks an Azure Resource Manager resource model as an Extension resource.
|
|
102
102
|
* Extension resource extends other resource types. URL path is appended
|
|
103
103
|
* to another segment {scope} which refers to another Resource URL.
|
|
104
104
|
*
|
|
105
105
|
* `{resourceUri}/providers/Microsoft.Contoso/accessPermissions`
|
|
106
106
|
*
|
|
107
|
-
* See more details on [different
|
|
107
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
108
108
|
*/
|
|
109
109
|
extern dec extensionResource(target: Model);
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* `@armResourceType` sets the value fo the decorated string
|
|
113
|
-
* property to the type of the
|
|
113
|
+
* property to the type of the Azure Resource Manager resource.
|
|
114
114
|
* @param resource The resource to get the type of
|
|
115
115
|
*/
|
|
116
116
|
extern dec armProviderNameValue(target: Operation | Model);
|
|
@@ -178,7 +178,7 @@ extern dec armResourceOperations(target: Interface, _?: unknown);
|
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* This decorator is used either on a namespace or a version enum value to indicate
|
|
181
|
-
* the version of the
|
|
181
|
+
* the version of the Azure Resource Manager common-types to use for refs in emitted Swagger files.
|
|
182
182
|
*
|
|
183
183
|
* @param version The Azure.ResourceManager.CommonTypes.Versions for the desired common-types version or an equivalent string value.
|
|
184
184
|
*/
|
package/lib/interfaces.tsp
CHANGED
|
@@ -8,9 +8,9 @@ using Azure.ResourceManager.Private;
|
|
|
8
8
|
namespace Azure.ResourceManager;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* This is the interface that implements the standard
|
|
11
|
+
* This is the interface that implements the standard Azure Resource Manager operation that returns
|
|
12
12
|
* all supported RP operations. You should have exactly one declaration for each
|
|
13
|
-
*
|
|
13
|
+
* Azure Resource Manager service. It implements
|
|
14
14
|
* GET "/providers/Microsoft.ContosoProviderHub/operations"
|
|
15
15
|
*/
|
|
16
16
|
interface Operations {
|
|
@@ -201,7 +201,7 @@ interface ResourceCreateSync<
|
|
|
201
201
|
* @template Resource The ArmResource to create or update.
|
|
202
202
|
* @template BaseParameters The http parameters that are part of the request
|
|
203
203
|
*/
|
|
204
|
-
createOrUpdate is
|
|
204
|
+
createOrUpdate is ArmResourceCreateOrReplaceSync<Resource, BaseParameters>;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
package/lib/models.tsp
CHANGED
|
@@ -10,7 +10,7 @@ namespace Azure.ResourceManager;
|
|
|
10
10
|
/**
|
|
11
11
|
* Concrete tracked resource types can be created by aliasing this type using a specific property type.
|
|
12
12
|
*
|
|
13
|
-
* See more details on [different
|
|
13
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
14
14
|
* @template Properties A model containing the provider-specific properties for this resource
|
|
15
15
|
*/
|
|
16
16
|
@doc("Concrete tracked resource types can be created by aliasing this type using a specific property type.")
|
|
@@ -26,7 +26,7 @@ model TrackedResource<Properties extends {}> extends TrackedResourceBase {
|
|
|
26
26
|
/**
|
|
27
27
|
* Concrete proxy resource types can be created by aliasing this type using a specific property type.
|
|
28
28
|
*
|
|
29
|
-
* See more details on [different
|
|
29
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
30
30
|
* @template Properties A model containing the provider-specific properties for this resource
|
|
31
31
|
*/
|
|
32
32
|
@doc("Concrete proxy resource types can be created by aliasing this type using a specific property type.")
|
|
@@ -42,7 +42,7 @@ model ProxyResource<Properties extends {}> extends ProxyResourceBase {
|
|
|
42
42
|
/**
|
|
43
43
|
* Concrete extension resource types can be created by aliasing this type using a specific property type.
|
|
44
44
|
*
|
|
45
|
-
* See more details on [different
|
|
45
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
46
46
|
* @template Properties A model containing the provider-specific properties for this resource
|
|
47
47
|
*/
|
|
48
48
|
@extensionResource
|
|
@@ -86,10 +86,10 @@ model ProviderNamespace<Resource extends {}> {
|
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
|
|
89
|
-
//#region Common
|
|
89
|
+
//#region Common Azure Resource Manager type definitions
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* A type definition that refers the id to an
|
|
92
|
+
* A type definition that refers the id to an Azure Resource Manager resource.
|
|
93
93
|
*
|
|
94
94
|
* Sample usage:
|
|
95
95
|
* otherArmId: ResourceIdentifier;
|
|
@@ -97,7 +97,7 @@ model ProviderNamespace<Resource extends {}> {
|
|
|
97
97
|
* vmIds: ResourceIdentifier<[{type:"\\Microsoft.Compute\\vm", scopes["*"]}]>
|
|
98
98
|
* @template AllowedResourceTypes An array of allowed resource types for the resource reference
|
|
99
99
|
*/
|
|
100
|
-
@doc("A type definition that refers the id to an
|
|
100
|
+
@doc("A type definition that refers the id to an Azure Resource Manager resource.")
|
|
101
101
|
@format("arm-id")
|
|
102
102
|
@OpenAPI.extension(
|
|
103
103
|
"x-ms-arm-id-details",
|
|
@@ -109,10 +109,10 @@ scalar ResourceIdentifier<AllowedResourceTypes extends ResourceIdentifierAllowed
|
|
|
109
109
|
extends string;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Used in ResourceIdentifier definition to represent a particular type of
|
|
112
|
+
* Used in ResourceIdentifier definition to represent a particular type of Azure Resource Manager resource, enabling constraints based on resource type.
|
|
113
113
|
* See [link](https://github.com/Azure/autorest/tree/main/docs/extensions#schema)
|
|
114
114
|
*/
|
|
115
|
-
@doc("Optional definition represents a particular type of
|
|
115
|
+
@doc("Optional definition represents a particular type of Azure Resource Manager resource which can be referred to by a ResourceIdentifier.")
|
|
116
116
|
model ResourceIdentifierAllowedResource {
|
|
117
117
|
@doc("The type of resource that is being referred to. For example Microsoft.Network/virtualNetworks or Microsoft.Network/virtualNetworks/subnets. See Example Types for more examples.")
|
|
118
118
|
type: string;
|
|
@@ -173,7 +173,7 @@ model DefaultProvisioningStateProperty {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* Standard
|
|
176
|
+
* Standard Azure Resource Manager definition of ManagedServiceIdentity
|
|
177
177
|
*/
|
|
178
178
|
@doc("The managed service identities envelope.")
|
|
179
179
|
model ManagedServiceIdentity {
|
|
@@ -182,7 +182,7 @@ model ManagedServiceIdentity {
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
* Standard
|
|
185
|
+
* Standard Azure Resource Manager definition of ManagedServiceIdentity for services
|
|
186
186
|
* that only support system-defined identities
|
|
187
187
|
*/
|
|
188
188
|
@doc("Managed identity for services that are constrained to system-assigned managed identities.")
|