Skip to content

Commit 66cfa57

Browse files
authored
[Hub Generated] Review request for Microsoft.Capacity to add version stable/2022-03-01 (#18244)
* Adds base for updating Microsoft.Capacity from version stable/2021-07-01 to version 2022-03-01 * Updates readme * Updates API version in new specs and examples * Update with new changes * include quota.json in readme * Remove dollar sign for publisher id * Change name from FulfillmentCreatedDateTime to BenefitStartTime
1 parent 0d9772a commit 66cfa57

21 files changed

+4598
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"body": {
5+
"properties": {
6+
"reservationsToPurchase": [
7+
{
8+
"sku": {
9+
"name": "Standard_B1ls"
10+
},
11+
"location": "westus",
12+
"properties": {
13+
"reservedResourceType": "VirtualMachines",
14+
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
15+
"term": "P1Y",
16+
"billingPlan": "Upfront",
17+
"quantity": 1,
18+
"displayName": "testDisplayName",
19+
"appliedScopeType": "Shared",
20+
"appliedScopes": null,
21+
"renew": false,
22+
"reservedResourceProperties": {
23+
"instanceFlexibility": "On"
24+
}
25+
}
26+
}
27+
],
28+
"reservationsToExchange": [
29+
{
30+
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6",
31+
"quantity": 1
32+
}
33+
]
34+
}
35+
}
36+
},
37+
"responses": {
38+
"200": {
39+
"body": {
40+
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188",
41+
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188",
42+
"status": "Succeeded",
43+
"properties": {
44+
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081",
45+
"netPayable": {
46+
"currencyCode": "USD",
47+
"amount": 15840.0
48+
},
49+
"refundsTotal": {
50+
"currencyCode": "USD",
51+
"amount": 3960.0
52+
},
53+
"purchasesTotal": {
54+
"currencyCode": "USD",
55+
"amount": 19800.0
56+
},
57+
"policyResult": {
58+
"policyErrors": null
59+
},
60+
"reservationsToPurchase": [
61+
{
62+
"properties": {
63+
"sku": {
64+
"name": "Standard_B1ls"
65+
},
66+
"location": "westus",
67+
"properties": {
68+
"reservedResourceType": "VirtualMachines",
69+
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
70+
"term": "P1Y",
71+
"billingPlan": "Upfront",
72+
"quantity": 1,
73+
"displayName": "testDisplayName",
74+
"appliedScopeType": "Shared",
75+
"appliedScopes": null,
76+
"renew": false,
77+
"reservedResourceProperties": {
78+
"instanceFlexibility": "On"
79+
}
80+
}
81+
},
82+
"billingCurrencyTotal": {
83+
"currencyCode": "USD",
84+
"amount": 19800.0
85+
}
86+
}
87+
],
88+
"reservationsToExchange": [
89+
{
90+
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6",
91+
"quantity": 1,
92+
"billingRefundAmount": {
93+
"currencyCode": "USD",
94+
"amount": 3960.0
95+
},
96+
"billingInformation": {
97+
"billingCurrencyTotalPaidAmount": {
98+
"currencyCode": "USD",
99+
"amount": 19800.0
100+
},
101+
"billingCurrencyProratedAmount": {
102+
"currencyCode": "USD",
103+
"amount": 15840.0
104+
},
105+
"billingCurrencyRemainingCommitmentAmount": {
106+
"currencyCode": "USD",
107+
"amount": 0.0
108+
}
109+
}
110+
}
111+
]
112+
}
113+
}
114+
},
115+
"202": {
116+
"headers": {
117+
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01",
118+
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01",
119+
"Retry-After": 5
120+
}
121+
}
122+
}
123+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"body": {
5+
"sku": {
6+
"name": "standard_D1"
7+
},
8+
"location": "westus",
9+
"properties": {
10+
"reservedResourceType": "VirtualMachines",
11+
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
12+
"term": "P1Y",
13+
"billingPlan": "Monthly",
14+
"quantity": 1,
15+
"displayName": "TestReservationOrder",
16+
"appliedScopes": null,
17+
"appliedScopeType": "Shared",
18+
"reservedResourceProperties": {
19+
"instanceFlexibility": "On"
20+
}
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"properties": {
28+
"billingCurrencyTotal": {
29+
"currencyCode": "USD",
30+
"amount": 46.0
31+
},
32+
"reservationOrderId": "6d9cec54-7de8-abcd-9de7-80f5d634f2d2",
33+
"skuTitle": "Reserved VM Instance, Standard_D1, US West, 1 Year",
34+
"skuDescription": "standard_D1",
35+
"pricingCurrencyTotal": {
36+
"currencyCode": "USD",
37+
"amount": 46.0
38+
},
39+
"paymentSchedule": [
40+
{
41+
"dueDate": "2019-05-14",
42+
"pricingCurrencyTotal": {
43+
"currencyCode": "USD",
44+
"amount": 46
45+
},
46+
"billingCurrencyTotal": {
47+
"currencyCode": "EUR",
48+
"amount": 40
49+
}
50+
},
51+
{
52+
"dueDate": "2019-06-14",
53+
"pricingCurrencyTotal": {
54+
"currencyCode": "USD",
55+
"amount": 46
56+
}
57+
},
58+
{
59+
"dueDate": "2019-07-14",
60+
"pricingCurrencyTotal": {
61+
"currencyCode": "USD",
62+
"amount": 46
63+
}
64+
}
65+
]
66+
}
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"reservationOrderId": "a075419f-44cc-497f-b68a-14ee811d48b9",
5+
"body": {
6+
"destinationTenantId": "906655ea-30be-4587-9d12-b50e077b0f32"
7+
}
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"reservationOrder": {
13+
"id": "a075419f-44cc-497f-b68a-14ee811d48b9",
14+
"name": "VM_RI_10-02-2020_15-21",
15+
"isSucceeded": true,
16+
"error": "error string"
17+
},
18+
"reservations": [
19+
{
20+
"id": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
21+
"name": "VM_RI_10-02-2020_15-21",
22+
"isSucceeded": true,
23+
"error": "error string"
24+
}
25+
]
26+
}
27+
}
28+
}
29+
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"body": {
5+
"properties": {
6+
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081"
7+
}
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188",
14+
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188",
15+
"status": "Succeeded",
16+
"properties": {
17+
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081",
18+
"netPayable": {
19+
"currencyCode": "USD",
20+
"amount": 15840.0
21+
},
22+
"refundsTotal": {
23+
"currencyCode": "USD",
24+
"amount": 3960.0
25+
},
26+
"purchasesTotal": {
27+
"currencyCode": "USD",
28+
"amount": 19800.0
29+
},
30+
"policyResult": {
31+
"policyErrors": null
32+
},
33+
"reservationsToPurchase": [
34+
{
35+
"reservationOrderId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f",
36+
"reservationId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f/reservations/0c80fceb-305c-40a8-b5a6-11445807bbb3",
37+
"properties": {
38+
"sku": {
39+
"name": "Standard_B1ls"
40+
},
41+
"location": "westus",
42+
"properties": {
43+
"reservedResourceType": "VirtualMachines",
44+
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
45+
"term": "P1Y",
46+
"billingPlan": "Upfront",
47+
"quantity": 1,
48+
"displayName": "testDisplayName",
49+
"appliedScopeType": "Shared",
50+
"appliedScopes": null,
51+
"renew": false,
52+
"reservedResourceProperties": {
53+
"instanceFlexibility": "On"
54+
}
55+
}
56+
},
57+
"billingCurrencyTotal": {
58+
"currencyCode": "USD",
59+
"amount": 19800.0
60+
},
61+
"status": "Succeeded"
62+
}
63+
],
64+
"reservationsToExchange": [
65+
{
66+
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6",
67+
"quantity": 1,
68+
"billingRefundAmount": {
69+
"currencyCode": "USD",
70+
"amount": 3960.0
71+
},
72+
"billingInformation": {
73+
"billingCurrencyTotalPaidAmount": {
74+
"currencyCode": "USD",
75+
"amount": 19800.0
76+
},
77+
"billingCurrencyProratedAmount": {
78+
"currencyCode": "USD",
79+
"amount": 15840.0
80+
},
81+
"billingCurrencyRemainingCommitmentAmount": {
82+
"currencyCode": "USD",
83+
"amount": 0.0
84+
}
85+
},
86+
"status": "Succeeded"
87+
}
88+
]
89+
}
90+
}
91+
},
92+
"202": {
93+
"headers": {
94+
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01",
95+
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01",
96+
"Retry-After": 5
97+
}
98+
}
99+
}
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"subscriptionId": "23bc208b-083f-4901-ae85-4f98c0c3b4b6"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/subscriptions/23bc208b-083f-4901-ae85-4f98c0c3b4b6/providers/microsoft.capacity/AppliedReservations/default",
10+
"type": "Microsoft.Capacity/AppliedReservations",
11+
"name": "default",
12+
"properties": {
13+
"reservationOrderIds": {
14+
"value": [
15+
"/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7",
16+
"/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac",
17+
"/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a",
18+
"/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901",
19+
"/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f",
20+
"/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928",
21+
"/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8",
22+
"/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b",
23+
"/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db",
24+
"/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6",
25+
"/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3",
26+
"/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e",
27+
"/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723"
28+
]
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-01",
4+
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
5+
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da",
6+
"body": {
7+
"properties": {
8+
"scopes": [
9+
"/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"
10+
]
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"properties": {
18+
"scopes": [
19+
{
20+
"scope": "/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9",
21+
"valid": true
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)