@azure-tools/typespec-azure-resource-manager 0.55.0 → 0.56.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.
@@ -5,6 +5,7 @@ namespace Azure.ResourceManager.CommonTypes;
5
5
 
6
6
  /** 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. */
7
7
  #deprecated "Do not use this model. Instead, use Record<UserAssignedIdentity | null> directly. Using this model will result in a different client SDK when generated from TypeSpec compared to the Swagger."
8
+ @summary("User-Assigned Identities")
8
9
  @removed(Versions.v6)
9
10
  model UserAssignedIdentities is Record<UserAssignedIdentity | null>;
10
11
 
@@ -48,13 +49,13 @@ model SystemAssignedServiceIdentity {
48
49
  * User assigned identity properties
49
50
  */
50
51
  model UserAssignedIdentity {
51
- /** The client ID of the assigned identity. */
52
- @visibility(Lifecycle.Read)
53
- clientId?: uuid;
54
-
55
52
  /** The principal ID of the assigned identity. */
56
53
  @visibility(Lifecycle.Read)
57
54
  principalId?: uuid;
55
+
56
+ /** The client ID of the assigned identity. */
57
+ @visibility(Lifecycle.Read)
58
+ clientId?: uuid;
58
59
  }
59
60
 
60
61
  /**
@@ -6,9 +6,9 @@ using Azure.Core;
6
6
 
7
7
  namespace Azure.ResourceManager.CommonTypes;
8
8
 
9
- /** The Private Endpoint resource. */
9
+ /** The private endpoint resource. */
10
10
  model PrivateEndpoint {
11
- /** The resource identifier for private endpoint */
11
+ /** The resource identifier of the private endpoint */
12
12
  @visibility(Lifecycle.Read)
13
13
  @typeChangedFrom(CommonTypes.Versions.v4, string)
14
14
  id?: Azure.Core.armResourceIdentifier;
@@ -39,11 +39,12 @@ model PrivateLinkResourceProperties {
39
39
  @pagedResult
40
40
  model PrivateLinkResourceListResult {
41
41
  /** Array of private link resources */
42
+ @OpenAPI.extension("x-ms-identifiers", #["id"])
42
43
  value?: PrivateLinkResource[];
43
44
 
44
45
  /** URL to get the next set of operation list results (if there are any). */
45
46
  @visibility(Lifecycle.Read)
46
- nextLink?: string;
47
+ nextLink?: url;
47
48
  }
48
49
  //#region
49
50
  /** The private endpoint connection resource */
@@ -57,11 +58,12 @@ model PrivateEndpointConnection extends Resource {
57
58
  @pagedResult
58
59
  model PrivateEndpointConnectionListResult {
59
60
  /** Array of private endpoint connections. */
61
+ @OpenAPI.extension("x-ms-identifiers", #["id"])
60
62
  value?: PrivateEndpointConnection[];
61
63
 
62
64
  /** URL to get the next set of operation list results (if there are any). */
63
65
  @visibility(Lifecycle.Read)
64
- nextLink?: string;
66
+ nextLink?: url;
65
67
  }
66
68
 
67
69
  /** Properties of the private endpoint connection. */
@@ -113,7 +115,7 @@ union PrivateEndpointConnectionProvisioningState {
113
115
 
114
116
  /** The private endpoint connection status. */
115
117
  union PrivateEndpointServiceConnectionStatus {
116
- /** Connectionaiting for approval or rejection */
118
+ /** Connection waiting for approval or rejection */
117
119
  Pending: "Pending",
118
120
 
119
121
  /** Connection approved */
@@ -179,6 +181,7 @@ model PrivateLinkResourceParameter<Segment extends valueof string = "privateLink
179
181
  @removed(Versions.v6)
180
182
  model PrivateLinkResourceListResultV5 {
181
183
  /** Array of private link resources */
184
+ @OpenAPI.extension("x-ms-identifiers", #["id"])
182
185
  value?: CommonTypes.PrivateLinkResource[];
183
186
  }
184
187
 
@@ -221,5 +224,6 @@ model PrivateLinkResourceListResultV5 {
221
224
  @removed(Versions.v6)
222
225
  model PrivateEndpointConnectionListResultV5 {
223
226
  /** Array of private endpoint connections. */
227
+ @OpenAPI.extension("x-ms-identifiers", #["id"])
224
228
  value?: CommonTypes.PrivateEndpointConnection[];
225
229
  }
@@ -7,6 +7,7 @@ using Azure.Core;
7
7
  namespace Azure.ResourceManager.CommonTypes;
8
8
 
9
9
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
10
+ @summary("Resource")
10
11
  model Resource {
11
12
  /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */
12
13
  @typeChangedFrom(Versions.v4, string)
@@ -27,6 +28,7 @@ model Resource {
27
28
  }
28
29
 
29
30
  /** The resource model definition for an Azure Resource Manager resource with an etag. */
31
+ @summary("Entity Resource")
30
32
  model AzureEntityResource extends Resource {
31
33
  /** Resource Etag. */
32
34
  @visibility(Lifecycle.Read)
@@ -36,6 +38,7 @@ model AzureEntityResource extends Resource {
36
38
  /**
37
39
  * The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
38
40
  */
41
+ @summary("Tracked Resource")
39
42
  model TrackedResource extends Resource {
40
43
  /** Resource tags. */
41
44
  tags?: Record<string>;
@@ -48,6 +51,7 @@ model TrackedResource extends Resource {
48
51
  /**
49
52
  * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
50
53
  */
54
+ @summary("Proxy Resource")
51
55
  model ProxyResource extends Resource {}
52
56
 
53
57
  /**
@@ -129,6 +133,7 @@ model OperationListResult is Azure.Core.Page<Operation>;
129
133
  /**
130
134
  * Details of a REST API operation, returned from the Resource Provider Operations API
131
135
  */
136
+ @summary("REST API Operation")
132
137
  model Operation {
133
138
  /**
134
139
  The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
@@ -276,6 +281,7 @@ model ErrorDetail {
276
281
  /**
277
282
  * Common error response for all Azure Resource Manager APIs to return error details for failed operations.
278
283
  */
284
+ @summary("Error response")
279
285
  @error
280
286
  model ErrorResponse {
281
287
  /** The error object. */
@@ -517,17 +523,8 @@ model SubscriptionIdParameter {
517
523
  @typeChangedFrom(Versions.v4, string)
518
524
  @path
519
525
  @segment("subscriptions")
520
- subscriptionId: uuid;
521
- }
522
-
523
- /** The default location parameter type. */
524
- model LocationResourceParameter {
525
- /** The name of the Azure region. */
526
- @path
527
526
  @minLength(1)
528
- @segment("locations")
529
- @key
530
- location: azureLocation;
527
+ subscriptionId: uuid;
531
528
  }
532
529
 
533
530
  /**
@@ -23,11 +23,6 @@ alias SubscriptionIdParameter = CommonTypes.SubscriptionIdParameter;
23
23
  */
24
24
  alias ResourceGroupParameter = CommonTypes.ResourceGroupNameParameter;
25
25
 
26
- /**
27
- * The default LocationResource parameter type.
28
- */
29
- alias LocationResourceParameter = CommonTypes.LocationResourceParameter;
30
-
31
26
  /**
32
27
  * DEPRECATED - DO NOT USE
33
28
  * The default location parameter type.
@@ -45,6 +40,16 @@ model LocationParameter {
45
40
  location: string;
46
41
  }
47
42
 
43
+ /** The default location parameter type. */
44
+ model LocationResourceParameter {
45
+ /** The name of the Azure region. */
46
+ @path
47
+ @minLength(1)
48
+ @segment("locations")
49
+ @key
50
+ location: Azure.Core.azureLocation;
51
+ }
52
+
48
53
  /**
49
54
  * The location resource for tenant-based locations. This can be used as a parent
50
55
  * resource for resource types that are homed in a tenant-based location.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.55.0",
3
+ "version": "0.56.0-dev.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",
@@ -44,30 +44,30 @@
44
44
  "pluralize": "^8.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "@azure-tools/typespec-azure-core": "^0.55.0",
47
+ "@azure-tools/typespec-azure-core": "^0.55.0 || >=0.56.0-dev <0.56.0",
48
48
  "@typespec/compiler": "^1.0.0-rc.1",
49
49
  "@typespec/http": "^1.0.0-rc.1",
50
50
  "@typespec/openapi": "^1.0.0-rc.1",
51
- "@typespec/rest": "^0.69.0",
52
- "@typespec/versioning": "^0.69.0"
51
+ "@typespec/rest": "^0.69.0 || >=0.70.0-dev <0.70.0",
52
+ "@typespec/versioning": "^0.69.0 || >=0.70.0-dev <0.70.0"
53
53
  },
54
54
  "devDependencies": {
55
+ "@azure-tools/typespec-azure-core": "^0.55.0 || >=0.56.0-dev <0.56.0",
55
56
  "@types/node": "~22.13.11",
56
57
  "@types/pluralize": "^0.0.33",
58
+ "@typespec/compiler": "^1.0.0-rc.1",
59
+ "@typespec/http": "^1.0.0-rc.1",
60
+ "@typespec/library-linter": "^0.69.0 || >=0.70.0-dev <0.70.0",
61
+ "@typespec/openapi": "^1.0.0-rc.1",
62
+ "@typespec/rest": "^0.69.0 || >=0.70.0-dev <0.70.0",
63
+ "@typespec/tspd": "^0.69.0 || >=0.70.0-dev <0.70.0",
64
+ "@typespec/versioning": "^0.69.0 || >=0.70.0-dev <0.70.0",
57
65
  "@vitest/coverage-v8": "^3.0.9",
58
66
  "@vitest/ui": "^3.0.9",
59
67
  "c8": "^10.1.3",
60
68
  "rimraf": "~6.0.1",
61
69
  "typescript": "~5.8.2",
62
- "vitest": "^3.0.9",
63
- "@azure-tools/typespec-azure-core": "^0.55.0",
64
- "@typespec/http": "^1.0.0-rc.1",
65
- "@typespec/compiler": "^1.0.0-rc.1",
66
- "@typespec/library-linter": "^0.69.0",
67
- "@typespec/openapi": "^1.0.0-rc.1",
68
- "@typespec/rest": "^0.69.0",
69
- "@typespec/tspd": "^0.69.0",
70
- "@typespec/versioning": "^0.69.0"
70
+ "vitest": "^3.0.9"
71
71
  },
72
72
  "scripts": {
73
73
  "clean": "rimraf ./dist ./temp",