Skip to content

Commit 79abb77

Browse files
author
SDKAuto
committed
CodeGen from PR 18797 in Azure/azure-rest-api-specs
Fix typo in Microsoft.Resources/changes swagger (#18797)
1 parent 3cf49b0 commit 79abb77

File tree

3 files changed

+373
-0
lines changed

3 files changed

+373
-0
lines changed

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,9 @@
12351235
{
12361236
"$ref": "https://schema.management.azure.com/schemas/2021-05-01/Microsoft.Resources.json#/subscription_resourceDefinitions/resourceGroups"
12371237
},
1238+
{
1239+
"$ref": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#/subscription_resourceDefinitions/resourceGroups"
1240+
},
12381241
{
12391242
"$ref": "https://schema.management.azure.com/schemas/2015-06-01-preview/Microsoft.Security.json#/subscription_resourceDefinitions/locations_applicationWhitelistings"
12401243
},
Lines changed: 364 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,364 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Resources",
5+
"description": "Microsoft Resources Resource Types",
6+
"resourceDefinitions": {
7+
"templateSpecs": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2022-02-01"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations."
19+
},
20+
"name": {
21+
"oneOf": [
22+
{
23+
"type": "string",
24+
"pattern": "^[-\\w\\._\\(\\)]+$",
25+
"minLength": 1,
26+
"maxLength": 90
27+
},
28+
{
29+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
30+
}
31+
],
32+
"description": "Name of the Template Spec."
33+
},
34+
"properties": {
35+
"oneOf": [
36+
{
37+
"$ref": "#/definitions/TemplateSpecProperties"
38+
},
39+
{
40+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
41+
}
42+
],
43+
"description": "Template Spec properties."
44+
},
45+
"resources": {
46+
"type": "array",
47+
"items": {
48+
"oneOf": [
49+
{
50+
"$ref": "#/definitions/templateSpecs_versions_childResource"
51+
}
52+
]
53+
}
54+
},
55+
"tags": {
56+
"oneOf": [
57+
{
58+
"type": "object",
59+
"additionalProperties": {
60+
"type": "string"
61+
},
62+
"properties": {}
63+
},
64+
{
65+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
66+
}
67+
],
68+
"description": "Resource tags."
69+
},
70+
"type": {
71+
"type": "string",
72+
"enum": [
73+
"Microsoft.Resources/templateSpecs"
74+
]
75+
}
76+
},
77+
"required": [
78+
"apiVersion",
79+
"location",
80+
"name",
81+
"properties",
82+
"type"
83+
],
84+
"description": "Microsoft.Resources/templateSpecs"
85+
},
86+
"templateSpecs_versions": {
87+
"type": "object",
88+
"properties": {
89+
"apiVersion": {
90+
"type": "string",
91+
"enum": [
92+
"2022-02-01"
93+
]
94+
},
95+
"location": {
96+
"type": "string",
97+
"description": "The location of the Template Spec Version. It must match the location of the parent Template Spec."
98+
},
99+
"name": {
100+
"oneOf": [
101+
{
102+
"type": "string",
103+
"pattern": "^[-\\w\\._\\(\\)]+$",
104+
"minLength": 1,
105+
"maxLength": 90
106+
},
107+
{
108+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
109+
}
110+
],
111+
"description": "The version of the Template Spec."
112+
},
113+
"properties": {
114+
"oneOf": [
115+
{
116+
"$ref": "#/definitions/TemplateSpecVersionProperties"
117+
},
118+
{
119+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
120+
}
121+
],
122+
"description": "Template Spec Version properties."
123+
},
124+
"tags": {
125+
"oneOf": [
126+
{
127+
"type": "object",
128+
"additionalProperties": {
129+
"type": "string"
130+
},
131+
"properties": {}
132+
},
133+
{
134+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
135+
}
136+
],
137+
"description": "Resource tags."
138+
},
139+
"type": {
140+
"type": "string",
141+
"enum": [
142+
"Microsoft.Resources/templateSpecs/versions"
143+
]
144+
}
145+
},
146+
"required": [
147+
"apiVersion",
148+
"location",
149+
"name",
150+
"properties",
151+
"type"
152+
],
153+
"description": "Microsoft.Resources/templateSpecs/versions"
154+
}
155+
},
156+
"definitions": {
157+
"LinkedTemplateArtifact": {
158+
"type": "object",
159+
"properties": {
160+
"path": {
161+
"type": "string",
162+
"description": "A filesystem safe relative path of the artifact."
163+
},
164+
"template": {
165+
"type": "object",
166+
"properties": {},
167+
"description": "The Azure Resource Manager template."
168+
}
169+
},
170+
"required": [
171+
"path",
172+
"template"
173+
],
174+
"description": "Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template."
175+
},
176+
"TemplateSpecProperties": {
177+
"type": "object",
178+
"properties": {
179+
"description": {
180+
"type": "string",
181+
"maxLength": 4096,
182+
"description": "Template Spec description."
183+
},
184+
"displayName": {
185+
"type": "string",
186+
"maxLength": 64,
187+
"description": "Template Spec display name."
188+
},
189+
"metadata": {
190+
"type": "object",
191+
"properties": {},
192+
"description": "The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs."
193+
}
194+
},
195+
"description": "Template Spec properties."
196+
},
197+
"templateSpecs_versions_childResource": {
198+
"type": "object",
199+
"properties": {
200+
"apiVersion": {
201+
"type": "string",
202+
"enum": [
203+
"2022-02-01"
204+
]
205+
},
206+
"location": {
207+
"type": "string",
208+
"description": "The location of the Template Spec Version. It must match the location of the parent Template Spec."
209+
},
210+
"name": {
211+
"oneOf": [
212+
{
213+
"type": "string",
214+
"pattern": "^[-\\w\\._\\(\\)]+$",
215+
"minLength": 1,
216+
"maxLength": 90
217+
},
218+
{
219+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
220+
}
221+
],
222+
"description": "The version of the Template Spec."
223+
},
224+
"properties": {
225+
"oneOf": [
226+
{
227+
"$ref": "#/definitions/TemplateSpecVersionProperties"
228+
},
229+
{
230+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
231+
}
232+
],
233+
"description": "Template Spec Version properties."
234+
},
235+
"tags": {
236+
"oneOf": [
237+
{
238+
"type": "object",
239+
"additionalProperties": {
240+
"type": "string"
241+
},
242+
"properties": {}
243+
},
244+
{
245+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
246+
}
247+
],
248+
"description": "Resource tags."
249+
},
250+
"type": {
251+
"type": "string",
252+
"enum": [
253+
"versions"
254+
]
255+
}
256+
},
257+
"required": [
258+
"apiVersion",
259+
"location",
260+
"name",
261+
"properties",
262+
"type"
263+
],
264+
"description": "Microsoft.Resources/templateSpecs/versions"
265+
},
266+
"TemplateSpecVersionProperties": {
267+
"type": "object",
268+
"properties": {
269+
"description": {
270+
"type": "string",
271+
"maxLength": 4096,
272+
"description": "Template Spec version description."
273+
},
274+
"linkedTemplates": {
275+
"oneOf": [
276+
{
277+
"type": "array",
278+
"items": {
279+
"$ref": "#/definitions/LinkedTemplateArtifact"
280+
}
281+
},
282+
{
283+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
284+
}
285+
],
286+
"description": "An array of linked template artifacts."
287+
},
288+
"mainTemplate": {
289+
"type": "object",
290+
"properties": {},
291+
"description": "The main Azure Resource Manager template content."
292+
},
293+
"metadata": {
294+
"type": "object",
295+
"properties": {},
296+
"description": "The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs."
297+
},
298+
"uiFormDefinition": {
299+
"type": "object",
300+
"properties": {},
301+
"description": "The Azure Resource Manager template UI definition content."
302+
}
303+
},
304+
"description": "Template Spec Version properties."
305+
}
306+
},
307+
"subscription_resourceDefinitions": {
308+
"resourceGroups": {
309+
"type": "object",
310+
"properties": {
311+
"name": {
312+
"oneOf": [
313+
{
314+
"type": "string",
315+
"pattern": "^[-\\w\\._\\(\\)]+$",
316+
"maxLength": 90,
317+
"description": "the resource group name"
318+
},
319+
{
320+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
321+
}
322+
]
323+
},
324+
"type": {
325+
"type": "string",
326+
"enum": [
327+
"Microsoft.Resources/resourceGroups"
328+
]
329+
},
330+
"apiVersion": {
331+
"type": "string",
332+
"enum": [
333+
"2022-02-01"
334+
]
335+
},
336+
"location": {
337+
"type": "string",
338+
"description": "the resource group location"
339+
},
340+
"tags": {
341+
"oneOf": [
342+
{
343+
"type": "object",
344+
"additionalProperties": {
345+
"type": "string"
346+
}
347+
},
348+
{
349+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
350+
}
351+
],
352+
"description": "The resource group tags."
353+
}
354+
},
355+
"required": [
356+
"name",
357+
"type",
358+
"apiVersion",
359+
"location"
360+
],
361+
"description": "Microsoft.Resources/resourceGroups"
362+
}
363+
}
364+
}

schemas/common/autogeneratedResources.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12571,6 +12571,12 @@
1257112571
{
1257212572
"$ref": "https://schema.management.azure.com/schemas/2021-05-01/Microsoft.Resources.json#/resourceDefinitions/templateSpecs_versions"
1257312573
},
12574+
{
12575+
"$ref": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#/resourceDefinitions/templateSpecs"
12576+
},
12577+
{
12578+
"$ref": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#/resourceDefinitions/templateSpecs_versions"
12579+
},
1257412580
{
1257512581
"$ref": "https://schema.management.azure.com/schemas/2014-08-01-preview/Microsoft.Scheduler.json#/resourceDefinitions/jobCollections"
1257612582
},

0 commit comments

Comments
 (0)