Skip to content

Commit 536deaa

Browse files
author
SDKAuto
committed
CodeGen from PR 17377 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.AzureStackHCI to add version stable/2022-01-01 (#17377) * Adds base for updating Microsoft.AzureStackHCI from version stable/2021-09-01 to version 2022-01-01 * Updates readme * Updates API version in new specs and examples * remove readonly attribute * added example file * Format the files
1 parent 0796619 commit 536deaa

File tree

2 files changed

+394
-0
lines changed

2 files changed

+394
-0
lines changed
Lines changed: 385 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,385 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-01-01/Microsoft.AzureStackHCI.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.AzureStackHCI",
5+
"description": "Microsoft AzureStackHCI Resource Types",
6+
"resourceDefinitions": {
7+
"clusters": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2022-01-01"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The geo-location where the resource lives"
19+
},
20+
"name": {
21+
"type": "string",
22+
"description": "The name of the cluster."
23+
},
24+
"properties": {
25+
"oneOf": [
26+
{
27+
"$ref": "#/definitions/ClusterProperties"
28+
},
29+
{
30+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
31+
}
32+
],
33+
"description": "Cluster properties."
34+
},
35+
"resources": {
36+
"type": "array",
37+
"items": {
38+
"oneOf": [
39+
{
40+
"$ref": "#/definitions/clusters_arcSettings_childResource"
41+
}
42+
]
43+
}
44+
},
45+
"tags": {
46+
"oneOf": [
47+
{
48+
"type": "object",
49+
"additionalProperties": {
50+
"type": "string"
51+
},
52+
"properties": {}
53+
},
54+
{
55+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
56+
}
57+
],
58+
"description": "Resource tags."
59+
},
60+
"type": {
61+
"type": "string",
62+
"enum": [
63+
"Microsoft.AzureStackHCI/clusters"
64+
]
65+
}
66+
},
67+
"required": [
68+
"apiVersion",
69+
"location",
70+
"name",
71+
"properties",
72+
"type"
73+
],
74+
"description": "Microsoft.AzureStackHCI/clusters"
75+
},
76+
"clusters_arcSettings": {
77+
"type": "object",
78+
"properties": {
79+
"apiVersion": {
80+
"type": "string",
81+
"enum": [
82+
"2022-01-01"
83+
]
84+
},
85+
"name": {
86+
"type": "string",
87+
"description": "The name of the proxy resource holding details of HCI ArcSetting information."
88+
},
89+
"properties": {
90+
"oneOf": [
91+
{
92+
"$ref": "#/definitions/ArcSettingProperties"
93+
},
94+
{
95+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
96+
}
97+
],
98+
"description": "ArcSetting properties."
99+
},
100+
"resources": {
101+
"type": "array",
102+
"items": {
103+
"oneOf": [
104+
{
105+
"$ref": "#/definitions/clusters_arcSettings_extensions_childResource"
106+
}
107+
]
108+
}
109+
},
110+
"type": {
111+
"type": "string",
112+
"enum": [
113+
"Microsoft.AzureStackHCI/clusters/arcSettings"
114+
]
115+
}
116+
},
117+
"required": [
118+
"apiVersion",
119+
"name",
120+
"properties",
121+
"type"
122+
],
123+
"description": "Microsoft.AzureStackHCI/clusters/arcSettings"
124+
},
125+
"clusters_arcSettings_extensions": {
126+
"type": "object",
127+
"properties": {
128+
"apiVersion": {
129+
"type": "string",
130+
"enum": [
131+
"2022-01-01"
132+
]
133+
},
134+
"name": {
135+
"type": "string",
136+
"description": "The name of the machine extension."
137+
},
138+
"properties": {
139+
"oneOf": [
140+
{
141+
"$ref": "#/definitions/ExtensionProperties"
142+
},
143+
{
144+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
145+
}
146+
],
147+
"description": "Status of Arc Extension for a particular node in HCI Cluster."
148+
},
149+
"type": {
150+
"type": "string",
151+
"enum": [
152+
"Microsoft.AzureStackHCI/clusters/arcSettings/extensions"
153+
]
154+
}
155+
},
156+
"required": [
157+
"apiVersion",
158+
"name",
159+
"properties",
160+
"type"
161+
],
162+
"description": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions"
163+
}
164+
},
165+
"definitions": {
166+
"ArcSettingProperties": {
167+
"type": "object",
168+
"properties": {
169+
"arcInstanceResourceGroup": {
170+
"type": "string",
171+
"description": "The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources."
172+
}
173+
},
174+
"description": "ArcSetting properties."
175+
},
176+
"ClusterDesiredProperties": {
177+
"type": "object",
178+
"properties": {
179+
"diagnosticLevel": {
180+
"oneOf": [
181+
{
182+
"type": "string",
183+
"enum": [
184+
"Off",
185+
"Basic",
186+
"Enhanced"
187+
]
188+
},
189+
{
190+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
191+
}
192+
],
193+
"description": "Desired level of diagnostic data emitted by the cluster."
194+
},
195+
"windowsServerSubscription": {
196+
"oneOf": [
197+
{
198+
"type": "string",
199+
"enum": [
200+
"Disabled",
201+
"Enabled"
202+
]
203+
},
204+
{
205+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
206+
}
207+
],
208+
"description": "Desired state of Windows Server Subscription."
209+
}
210+
},
211+
"description": "Desired properties of the cluster."
212+
},
213+
"ClusterProperties": {
214+
"type": "object",
215+
"properties": {
216+
"aadClientId": {
217+
"type": "string",
218+
"description": "App id of cluster AAD identity."
219+
},
220+
"aadTenantId": {
221+
"type": "string",
222+
"description": "Tenant id of cluster AAD identity."
223+
},
224+
"cloudManagementEndpoint": {
225+
"type": "string",
226+
"description": "Endpoint configured for management from the Azure portal."
227+
},
228+
"desiredProperties": {
229+
"oneOf": [
230+
{
231+
"$ref": "#/definitions/ClusterDesiredProperties"
232+
},
233+
{
234+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
235+
}
236+
],
237+
"description": "Desired properties of the cluster."
238+
}
239+
},
240+
"required": [
241+
"aadClientId",
242+
"aadTenantId"
243+
],
244+
"description": "Cluster properties."
245+
},
246+
"clusters_arcSettings_childResource": {
247+
"type": "object",
248+
"properties": {
249+
"apiVersion": {
250+
"type": "string",
251+
"enum": [
252+
"2022-01-01"
253+
]
254+
},
255+
"name": {
256+
"type": "string",
257+
"description": "The name of the proxy resource holding details of HCI ArcSetting information."
258+
},
259+
"properties": {
260+
"oneOf": [
261+
{
262+
"$ref": "#/definitions/ArcSettingProperties"
263+
},
264+
{
265+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
266+
}
267+
],
268+
"description": "ArcSetting properties."
269+
},
270+
"type": {
271+
"type": "string",
272+
"enum": [
273+
"arcSettings"
274+
]
275+
}
276+
},
277+
"required": [
278+
"apiVersion",
279+
"name",
280+
"properties",
281+
"type"
282+
],
283+
"description": "Microsoft.AzureStackHCI/clusters/arcSettings"
284+
},
285+
"clusters_arcSettings_extensions_childResource": {
286+
"type": "object",
287+
"properties": {
288+
"apiVersion": {
289+
"type": "string",
290+
"enum": [
291+
"2022-01-01"
292+
]
293+
},
294+
"name": {
295+
"type": "string",
296+
"description": "The name of the machine extension."
297+
},
298+
"properties": {
299+
"oneOf": [
300+
{
301+
"$ref": "#/definitions/ExtensionProperties"
302+
},
303+
{
304+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
305+
}
306+
],
307+
"description": "Status of Arc Extension for a particular node in HCI Cluster."
308+
},
309+
"type": {
310+
"type": "string",
311+
"enum": [
312+
"extensions"
313+
]
314+
}
315+
},
316+
"required": [
317+
"apiVersion",
318+
"name",
319+
"properties",
320+
"type"
321+
],
322+
"description": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions"
323+
},
324+
"ExtensionParameters": {
325+
"type": "object",
326+
"properties": {
327+
"autoUpgradeMinorVersion": {
328+
"oneOf": [
329+
{
330+
"type": "boolean"
331+
},
332+
{
333+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
334+
}
335+
],
336+
"description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true."
337+
},
338+
"forceUpdateTag": {
339+
"type": "string",
340+
"description": "How the extension handler should be forced to update even if the extension configuration has not changed."
341+
},
342+
"protectedSettings": {
343+
"type": "object",
344+
"properties": {},
345+
"description": "Protected settings (may contain secrets)."
346+
},
347+
"publisher": {
348+
"type": "string",
349+
"description": "The name of the extension handler publisher."
350+
},
351+
"settings": {
352+
"type": "object",
353+
"properties": {},
354+
"description": "Json formatted public settings for the extension."
355+
},
356+
"type": {
357+
"type": "string",
358+
"description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"."
359+
},
360+
"typeHandlerVersion": {
361+
"type": "string",
362+
"description": "Specifies the version of the script handler."
363+
}
364+
},
365+
"description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute."
366+
},
367+
"ExtensionProperties": {
368+
"type": "object",
369+
"properties": {
370+
"extensionParameters": {
371+
"oneOf": [
372+
{
373+
"$ref": "#/definitions/ExtensionParameters"
374+
},
375+
{
376+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
377+
}
378+
],
379+
"description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute."
380+
}
381+
},
382+
"description": "Status of Arc Extension for a particular node in HCI Cluster."
383+
}
384+
}
385+
}

0 commit comments

Comments
 (0)