Skip to content

Commit 31643db

Browse files
gaoyp830anandanthony
authored andcommitted
[Microsoft.BillingBenefits] Adding 2022-11-01 stable version (Azure#21340)
* New Swagger Spec File * New Swagger Example Spec File * New Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Go Language Readme Config File * New Python Language Readme Config File * New Typescript Language Readme Config File * New C# Language Readme Config File * base * Savings plan order get/list and savings plan item get * List SavingsPlan API * CalculateMigrationCost * Fixing list api summary property * Update * elevate * Fixing * ReservationOrderAlias * Validate swagger and example * Fix style * update * Remove audit api * Comments * comments and remove migration api * Fixing pipeline * Update elevate api response * Update SavingsPlanOrderElevate.json * update * Update billingbenefits.json * Update patch api * Addressed comments * Update ReservationOrderAliasCreate.json * Update readme.md * Update readme.md * Update readme.md * 200 in order alias put * Update billingbenefits.json * Update readme.md
1 parent 2ac5bb0 commit 31643db

25 files changed

+3453
-0
lines changed

specification/billingbenefits/resource-manager/Microsoft.BillingBenefits/stable/2022-11-01/billingbenefits.json

Lines changed: 1917 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.BillingBenefits/savingsPlanOrderAliases/read",
11+
"display": {
12+
"provider": "Microsoft Benefits",
13+
"resource": "SavingsPlanOrderAliases",
14+
"operation": "Get Savings plan order alias",
15+
"description": "Read all savings plan order aliases"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.BillingBenefits/savingsPlanOrderAliases/write",
20+
"display": {
21+
"provider": "Microsoft Benefits",
22+
"resource": "SavingsPlanOrderAliases",
23+
"operation": "Create SavingsPlanOrderAliases",
24+
"description": "Create a Savings plan order alias"
25+
}
26+
},
27+
{
28+
"name": "Microsoft.BillingBenefits/savingsPlanOrders/read",
29+
"display": {
30+
"provider": "Microsoft Benefits",
31+
"resource": "SavingsPlanOrders",
32+
"operation": "Get Savings plan orders",
33+
"description": "Read all savings plan orders"
34+
}
35+
},
36+
{
37+
"name": "Microsoft.BillingBenefits/savingsPlanOrders/write",
38+
"display": {
39+
"provider": "Microsoft Benefits",
40+
"resource": "SavingsPlanOrders",
41+
"operation": "Patch SavingsPlanOrders",
42+
"description": "Patch a Savings plan order"
43+
}
44+
},
45+
{
46+
"name": "Microsoft.BillingBenefits/savingsPlanOrders/action",
47+
"display": {
48+
"provider": "Microsoft Benefits",
49+
"resource": "SavingsPlanOrders",
50+
"operation": "Update SavingsPlanOrders",
51+
"description": "Update a Savings plan order"
52+
}
53+
},
54+
{
55+
"name": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans/read",
56+
"display": {
57+
"provider": "Microsoft Benefits",
58+
"resource": "SavingsPlans",
59+
"operation": "Get SavingsPlans",
60+
"description": "Read All SavingsPlans"
61+
}
62+
},
63+
{
64+
"name": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans/write",
65+
"display": {
66+
"provider": "Microsoft Benefits",
67+
"resource": "SavingsPlans",
68+
"operation": "Patch SavingsPlans",
69+
"description": "Patch an existing Savings plan"
70+
}
71+
},
72+
{
73+
"name": "Microsoft.BillingBenefits/register/action",
74+
"display": {
75+
"provider": "Microsoft Benefits",
76+
"resource": "SavingsPlans",
77+
"operation": "Registers the Benefits Resource Provider.",
78+
"description": "Registers the Benefits resource provider and enables the creation of Benefits resources."
79+
}
80+
}
81+
]
82+
}
83+
}
84+
}
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"parameters": {
3+
"reservationOrderAliasName": "reservationOrderAlias123",
4+
"api-version": "2022-11-01",
5+
"body": {
6+
"sku": {
7+
"name": "Standard_M64s_v2"
8+
},
9+
"properties": {
10+
"displayName": "ReservationOrder_2022-06-02",
11+
"reservedResourceType": "VirtualMachines",
12+
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
13+
"term": "P1Y",
14+
"appliedScopeType": "Single",
15+
"appliedScopeProperties": {
16+
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"
17+
},
18+
"quantity": 5,
19+
"renew": true,
20+
"billingPlan": "P1M",
21+
"reservedResourceProperties": {
22+
"instanceFlexibility": "On"
23+
}
24+
}
25+
}
26+
},
27+
"responses": {
28+
"201": {
29+
"headers": {
30+
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.BillingBenefits/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-06-02-privatepreview",
31+
"Retry-After": 5
32+
},
33+
"body": {
34+
"id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123",
35+
"type": "Microsoft.BillingBenefits/reservationOrderAliases",
36+
"name": "reservationOrderAlias123",
37+
"sku": {
38+
"name": "Standard_M64s_v2"
39+
},
40+
"properties": {
41+
"displayName": "ReservationOrder_2022-06-02",
42+
"reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000",
43+
"reservedResourceType": "VirtualMachines",
44+
"provisioningState": "Created",
45+
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
46+
"term": "P1Y",
47+
"appliedScopeType": "Single",
48+
"appliedScopeProperties": {
49+
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"
50+
},
51+
"quantity": 5,
52+
"renew": true,
53+
"billingPlan": "P1M",
54+
"reservedResourceProperties": {
55+
"instanceFlexibility": "On"
56+
}
57+
}
58+
}
59+
},
60+
"200": {
61+
"body": {
62+
"id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123",
63+
"type": "Microsoft.BillingBenefits/reservationOrderAliases",
64+
"name": "reservationOrderAlias123",
65+
"sku": {
66+
"name": "Standard_M64s_v2"
67+
},
68+
"properties": {
69+
"displayName": "ReservationOrder_2022-06-02",
70+
"reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000",
71+
"reservedResourceType": "VirtualMachines",
72+
"provisioningState": "Created",
73+
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
74+
"term": "P1Y",
75+
"appliedScopeType": "Single",
76+
"appliedScopeProperties": {
77+
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"
78+
},
79+
"quantity": 5,
80+
"renew": true,
81+
"billingPlan": "P1M",
82+
"reservedResourceProperties": {
83+
"instanceFlexibility": "On"
84+
}
85+
}
86+
}
87+
}
88+
}
89+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"reservationOrderAliasName": "reservationOrderAlias123",
4+
"api-version": "2022-11-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/providers/microsoft.billingbenefits/reservationOrderAliases/reservationOrderAlias123",
10+
"type": "Microsoft.BillingBenefits/reservationOrderAliases",
11+
"name": "reservationOrderAlias123",
12+
"sku": {
13+
"name": "Standard_M64s_v2"
14+
},
15+
"properties": {
16+
"displayName": "ReservationOrder_2022-06-02",
17+
"reservationOrderId": "/providers/Microsoft.Capacity/reservationOrders/30000000-0000-0000-0000-000000000000",
18+
"reservedResourceType": "VirtualMachines",
19+
"provisioningState": "Created",
20+
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
21+
"term": "P1Y",
22+
"appliedScopeType": "Single",
23+
"appliedScopeProperties": {
24+
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"
25+
},
26+
"quantity": 5,
27+
"renew": true,
28+
"billingPlan": "P1M",
29+
"reservedResourceProperties": {
30+
"instanceFlexibility": "On"
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"parameters": {
3+
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000",
4+
"savingsPlanId": "30000000-0000-0000-0000-000000000000",
5+
"api-version": "2022-11-01",
6+
"$expand": "renewProperties"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
12+
"name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000",
13+
"type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans",
14+
"sku": {
15+
"name": "Compute_Savings_Plan"
16+
},
17+
"properties": {
18+
"billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009",
19+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
20+
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
21+
"billingPlan": "P1M",
22+
"commitment": {
23+
"grain": "Hourly",
24+
"currencyCode": "USD",
25+
"amount": 0.001
26+
},
27+
"renew": true,
28+
"appliedScopeType": "Shared",
29+
"displayName": "Compute_SavingsPlan_patch_rename2",
30+
"provisioningState": "Succeeded",
31+
"term": "P3Y",
32+
"displayProvisioningState": "Succeeded",
33+
"userFriendlyAppliedScopeType": "Shared",
34+
"expiryDateTime": "2025-10-18T21:16:13.1854959Z",
35+
"purchaseDateTime": "2022-10-18T21:14:26.8279361Z",
36+
"effectiveDateTime": "2022-10-21T18:15:42.4098626Z",
37+
"utilization": {
38+
"trend": "",
39+
"aggregates": [
40+
{
41+
"grain": 1.0,
42+
"grainUnit": "days",
43+
"value": 100.0,
44+
"valueUnit": "percentage"
45+
},
46+
{
47+
"grain": 7.0,
48+
"grainUnit": "days",
49+
"value": 84.0,
50+
"valueUnit": "percentage"
51+
},
52+
{
53+
"grain": 30.0,
54+
"grainUnit": "days",
55+
"value": 83.87,
56+
"valueUnit": "percentage"
57+
}
58+
]
59+
},
60+
"renewProperties": {
61+
"purchaseProperties": {
62+
"sku": {
63+
"name": "Compute_Savings_Plan"
64+
},
65+
"properties": {
66+
"billingScopeId": "/subscriptions/eef82110-c91b-4395-9420-fcfcbefc5a47",
67+
"term": "P1Y",
68+
"billingPlan": "Upfront",
69+
"displayName": "Compute_SavingsPlan_patch_rename2_renewed",
70+
"appliedScopeType": "Shared",
71+
"commitment": {
72+
"grain": "Hourly",
73+
"currencyCode": "USD",
74+
"amount": 0.001
75+
}
76+
}
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"parameters": {
3+
"savingsPlanOrderId": "20000000-0000-0000-0000-000000000000",
4+
"savingsPlanId": "30000000-0000-0000-0000-000000000000",
5+
"api-version": "2022-11-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/microsoft.billingbenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000",
11+
"name": "20000000-0000-0000-0000-000000000000/30000000-0000-0000-0000-000000000000",
12+
"type": "Microsoft.BillingBenefits/savingsPlanOrders/savingsPlans",
13+
"sku": {
14+
"name": "Compute_Savings_Plan"
15+
},
16+
"properties": {
17+
"billingScopeId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000009",
18+
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31/billingProfiles/KPSV-DWNE-BG7-TGB",
19+
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/20000000-1000-0000-0000-000000000000:20000000-0000-3000-0000-000000000000_2019-05-31",
20+
"billingPlan": "P1M",
21+
"commitment": {
22+
"grain": "Hourly",
23+
"currencyCode": "USD",
24+
"amount": 0.001
25+
},
26+
"renew": true,
27+
"appliedScopeType": "Shared",
28+
"displayName": "Compute_SavingsPlan_patch_rename2",
29+
"provisioningState": "Succeeded",
30+
"term": "P3Y",
31+
"displayProvisioningState": "Succeeded",
32+
"userFriendlyAppliedScopeType": "Shared",
33+
"expiryDateTime": "2025-10-18T21:16:13.1854959Z",
34+
"purchaseDateTime": "2022-10-18T21:14:26.8279361Z",
35+
"effectiveDateTime": "2022-10-21T18:15:42.4098626Z",
36+
"utilization": {
37+
"trend": "",
38+
"aggregates": [
39+
{
40+
"grain": 1.0,
41+
"grainUnit": "days",
42+
"value": 100.0,
43+
"valueUnit": "percentage"
44+
},
45+
{
46+
"grain": 7.0,
47+
"grainUnit": "days",
48+
"value": 84.0,
49+
"valueUnit": "percentage"
50+
},
51+
{
52+
"grain": 30.0,
53+
"grainUnit": "days",
54+
"value": 83.87,
55+
"valueUnit": "percentage"
56+
}
57+
]
58+
}
59+
}
60+
}
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)