Skip to content

Commit 54de0bd

Browse files
author
SDKAuto
committed
CodeGen from PR 21565 in Azure/azure-rest-api-specs
Merge 75bd6d3106060937fcfb917f9569d5b9ada12ad2 into b9f54e34813eb04f86d8868a55de795699e6ada5
1 parent 6269025 commit 54de0bd

File tree

2 files changed

+236
-0
lines changed

2 files changed

+236
-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: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
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+
"type": "string",
19+
"description": "The Azure Region where the reserved resource lives."
20+
},
21+
"name": {
22+
"type": "string",
23+
"description": "Order Id of the reservation"
24+
},
25+
"properties": {
26+
"oneOf": [
27+
{
28+
"$ref": "#/definitions/PurchaseRequestProperties"
29+
},
30+
{
31+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
32+
}
33+
]
34+
},
35+
"sku": {
36+
"oneOf": [
37+
{
38+
"$ref": "#/definitions/SkuName"
39+
},
40+
{
41+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
42+
}
43+
]
44+
},
45+
"type": {
46+
"type": "string",
47+
"enum": [
48+
"Microsoft.Capacity/reservationOrders"
49+
]
50+
}
51+
},
52+
"required": [
53+
"apiVersion",
54+
"name",
55+
"properties",
56+
"type"
57+
],
58+
"description": "Microsoft.Capacity/reservationOrders"
59+
}
60+
},
61+
"definitions": {
62+
"PurchaseRequestProperties": {
63+
"type": "object",
64+
"properties": {
65+
"appliedScopes": {
66+
"oneOf": [
67+
{
68+
"type": "array",
69+
"items": {
70+
"type": "string"
71+
}
72+
},
73+
{
74+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
75+
}
76+
],
77+
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared."
78+
},
79+
"appliedScopeType": {
80+
"oneOf": [
81+
{
82+
"type": "string",
83+
"enum": [
84+
"Single",
85+
"Shared"
86+
]
87+
},
88+
{
89+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
90+
}
91+
]
92+
},
93+
"billingPlan": {
94+
"oneOf": [
95+
{
96+
"type": "string",
97+
"enum": [
98+
"Upfront",
99+
"Monthly"
100+
]
101+
},
102+
{
103+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
104+
}
105+
]
106+
},
107+
"billingScopeId": {
108+
"type": "string",
109+
"description": "Subscription that will be charged for purchasing Reservation"
110+
},
111+
"displayName": {
112+
"type": "string",
113+
"description": "Friendly name of the Reservation"
114+
},
115+
"quantity": {
116+
"oneOf": [
117+
{
118+
"type": "integer"
119+
},
120+
{
121+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
122+
}
123+
],
124+
"description": "Quantity of the SKUs that are part of the Reservation. Must be greater than zero."
125+
},
126+
"renew": {
127+
"oneOf": [
128+
{
129+
"type": "boolean",
130+
"default": false
131+
},
132+
{
133+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
134+
}
135+
],
136+
"description": "Setting this to true will automatically purchase a new reservation on the expiration date time."
137+
},
138+
"reservedResourceProperties": {
139+
"oneOf": [
140+
{
141+
"$ref": "#/definitions/PurchaseRequestPropertiesReservedResourceProperties"
142+
},
143+
{
144+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
145+
}
146+
],
147+
"description": "Properties specific to each reserved resource type. Not required if not applicable."
148+
},
149+
"reservedResourceType": {
150+
"oneOf": [
151+
{
152+
"type": "string",
153+
"enum": [
154+
"VirtualMachines",
155+
"SqlDatabases",
156+
"SuseLinux",
157+
"CosmosDb",
158+
"RedHat",
159+
"SqlDataWarehouse",
160+
"VMwareCloudSimple",
161+
"RedHatOsa",
162+
"Databricks",
163+
"AppService",
164+
"ManagedDisk",
165+
"BlockBlob",
166+
"RedisCache",
167+
"AzureDataExplorer",
168+
"MySql",
169+
"MariaDb",
170+
"PostgreSql",
171+
"DedicatedHost",
172+
"SapHana",
173+
"SqlAzureHybridBenefit",
174+
"AVS",
175+
"DataFactory",
176+
"NetAppStorage",
177+
"AzureFiles",
178+
"SqlEdge",
179+
"VirtualMachineSoftware"
180+
]
181+
},
182+
{
183+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
184+
}
185+
]
186+
},
187+
"term": {
188+
"oneOf": [
189+
{
190+
"type": "string",
191+
"enum": [
192+
"P1Y",
193+
"P3Y",
194+
"P5Y"
195+
]
196+
},
197+
{
198+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
199+
}
200+
]
201+
}
202+
}
203+
},
204+
"PurchaseRequestPropertiesReservedResourceProperties": {
205+
"type": "object",
206+
"properties": {
207+
"instanceFlexibility": {
208+
"oneOf": [
209+
{
210+
"type": "string",
211+
"enum": [
212+
"On",
213+
"Off"
214+
]
215+
},
216+
{
217+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
218+
}
219+
]
220+
}
221+
},
222+
"description": "Properties specific to each reserved resource type. Not required if not applicable."
223+
},
224+
"SkuName": {
225+
"type": "object",
226+
"properties": {
227+
"name": {
228+
"type": "string"
229+
}
230+
}
231+
}
232+
}
233+
}

0 commit comments

Comments
 (0)