-
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.
Add Billing Account resource to Billing RP. (#2517)
* Add "Classic Account" ARM resource. * 1. Change classic account property name from "userPrincipalName" to "principalName" 2. Add examples * Fix API version in examples. * Add example links. * ClassicAccount->BillingAccount * Removing "uuid" - billing account name may be a concatenation of uuid and additional keys. * Remove unused parameters. * 1. Add new version to readme.md 2. Fix validation warnings * Fix descriptions. * Fix type mismatch error. * Adding missing parameter in example. * Fix ms-examples name.
- Loading branch information
1 parent
e5a7c40
commit 36fc76c
Showing
10 changed files
with
933 additions
and
1 deletion.
There are no files selected for viewing
699 changes: 699 additions & 0 deletions
699
...cation/billing/resource-manager/Microsoft.Billing/preview/2018-03-01-preview/billing.json
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...rce-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/BillingAccountsGet.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-03-01-preview", | ||
"name": "e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/providers/Microsoft.Billing/billingAccounts/e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556", | ||
"name": "e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556", | ||
"type": "Microsoft.Billing/billingAccounts", | ||
"properties": { | ||
"principalName": "kathy@contoso.com" | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...ce-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/BillingAccountsList.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": "2018-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/providers/Microsoft.Billing/billingAccounts/e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556", | ||
"name": "e1bf1c8c-5ac6-44a0-bdcd-aa7c1cf60556", | ||
"type": "Microsoft.Billing/billingAccounts", | ||
"properties": { | ||
"principalName": "kathy@contoso.com" | ||
} | ||
}, | ||
{ | ||
"id": "/providers/Microsoft.Billing/billingAccounts/edd24053-07cd-4ed4-aa5b-326160a6680d", | ||
"name": "edd24053-07cd-4ed4-aa5b-326160a6680d", | ||
"type": "Microsoft.Billing/billingAccounts", | ||
"properties": { | ||
"principalName": "dan@contoso.com" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...urce-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/BillingPeriodsGet.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,24 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-03-01-preview", | ||
"subscriptionId": "subid", | ||
"billingPeriodName": "201702-1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702-1", | ||
"name": "201702-1", | ||
"type": "Microsoft.Billing/billingPeriods", | ||
"properties": { | ||
"billingPeriodStartDate": "2017-01-01", | ||
"billingPeriodEndDate": "2017-02-01", | ||
"invoiceIds": [ | ||
"/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-02-05-123456789", | ||
"/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-01-05-987654321" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...rce-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/BillingPeriodsList.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,27 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-03-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702-1", | ||
"name": "201702-1", | ||
"type": "Microsoft.Billing/billingPeriods", | ||
"properties": { | ||
"billingPeriodStartDate": "2017-01-01", | ||
"billingPeriodEndDate": "2017-02-01", | ||
"invoiceIds": [ | ||
"/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-02-05-123456789", | ||
"/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-01-05-987654321" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...esource-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/InvoicesExpand.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": "2018-03-01-preview", | ||
"subscriptionId": "subid", | ||
"$top": 1, | ||
"$filter": "invoicePeriodStartDate le 2017-02-01", | ||
"$expand": "downloadUrl" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-02-05-123456789", | ||
"name": "2017-02-05-123456789", | ||
"type": "Microsoft.Billing/invoices", | ||
"properties": { | ||
"invoicePeriodStartDate": "2017-01-01", | ||
"invoicePeriodEndDate": "2017-02-01", | ||
"billingPeriodIds": [ | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702-1", | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201701-1" | ||
], | ||
"downloadUrl": { | ||
"expiryTime": "2017-02-13T20:46:30Z", | ||
"url": "https://microsoft.com" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...g/resource-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/InvoicesGet.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": "2018-03-01-preview", | ||
"subscriptionId": "subid", | ||
"invoiceName": "2017-02-05-123456789" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-02-05-123456789", | ||
"name": "2017-02-05-123456789", | ||
"type": "Microsoft.Billing/invoices", | ||
"properties": { | ||
"invoicePeriodStartDate": "2017-01-01", | ||
"invoicePeriodEndDate": "2017-02-01", | ||
"billingPeriodIds": [ | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702-1", | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201701-1" | ||
], | ||
"downloadUrl": { | ||
"expiryTime": "2017-02-13T20:46:30Z", | ||
"url": "https://microsoft.com" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...urce-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/InvoicesGetLatest.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,27 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-03-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-02-05-123456789", | ||
"name": "2017-02-05-123456789", | ||
"type": "Microsoft.Billing/invoices", | ||
"properties": { | ||
"invoicePeriodStartDate": "2017-01-01", | ||
"invoicePeriodEndDate": "2017-02-01", | ||
"billingPeriodIds": [ | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702-1", | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201701-1" | ||
], | ||
"downloadUrl": { | ||
"expiryTime": "2017-02-13T20:46:30Z", | ||
"url": "https://microsoft.com" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
.../resource-manager/Microsoft.Billing/preview/2018-03-01-preview/examples/InvoicesList.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,27 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-03-01-preview", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/providers/Microsoft.Billing/invoices/2017-02-05-123456789", | ||
"name": "2017-02-05-123456789", | ||
"type": "Microsoft.Billing/invoices", | ||
"properties": { | ||
"invoicePeriodStartDate": "2017-01-01", | ||
"invoicePeriodEndDate": "2017-02-01", | ||
"billingPeriodIds": [ | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201702-1", | ||
"/subscriptions/subid/providers/Microsoft.Billing/billingPeriods/201701-1" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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