-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SavingsPlan] Update 2023-04-01 billing swagger with SavingsPlan API …
…paths (#22458)
- Loading branch information
Showing
12 changed files
with
2,271 additions
and
1 deletion.
There are no files selected for viewing
1,220 changes: 1,220 additions & 0 deletions
1,220
...tion/billing/resource-manager/Microsoft.Billing/stable/2023-04-01/billingSavingsPlan.json
Large diffs are not rendered by default.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
...Microsoft.Billing/stable/2023-04-01/examples/listSavingsPlansInOrderByBillingAccount.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,68 @@ | ||
{ | ||
"parameters": { | ||
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", | ||
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", | ||
"name": "30000000-0000-0000-0000-000000000000", | ||
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", | ||
"sku": { | ||
"name": "Compute_Savings_Plan" | ||
}, | ||
"properties": { | ||
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000", | ||
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", | ||
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", | ||
"billingPlan": "P1M", | ||
"commitment": { | ||
"grain": "Hourly", | ||
"currencyCode": "USD", | ||
"amount": 0.001 | ||
}, | ||
"renew": false, | ||
"appliedScopeType": "Shared", | ||
"displayName": "SP1", | ||
"provisioningState": "Succeeded", | ||
"term": "P3Y", | ||
"displayProvisioningState": "Succeeded", | ||
"userFriendlyAppliedScopeType": "Shared", | ||
"expiryDateTime": "2026-01-20T02:36:22.3394755Z", | ||
"purchaseDateTime": "2023-01-20T02:34:38.1261695Z", | ||
"benefitStartTime": "2023-01-20T02:36:22.3394755Z", | ||
"effectiveDateTime": "2023-01-20T02:36:25.0894669Z", | ||
"utilization": { | ||
"trend": "SAME", | ||
"aggregates": [ | ||
{ | ||
"grain": 1.0, | ||
"grainUnit": "days", | ||
"value": 0, | ||
"valueUnit": "percentage" | ||
}, | ||
{ | ||
"grain": 7.0, | ||
"grainUnit": "days", | ||
"value": 0, | ||
"valueUnit": "percentage" | ||
}, | ||
{ | ||
"grain": 30.0, | ||
"grainUnit": "days", | ||
"value": 0, | ||
"valueUnit": "percentage" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...-manager/Microsoft.Billing/stable/2023-04-01/examples/savingsPlanGetByBillingAccount.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": { | ||
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", | ||
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", | ||
"savingsPlanId": "30000000-0000-0000-0000-000000000000", | ||
"api-version": "2023-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", | ||
"name": "30000000-0000-0000-0000-000000000000", | ||
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", | ||
"sku": { | ||
"name": "Compute_Savings_Plan" | ||
}, | ||
"properties": { | ||
"billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", | ||
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", | ||
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", | ||
"billingPlan": "P1M", | ||
"appliedScopeProperties": { | ||
"tenantId": "70000000-0000-0000-0000-000000000000", | ||
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg", | ||
"displayName": "TestRg" | ||
}, | ||
"commitment": { | ||
"grain": "Hourly", | ||
"currencyCode": "USD", | ||
"amount": 0.001 | ||
}, | ||
"renew": false, | ||
"appliedScopeType": "ManagementGroup", | ||
"displayName": "SP1", | ||
"provisioningState": "Succeeded", | ||
"term": "P3Y", | ||
"displayProvisioningState": "NoBenefit", | ||
"userFriendlyAppliedScopeType": "ManagementGroup", | ||
"expiryDateTime": "2025-11-16T02:25:11.7183866Z", | ||
"purchaseDateTime": "2022-11-16T02:23:21.3864783Z", | ||
"benefitStartTime": "2022-11-16T02:25:11.7183866Z", | ||
"effectiveDateTime": "2022-12-16T01:35:36.2909462Z", | ||
"utilization": { | ||
"trend": "SAME", | ||
"aggregates": [ | ||
{ | ||
"grain": 1.0, | ||
"grainUnit": "days", | ||
"value": 0.0, | ||
"valueUnit": "percentage" | ||
}, | ||
{ | ||
"grain": 7.0, | ||
"grainUnit": "days", | ||
"value": 0.0, | ||
"valueUnit": "percentage" | ||
}, | ||
{ | ||
"grain": 30.0, | ||
"grainUnit": "days", | ||
"value": 0.0, | ||
"valueUnit": "percentage" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
94 changes: 94 additions & 0 deletions
94
...lling/stable/2023-04-01/examples/savingsPlanGetExpandRenewPropertiesByBillingAccount.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,94 @@ | ||
{ | ||
"parameters": { | ||
"billingAccountName": "00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", | ||
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000", | ||
"savingsPlanId": "30000000-0000-0000-0000-000000000000", | ||
"api-version": "2023-04-01", | ||
"$expand": "renewProperties" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000", | ||
"name": "30000000-0000-0000-0000-000000000000", | ||
"type": "microsoft.billing/billingAccounts/savingsPlanOrders/savingsPlans", | ||
"sku": { | ||
"name": "Compute_Savings_Plan" | ||
}, | ||
"properties": { | ||
"billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", | ||
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31", | ||
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/AAAA-BBBB-CCC-DDD", | ||
"billingPlan": "P1M", | ||
"appliedScopeProperties": { | ||
"tenantId": "70000000-0000-0000-0000-000000000000", | ||
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg", | ||
"displayName": "TestRg" | ||
}, | ||
"commitment": { | ||
"grain": "Hourly", | ||
"currencyCode": "USD", | ||
"amount": 0.001 | ||
}, | ||
"renew": false, | ||
"appliedScopeType": "ManagementGroup", | ||
"displayName": "SP1", | ||
"provisioningState": "Succeeded", | ||
"term": "P3Y", | ||
"displayProvisioningState": "NoBenefit", | ||
"userFriendlyAppliedScopeType": "ManagementGroup", | ||
"expiryDateTime": "2025-11-16T02:25:11.7183866Z", | ||
"purchaseDateTime": "2022-11-16T02:23:21.3864783Z", | ||
"benefitStartTime": "2022-11-16T02:25:11.7183866Z", | ||
"effectiveDateTime": "2022-12-16T01:35:36.2909462Z", | ||
"utilization": { | ||
"trend": "SAME", | ||
"aggregates": [ | ||
{ | ||
"grain": 1.0, | ||
"grainUnit": "days", | ||
"value": 0.0, | ||
"valueUnit": "percentage" | ||
}, | ||
{ | ||
"grain": 7.0, | ||
"grainUnit": "days", | ||
"value": 0.0, | ||
"valueUnit": "percentage" | ||
}, | ||
{ | ||
"grain": 30.0, | ||
"grainUnit": "days", | ||
"value": 0.0, | ||
"valueUnit": "percentage" | ||
} | ||
] | ||
}, | ||
"renewProperties": { | ||
"purchaseProperties": { | ||
"sku": { | ||
"name": "Compute_Savings_Plan" | ||
}, | ||
"properties": { | ||
"billingScopeId": "/subscriptions/50000000-0000-0000-0000-000000000000", | ||
"term": "P3Y", | ||
"billingPlan": "Monthly", | ||
"displayName": "SP1_renewed", | ||
"appliedScopeType": "ManagementGroup", | ||
"appliedScopeProperties": { | ||
"tenantId": "70000000-0000-0000-0000-000000000000", | ||
"managementGroupId": "/providers/Microsoft.Management/managementGroups/TestRg" | ||
}, | ||
"commitment": { | ||
"grain": "Hourly", | ||
"currencyCode": "USD", | ||
"amount": 0.001 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.