Skip to content

Commit 65de1d1

Browse files
author
SDKAuto
committed
CodeGen from PR 21565 in Azure/azure-rest-api-specs
Merge 9d604aef48007ddf3b95bd27a95618f0ab193919 into be6cd9ccfcb6ba08c1c206627026eabfbff31fc1
1 parent 6269025 commit 65de1d1

File tree

2 files changed

+311
-0
lines changed

2 files changed

+311
-0
lines changed

schemas/2019-08-01/tenantDeploymentTemplate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@
667667
{
668668
"$ref": "https://schema.management.azure.com/schemas/2022-03-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
669669
},
670+
{
671+
"$ref": "https://schema.management.azure.com/schemas/2022-11-01/Microsoft.Capacity.json#/tenant_resourceDefinitions/reservationOrders"
672+
},
670673
{
671674
"$ref": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#/tenant_resourceDefinitions/cloudConnectors"
672675
},
Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,308 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-11-01/Microsoft.Capacity.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Capacity",
5+
"description": "Microsoft Capacity Resource Types",
6+
"resourceDefinitions": {},
7+
"tenant_resourceDefinitions": {
8+
"reservationOrders": {
9+
"type": "object",
10+
"properties": {
11+
"apiVersion": {
12+
"type": "string",
13+
"enum": [
14+
"2022-11-01"
15+
]
16+
},
17+
"location": {
18+
"oneOf": [
19+
{
20+
"type": "string",
21+
"enum": [
22+
"westus",
23+
"eastus",
24+
"eastus2",
25+
"northcentralus",
26+
"westus2",
27+
"southcentralus",
28+
"centralus",
29+
"westeurope",
30+
"northeurope",
31+
"eastasia",
32+
"southeastasia",
33+
"japaneast",
34+
"japanwest",
35+
"brazilsouth",
36+
"australiaeast",
37+
"australiasoutheast",
38+
"southindia",
39+
"westindia",
40+
"centralindia",
41+
"canadacentral",
42+
"canadaeast",
43+
"uksouth",
44+
"westcentralus",
45+
"ukwest"
46+
]
47+
},
48+
{
49+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
50+
}
51+
]
52+
},
53+
"name": {
54+
"type": "string",
55+
"description": "Order Id of the reservation"
56+
},
57+
"properties": {
58+
"oneOf": [
59+
{
60+
"$ref": "#/definitions/PurchaseRequestProperties"
61+
},
62+
{
63+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
64+
}
65+
]
66+
},
67+
"sku": {
68+
"oneOf": [
69+
{
70+
"$ref": "#/definitions/SkuName"
71+
},
72+
{
73+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
74+
}
75+
]
76+
},
77+
"type": {
78+
"type": "string",
79+
"enum": [
80+
"Microsoft.Capacity/reservationOrders"
81+
]
82+
}
83+
},
84+
"required": [
85+
"apiVersion",
86+
"name",
87+
"properties",
88+
"type"
89+
],
90+
"description": "Microsoft.Capacity/reservationOrders"
91+
}
92+
},
93+
"definitions": {
94+
"AppliedScopeProperties": {
95+
"type": "object",
96+
"properties": {
97+
"displayName": {
98+
"type": "string",
99+
"description": "Display name"
100+
},
101+
"managementGroupId": {
102+
"type": "string",
103+
"description": "Fully-qualified identifier of the management group where the benefit must be applied."
104+
},
105+
"resourceGroupId": {
106+
"type": "string",
107+
"description": "Fully-qualified identifier of the resource group."
108+
},
109+
"subscriptionId": {
110+
"type": "string",
111+
"description": "Fully-qualified identifier of the subscription."
112+
},
113+
"tenantId": {
114+
"type": "string",
115+
"description": "Tenant ID where the savings plan should apply benefit."
116+
}
117+
},
118+
"description": "Properties specific to applied scope type. Not required if not applicable."
119+
},
120+
"PurchaseRequestProperties": {
121+
"type": "object",
122+
"properties": {
123+
"appliedScopeProperties": {
124+
"oneOf": [
125+
{
126+
"$ref": "#/definitions/AppliedScopeProperties"
127+
},
128+
{
129+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
130+
}
131+
],
132+
"description": "Properties specific to applied scope type. Not required if not applicable."
133+
},
134+
"appliedScopes": {
135+
"oneOf": [
136+
{
137+
"type": "array",
138+
"items": {
139+
"type": "string"
140+
}
141+
},
142+
{
143+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
144+
}
145+
],
146+
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared."
147+
},
148+
"appliedScopeType": {
149+
"oneOf": [
150+
{
151+
"type": "string",
152+
"enum": [
153+
"Single",
154+
"Shared",
155+
"ManagementGroup"
156+
]
157+
},
158+
{
159+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
160+
}
161+
]
162+
},
163+
"billingPlan": {
164+
"oneOf": [
165+
{
166+
"type": "string",
167+
"enum": [
168+
"Upfront",
169+
"Monthly"
170+
]
171+
},
172+
{
173+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
174+
}
175+
]
176+
},
177+
"billingScopeId": {
178+
"type": "string",
179+
"description": "Subscription that will be charged for purchasing Reservation or Savings Plan"
180+
},
181+
"displayName": {
182+
"type": "string",
183+
"description": "Friendly name of the Reservation"
184+
},
185+
"quantity": {
186+
"oneOf": [
187+
{
188+
"type": "integer"
189+
},
190+
{
191+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
192+
}
193+
],
194+
"description": "Quantity of the SKUs that are part of the Reservation. Must be greater than zero."
195+
},
196+
"renew": {
197+
"oneOf": [
198+
{
199+
"type": "boolean",
200+
"default": false
201+
},
202+
{
203+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
204+
}
205+
],
206+
"description": "Setting this to true will automatically purchase a new reservation on the expiration date time."
207+
},
208+
"reservedResourceProperties": {
209+
"oneOf": [
210+
{
211+
"$ref": "#/definitions/PurchaseRequestPropertiesReservedResourceProperties"
212+
},
213+
{
214+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
215+
}
216+
],
217+
"description": "Properties specific to each reserved resource type. Not required if not applicable."
218+
},
219+
"reservedResourceType": {
220+
"oneOf": [
221+
{
222+
"type": "string",
223+
"enum": [
224+
"VirtualMachines",
225+
"SqlDatabases",
226+
"SuseLinux",
227+
"CosmosDb",
228+
"RedHat",
229+
"SqlDataWarehouse",
230+
"VMwareCloudSimple",
231+
"RedHatOsa",
232+
"Databricks",
233+
"AppService",
234+
"ManagedDisk",
235+
"BlockBlob",
236+
"RedisCache",
237+
"AzureDataExplorer",
238+
"MySql",
239+
"MariaDb",
240+
"PostgreSql",
241+
"DedicatedHost",
242+
"SapHana",
243+
"SqlAzureHybridBenefit",
244+
"AVS",
245+
"DataFactory",
246+
"NetAppStorage",
247+
"AzureFiles",
248+
"SqlEdge",
249+
"VirtualMachineSoftware"
250+
]
251+
},
252+
{
253+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
254+
}
255+
]
256+
},
257+
"reviewDateTime": {
258+
"type": "string",
259+
"format": "date-time",
260+
"description": "This is the date-time when the Azure Hybrid Benefit needs to be reviewed."
261+
},
262+
"term": {
263+
"oneOf": [
264+
{
265+
"type": "string",
266+
"enum": [
267+
"P1Y",
268+
"P3Y",
269+
"P5Y"
270+
]
271+
},
272+
{
273+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
274+
}
275+
]
276+
}
277+
}
278+
},
279+
"PurchaseRequestPropertiesReservedResourceProperties": {
280+
"type": "object",
281+
"properties": {
282+
"instanceFlexibility": {
283+
"oneOf": [
284+
{
285+
"type": "string",
286+
"enum": [
287+
"On",
288+
"Off"
289+
]
290+
},
291+
{
292+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
293+
}
294+
]
295+
}
296+
},
297+
"description": "Properties specific to each reserved resource type. Not required if not applicable."
298+
},
299+
"SkuName": {
300+
"type": "object",
301+
"properties": {
302+
"name": {
303+
"type": "string"
304+
}
305+
}
306+
}
307+
}
308+
}

0 commit comments

Comments
 (0)