Skip to content

Commit b4d11a9

Browse files
author
SDKAuto
committed
CodeGen from PR 15253 in Azure/azure-rest-api-specs
Merge 13aac0e362358da557a3f719344ce3eb020a4bc4 into b020247789ba2ab0065ebbcfa69050ce729493b8
1 parent 03a5d86 commit b4d11a9

File tree

7 files changed

+1117
-3
lines changed

7 files changed

+1117
-3
lines changed
Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2017-04-01/Microsoft.Authorization.Resources.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Authorization",
5+
"description": "Microsoft Authorization Resource Types",
6+
"resourceDefinitions": {
7+
"locks": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2017-04-01"
14+
]
15+
},
16+
"name": {
17+
"type": "string",
18+
"description": "The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters."
19+
},
20+
"properties": {
21+
"oneOf": [
22+
{
23+
"$ref": "#/definitions/ManagementLockProperties"
24+
},
25+
{
26+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
27+
}
28+
],
29+
"description": "The lock properties."
30+
},
31+
"type": {
32+
"type": "string",
33+
"enum": [
34+
"Microsoft.Authorization/locks"
35+
]
36+
}
37+
},
38+
"required": [
39+
"apiVersion",
40+
"name",
41+
"properties",
42+
"type"
43+
],
44+
"description": "Microsoft.Authorization/locks"
45+
}
46+
},
47+
"subscription_resourceDefinitions": {
48+
"locks": {
49+
"type": "object",
50+
"properties": {
51+
"apiVersion": {
52+
"type": "string",
53+
"enum": [
54+
"2017-04-01"
55+
]
56+
},
57+
"name": {
58+
"type": "string",
59+
"description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters."
60+
},
61+
"properties": {
62+
"oneOf": [
63+
{
64+
"$ref": "#/definitions/ManagementLockProperties"
65+
},
66+
{
67+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
68+
}
69+
],
70+
"description": "The lock properties."
71+
},
72+
"type": {
73+
"type": "string",
74+
"enum": [
75+
"Microsoft.Authorization/locks"
76+
]
77+
}
78+
},
79+
"required": [
80+
"apiVersion",
81+
"name",
82+
"properties",
83+
"type"
84+
],
85+
"description": "Microsoft.Authorization/locks"
86+
}
87+
},
88+
"extension_resourceDefinitions": {
89+
"locks": {
90+
"type": "object",
91+
"properties": {
92+
"apiVersion": {
93+
"type": "string",
94+
"enum": [
95+
"2017-04-01"
96+
]
97+
},
98+
"name": {
99+
"type": "string",
100+
"description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters."
101+
},
102+
"properties": {
103+
"oneOf": [
104+
{
105+
"$ref": "#/definitions/ManagementLockProperties"
106+
},
107+
{
108+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
109+
}
110+
],
111+
"description": "The lock properties."
112+
},
113+
"type": {
114+
"type": "string",
115+
"enum": [
116+
"Microsoft.Authorization/locks"
117+
]
118+
}
119+
},
120+
"required": [
121+
"apiVersion",
122+
"name",
123+
"properties",
124+
"type"
125+
],
126+
"description": "Microsoft.Authorization/locks"
127+
}
128+
},
129+
"unknown_resourceDefinitions": {
130+
"locks": {
131+
"type": "object",
132+
"properties": {
133+
"apiVersion": {
134+
"type": "string",
135+
"enum": [
136+
"2017-04-01"
137+
]
138+
},
139+
"name": {
140+
"type": "string",
141+
"description": "The name of lock."
142+
},
143+
"properties": {
144+
"oneOf": [
145+
{
146+
"$ref": "#/definitions/ManagementLockProperties"
147+
},
148+
{
149+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
150+
}
151+
],
152+
"description": "The lock properties."
153+
},
154+
"type": {
155+
"type": "string",
156+
"enum": [
157+
"Microsoft.Authorization/locks"
158+
]
159+
}
160+
},
161+
"required": [
162+
"apiVersion",
163+
"name",
164+
"properties",
165+
"type"
166+
],
167+
"description": "Microsoft.Authorization/locks"
168+
}
169+
},
170+
"definitions": {
171+
"ManagementLockOwner": {
172+
"type": "object",
173+
"properties": {
174+
"applicationId": {
175+
"type": "string",
176+
"description": "The application ID of the lock owner."
177+
}
178+
},
179+
"description": "Lock owner properties."
180+
},
181+
"ManagementLockProperties": {
182+
"type": "object",
183+
"properties": {
184+
"level": {
185+
"oneOf": [
186+
{
187+
"type": "string",
188+
"enum": [
189+
"NotSpecified",
190+
"CanNotDelete",
191+
"ReadOnly"
192+
]
193+
},
194+
{
195+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
196+
}
197+
],
198+
"description": "The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it."
199+
},
200+
"notes": {
201+
"type": "string",
202+
"description": "Notes about the lock. Maximum of 512 characters."
203+
},
204+
"owners": {
205+
"oneOf": [
206+
{
207+
"type": "array",
208+
"items": {
209+
"$ref": "#/definitions/ManagementLockOwner"
210+
}
211+
},
212+
{
213+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
214+
}
215+
],
216+
"description": "The owners of the lock."
217+
}
218+
},
219+
"required": [
220+
"level"
221+
],
222+
"description": "The lock properties."
223+
}
224+
}
225+
}

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@
602602
{
603603
"$ref": "https://schema.management.azure.com/schemas/2016-12-01/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyAssignments"
604604
},
605+
{
606+
"$ref": "https://schema.management.azure.com/schemas/2017-04-01/Microsoft.Authorization.Resources.json#/subscription_resourceDefinitions/locks"
607+
},
605608
{
606609
"$ref": "https://schema.management.azure.com/schemas/2017-06-01-preview/Microsoft.Authorization.Resources.json#/subscription_resourceDefinitions/policySetDefinitions"
607610
},
@@ -662,6 +665,9 @@
662665
{
663666
"$ref": "https://schema.management.azure.com/schemas/2020-03-01/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyAssignments"
664667
},
668+
{
669+
"$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Authorization.Resources.json#/subscription_resourceDefinitions/locks"
670+
},
665671
{
666672
"$ref": "https://schema.management.azure.com/schemas/2020-07-01-preview/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyExemptions"
667673
},
@@ -674,6 +680,15 @@
674680
{
675681
"$ref": "https://schema.management.azure.com/schemas/2020-09-01/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyAssignments"
676682
},
683+
{
684+
"$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Authorization.Resources.json#/subscription_resourceDefinitions/policyDefinitions"
685+
},
686+
{
687+
"$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Authorization.Resources.json#/subscription_resourceDefinitions/policySetDefinitions"
688+
},
689+
{
690+
"$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyAssignments"
691+
},
677692
{
678693
"$ref": "https://schema.management.azure.com/schemas/2018-11-01-preview/Microsoft.Billing.json#/subscription_resourceDefinitions/billingAccounts_lineOfCredit"
679694
},

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,15 @@
632632
{
633633
"$ref": "https://schema.management.azure.com/schemas/2020-09-01/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyAssignments"
634634
},
635+
{
636+
"$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Authorization.Resources.json#/managementGroup_resourceDefinitions/policyDefinitions"
637+
},
638+
{
639+
"$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Authorization.Resources.json#/managementGroup_resourceDefinitions/policySetDefinitions"
640+
},
641+
{
642+
"$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Authorization.Resources.json#/unknown_resourceDefinitions/policyAssignments"
643+
},
635644
{
636645
"$ref": "https://schema.management.azure.com/schemas/2017-11-11-preview/Microsoft.Blueprint.json#/managementGroup_resourceDefinitions/blueprints"
637646
},

0 commit comments

Comments
 (0)