Skip to content

Commit

Permalink
Add new version of Microsoft.Billing and new RP Microsoft.Consumption (
Browse files Browse the repository at this point in the history
…Azure#1148)

* Add new version of Microsoft.Billing and new RP Microsoft.Consumption

* Add descriptions for error details
  • Loading branch information
pandawang1123 authored and jianghaolu committed Apr 21, 2017
1 parent 0fff909 commit 5ef46a8
Show file tree
Hide file tree
Showing 12 changed files with 1,361 additions and 0 deletions.
24 changes: 24 additions & 0 deletions arm-billing/2017-04-24-preview/examples/BillingPeriodsGet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2017-04-24-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 arm-billing/2017-04-24-preview/examples/BillingPeriodsList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2017-04-24-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 arm-billing/2017-04-24-preview/examples/InvoicesExpand.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2017-04-24-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 arm-billing/2017-04-24-preview/examples/InvoicesGet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2017-04-24-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 arm-billing/2017-04-24-preview/examples/InvoicesGetLatest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2017-04-24-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 arm-billing/2017-04-24-preview/examples/InvoicesList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2017-04-24-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"
]
}
}
]
}
}
}
}
Loading

0 comments on commit 5ef46a8

Please sign in to comment.