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

Jatehr/cost management pricesheets #20958

Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
376cbc9
Create costmanagement.pricesheets.json
jayati-tehri Sep 30, 2022
f0d5ec7
Create PricesheetDownload.json
jayati-tehri Sep 30, 2022
8c7185e
Create PricesheetDownloadByBillingProfile.json
jayati-tehri Sep 30, 2022
aa1f698
Create OperationList.json
jayati-tehri Sep 30, 2022
7a281d7
Update readme.md
jayati-tehri Sep 30, 2022
4416be8
Update readme.md
jayati-tehri Sep 30, 2022
fb937f1
Update costmanagement.pricesheets.json
jayati-tehri Oct 4, 2022
5dfbbf5
Update costmanagement.pricesheets.json
jayati-tehri Oct 4, 2022
873b3bf
Update costmanagement.pricesheets.json
jayati-tehri Oct 4, 2022
6c8f24b
Update costmanagement.pricesheets.json
jayati-tehri Oct 4, 2022
d9ba8ed
Update PricesheetDownload.json
jayati-tehri Oct 4, 2022
baffd59
Update PricesheetDownloadByBillingProfile.json
jayati-tehri Oct 4, 2022
767b65e
Update costmanagement.pricesheets.json
jayati-tehri Oct 5, 2022
a40021b
Update costmanagement.pricesheets.json
jayati-tehri Oct 5, 2022
6a5eaa7
Update costmanagement.pricesheets.json
jayati-tehri Oct 5, 2022
3db4643
Update costmanagement.pricesheets.json
jayati-tehri Oct 5, 2022
e978f58
Update costmanagement.pricesheets.json
jayati-tehri Oct 7, 2022
4193295
Delete OperationList.json
jayati-tehri Oct 7, 2022
859b322
Update costmanagement.pricesheets.json
jayati-tehri Oct 7, 2022
9335fef
Update costmanagement.pricesheets.json
jayati-tehri Oct 7, 2022
5479e64
Update PricesheetDownload.json
jayati-tehri Oct 7, 2022
f25426d
Update PricesheetDownloadByBillingProfile.json
jayati-tehri Oct 7, 2022
7255902
Update PricesheetDownload.json
jayati-tehri Oct 7, 2022
01ed50e
Update PricesheetDownloadByBillingProfile.json
jayati-tehri Oct 7, 2022
216e773
Update PricesheetDownloadByBillingProfile.json
jayati-tehri Oct 7, 2022
853d6e3
Update costmanagement.pricesheets.json
jayati-tehri Oct 8, 2022
5ce9d80
Update costmanagement.pricesheets.json
jayati-tehri Oct 8, 2022
0fbf786
Update costmanagement.pricesheets.json
jayati-tehri Oct 8, 2022
dcdb3a5
Merge branch 'release-cost-management-Microsoft.CostManagement-2022-1…
jayati-tehri Oct 8, 2022
8b46069
resolve Go SDK stuttering issue
tadelesh Oct 11, 2022
a3eb3cc
Update costmanagement.pricesheets.json
jayati-tehri Oct 19, 2022
c4ec94c
Merge branch 'release-cost-management-Microsoft.CostManagement-2022-1…
jayati-tehri Oct 26, 2022
ddc26c1
Update readme.md
jayati-tehri Oct 26, 2022
efbc3af
Update costmanagement.pricesheets.json
jayati-tehri Oct 26, 2022
28d1c42
Update costmanagement.pricesheets.json
jayati-tehri Oct 27, 2022
49b344e
Update costmanagement.pricesheets.json
jayati-tehri Oct 27, 2022
5d12cc5
Update PricesheetDownload.json
jayati-tehri Oct 27, 2022
e6fd801
Update PricesheetDownloadByBillingProfile.json
jayati-tehri Oct 27, 2022
a1038af
Delete BenefitRecommendationsByRecommendationId.json
jayati-tehri Oct 27, 2022
aa5c780
Update costmanagement.benefits.json
jayati-tehri Oct 27, 2022
a994990
Update costmanagement.pricesheets.json
jayati-tehri Oct 27, 2022
2faf569
Update costmanagement.pricesheets.json
jayati-tehri Oct 27, 2022
b53201d
Update common-types.json
jayati-tehri Oct 28, 2022
82ff1ee
Update costmanagement.pricesheets.json
jayati-tehri Oct 28, 2022
6b78525
Update costmanagement.generatedetailedcostreport.json
jayati-tehri Oct 28, 2022
d49f93e
Update common-types.json
jayati-tehri Oct 28, 2022
3fbbca2
Update common-types.json
jayati-tehri Oct 28, 2022
7527d25
Update common-types.json
jayati-tehri Oct 28, 2022
be1ad54
Update common-types.json
jayati-tehri Oct 28, 2022
15fd9f1
Update common-types.json
jayati-tehri Oct 31, 2022
133feed
resolve Go SDK naming collision
tadelesh Nov 1, 2022
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
@@ -0,0 +1,209 @@
{
"swagger": "2.0",
"info": {
"version": "2022-10-01",
"title": "CostManagementClient"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download": {
"post": {
"tags": [
"PriceSheets"
],
"x-ms-examples": {
"PricesheetDownload": {
"$ref": "./examples/PricesheetDownload.json"
}
},
"operationId": "PriceSheet_Download",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
jayati-tehri marked this conversation as resolved.
Show resolved Hide resolved
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingProfileNameParameter"
},
{
"$ref": "#/parameters/invoiceNameParameter"
}
],
"responses": {
"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"
},
"OData-EntityId": {
"description": "The operation entity Id GUID.",
"type": "string"
}
}
},
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/DownloadUrl"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "common-types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download": {
"post": {
"tags": [
"PriceSheets"
],
"x-ms-examples": {
"PricesheetDownloadByBillingProfile": {
"$ref": "./examples/PricesheetDownloadByBillingProfile.json"
}
},
"operationId": "PriceSheet_DownloadByBillingProfile",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv file to a Zip file containing multiple csv files, each with max 200k records.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingProfileNameParameter"
}
],
"responses": {
"202": {
"description": "Accepted.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
jayati-tehri marked this conversation as resolved.
Show resolved Hide resolved
"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"
},
"OData-EntityId": {
"description": "The operation entity Id GUID.",
"type": "string"
}
}
},
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/DownloadUrl"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "common-types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"DownloadUrl": {
"description": "A secure URL that can be used to download a an entity until the URL expires.",
"type": "object",
"properties": {
"expiryTime": {
"description": "The time in UTC when the download URL will expire.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"url": {
jayati-tehri marked this conversation as resolved.
Show resolved Hide resolved
"description": "The URL to the ZIP file. This Zip file will consists of multiple CSV files",
"type": "string",
"readOnly": true,
"x-ms-secret": true
}
}
}
},
"parameters": {
"billingAccountNameParameter": {
"name": "billingAccountName",
"in": "path",
"description": "The ID that uniquely identifies a billing account.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+):([A-Za-z0-9]+(-[A-Za-z0-9]+)+)_[0-9]{4}-[0-9]{2}-[0-9]{2}"
},
"billingProfileNameParameter": {
"name": "billingProfileName",
"in": "path",
"description": "The ID that uniquely identifies a billing profile.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"pattern": "([A-Za-z0-9]+(-[A-Za-z0-9]+)+)"
},
"invoiceNameParameter": {
"name": "invoiceName",
"in": "path",
"description": "The ID that uniquely identifies an invoice.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"pattern": "[A-Za-z0-9]+"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2022-10-01",
"billingAccountName": "7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31",
"billingProfileName": "2USN-TPCD-BG7-TGB",
"invoiceName": "T000940677"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2022-10-01&OperationType=PriceSheet",
"Retry-After": "60",
"OData-EntityId": "45000000-0000-0000-0000-000000000000"
}
},
"200": {
"body": {
"url": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B",
jayati-tehri marked this conversation as resolved.
Show resolved Hide resolved
"expiryTime": "2022-09-30T17:32:28Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2022-10-01",
"billingAccountName": "7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31",
"billingProfileName": "2USN-TPCD-BG7-TGB"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com:443/providers/Microsoft.Billing/billingAccounts/7c05a543-80ff-571e-9f98-1063b3b53cf2:99ad03ad-2d1b-4889-a452-090ad407d25f_2019-05-31/billingProfiles/2USN-TPCD-BG7-TGB/providers/Microsoft.CostManagement/operationResults/45000000-0000-0000-0000-000000000000?sessiontoken=0:000000&api-version=2022-10-01&OperationType=PriceSheet",
"Retry-After": "60",
"OData-EntityId": "45000000-0000-0000-0000-000000000000"
}
},
"200": {
"body": {
"url": "https://myaccount.blob.core.windows.net/?restype=service&comp=properties&sv=2015-04-05&ss=bf&srt=s&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&spr=https&sig=G%2TEST%4B",
"expiryTime": "2018-07-21T17:32:28Z"
}
}
}
}
1 change: 1 addition & 0 deletions specification/cost-management/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ These settings apply only when `--tag=package-2022-10` is specified on the comma
input-file:
- Microsoft.CostManagement/stable/2022-10-01/common-types.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.generatecostdetailsreport.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.pricesheets.json
- Microsoft.CostManagement/stable/2022-10-01/scheduledActions.json
```
### Tag: package-preview-2022-10
Expand Down