-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
21 changed files
with
4,598 additions
and
9 deletions.
There are no files selected for viewing
123 changes: 123 additions & 0 deletions
123
...ons/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/CalculateExchange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-01", | ||
"body": { | ||
"properties": { | ||
"reservationsToPurchase": [ | ||
{ | ||
"sku": { | ||
"name": "Standard_B1ls" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Upfront", | ||
"quantity": 1, | ||
"displayName": "testDisplayName", | ||
"appliedScopeType": "Shared", | ||
"appliedScopes": null, | ||
"renew": false, | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
} | ||
], | ||
"reservationsToExchange": [ | ||
{ | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6", | ||
"quantity": 1 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"status": "Succeeded", | ||
"properties": { | ||
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081", | ||
"netPayable": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"refundsTotal": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"purchasesTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"policyResult": { | ||
"policyErrors": null | ||
}, | ||
"reservationsToPurchase": [ | ||
{ | ||
"properties": { | ||
"sku": { | ||
"name": "Standard_B1ls" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Upfront", | ||
"quantity": 1, | ||
"displayName": "testDisplayName", | ||
"appliedScopeType": "Shared", | ||
"appliedScopes": null, | ||
"renew": false, | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
}, | ||
"billingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
} | ||
} | ||
], | ||
"reservationsToExchange": [ | ||
{ | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6", | ||
"quantity": 1, | ||
"billingRefundAmount": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"billingInformation": { | ||
"billingCurrencyTotalPaidAmount": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"billingCurrencyProratedAmount": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"billingCurrencyRemainingCommitmentAmount": { | ||
"currencyCode": "USD", | ||
"amount": 0.0 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01", | ||
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01", | ||
"Retry-After": 5 | ||
} | ||
} | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...urce-manager/Microsoft.Capacity/stable/2022-03-01/examples/CalculateReservationOrder.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-01", | ||
"body": { | ||
"sku": { | ||
"name": "standard_D1" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Monthly", | ||
"quantity": 1, | ||
"displayName": "TestReservationOrder", | ||
"appliedScopes": null, | ||
"appliedScopeType": "Shared", | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"billingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 46.0 | ||
}, | ||
"reservationOrderId": "6d9cec54-7de8-abcd-9de7-80f5d634f2d2", | ||
"skuTitle": "Reserved VM Instance, Standard_D1, US West, 1 Year", | ||
"skuDescription": "standard_D1", | ||
"pricingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 46.0 | ||
}, | ||
"paymentSchedule": [ | ||
{ | ||
"dueDate": "2019-05-14", | ||
"pricingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 46 | ||
}, | ||
"billingCurrencyTotal": { | ||
"currencyCode": "EUR", | ||
"amount": 40 | ||
} | ||
}, | ||
{ | ||
"dueDate": "2019-06-14", | ||
"pricingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 46 | ||
} | ||
}, | ||
{ | ||
"dueDate": "2019-07-14", | ||
"pricingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 46 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...anager/Microsoft.Capacity/stable/2022-03-01/examples/ChangeDirectoryReservationOrder.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-01", | ||
"reservationOrderId": "a075419f-44cc-497f-b68a-14ee811d48b9", | ||
"body": { | ||
"destinationTenantId": "906655ea-30be-4587-9d12-b50e077b0f32" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"reservationOrder": { | ||
"id": "a075419f-44cc-497f-b68a-14ee811d48b9", | ||
"name": "VM_RI_10-02-2020_15-21", | ||
"isSucceeded": true, | ||
"error": "error string" | ||
}, | ||
"reservations": [ | ||
{ | ||
"id": "1f14354c-dc12-4c8d-8090-6f295a3a34aa", | ||
"name": "VM_RI_10-02-2020_15-21", | ||
"isSucceeded": true, | ||
"error": "error string" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
...reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Exchange.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-01", | ||
"body": { | ||
"properties": { | ||
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188", | ||
"status": "Succeeded", | ||
"properties": { | ||
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081", | ||
"netPayable": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"refundsTotal": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"purchasesTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"policyResult": { | ||
"policyErrors": null | ||
}, | ||
"reservationsToPurchase": [ | ||
{ | ||
"reservationOrderId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f", | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f/reservations/0c80fceb-305c-40a8-b5a6-11445807bbb3", | ||
"properties": { | ||
"sku": { | ||
"name": "Standard_B1ls" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"reservedResourceType": "VirtualMachines", | ||
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", | ||
"term": "P1Y", | ||
"billingPlan": "Upfront", | ||
"quantity": 1, | ||
"displayName": "testDisplayName", | ||
"appliedScopeType": "Shared", | ||
"appliedScopes": null, | ||
"renew": false, | ||
"reservedResourceProperties": { | ||
"instanceFlexibility": "On" | ||
} | ||
} | ||
}, | ||
"billingCurrencyTotal": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"status": "Succeeded" | ||
} | ||
], | ||
"reservationsToExchange": [ | ||
{ | ||
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6", | ||
"quantity": 1, | ||
"billingRefundAmount": { | ||
"currencyCode": "USD", | ||
"amount": 3960.0 | ||
}, | ||
"billingInformation": { | ||
"billingCurrencyTotalPaidAmount": { | ||
"currencyCode": "USD", | ||
"amount": 19800.0 | ||
}, | ||
"billingCurrencyProratedAmount": { | ||
"currencyCode": "USD", | ||
"amount": 15840.0 | ||
}, | ||
"billingCurrencyRemainingCommitmentAmount": { | ||
"currencyCode": "USD", | ||
"amount": 0.0 | ||
} | ||
}, | ||
"status": "Succeeded" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01", | ||
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-03-01", | ||
"Retry-After": 5 | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...esource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetAppliedReservations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-01", | ||
"subscriptionId": "23bc208b-083f-4901-ae85-4f98c0c3b4b6" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/23bc208b-083f-4901-ae85-4f98c0c3b4b6/providers/microsoft.capacity/AppliedReservations/default", | ||
"type": "Microsoft.Capacity/AppliedReservations", | ||
"name": "default", | ||
"properties": { | ||
"reservationOrderIds": { | ||
"value": [ | ||
"/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", | ||
"/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", | ||
"/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", | ||
"/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", | ||
"/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", | ||
"/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", | ||
"/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", | ||
"/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", | ||
"/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", | ||
"/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", | ||
"/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", | ||
"/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", | ||
"/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ons/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetAvailableScope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-01", | ||
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", | ||
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da", | ||
"body": { | ||
"properties": { | ||
"scopes": [ | ||
"/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"scopes": [ | ||
{ | ||
"scope": "/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9", | ||
"valid": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.