Skip to content

Commit 6b45ace

Browse files
author
SDK Automation
committed
Generated from 933576132c8641d736d6473f7f4a6a8f0fe38296
1 parent dd394a2 commit 6b45ace

22 files changed

+6395
-736
lines changed
Lines changed: 125 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,157 @@
11
{
2-
"id": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Authorization.json",
2+
"id": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Authorization.json#",
33
"$schema": "http://json-schema.org/draft-04/schema#",
44
"title": "Microsoft.Authorization",
5-
"description": "Microsoft Microsoft.Authorization Resource Types",
5+
"description": "Microsoft Authorization Resource Types",
66
"resourceDefinitions": {
77
"locks": {
88
"type": "object",
99
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2015-01-01"
14+
]
15+
},
16+
"name": {
17+
"type": "string",
18+
"description": "The lock name."
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 management lock properties."
30+
},
1031
"type": {
32+
"type": "string",
1133
"enum": [
1234
"Microsoft.Authorization/locks"
1335
]
14-
},
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": {
1551
"apiVersion": {
52+
"type": "string",
1653
"enum": [
1754
"2015-01-01"
1855
]
1956
},
2057
"name": {
2158
"type": "string",
22-
"minLength": 1,
23-
"maxLength": 64,
24-
"description": "Name of the lock"
25-
},
26-
"dependsOn": {
27-
"type": "array",
28-
"items": {
29-
"type": "string"
30-
},
31-
"description": "Collection of resources this resource depends on"
59+
"description": "The name of lock."
3260
},
3361
"properties": {
34-
"type": "object",
35-
"properties": {
36-
"level": {
37-
"oneOf": [
38-
{
39-
"enum": [
40-
"CannotDelete",
41-
"ReadOnly"
42-
]
43-
},
44-
{ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" }
45-
]
46-
,
47-
"description": "Microsoft.Authorization/locks: level - specifies the type of lock to apply to the scope. CanNotDelete allows modification but prevents deletion, ReadOnly prevents modification or deletion."
62+
"oneOf": [
63+
{
64+
"$ref": "#/definitions/ManagementLockProperties"
4865
},
49-
"notes": {
50-
"type": "string",
51-
"minLength": 1,
52-
"maxLength": 512,
53-
"description": "Microsoft.Authorization/locks: notes - user defined notes for the lock"
66+
{
67+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
5468
}
55-
},
56-
"required": [
57-
"level"
69+
],
70+
"description": "The management lock properties."
71+
},
72+
"type": {
73+
"type": "string",
74+
"enum": [
75+
"Microsoft.Authorization/locks"
5876
]
5977
}
6078
},
6179
"required": [
80+
"apiVersion",
6281
"name",
63-
"type",
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+
"2015-01-01"
96+
]
97+
},
98+
"name": {
99+
"type": "string",
100+
"description": "The name of lock."
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 management lock properties."
112+
},
113+
"type": {
114+
"type": "string",
115+
"enum": [
116+
"Microsoft.Authorization/locks"
117+
]
118+
}
119+
},
120+
"required": [
64121
"apiVersion",
65-
"properties"
122+
"name",
123+
"properties",
124+
"type"
66125
],
67-
"description": "Microsoft.Authorization/locks resource"
126+
"description": "Microsoft.Authorization/locks"
127+
}
128+
},
129+
"definitions": {
130+
"ManagementLockProperties": {
131+
"type": "object",
132+
"properties": {
133+
"level": {
134+
"oneOf": [
135+
{
136+
"type": "string",
137+
"enum": [
138+
"NotSpecified",
139+
"CanNotDelete",
140+
"ReadOnly"
141+
]
142+
},
143+
{
144+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
145+
}
146+
],
147+
"description": "The lock level of the management lock."
148+
},
149+
"notes": {
150+
"type": "string",
151+
"description": "The notes of the management lock."
152+
}
153+
},
154+
"description": "The management lock properties."
68155
}
69156
}
70157
}
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2015-10-01-preview/Microsoft.Authorization.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Authorization",
5+
"description": "Microsoft Authorization Resource Types",
6+
"resourceDefinitions": {},
7+
"subscription_resourceDefinitions": {
8+
"policydefinitions": {
9+
"type": "object",
10+
"properties": {
11+
"apiVersion": {
12+
"type": "string",
13+
"enum": [
14+
"2015-10-01-preview"
15+
]
16+
},
17+
"name": {
18+
"type": "string",
19+
"description": "The name of the policy definition to create."
20+
},
21+
"properties": {
22+
"oneOf": [
23+
{
24+
"$ref": "#/definitions/PolicyDefinitionProperties"
25+
},
26+
{
27+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+
}
29+
],
30+
"description": "The policy definition properties."
31+
},
32+
"type": {
33+
"type": "string",
34+
"enum": [
35+
"Microsoft.Authorization/policydefinitions"
36+
]
37+
}
38+
},
39+
"required": [
40+
"apiVersion",
41+
"name",
42+
"properties",
43+
"type"
44+
],
45+
"description": "Microsoft.Authorization/policydefinitions"
46+
}
47+
},
48+
"unknown_resourceDefinitions": {
49+
"policyassignments": {
50+
"type": "object",
51+
"properties": {
52+
"apiVersion": {
53+
"type": "string",
54+
"enum": [
55+
"2015-10-01-preview"
56+
]
57+
},
58+
"id": {
59+
"type": "string",
60+
"description": "The ID of the policy assignment."
61+
},
62+
"name": {
63+
"type": "string",
64+
"description": "The name of the policy assignment."
65+
},
66+
"properties": {
67+
"oneOf": [
68+
{
69+
"$ref": "#/definitions/PolicyAssignmentProperties"
70+
},
71+
{
72+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
73+
}
74+
],
75+
"description": "The policy assignment properties."
76+
},
77+
"type": {
78+
"type": "string",
79+
"enum": [
80+
"Microsoft.Authorization/policyassignments"
81+
]
82+
}
83+
},
84+
"required": [
85+
"apiVersion",
86+
"name",
87+
"properties",
88+
"type"
89+
],
90+
"description": "Microsoft.Authorization/policyassignments"
91+
}
92+
},
93+
"definitions": {
94+
"PolicyAssignmentProperties": {
95+
"type": "object",
96+
"properties": {
97+
"displayName": {
98+
"type": "string",
99+
"description": "The display name of the policy assignment."
100+
},
101+
"policyDefinitionId": {
102+
"type": "string",
103+
"description": "The ID of the policy definition."
104+
},
105+
"scope": {
106+
"type": "string",
107+
"description": "The scope for the policy assignment."
108+
}
109+
},
110+
"description": "The policy assignment properties."
111+
},
112+
"PolicyDefinitionProperties": {
113+
"type": "object",
114+
"properties": {
115+
"description": {
116+
"type": "string",
117+
"description": "The policy definition description."
118+
},
119+
"displayName": {
120+
"type": "string",
121+
"description": "The display name of the policy definition."
122+
},
123+
"policyRule": {
124+
"type": "object",
125+
"properties": {},
126+
"description": "The policy rule."
127+
},
128+
"policyType": {
129+
"oneOf": [
130+
{
131+
"type": "string",
132+
"enum": [
133+
"NotSpecified",
134+
"BuiltIn",
135+
"Custom"
136+
]
137+
},
138+
{
139+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
140+
}
141+
],
142+
"description": "The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom."
143+
}
144+
},
145+
"description": "The policy definition properties."
146+
}
147+
}
148+
}

0 commit comments

Comments
 (0)