@azure-tools/typespec-azure-resource-manager 0.49.0-dev.1 → 0.49.0-dev.3

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.
@@ -1,4 +1,4 @@
1
- import { createRule } from "@typespec/compiler";
1
+ import { createRule, isRecordModelType } from "@typespec/compiler";
2
2
  export const noEmptyModel = createRule({
3
3
  name: "no-empty-model",
4
4
  severity: "warning",
@@ -11,7 +11,7 @@ export const noEmptyModel = createRule({
11
11
  create(context) {
12
12
  return {
13
13
  model: (model) => {
14
- if (model.properties.size === 0) {
14
+ if (model.properties.size === 0 && !isRecordModelType(context.program, model)) {
15
15
  context.reportDiagnostic({
16
16
  code: "no-empty-model",
17
17
  target: model,
@@ -1 +1 @@
1
- {"version":3,"file":"no-empty-model.js","sourceRoot":"","sources":["../../../src/rules/no-empty-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;IACrC,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,+KAA+K;IACjL,GAAG,EAAE,mGAAmG;IACxG,QAAQ,EAAE;QACR,OAAO,EAAE,wEAAwE;QACjF,OAAO,EACL,qKAAqK;KACxK;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACtB,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;oBAChC,OAAO,CAAC,gBAAgB,CAAC;wBACvB,IAAI,EAAE,gBAAgB;wBACtB,MAAM,EAAE,KAAK;qBACd,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"no-empty-model.js","sourceRoot":"","sources":["../../../src/rules/no-empty-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAS,MAAM,oBAAoB,CAAC;AAE1E,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;IACrC,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,+KAA+K;IACjL,GAAG,EAAE,mGAAmG;IACxG,QAAQ,EAAE;QACR,OAAO,EAAE,wEAAwE;QACjF,OAAO,EACL,qKAAqK;KACxK;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACtB,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;oBAC9E,OAAO,CAAC,gBAAgB,CAAC;wBACvB,IAAI,EAAE,gBAAgB;wBACtB,MAAM,EAAE,KAAK;qBACd,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -21,7 +21,11 @@ alias PrivateLinkResource = CommonTypes.PrivateLinkResource;
21
21
  alias PrivateLinkResourceProperties = CommonTypes.PrivateLinkResourceProperties;
22
22
  alias PrivateLinkResourceParameter = CommonTypes.PrivateLinkResourceParameter;
23
23
  alias PrivateEndpointConnectionResourceListResult = CommonTypes.PrivateEndpointConnectionListResult;
24
+ #suppress "deprecated" "Need for back compatibility in common-types"
25
+ alias PrivateEndpointConnectionResourceListResultV5 = CommonTypes.PrivateEndpointConnectionListResultV5;
24
26
  alias PrivateLinkResourceListResult = CommonTypes.PrivateLinkResourceListResult;
27
+ #suppress "deprecated" "Need for back compatibility in common-types"
28
+ alias PrivateLinkResourceListResultV5 = CommonTypes.PrivateLinkResourceListResultV5;
25
29
 
26
30
  // types
27
31
  alias ErrorResponse = CommonTypes.ErrorResponse;
@@ -14,6 +14,11 @@ namespace Azure.ResourceManager.CommonTypes;
14
14
  Azure.ResourceManager.CommonTypes.Versions.v5,
15
15
  "customermanagedkeys.json"
16
16
  );
17
+ @@armCommonDefinition(Encryption,
18
+ "encryption",
19
+ Azure.ResourceManager.CommonTypes.Versions.v6,
20
+ "customermanagedkeys.json"
21
+ );
17
22
 
18
23
  @@armCommonDefinition(CustomerManagedKeyEncryption,
19
24
  "customerManagedKeyEncryption",
@@ -25,3 +30,8 @@ namespace Azure.ResourceManager.CommonTypes;
25
30
  Azure.ResourceManager.CommonTypes.Versions.v5,
26
31
  "customermanagedkeys.json"
27
32
  );
33
+ @@armCommonDefinition(CustomerManagedKeyEncryption,
34
+ "customerManagedKeyEncryption",
35
+ Azure.ResourceManager.CommonTypes.Versions.v6,
36
+ "customermanagedkeys.json"
37
+ );
@@ -22,6 +22,11 @@ namespace Azure.ResourceManager.CommonTypes;
22
22
  Azure.ResourceManager.CommonTypes.Versions.v5,
23
23
  "managedidentity.json"
24
24
  );
25
+ @@armCommonDefinition(ManagedServiceIdentity,
26
+ "ManagedServiceIdentity",
27
+ Azure.ResourceManager.CommonTypes.Versions.v6,
28
+ "managedidentity.json"
29
+ );
25
30
 
26
31
  /** 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.", */
27
32
  @@armCommonDefinition(UserAssignedIdentities,
@@ -58,6 +63,11 @@ namespace Azure.ResourceManager.CommonTypes;
58
63
  Azure.ResourceManager.CommonTypes.Versions.v5,
59
64
  "managedidentity.json"
60
65
  );
66
+ @@armCommonDefinition(SystemAssignedServiceIdentity,
67
+ "SystemAssignedServiceIdentity",
68
+ Azure.ResourceManager.CommonTypes.Versions.v6,
69
+ "managedidentity.json"
70
+ );
61
71
 
62
72
  /**
63
73
  * A managed identity assigned by the user.
@@ -77,6 +87,11 @@ namespace Azure.ResourceManager.CommonTypes;
77
87
  Azure.ResourceManager.CommonTypes.Versions.v5,
78
88
  "managedidentity.json"
79
89
  );
90
+ @@armCommonDefinition(UserAssignedIdentity,
91
+ "UserAssignedIdentity",
92
+ Azure.ResourceManager.CommonTypes.Versions.v6,
93
+ "managedidentity.json"
94
+ );
80
95
 
81
96
  @@armCommonDefinition(ManagedServiceIdentityType,
82
97
  "ManagedServiceIdentityType",
@@ -93,6 +108,12 @@ namespace Azure.ResourceManager.CommonTypes;
93
108
  Azure.ResourceManager.CommonTypes.Versions.v5,
94
109
  "managedidentity.json"
95
110
  );
111
+ @@armCommonDefinition(ManagedServiceIdentityType,
112
+ "ManagedServiceIdentityType",
113
+ Azure.ResourceManager.CommonTypes.Versions.v6,
114
+ "managedidentity.json"
115
+ );
116
+
96
117
  @@armCommonDefinition(SystemAssignedServiceIdentityType,
97
118
  "SystemAssignedServiceIdentityType",
98
119
  Azure.ResourceManager.CommonTypes.Versions.v3,
@@ -108,3 +129,8 @@ namespace Azure.ResourceManager.CommonTypes;
108
129
  Azure.ResourceManager.CommonTypes.Versions.v5,
109
130
  "managedidentity.json"
110
131
  );
132
+ @@armCommonDefinition(SystemAssignedServiceIdentityType,
133
+ "SystemAssignedServiceIdentityType",
134
+ Azure.ResourceManager.CommonTypes.Versions.v6,
135
+ "managedidentity.json"
136
+ );
@@ -14,6 +14,11 @@ namespace Azure.ResourceManager.CommonTypes;
14
14
  Azure.ResourceManager.CommonTypes.Versions.v5,
15
15
  "managedidentitywithdelegation.json"
16
16
  );
17
+ @@armCommonDefinition(ManagedServiceIdentityWithDelegation,
18
+ "ManagedServiceIdentityWithDelegation",
19
+ Azure.ResourceManager.CommonTypes.Versions.v6,
20
+ "managedidentitywithdelegation.json"
21
+ );
17
22
 
18
23
  /** Delegated resource properties - internal use only. */
19
24
  @@armCommonDefinition(DelegatedResource,
@@ -26,3 +31,8 @@ namespace Azure.ResourceManager.CommonTypes;
26
31
  Azure.ResourceManager.CommonTypes.Versions.v5,
27
32
  "managedidentitywithdelegation.json"
28
33
  );
34
+ @@armCommonDefinition(DelegatedResource,
35
+ "DelegatedResource",
36
+ Azure.ResourceManager.CommonTypes.Versions.v6,
37
+ "managedidentitywithdelegation.json"
38
+ );
@@ -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
+ @removed(Versions.v6)
8
9
  model UserAssignedIdentities is Record<UserAssignedIdentity | null>;
9
10
 
10
11
  /**
@@ -9,6 +9,11 @@ namespace Azure.ResourceManager.CommonTypes;
9
9
  Azure.ResourceManager.CommonTypes.Versions.v5,
10
10
  "mobo.json"
11
11
  );
12
+ @@armCommonDefinition(ManagedOnBehalfOfConfiguration,
13
+ "ManagedOnBehalfOfConfiguration",
14
+ Azure.ResourceManager.CommonTypes.Versions.v6,
15
+ "mobo.json"
16
+ );
12
17
 
13
18
  /** This resource is created by the Resource Provider to manage some resources on behalf of the user. */
14
19
  @@armCommonDefinition(MoboBrokerResource,
@@ -16,3 +21,8 @@ namespace Azure.ResourceManager.CommonTypes;
16
21
  Azure.ResourceManager.CommonTypes.Versions.v5,
17
22
  "mobo.json"
18
23
  );
24
+ @@armCommonDefinition(MoboBrokerResource,
25
+ "MoboBrokerResource",
26
+ Azure.ResourceManager.CommonTypes.Versions.v6,
27
+ "mobo.json"
28
+ );
@@ -10,6 +10,11 @@ namespace Azure.ResourceManager.CommonTypes;
10
10
  Azure.ResourceManager.CommonTypes.Versions.v5,
11
11
  "networksecurityperimeter.json"
12
12
  );
13
+ @@armCommonDefinition(AccessRuleDirection,
14
+ "AccessRuleDirection",
15
+ Azure.ResourceManager.CommonTypes.Versions.v6,
16
+ "networksecurityperimeter.json"
17
+ );
13
18
 
14
19
  /** Provisioning state of a network security perimeter configuration that is being created or updated. */
15
20
  @@armCommonDefinition(NetworkSecurityPerimeterConfigurationProvisioningState,
@@ -17,6 +22,11 @@ namespace Azure.ResourceManager.CommonTypes;
17
22
  Azure.ResourceManager.CommonTypes.Versions.v5,
18
23
  "networksecurityperimeter.json"
19
24
  );
25
+ @@armCommonDefinition(NetworkSecurityPerimeterConfigurationProvisioningState,
26
+ "NetworkSecurityPerimeterConfigurationProvisioningState",
27
+ Azure.ResourceManager.CommonTypes.Versions.v6,
28
+ "networksecurityperimeter.json"
29
+ );
20
30
 
21
31
  /** Type of issue */
22
32
  @@armCommonDefinition(IssueType,
@@ -24,6 +34,11 @@ namespace Azure.ResourceManager.CommonTypes;
24
34
  Azure.ResourceManager.CommonTypes.Versions.v5,
25
35
  "networksecurityperimeter.json"
26
36
  );
37
+ @@armCommonDefinition(IssueType,
38
+ "IssueType",
39
+ Azure.ResourceManager.CommonTypes.Versions.v6,
40
+ "networksecurityperimeter.json"
41
+ );
27
42
 
28
43
  /** Severity of the issue. */
29
44
  @@armCommonDefinition(Severity,
@@ -31,6 +46,11 @@ namespace Azure.ResourceManager.CommonTypes;
31
46
  Azure.ResourceManager.CommonTypes.Versions.v5,
32
47
  "networksecurityperimeter.json"
33
48
  );
49
+ @@armCommonDefinition(Severity,
50
+ "Severity",
51
+ Azure.ResourceManager.CommonTypes.Versions.v6,
52
+ "networksecurityperimeter.json"
53
+ );
34
54
 
35
55
  /** Access mode of the resource association */
36
56
  @@armCommonDefinition(ResourceAssociationAccessMode,
@@ -38,6 +58,11 @@ namespace Azure.ResourceManager.CommonTypes;
38
58
  Azure.ResourceManager.CommonTypes.Versions.v5,
39
59
  "networksecurityperimeter.json"
40
60
  );
61
+ @@armCommonDefinition(ResourceAssociationAccessMode,
62
+ "ResourceAssociationAccessMode",
63
+ Azure.ResourceManager.CommonTypes.Versions.v6,
64
+ "networksecurityperimeter.json"
65
+ );
41
66
 
42
67
  /** Allow, disallow, or let network security perimeter configuration control public network access to the protected resource. */
43
68
  @@armCommonDefinition(PublicNetworkAccess,
@@ -45,6 +70,11 @@ namespace Azure.ResourceManager.CommonTypes;
45
70
  Azure.ResourceManager.CommonTypes.Versions.v5,
46
71
  "networksecurityperimeter.json"
47
72
  );
73
+ @@armCommonDefinition(PublicNetworkAccess,
74
+ "PublicNetworkAccess",
75
+ Azure.ResourceManager.CommonTypes.Versions.v6,
76
+ "networksecurityperimeter.json"
77
+ );
48
78
 
49
79
  /** Access rule in a network security perimeter configuration profile */
50
80
  @@armCommonDefinition(AccessRule,
@@ -52,6 +82,11 @@ namespace Azure.ResourceManager.CommonTypes;
52
82
  Azure.ResourceManager.CommonTypes.Versions.v5,
53
83
  "networksecurityperimeter.json"
54
84
  );
85
+ @@armCommonDefinition(AccessRule,
86
+ "AccessRule",
87
+ Azure.ResourceManager.CommonTypes.Versions.v6,
88
+ "networksecurityperimeter.json"
89
+ );
55
90
 
56
91
  /** Properties of Access Rule */
57
92
  @@armCommonDefinition(AccessRuleDirection,
@@ -59,6 +94,11 @@ namespace Azure.ResourceManager.CommonTypes;
59
94
  Azure.ResourceManager.CommonTypes.Versions.v5,
60
95
  "networksecurityperimeter.json"
61
96
  );
97
+ @@armCommonDefinition(AccessRuleDirection,
98
+ "AccessRuleDirection",
99
+ Azure.ResourceManager.CommonTypes.Versions.v6,
100
+ "networksecurityperimeter.json"
101
+ );
62
102
 
63
103
  /** Information about a network security perimeter */
64
104
  @@armCommonDefinition(NetworkSecurityPerimeter,
@@ -66,6 +106,11 @@ namespace Azure.ResourceManager.CommonTypes;
66
106
  Azure.ResourceManager.CommonTypes.Versions.v5,
67
107
  "networksecurityperimeter.json"
68
108
  );
109
+ @@armCommonDefinition(NetworkSecurityPerimeter,
110
+ "NetworkSecurityPerimeter",
111
+ Azure.ResourceManager.CommonTypes.Versions.v6,
112
+ "networksecurityperimeter.json"
113
+ );
69
114
 
70
115
  /** Network security perimeter configuration resource */
71
116
  @@armCommonDefinition(NetworkSecurityPerimeterConfiguration,
@@ -73,6 +118,11 @@ namespace Azure.ResourceManager.CommonTypes;
73
118
  Azure.ResourceManager.CommonTypes.Versions.v5,
74
119
  "networksecurityperimeter.json"
75
120
  );
121
+ @@armCommonDefinition(NetworkSecurityPerimeterConfiguration,
122
+ "NetworkSecurityPerimeterConfiguration",
123
+ Azure.ResourceManager.CommonTypes.Versions.v6,
124
+ "networksecurityperimeter.json"
125
+ );
76
126
 
77
127
  /** Network security configuration properties. */
78
128
  @@armCommonDefinition(NetworkSecurityPerimeterConfigurationProperties,
@@ -80,6 +130,11 @@ namespace Azure.ResourceManager.CommonTypes;
80
130
  Azure.ResourceManager.CommonTypes.Versions.v5,
81
131
  "networksecurityperimeter.json"
82
132
  );
133
+ @@armCommonDefinition(NetworkSecurityPerimeterConfigurationProperties,
134
+ "NetworkSecurityPerimeterConfigurationProperties",
135
+ Azure.ResourceManager.CommonTypes.Versions.v6,
136
+ "networksecurityperimeter.json"
137
+ );
83
138
 
84
139
  /** Describes a provisioning issue for a network security perimeter configuration */
85
140
  @@armCommonDefinition(ProvisioningIssue,
@@ -87,6 +142,11 @@ namespace Azure.ResourceManager.CommonTypes;
87
142
  Azure.ResourceManager.CommonTypes.Versions.v5,
88
143
  "networksecurityperimeter.json"
89
144
  );
145
+ @@armCommonDefinition(ProvisioningIssue,
146
+ "ProvisioningIssue",
147
+ Azure.ResourceManager.CommonTypes.Versions.v6,
148
+ "networksecurityperimeter.json"
149
+ );
90
150
 
91
151
  /** Details of a provisioning issue for a network security perimeter configuration. */
92
152
  @@armCommonDefinition(ProvisioningIssueProperties,
@@ -94,6 +154,11 @@ namespace Azure.ResourceManager.CommonTypes;
94
154
  Azure.ResourceManager.CommonTypes.Versions.v5,
95
155
  "networksecurityperimeter.json"
96
156
  );
157
+ @@armCommonDefinition(ProvisioningIssueProperties,
158
+ "ProvisioningIssueProperties",
159
+ Azure.ResourceManager.CommonTypes.Versions.v6,
160
+ "networksecurityperimeter.json"
161
+ );
97
162
 
98
163
  /** Information about resource association */
99
164
  @@armCommonDefinition(ResourceAssociation,
@@ -101,6 +166,11 @@ namespace Azure.ResourceManager.CommonTypes;
101
166
  Azure.ResourceManager.CommonTypes.Versions.v5,
102
167
  "networksecurityperimeter.json"
103
168
  );
169
+ @@armCommonDefinition(ResourceAssociation,
170
+ "ResourceAssociation",
171
+ Azure.ResourceManager.CommonTypes.Versions.v6,
172
+ "networksecurityperimeter.json"
173
+ );
104
174
 
105
175
  /** Network security perimeter configuration profile */
106
176
  @@armCommonDefinition(NetworkSecurityProfile,
@@ -108,6 +178,11 @@ namespace Azure.ResourceManager.CommonTypes;
108
178
  Azure.ResourceManager.CommonTypes.Versions.v5,
109
179
  "networksecurityperimeter.json"
110
180
  );
181
+ @@armCommonDefinition(NetworkSecurityProfile,
182
+ "NetworkSecurityProfile",
183
+ Azure.ResourceManager.CommonTypes.Versions.v6,
184
+ "networksecurityperimeter.json"
185
+ );
111
186
 
112
187
  /** Result of a list NSP (network security perimeter) configurations request. */
113
188
  @@armCommonDefinition(NetworkSecurityPerimeterConfigurationListResult,
@@ -115,3 +190,8 @@ namespace Azure.ResourceManager.CommonTypes;
115
190
  Azure.ResourceManager.CommonTypes.Versions.v5,
116
191
  "networksecurityperimeter.json"
117
192
  );
193
+ @@armCommonDefinition(NetworkSecurityPerimeterConfigurationListResult,
194
+ "NetworkSecurityPerimeterConfigurationListResult",
195
+ Azure.ResourceManager.CommonTypes.Versions.v6,
196
+ "networksecurityperimeter.json"
197
+ );
@@ -23,6 +23,11 @@ namespace Azure.ResourceManager.CommonTypes;
23
23
  Azure.ResourceManager.CommonTypes.Versions.v5,
24
24
  "privatelinks.json"
25
25
  );
26
+ @@armCommonDefinition(PrivateEndpoint,
27
+ "PrivateEndpoint",
28
+ Azure.ResourceManager.CommonTypes.Versions.v6,
29
+ "privatelinks.json"
30
+ );
26
31
 
27
32
  /** The private endpoint resource */
28
33
  @@armCommonDefinition(PrivateLinkResource,
@@ -40,6 +45,11 @@ namespace Azure.ResourceManager.CommonTypes;
40
45
  Azure.ResourceManager.CommonTypes.Versions.v5,
41
46
  "privatelinks.json"
42
47
  );
48
+ @@armCommonDefinition(PrivateLinkResource,
49
+ "PrivateLinkResource",
50
+ Azure.ResourceManager.CommonTypes.Versions.v6,
51
+ "privatelinks.json"
52
+ );
43
53
 
44
54
  /** PrivateEndpointConnection */
45
55
  @@armCommonDefinition(PrivateEndpointConnection,
@@ -57,6 +67,11 @@ namespace Azure.ResourceManager.CommonTypes;
57
67
  Azure.ResourceManager.CommonTypes.Versions.v5,
58
68
  "privatelinks.json"
59
69
  );
70
+ @@armCommonDefinition(PrivateEndpointConnection,
71
+ "PrivateEndpointConnection",
72
+ Azure.ResourceManager.CommonTypes.Versions.v6,
73
+ "privatelinks.json"
74
+ );
60
75
 
61
76
  /** Properties of he private endpoint connection resource */
62
77
  @@armCommonDefinition(PrivateEndpointConnectionProperties,
@@ -74,6 +89,11 @@ namespace Azure.ResourceManager.CommonTypes;
74
89
  Azure.ResourceManager.CommonTypes.Versions.v5,
75
90
  "privatelinks.json"
76
91
  );
92
+ @@armCommonDefinition(PrivateEndpointConnectionProperties,
93
+ "PrivateEndpointConnectionProperties",
94
+ Azure.ResourceManager.CommonTypes.Versions.v6,
95
+ "privatelinks.json"
96
+ );
77
97
 
78
98
  /** A collection of information about the state of the connection between service consumer and provider. */
79
99
  @@armCommonDefinition(PrivateLinkServiceConnectionState,
@@ -91,6 +111,11 @@ namespace Azure.ResourceManager.CommonTypes;
91
111
  Azure.ResourceManager.CommonTypes.Versions.v5,
92
112
  "privatelinks.json"
93
113
  );
114
+ @@armCommonDefinition(PrivateLinkServiceConnectionState,
115
+ "PrivateLinkServiceConnectionState",
116
+ Azure.ResourceManager.CommonTypes.Versions.v6,
117
+ "privatelinks.json"
118
+ );
94
119
 
95
120
  /** Properties of a private link resource. */
96
121
  #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Matches current common code"
@@ -109,40 +134,55 @@ namespace Azure.ResourceManager.CommonTypes;
109
134
  Azure.ResourceManager.CommonTypes.Versions.v5,
110
135
  "privatelinks.json"
111
136
  );
137
+ @@armCommonDefinition(PrivateLinkResourceProperties,
138
+ "PrivateLinkResourceProperties",
139
+ Azure.ResourceManager.CommonTypes.Versions.v6,
140
+ "privatelinks.json"
141
+ );
112
142
 
113
143
  /** PrivateEndpointConnectionListResult */
114
- @@armCommonDefinition(PrivateEndpointConnectionListResult,
144
+ @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
115
145
  "PrivateEndpointConnectionListResult",
116
146
  #{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
117
147
  "privatelinks.json"
118
148
  );
119
- @@armCommonDefinition(PrivateEndpointConnectionListResult,
149
+ @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
120
150
  "PrivateEndpointConnectionListResult",
121
151
  Azure.ResourceManager.CommonTypes.Versions.v4,
122
152
  "privatelinks.json"
123
153
  );
124
- @@armCommonDefinition(PrivateEndpointConnectionListResult,
154
+ @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
125
155
  "PrivateEndpointConnectionListResult",
126
156
  Azure.ResourceManager.CommonTypes.Versions.v5,
127
157
  "privatelinks.json"
128
158
  );
159
+ @@armCommonDefinition(PrivateEndpointConnectionListResult,
160
+ "PrivateEndpointConnectionListResult",
161
+ Azure.ResourceManager.CommonTypes.Versions.v6,
162
+ "privatelinks.json"
163
+ );
129
164
 
130
165
  /** PrivateLinkResourceListResult */
131
- @@armCommonDefinition(PrivateLinkResourceListResult,
166
+ @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
132
167
  "PrivateLinkResourceListResult",
133
- #{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
168
+ Azure.ResourceManager.CommonTypes.Versions.v3,
134
169
  "privatelinks.json"
135
170
  );
136
- @@armCommonDefinition(PrivateLinkResourceListResult,
171
+ @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
137
172
  "PrivateLinkResourceListResult",
138
173
  Azure.ResourceManager.CommonTypes.Versions.v4,
139
174
  "privatelinks.json"
140
175
  );
141
- @@armCommonDefinition(PrivateLinkResourceListResult,
176
+ @@armCommonDefinition(PrivateEndpointConnectionListResultV5,
142
177
  "PrivateLinkResourceListResult",
143
178
  Azure.ResourceManager.CommonTypes.Versions.v5,
144
179
  "privatelinks.json"
145
180
  );
181
+ @@armCommonDefinition(PrivateLinkResourceListResult,
182
+ "PrivateLinkResourceListResult",
183
+ Azure.ResourceManager.CommonTypes.Versions.v6,
184
+ "privatelinks.json"
185
+ );
146
186
 
147
187
  // PrivateEndpointServiceConnectionStatus
148
188
  @@armCommonDefinition(PrivateEndpointServiceConnectionStatus,
@@ -158,6 +198,10 @@ namespace Azure.ResourceManager.CommonTypes;
158
198
  "PrivateEndpointServiceConnectionStatus",
159
199
  Azure.ResourceManager.CommonTypes.Versions.v5
160
200
  );
201
+ @@armCommonDefinition(PrivateEndpointServiceConnectionStatus,
202
+ "PrivateEndpointServiceConnectionStatus",
203
+ Azure.ResourceManager.CommonTypes.Versions.v6
204
+ );
161
205
 
162
206
  // PrivateEndpointServiceConnectionStatus
163
207
  @@armCommonDefinition(PrivateEndpointConnectionProvisioningState,
@@ -173,6 +217,10 @@ namespace Azure.ResourceManager.CommonTypes;
173
217
  "PrivateEndpointConnectionProvisioningState",
174
218
  Azure.ResourceManager.CommonTypes.Versions.v5
175
219
  );
220
+ @@armCommonDefinition(PrivateEndpointConnectionProvisioningState,
221
+ "PrivateEndpointConnectionProvisioningState",
222
+ Azure.ResourceManager.CommonTypes.Versions.v6
223
+ );
176
224
 
177
225
  /** PrivateEndpointConnectionParameter */
178
226
  @@CommonTypes.Private.armCommonParameter(PrivateEndpointConnectionParameter.name,
@@ -190,3 +238,8 @@ namespace Azure.ResourceManager.CommonTypes;
190
238
  Azure.ResourceManager.CommonTypes.Versions.v5,
191
239
  "privatelinks.json"
192
240
  );
241
+ @@CommonTypes.Private.armCommonParameter(PrivateEndpointConnectionParameter.name,
242
+ "PrivateEndpointConnectionName",
243
+ Azure.ResourceManager.CommonTypes.Versions.v6,
244
+ "privatelinks.json"
245
+ );
@@ -2,6 +2,8 @@ using TypeSpec.Http;
2
2
  using TypeSpec.Versioning;
3
3
  using OpenAPI;
4
4
 
5
+ using Azure.Core;
6
+
5
7
  namespace Azure.ResourceManager.CommonTypes;
6
8
 
7
9
  /** The Private Endpoint resource. */
@@ -37,9 +39,15 @@ model PrivateLinkResourceProperties {
37
39
  }
38
40
 
39
41
  /** A list of private link resources. */
42
+ @added(Versions.v6)
43
+ @pagedResult
40
44
  model PrivateLinkResourceListResult {
41
45
  /** Array of private link resources */
42
46
  value?: PrivateLinkResource[];
47
+
48
+ /** URL to get the next set of operation list results (if there are any). */
49
+ @visibility("read")
50
+ nextLink?: string;
43
51
  }
44
52
  //#region
45
53
  /** The private endpoint connection resource */
@@ -49,9 +57,15 @@ model PrivateEndpointConnection extends Resource {
49
57
  }
50
58
 
51
59
  /** List of private endpoint connections associated with the specified resource. */
60
+ @added(Versions.v6)
61
+ @pagedResult
52
62
  model PrivateEndpointConnectionListResult {
53
63
  /** Array of private endpoint connections. */
54
64
  value?: PrivateEndpointConnection[];
65
+
66
+ /** URL to get the next set of operation list results (if there are any). */
67
+ @visibility("read")
68
+ nextLink?: string;
55
69
  }
56
70
 
57
71
  /** Properties of the private endpoint connection. */
@@ -138,3 +152,79 @@ model PrivateLinkResourceParameter<Segment extends valueof string = "privateLink
138
152
  @key("privateLinkResourcenName")
139
153
  name: string;
140
154
  }
155
+
156
+ /**
157
+ * A list of private link resources for versions before v6.
158
+ *
159
+ * This model represents the standard `PrivateLinkResourceListResult` envelope for versions v3, v4, and v5. It has been deprecated for v6 and beyond.
160
+ *
161
+ * Note: This is only intended for use with versions before v6. Do not use this if you are already on CommonTypes.Version.v6 or beyond.
162
+ *
163
+ * If you are migrating to v6 or above, use `PrivateLinkResourceListResult` directly.
164
+ *
165
+ * @example
166
+ * Version: v3,v4,v5
167
+ * ```typespec
168
+ * @armResourceOperations
169
+ * interface Employees {
170
+ * listConnections is ArmResourceActionAsync<Employee, {}, PrivateLinkResourceListResultV5>;
171
+ * }
172
+ * ```
173
+ *
174
+ * Version: v6
175
+ * ```typespec
176
+ * @armResourceOperations
177
+ * interface Employees {
178
+ * listConnections is ArmResourceActionAsync<Employee, {}, PrivateLinkResourceListResult>;
179
+ * }
180
+ * ```
181
+ */
182
+ #deprecated "Avoid using this model. Instead, use PrivateLinkResourceListResult available in CommonTypes.Version.v6 or beyond."
183
+ @friendlyName("PrivateLinkResourceListResult")
184
+ @removed(Versions.v6)
185
+ model PrivateLinkResourceListResultV5 {
186
+ /** Array of private link resources */
187
+ value?: CommonTypes.PrivateLinkResource[];
188
+ }
189
+
190
+ /**
191
+ * List of private endpoint connections associated with the specified resource before version v6.
192
+ *
193
+ * This model represents the standard `PrivateEndpointConnectionResourceListResult` envelope for versions v3, v4, and v5. It has been deprecated for v6 and beyond.
194
+ *
195
+ * Note: This is only intended for use with versions before v6. Do not use this if you are already on CommonTypes.Version.v6 or beyond.
196
+ *
197
+ * If you are migrating to v6 or above, use `PrivateEndpointConnectionResourceListResult` directly.
198
+ *
199
+ * @example
200
+ * Version: v3,v4,v5
201
+ * ```typespec
202
+ * @armResourceOperations
203
+ * interface Employees {
204
+ * createConnection is ArmResourceActionAsync<
205
+ * Employee,
206
+ * PrivateEndpointConnection,
207
+ * PrivateEndpointConnectionResourceListResultV5
208
+ * >;
209
+ * }
210
+ * ```
211
+ *
212
+ * Version: v6
213
+ * ```typespec
214
+ * @armResourceOperations
215
+ * interface Employees {
216
+ * createConnection is ArmResourceActionAsync<
217
+ * Employee,
218
+ * PrivateEndpointConnection,
219
+ * PrivateEndpointConnectionResourceListResult
220
+ * >;
221
+ * }
222
+ * ```
223
+ */
224
+ #deprecated "Avoid using this model. Instead, use PrivateEndpointConnectionResourceListResult available in CommonTypes.Version.v6 or beyond."
225
+ @friendlyName("PrivateEndpointConnectionListResult")
226
+ @removed(Versions.v6)
227
+ model PrivateEndpointConnectionListResultV5 {
228
+ /** Array of private endpoint connections. */
229
+ value?: CommonTypes.PrivateEndpointConnection[];
230
+ }
@@ -14,6 +14,7 @@ namespace Azure.ResourceManager.CommonTypes;
14
14
  @@armCommonDefinition(Resource, "Resource", Azure.ResourceManager.CommonTypes.Versions.v3);
15
15
  @@armCommonDefinition(Resource, "Resource", Azure.ResourceManager.CommonTypes.Versions.v4);
16
16
  @@armCommonDefinition(Resource, "Resource", Azure.ResourceManager.CommonTypes.Versions.v5);
17
+ @@armCommonDefinition(Resource, "Resource", Azure.ResourceManager.CommonTypes.Versions.v6);
17
18
 
18
19
  /** The resource model definition for an Azure Resource Manager resource with an etag. */
19
20
  @@armCommonDefinition(AzureEntityResource,
@@ -28,6 +29,10 @@ namespace Azure.ResourceManager.CommonTypes;
28
29
  "TrackedResource",
29
30
  Azure.ResourceManager.CommonTypes.Versions.v5
30
31
  );
32
+ @@armCommonDefinition(AzureEntityResource,
33
+ "TrackedResource",
34
+ Azure.ResourceManager.CommonTypes.Versions.v6
35
+ );
31
36
 
32
37
  /**
33
38
  * The base tracked resource.
@@ -44,6 +49,10 @@ namespace Azure.ResourceManager.CommonTypes;
44
49
  "TrackedResource",
45
50
  Azure.ResourceManager.CommonTypes.Versions.v5
46
51
  );
52
+ @@armCommonDefinition(TrackedResource,
53
+ "TrackedResource",
54
+ Azure.ResourceManager.CommonTypes.Versions.v6
55
+ );
47
56
 
48
57
  /**
49
58
  * The base proxy resource.
@@ -60,6 +69,10 @@ namespace Azure.ResourceManager.CommonTypes;
60
69
  "ProxyResource",
61
70
  Azure.ResourceManager.CommonTypes.Versions.v5
62
71
  );
72
+ @@armCommonDefinition(ProxyResource,
73
+ "ProxyResource",
74
+ Azure.ResourceManager.CommonTypes.Versions.v6
75
+ );
63
76
 
64
77
  /**
65
78
  * The base extension resource.
@@ -76,6 +89,10 @@ namespace Azure.ResourceManager.CommonTypes;
76
89
  "ProxyResource",
77
90
  Azure.ResourceManager.CommonTypes.Versions.v5
78
91
  );
92
+ @@armCommonDefinition(ExtensionResource,
93
+ "ProxyResource",
94
+ Azure.ResourceManager.CommonTypes.Versions.v6
95
+ );
79
96
 
80
97
  /**
81
98
  * The SKU (Stock Keeping Unit) assigned to this resource.
@@ -83,6 +100,7 @@ namespace Azure.ResourceManager.CommonTypes;
83
100
  @@armCommonDefinition(Sku, "Sku", Azure.ResourceManager.CommonTypes.Versions.v3);
84
101
  @@armCommonDefinition(Sku, "Sku", Azure.ResourceManager.CommonTypes.Versions.v4);
85
102
  @@armCommonDefinition(Sku, "Sku", Azure.ResourceManager.CommonTypes.Versions.v5);
103
+ @@armCommonDefinition(Sku, "Sku", Azure.ResourceManager.CommonTypes.Versions.v6);
86
104
 
87
105
  /**
88
106
  * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
@@ -99,6 +117,10 @@ namespace Azure.ResourceManager.CommonTypes;
99
117
  "OperationListResult",
100
118
  Azure.ResourceManager.CommonTypes.Versions.v5
101
119
  );
120
+ @@armCommonDefinition(OperationListResult,
121
+ "OperationListResult",
122
+ Azure.ResourceManager.CommonTypes.Versions.v6
123
+ );
102
124
 
103
125
  /**
104
126
  * Details of a REST API operation, returned from the Resource Provider Operations API
@@ -106,6 +128,7 @@ namespace Azure.ResourceManager.CommonTypes;
106
128
  @@armCommonDefinition(Operation, "Operation", Azure.ResourceManager.CommonTypes.Versions.v3);
107
129
  @@armCommonDefinition(Operation, "Operation", Azure.ResourceManager.CommonTypes.Versions.v4);
108
130
  @@armCommonDefinition(Operation, "Operation", Azure.ResourceManager.CommonTypes.Versions.v5);
131
+ @@armCommonDefinition(Operation, "Operation", Azure.ResourceManager.CommonTypes.Versions.v6);
109
132
 
110
133
  /**
111
134
  * Localized display information for and operation.
@@ -122,6 +145,10 @@ namespace Azure.ResourceManager.CommonTypes;
122
145
  "OperationDisplay",
123
146
  Azure.ResourceManager.CommonTypes.Versions.v5
124
147
  );
148
+ @@armCommonDefinition(OperationDisplay,
149
+ "OperationDisplay",
150
+ Azure.ResourceManager.CommonTypes.Versions.v6
151
+ );
125
152
 
126
153
  /**
127
154
  * The current status of an async operation.
@@ -138,6 +165,10 @@ namespace Azure.ResourceManager.CommonTypes;
138
165
  "OperationStatusResult",
139
166
  Azure.ResourceManager.CommonTypes.Versions.v5
140
167
  );
168
+ @@armCommonDefinition(OperationStatusResult,
169
+ "OperationStatusResult",
170
+ Azure.ResourceManager.CommonTypes.Versions.v6
171
+ );
141
172
 
142
173
  /**
143
174
  * locationData
@@ -145,6 +176,7 @@ namespace Azure.ResourceManager.CommonTypes;
145
176
  @@armCommonDefinition(LocationData, "locationData", Azure.ResourceManager.CommonTypes.Versions.v3);
146
177
  @@armCommonDefinition(LocationData, "locationData", Azure.ResourceManager.CommonTypes.Versions.v4);
147
178
  @@armCommonDefinition(LocationData, "locationData", Azure.ResourceManager.CommonTypes.Versions.v5);
179
+ @@armCommonDefinition(LocationData, "locationData", Azure.ResourceManager.CommonTypes.Versions.v6);
148
180
 
149
181
  /**
150
182
  * The error detail.
@@ -152,6 +184,7 @@ namespace Azure.ResourceManager.CommonTypes;
152
184
  @@armCommonDefinition(ErrorDetail, "ErrorDetail", Azure.ResourceManager.CommonTypes.Versions.v3);
153
185
  @@armCommonDefinition(ErrorDetail, "ErrorDetail", Azure.ResourceManager.CommonTypes.Versions.v4);
154
186
  @@armCommonDefinition(ErrorDetail, "ErrorDetail", Azure.ResourceManager.CommonTypes.Versions.v5);
187
+ @@armCommonDefinition(ErrorDetail, "ErrorDetail", Azure.ResourceManager.CommonTypes.Versions.v6);
155
188
 
156
189
  /**
157
190
  * The resource management error additional info.
@@ -168,6 +201,10 @@ namespace Azure.ResourceManager.CommonTypes;
168
201
  "ErrorAdditionalInfo",
169
202
  Azure.ResourceManager.CommonTypes.Versions.v5
170
203
  );
204
+ @@armCommonDefinition(ErrorAdditionalInfo,
205
+ "ErrorAdditionalInfo",
206
+ Azure.ResourceManager.CommonTypes.Versions.v6
207
+ );
171
208
 
172
209
  /**
173
210
  * Identity
@@ -182,6 +219,7 @@ namespace Azure.ResourceManager.CommonTypes;
182
219
  @@armCommonDefinition(SystemData, "systemData", Azure.ResourceManager.CommonTypes.Versions.v3);
183
220
  @@armCommonDefinition(SystemData, "systemData", Azure.ResourceManager.CommonTypes.Versions.v4);
184
221
  @@armCommonDefinition(SystemData, "systemData", Azure.ResourceManager.CommonTypes.Versions.v5);
222
+ @@armCommonDefinition(SystemData, "systemData", Azure.ResourceManager.CommonTypes.Versions.v6);
185
223
 
186
224
  /**
187
225
  * Details of the resource plan.
@@ -189,6 +227,7 @@ namespace Azure.ResourceManager.CommonTypes;
189
227
  @@armCommonDefinition(Plan, "Plan", Azure.ResourceManager.CommonTypes.Versions.v3);
190
228
  @@armCommonDefinition(Plan, "Plan", Azure.ResourceManager.CommonTypes.Versions.v4);
191
229
  @@armCommonDefinition(Plan, "Plan", Azure.ResourceManager.CommonTypes.Versions.v5);
230
+ @@armCommonDefinition(Plan, "Plan", Azure.ResourceManager.CommonTypes.Versions.v6);
192
231
 
193
232
  /**
194
233
  * encryptionProperties
@@ -205,6 +244,10 @@ namespace Azure.ResourceManager.CommonTypes;
205
244
  "encryptionProperties",
206
245
  Azure.ResourceManager.CommonTypes.Versions.v5
207
246
  );
247
+ @@armCommonDefinition(EncryptionProperties,
248
+ "encryptionProperties",
249
+ Azure.ResourceManager.CommonTypes.Versions.v6
250
+ );
208
251
 
209
252
  /**
210
253
  * KeyVaultProperties
@@ -221,6 +264,10 @@ namespace Azure.ResourceManager.CommonTypes;
221
264
  "KeyVaultProperties",
222
265
  Azure.ResourceManager.CommonTypes.Versions.v5
223
266
  );
267
+ @@armCommonDefinition(KeyVaultProperties,
268
+ "KeyVaultProperties",
269
+ Azure.ResourceManager.CommonTypes.Versions.v6
270
+ );
224
271
 
225
272
  /**
226
273
  * ResourceModelWithAllowedPropertySet
@@ -237,6 +284,10 @@ namespace Azure.ResourceManager.CommonTypes;
237
284
  "ResourceModelWithAllowedPropertySet",
238
285
  Azure.ResourceManager.CommonTypes.Versions.v5
239
286
  );
287
+ @@armCommonDefinition(ResourceModelWithAllowedPropertySet,
288
+ "ResourceModelWithAllowedPropertySet",
289
+ Azure.ResourceManager.CommonTypes.Versions.v6
290
+ );
240
291
 
241
292
  /**
242
293
  * The check availability request body.
@@ -253,6 +304,10 @@ namespace Azure.ResourceManager.CommonTypes;
253
304
  "CheckNameAvailabilityRequest",
254
305
  Azure.ResourceManager.CommonTypes.Versions.v5
255
306
  );
307
+ @@armCommonDefinition(CheckNameAvailabilityRequest,
308
+ "CheckNameAvailabilityRequest",
309
+ Azure.ResourceManager.CommonTypes.Versions.v6
310
+ );
256
311
 
257
312
  /**
258
313
  * The check availability result.
@@ -269,6 +324,10 @@ namespace Azure.ResourceManager.CommonTypes;
269
324
  "CheckNameAvailabilityResponse",
270
325
  Azure.ResourceManager.CommonTypes.Versions.v5
271
326
  );
327
+ @@armCommonDefinition(CheckNameAvailabilityResponse,
328
+ "CheckNameAvailabilityResponse",
329
+ Azure.ResourceManager.CommonTypes.Versions.v6
330
+ );
272
331
 
273
332
  @@armCommonDefinition(ErrorResponse,
274
333
  "ErrorResponse",
@@ -282,10 +341,15 @@ namespace Azure.ResourceManager.CommonTypes;
282
341
  "ErrorResponse",
283
342
  Azure.ResourceManager.CommonTypes.Versions.v5
284
343
  );
344
+ @@armCommonDefinition(ErrorResponse,
345
+ "ErrorResponse",
346
+ Azure.ResourceManager.CommonTypes.Versions.v6
347
+ );
285
348
 
286
349
  @@armCommonDefinition(SkuTier, "SkuTier", Azure.ResourceManager.CommonTypes.Versions.v3);
287
350
  @@armCommonDefinition(SkuTier, "SkuTier", Azure.ResourceManager.CommonTypes.Versions.v4);
288
351
  @@armCommonDefinition(SkuTier, "SkuTier", Azure.ResourceManager.CommonTypes.Versions.v5);
352
+ @@armCommonDefinition(SkuTier, "SkuTier", Azure.ResourceManager.CommonTypes.Versions.v6);
289
353
 
290
354
  // -- Parameters
291
355
  /** ApiVersionParameter */
@@ -301,6 +365,10 @@ namespace Azure.ResourceManager.CommonTypes;
301
365
  "ApiVersionParameter",
302
366
  Azure.ResourceManager.CommonTypes.Versions.v5
303
367
  );
368
+ @@armCommonParameter(ApiVersionParameter.apiVersion,
369
+ "ApiVersionParameter",
370
+ Azure.ResourceManager.CommonTypes.Versions.v6
371
+ );
304
372
 
305
373
  @@resourceParameterBaseFor(ApiVersionParameter.apiVersion,
306
374
  [
@@ -325,6 +393,10 @@ namespace Azure.ResourceManager.CommonTypes;
325
393
  "SubscriptionIdParameter",
326
394
  Azure.ResourceManager.CommonTypes.Versions.v5
327
395
  );
396
+ @@armCommonParameter(SubscriptionIdParameter.subscriptionId,
397
+ "SubscriptionIdParameter",
398
+ Azure.ResourceManager.CommonTypes.Versions.v6
399
+ );
328
400
  @@resourceParameterBaseFor(SubscriptionIdParameter.subscriptionId,
329
401
  [ResourceHome.ResourceGroup, ResourceHome.Subscription, ResourceHome.Location]
330
402
  );
@@ -342,6 +414,10 @@ namespace Azure.ResourceManager.CommonTypes;
342
414
  "ResourceGroupNameParameter",
343
415
  Azure.ResourceManager.CommonTypes.Versions.v5
344
416
  );
417
+ @@armCommonParameter(ResourceGroupNameParameter.resourceGroupName,
418
+ "ResourceGroupNameParameter",
419
+ Azure.ResourceManager.CommonTypes.Versions.v6
420
+ );
345
421
  @@resourceParameterBaseFor(ResourceGroupNameParameter.resourceGroupName,
346
422
  [ResourceHome.ResourceGroup]
347
423
  );
@@ -359,6 +435,10 @@ namespace Azure.ResourceManager.CommonTypes;
359
435
  "ManagementGroupNameParameter",
360
436
  Azure.ResourceManager.CommonTypes.Versions.v5
361
437
  );
438
+ @@armCommonParameter(ManagementGroupNameParameter.managementGroupName,
439
+ "ManagementGroupNameParameter",
440
+ Azure.ResourceManager.CommonTypes.Versions.v6
441
+ );
362
442
 
363
443
  /** ScopeParameter */
364
444
  @@armCommonParameter(ScopeParameter.scope,
@@ -373,6 +453,10 @@ namespace Azure.ResourceManager.CommonTypes;
373
453
  "ScopeParameter",
374
454
  Azure.ResourceManager.CommonTypes.Versions.v5
375
455
  );
456
+ @@armCommonParameter(ScopeParameter.scope,
457
+ "ScopeParameter",
458
+ Azure.ResourceManager.CommonTypes.Versions.v6
459
+ );
376
460
 
377
461
  /** LocationResourceParameter */
378
462
  @@armCommonParameter(LocationResourceParameter.location,
@@ -387,6 +471,10 @@ namespace Azure.ResourceManager.CommonTypes;
387
471
  "LocationParameter",
388
472
  Azure.ResourceManager.CommonTypes.Versions.v5
389
473
  );
474
+ @@armCommonParameter(LocationResourceParameter.location,
475
+ "LocationParameter",
476
+ Azure.ResourceManager.CommonTypes.Versions.v6
477
+ );
390
478
 
391
479
  /**
392
480
  * The default operationId parameter type.
@@ -403,6 +491,10 @@ namespace Azure.ResourceManager.CommonTypes;
403
491
  "OperationIdParameter",
404
492
  Azure.ResourceManager.CommonTypes.Versions.v5
405
493
  );
494
+ @@armCommonParameter(OperationIdParameter.operationId,
495
+ "OperationIdParameter",
496
+ Azure.ResourceManager.CommonTypes.Versions.v6
497
+ );
406
498
 
407
499
  /**
408
500
  * TenantIdParameter
@@ -419,3 +511,7 @@ namespace Azure.ResourceManager.CommonTypes;
419
511
  "TenantIdParameter",
420
512
  Azure.ResourceManager.CommonTypes.Versions.v5
421
513
  );
514
+ @@armCommonParameter(TenantIdParameter.tenantId,
515
+ "TenantIdParameter",
516
+ Azure.ResourceManager.CommonTypes.Versions.v6
517
+ );
@@ -75,7 +75,9 @@ model ResourceModelWithAllowedPropertySet extends TrackedResource {
75
75
  * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. */
76
76
  eTag?: string;
77
77
 
78
- identity?: Identity;
78
+ @typeChangedFrom(Versions.v6, Identity)
79
+ identity?: ManagedServiceIdentity;
80
+
79
81
  sku?: Sku;
80
82
  plan?: Plan;
81
83
  }
@@ -334,13 +336,16 @@ union ResourceIdentityType {
334
336
  }
335
337
 
336
338
  /** Identity for the resource. */
339
+ @removed(Versions.v6)
337
340
  model Identity {
338
341
  /** The principal ID of resource identity. The value must be an UUID. */
342
+ @removed(Versions.v6)
339
343
  @typeChangedFrom(Versions.v4, string)
340
344
  @visibility("read")
341
345
  principalId?: uuid;
342
346
 
343
347
  /** The tenant ID of resource. The value must be an UUID. */
348
+ @removed(Versions.v6)
344
349
  @typeChangedFrom(Versions.v4, string)
345
350
  @visibility("read")
346
351
  tenantId?: uuid;
@@ -16,4 +16,7 @@ enum Versions {
16
16
 
17
17
  @doc("The Azure Resource Manager v5 common types.")
18
18
  v5,
19
+
20
+ @doc("The Azure Resource Manager v6 common types.")
21
+ v6,
19
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.49.0-dev.1",
3
+ "version": "0.49.0-dev.3",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",