Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-01-01 #5718

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,63 @@
}
}
},
"/{scope}/providers/Microsoft.Consumption/usageDetails/download": {
"post": {
"tags": [
"UsageDetails"
],
"x-ms-examples": {
"UsageDetailsDownload": {
"$ref": "./examples/UsageDetailsDownload.json"
}
},
"operationId": "UsageDetails_Download",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Download usage details data.",
"parameters": [
{
"$ref": "#/parameters/scopeUsageDetailsParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/UsageDetailsDownloadResponse"
}
},
"202": {
"description": "Accepted.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
"type": "string"
},
"Azure-AsyncOperation": {
"description": "To get the progress of the operation, call GET operation on the URL in Azure-AsyncOperation header field.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/{scope}/providers/Microsoft.Consumption/marketplaces": {
"get": {
"tags": [
Expand Down Expand Up @@ -476,15 +533,9 @@
"url": "https://docs.microsoft.com/en-us/rest/api/consumption/"
},
"x-ms-examples": {
"ChargesListForEnrollmentAccount": {
"$ref": "./examples/ChargesListForEnrollmentAccountFilterByStartEndDate.json"
},
"ChangesForBillingPeriodByEnrollmentAccount": {
"$ref": "./examples/ChargesForBillingPeriodByEnrollmentAccount.json"
},
"ChargesListByDepartment": {
"$ref": "./examples/ChargesListForDepartmentFilterByStartEndDate.json"
},
"ChangesForBillingPeriodByDepartment": {
"$ref": "./examples/ChargesForBillingPeriodByDepartment.json"
}
Expand Down Expand Up @@ -1410,6 +1461,37 @@
}
}
},
"UsageDetailsDownloadResponse": {
"description": "Download response of Usage Details.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/DownloadUrl",
"title": "Download url properties."
}
}
},
"DownloadUrl": {
"description": "A secure URL that can be used to download a an entity until the URL expires.",
"properties": {
"downloadUrl": {
"description": "The URL to the csv file.",
"type": "string",
"readOnly": true
},
"validTill": {
"description": "The time in UTC at which this download URL will expire.",
"type": "string",
"readOnly": true
}
}
},
"Marketplace": {
"description": "An marketplace resource.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"budgetName": "TestBudget"
"budgetName": "TestBudget",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG"
"resourceGroupName": "MYDEVTESTRG",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"billingAccountId": "1234",
"departmentId": "42425",
"billingPeriodName": "201804"
"billingPeriodName": "201804",
"scope": "providers/Microsoft.Billing/BillingAccounts/1234"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"billingAccountId": "1234",
"enrollmentAccountId": "42425",
"billingPeriodName": "201804"
"billingPeriodName": "201804",
"scope": "providers/Microsoft.Billing/BillingAccounts/1234"
},
"responses": {
"200": {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"budgetName": "TestBudget",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
"parameters": {
"eTag": "\"1d34d016a593709\"",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"api-version": "2019-01-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "MYDEVTESTRG",
"budgetName": "TestBudget"
"budgetName": "TestBudget",
"scope": "subscriptions/00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456"
"billingAccountId": "123456",
"scope": "providers/Microsoft.Billing/billingAccounts/123456"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"billingAccountId": "123456",
"billingPeriodName": "201702"
"billingPeriodName": "201702",
"scope": "providers/Microsoft.Billing/billingAccounts/123456"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"departmentId": "123456",
"billingPeriodName": "201702"
"billingPeriodName": "201702",
"scope": "providers/Microsoft.Billing/departments/123456"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parameters": {
"api-version": "2019-01-01",
"departmentId": "123456",
"billingPeriodName": "201702"
"billingPeriodName": "201702",
"scope": "providers/Microsoft.Billing/departments/123456"
},
"responses": {
"200": {
Expand Down
Loading