Skip to content

Commit

Permalink
Merge pull request #5 from jbuls/jbuls/ga20211001
Browse files Browse the repository at this point in the history
Validation fixes in Microsoft.Billing 20211001
  • Loading branch information
jbuls authored Oct 27, 2021
2 parents 71d2153 + f5a0006 commit f3248f6
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}",
"billingSubscriptionAliasName": "c356b7c7-7545-4686-b843-c1a49cf853fc"
"aliasName": "c356b7c7-7545-4686-b843-c1a49cf853fc"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/deleteBillingSubscription_7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e:f9bd2643-e786-4c93-9978-3c7f2d574580?api-version=2021-10-01",
"Retry-After": "60"
}
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"api-version": "2021-10-01",
"billingAccountName": "{billingAccountName}",
"billingSubscriptionAliasName": "c356b7c7-7545-4686-b843-c1a49cf853fc",
"aliasName": "c356b7c7-7545-4686-b843-c1a49cf853fc",
"parameters": {
"properties": {
"billingFrequency": "P1M",
Expand Down Expand Up @@ -47,6 +47,35 @@
}
}
},
"201": {
"body": {
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/aliases/c356b7c7-7545-4686-b843-c1a49cf853fc",
"name": "c356b7c7-7545-4686-b843-c1a49cf853fc",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions/aliases",
"properties": {
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingProfileDisplayName": "Contoso operations billing profile",
"billingProfileName": "2b72f936-0166-47d6-91a3-ef9f84f36664",
"billingSubscriptionId": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/7f271b5e-a89e-45cc-8fa5-cd5c643f8b5e",
"billingFrequency": "P1M",
"displayName": "Subscription 3",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/2b72f936-0166-47d6-91a3-ef9f84f36664/invoiceSections/5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"invoiceSectionName": "5c562559-e31b-4bfe-b608-f8b5b3fbd073",
"productCategory": "SeatBased",
"productType": "Microsoft 365 Business Standard",
"productTypeId": "CFQ7TTC0LDPB",
"purchaseDate": "2021-08-01T00:12:49.7261677+00:00",
"quantity": 4,
"skuId": "0001",
"skuDescription": "Microsoft 365 Business Standard",
"status": "Active",
"termDuration": "P1Y",
"termStartDate": "2021-10-01T00:00:00Z",
"termEndDate": "2022-09-30T00:00:00Z"
}
}
},
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/operationResults/putBillingSubscriptionAlias_c356b7c7-7545-4686-b843-c1a49cf853fc:f9bd2643-e786-4c93-9978-3c7f2d574580?api-version=2021-10-01",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"quantity": 4,
"targetProductTypeId": "CFQ7TTC0LDPB",
"targetSkuId": "0001",
"term": "P1Y"
"termDuration": "P1Y"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"billingAccountName": "{billingAccountName}",
"billingSubscriptionName": "418b0e9c-5dc3-4260-918f-30b90619fe07",
"parameters": {
"destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/e004d7ce-feca-4341-97c9-9f11cae37858/invoiceSections/06febd6b-3cb7-47fe-ac7d-7b4e83e80f53",
"destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/e004d7ce-feca-4341-97c9-9f11cae37858"
"destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/e004d7ce-feca-4341-97c9-9f11cae37858/invoiceSections/06febd6b-3cb7-47fe-ac7d-7b4e83e80f53"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"billingAccountName": "{billingAccountName}",
"billingSubscriptionName": "418b0e9c-5dc3-4260-918f-30b90619fe07",
"parameters": {
"destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/e004d7ce-feca-4341-97c9-9f11cae37858/invoiceSections/06febd6b-3cb7-47fe-ac7d-7b4e83e80f53",
"destinationBillingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/e004d7ce-feca-4341-97c9-9f11cae37858"
"destinationInvoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/e004d7ce-feca-4341-97c9-9f11cae37858/invoiceSections/06febd6b-3cb7-47fe-ac7d-7b4e83e80f53"
}
},
"responses": {
Expand Down
4 changes: 3 additions & 1 deletion specification/billing/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ These are the global settings for the Billing API.

``` yaml
openapi-type: arm
tag: package-2020-05
tag: package-2021-10
```
### Tag: package-2021-10
These settings apply only when `--tag=package-2021-10` is specified on the command line.

``` yaml $(tag) == 'package-2021-10'
title: BillingManagementClient
description: Billing Client
input-file:
- Microsoft.Billing/stable/2021-10-01/billingSubscription.json
- Microsoft.Billing/stable/2021-10-01/payment.json
Expand Down

0 comments on commit f3248f6

Please sign in to comment.