Skip to content

Commit 6ecdf1b

Browse files
author
SDKAuto
committed
CodeGen from PR 12397 in Azure/azure-rest-api-specs
Merge 90a82eafbe267ed20107ee2bc8df4eebc6f086b0 into a57e89f8c3e1215201694cc0d6e9a51842573df0
1 parent 10d28e7 commit 6ecdf1b

File tree

5 files changed

+846
-88
lines changed

5 files changed

+846
-88
lines changed

schemas/2018-06-01-preview/Microsoft.ManagedServices.json

Lines changed: 64 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,21 @@
33
"$schema": "http://json-schema.org/draft-04/schema#",
44
"title": "Microsoft.ManagedServices",
55
"description": "Microsoft ManagedServices Resource Types",
6-
"resourceDefinitions": {
6+
"resourceDefinitions": {},
7+
"unknown_resourceDefinitions": {
78
"registrationAssignments": {
89
"type": "object",
910
"properties": {
10-
"name": {
11-
"type": "string",
12-
"description": "Guid of the registration assignment."
13-
},
14-
"type": {
15-
"type": "string",
16-
"enum": [
17-
"Microsoft.ManagedServices/registrationAssignments"
18-
]
19-
},
2011
"apiVersion": {
2112
"type": "string",
2213
"enum": [
2314
"2018-06-01-preview"
2415
]
2516
},
17+
"name": {
18+
"type": "string",
19+
"description": "Guid of the registration assignment."
20+
},
2621
"properties": {
2722
"oneOf": [
2823
{
@@ -33,63 +28,69 @@
3328
}
3429
],
3530
"description": "Properties of a registration assignment."
31+
},
32+
"type": {
33+
"type": "string",
34+
"enum": [
35+
"Microsoft.ManagedServices/registrationAssignments"
36+
]
3637
}
3738
},
3839
"required": [
39-
"name",
40-
"type",
4140
"apiVersion",
42-
"properties"
41+
"name",
42+
"properties",
43+
"type"
4344
],
4445
"description": "Microsoft.ManagedServices/registrationAssignments"
4546
},
4647
"registrationDefinitions": {
4748
"type": "object",
4849
"properties": {
49-
"name": {
50-
"type": "string",
51-
"description": "Guid of the registration definition."
52-
},
53-
"type": {
54-
"type": "string",
55-
"enum": [
56-
"Microsoft.ManagedServices/registrationDefinitions"
57-
]
58-
},
5950
"apiVersion": {
6051
"type": "string",
6152
"enum": [
6253
"2018-06-01-preview"
6354
]
6455
},
65-
"properties": {
56+
"name": {
57+
"type": "string",
58+
"description": "Guid of the registration definition."
59+
},
60+
"plan": {
6661
"oneOf": [
6762
{
68-
"$ref": "#/definitions/RegistrationDefinitionProperties"
63+
"$ref": "#/definitions/Plan"
6964
},
7065
{
7166
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
7267
}
7368
],
74-
"description": "Properties of a registration definition."
69+
"description": "Plan details for the managed services."
7570
},
76-
"plan": {
71+
"properties": {
7772
"oneOf": [
7873
{
79-
"$ref": "#/definitions/Plan"
74+
"$ref": "#/definitions/RegistrationDefinitionProperties"
8075
},
8176
{
8277
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
8378
}
8479
],
85-
"description": "Plan details for the managed services."
80+
"description": "Properties of a registration definition."
81+
},
82+
"type": {
83+
"type": "string",
84+
"enum": [
85+
"Microsoft.ManagedServices/registrationDefinitions"
86+
]
8687
}
8788
},
8889
"required": [
89-
"name",
90-
"type",
9190
"apiVersion",
92-
"properties"
91+
"name",
92+
"properties",
93+
"type"
9394
],
9495
"description": "Microsoft.ManagedServices/registrationDefinitions"
9596
}
@@ -98,10 +99,29 @@
9899
"Authorization": {
99100
"type": "object",
100101
"properties": {
102+
"delegatedRoleDefinitionIds": {
103+
"oneOf": [
104+
{
105+
"type": "array",
106+
"items": {
107+
"type": "string",
108+
"pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"
109+
}
110+
},
111+
{
112+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
113+
}
114+
],
115+
"description": "The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users."
116+
},
101117
"principalId": {
102118
"type": "string",
103119
"description": "Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription"
104120
},
121+
"principalIdDisplayName": {
122+
"type": "string",
123+
"description": "Display name of the principal Id."
124+
},
105125
"roleDefinitionId": {
106126
"type": "string",
107127
"description": "The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role."
@@ -120,23 +140,23 @@
120140
"type": "string",
121141
"description": "The plan name."
122142
},
123-
"publisher": {
124-
"type": "string",
125-
"description": "The publisher ID."
126-
},
127143
"product": {
128144
"type": "string",
129145
"description": "The product code."
130146
},
147+
"publisher": {
148+
"type": "string",
149+
"description": "The publisher ID."
150+
},
131151
"version": {
132152
"type": "string",
133153
"description": "The plan's version."
134154
}
135155
},
136156
"required": [
137157
"name",
138-
"publisher",
139158
"product",
159+
"publisher",
140160
"version"
141161
],
142162
"description": "Plan details for the managed services."
@@ -157,10 +177,6 @@
157177
"RegistrationDefinitionProperties": {
158178
"type": "object",
159179
"properties": {
160-
"description": {
161-
"type": "string",
162-
"description": "Description of the registration definition."
163-
},
164180
"authorizations": {
165181
"oneOf": [
166182
{
@@ -175,13 +191,17 @@
175191
],
176192
"description": "Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role."
177193
},
178-
"registrationDefinitionName": {
194+
"description": {
179195
"type": "string",
180-
"description": "Name of the registration definition."
196+
"description": "Description of the registration definition."
181197
},
182198
"managedByTenantId": {
183199
"type": "string",
184200
"description": "Id of the managedBy tenant."
201+
},
202+
"registrationDefinitionName": {
203+
"type": "string",
204+
"description": "Name of the registration definition."
185205
}
186206
},
187207
"required": [

0 commit comments

Comments
 (0)