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 all 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
Expand Up @@ -157,6 +157,27 @@
}
},
"x-ms-azure-resource": true
},
"DownloadURL": {
"description": "The URL to download the generated report.",
"type": "object",
"properties": {
"expiryTime": {
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"validTill": {
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
"type": "string",
"format": "date-time"
},
"downloadUrl": {
"description": "The URL to download the generated report.",
"type": "string"
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,54 +99,6 @@
}
}
},
"/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations/{recommendationId}": {
"get": {
"tags": [
"BenefitRecommendations"
],
"description": "Details of a benefit plan recommendation for what-if analysis.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/CostManagement/"
},
"x-ms-examples": {
"BenefitRecommendationById": {
"$ref": "./examples/BenefitRecommendationsByRecommendationId.json"
}
},
"operationId": "BenefitRecommendation_Get",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/billingScopeBenefitRecommendationParameter"
},
{
"name": "recommendationId",
"in": "path",
"description": "The ID of the recommendation.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/benefitRecommendationModel"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "common-types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"properties": {
"x-ms-client-flatten": true,
"description": "The properties of the usage file generated.",
"$ref": "#/definitions/DownloadURL"
"$ref": "common-types.json#/definitions/DownloadURL"
}
}
},
Expand All @@ -319,21 +319,7 @@
"properties": {
"x-ms-client-flatten": true,
"description": "The properties of the resource generated.",
"$ref": "#/definitions/DownloadURL"
}
}
},
"DownloadURL": {
"description": "The URL to download the generated report.",
"properties": {
"downloadUrl": {
"description": "The URL to download the generated report.",
"type": "string"
},
"validTill": {
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
"type": "string",
"format": "date-time"
"$ref": "common-types.json#/definitions/DownloadURL"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
{
"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/v2/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": "common-types.json#/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/v2/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": "common-types.json#/definitions/DownloadURL"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "common-types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"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]+"
}
}
}

This file was deleted.

Loading