From 4f6ba630b34d187e6262e3ffe8b042ea23240177 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Thu, 3 Feb 2022 10:39:41 -0800 Subject: [PATCH 01/33] Add files via upload --- .../costmanagement.pricesheets.json | 271 ++++++++++++++++++ .../examples/PricesheetDownload.json | 23 ++ .../PricesheetDownloadByBillingProfile.json | 22 ++ 3 files changed, 316 insertions(+) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json new file mode 100644 index 000000000000..349f1b15bd68 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -0,0 +1,271 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-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": "#/parameters/apiVersionParameter" + }, + { + "$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": "#/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.", + "parameters": [ + { + "$ref": "#/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" + }, + "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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "definitions": { + "Error": { + "description": "Error details for transfer execution.", + "properties": { + "errorCode": { + "type": "string", + "readOnly": true, + "description": "Error code." + }, + "errorMessage": { + "type": "string", + "readOnly": true, + "description": "Error message." + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "type": "object", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "ProxyResource": { + "description": "The Resource model definition.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "eTag": { + "type": "string", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "x-ms-azure-resource": true + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request." + }, + "billingAccountNameParameter": { + "name": "billingAccountName", + "in": "path", + "description": "The ID that uniquely identifies a billing account.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingProfileNameParameter": { + "name": "billingProfileName", + "in": "path", + "description": "The ID that uniquely identifies a billing profile.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "operationIdParameter": { + "name": "operationId", + "in": "path", + "description": "Operation Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingAccountIdParameter": { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} +} + diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json new file mode 100644 index 000000000000..9ec3580b741a --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceName": "{invoiceName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "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" + } + } + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json new file mode 100644 index 000000000000..936778efb3e0 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2022-02-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "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" + } + } + } +} From b9ee6885005e6d821d390bb2603c3adb21320097 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:54:50 -0800 Subject: [PATCH 02/33] Update costmanagement.pricesheets.json --- .../preview/2022-02-01-preview/costmanagement.pricesheets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 349f1b15bd68..b990212a9b22 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2021-10-01", + "version": "2022-02-01", "title": "CostManagementClient" }, "host": "management.azure.com", From 7b409ccb9f864017a89f6f9b77295c8cd353e743 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Thu, 3 Feb 2022 11:57:54 -0800 Subject: [PATCH 03/33] Update costmanagement.pricesheets.json --- .../costmanagement.pricesheets.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index b990212a9b22..8f4bce30b382 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -197,6 +197,22 @@ "$ref": "#/definitions/ErrorDetails" } } + }, + "DownloadUrl": { + "description": "A secure URL that can be used to download a an entity until the URL expires.", + "properties": { + "expiryTime": { + "description": "The time in UTC when the download URL will expire.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "url": { + "description": "The URL to the ZIP file. This Zip file will consists of multiple CSV files", + "type": "string", + "readOnly": true + } + } }, "ProxyResource": { "description": "The Resource model definition.", From b929d781baba0b1f8886d0cc52af2d9c7d4b8288 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Fri, 4 Feb 2022 09:36:49 -0800 Subject: [PATCH 04/33] Update costmanagement.pricesheets.json --- .../preview/2022-02-01-preview/costmanagement.pricesheets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 8f4bce30b382..aa43fead7298 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-02-01", + "version": "2022-02-01-preview", "title": "CostManagementClient" }, "host": "management.azure.com", From 60641650aeebdfa2c3842b1fa7a14f638616ed92 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 9 Feb 2022 10:39:32 -0800 Subject: [PATCH 05/33] Update readme.md --- specification/cost-management/resource-manager/readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index ae3b3baaba51..c9551807a56f 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -31,7 +31,14 @@ azure-validator: false ``` --- +### Tag: package-preview-2022-02 +These settings apply only when `--tag=package-preview-2022-02` is specified on the command line. + +```yaml $(tag) == 'package-preview-2022-02' +input-file: + - Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +``` ### Tag: package-2021-10 From ee742c864a8a1e6c3bdd9150d4aba7c32a68ee53 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:50:42 -0800 Subject: [PATCH 06/33] Update costmanagement.pricesheets.json --- .../preview/2022-02-01-preview/costmanagement.pricesheets.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index aa43fead7298..318dbdd51d34 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -155,6 +155,7 @@ } } } + } }, "definitions": { "Error": { @@ -283,5 +284,3 @@ } } } -} - From 01565d684e8b296dadf78609f637e2c073d80ad5 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:40:01 -0800 Subject: [PATCH 07/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 318dbdd51d34..a4035407b88a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -281,6 +281,14 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" + }, + "invoiceNameParameter": { + "name": "invoiceName", + "in": "path", + "description": "The ID that uniquely identifies an invoice.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" } } } From d5acf0e5c937b8f52804609251f2635dac51a5f5 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:34:50 -0800 Subject: [PATCH 08/33] Update costmanagement.pricesheets.json --- .../preview/2022-02-01-preview/costmanagement.pricesheets.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index a4035407b88a..1329e54b3c6f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -160,6 +160,7 @@ "definitions": { "Error": { "description": "Error details for transfer execution.", + "type": "object", "properties": { "errorCode": { "type": "string", @@ -201,6 +202,7 @@ }, "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.", From 411d4d5a1c21e02a39360ef00f40a8dc22c527b2 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Mon, 14 Feb 2022 16:10:01 -0800 Subject: [PATCH 09/33] Update costmanagement.pricesheets.json --- .../preview/2022-02-01-preview/costmanagement.pricesheets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 1329e54b3c6f..7612af49bcef 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -111,7 +111,7 @@ "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.", + "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.The name of the zip file is AzurePricesheet as gzip.The names of multiple csv files are AzurePricesheet _1, AzurePricesheet _2", "parameters": [ { "$ref": "#/parameters/apiVersionParameter" From 4ebbcf17454a34a6007e7ea5cc25bfa3bd2fcfd6 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 09:09:02 -0800 Subject: [PATCH 10/33] Update PricesheetDownloadByBillingProfile.json --- .../PricesheetDownloadByBillingProfile.json | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json index 936778efb3e0..19d53a41ce5c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json @@ -1,22 +1,22 @@ { - "parameters": { - "api-version": "2022-02-01-preview", - "billingAccountName": "{billingAccountName}", - "billingProfileName": "{billingProfileName}" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", - "Retry-After": "60", - "OData-EntityId": "45000000-0000-0000-0000-000000000000" + "parameters":{ + "api-version":"2022-02-01-preview", + "billingAccountName":"{billingAccountName}", + "billingProfileName":"{billingProfileName}" + }, + "responses":{ + "202":{ + "headers":{ + "Location":"https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "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" + } } - }, - "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" - } - } - } + } } From 17fc7716c1fb52b1eb0a1881d8d976a93a8aceb1 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 09:09:41 -0800 Subject: [PATCH 11/33] Update PricesheetDownload.json --- .../examples/PricesheetDownload.json | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json index 9ec3580b741a..14caa97716ad 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json @@ -1,23 +1,23 @@ { - "parameters": { - "api-version": "2022-02-01-preview", - "billingAccountName": "{billingAccountName}", - "billingProfileName": "{billingProfileName}", - "invoiceName": "{invoiceName}" - }, - "responses": { - "202": { - "headers": { - "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", - "Retry-After": "60", - "OData-EntityId": "45000000-0000-0000-0000-000000000000" + "parameters":{ + "api-version":"2022-02-01-preview", + "billingAccountName":"{billingAccountName}", + "billingProfileName":"{billingProfileName}", + "invoiceName":"{invoiceName}" + }, + "responses":{ + "202":{ + "headers":{ + "Location":"https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "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" + } } - }, - "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" - } - } - } + } } From 84d13e95807822022a61d601621c283ca3410512 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 09:10:12 -0800 Subject: [PATCH 12/33] Update costmanagement.pricesheets.json --- .../costmanagement.pricesheets.json | 570 +++++++++--------- 1 file changed, 285 insertions(+), 285 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 7612af49bcef..411a8d0f0936 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -1,296 +1,296 @@ { - "swagger": "2.0", - "info": { - "version": "2022-02-01-preview", - "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" + "swagger":"2.0", + "info":{ + "version":"2022-02-01-preview", + "title":"CostManagementClient" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "security":[ + { + "azure_auth":[ + "user_impersonation" + ] } - } - }, - "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": "#/parameters/apiVersionParameter" - }, - { - "$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" + ], + "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":"#/parameters/apiVersionParameter" + }, + { + "$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":"#/definitions/ErrorResponse" + } + } } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/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.The name of the zip file is AzurePricesheet as gzip.The names of multiple csv files are AzurePricesheet _1, AzurePricesheet _2", + "parameters":[ + { + "$ref":"#/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" + }, + "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":"#/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.The name of the zip file is AzurePricesheet as gzip.The names of multiple csv files are AzurePricesheet _1, AzurePricesheet _2", - "parameters": [ - { - "$ref": "#/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" - }, - "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" - } + }, + "definitions":{ + "Error":{ + "description":"Error details for transfer execution.", + "type":"object", + "properties":{ + "errorCode":{ + "type":"string", + "readOnly":true, + "description":"Error code." + }, + "errorMessage":{ + "type":"string", + "readOnly":true, + "description":"Error message." } - }, - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/DownloadUrl" + } + }, + "ErrorDetails":{ + "description":"The details of the error.", + "type":"object", + "properties":{ + "code":{ + "description":"Error code.", + "type":"string", + "readOnly":true + }, + "message":{ + "description":"Error message indicating why the operation failed.", + "type":"string", + "readOnly":true } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" + } + }, + "ErrorResponse":{ + "description":"Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", + "type":"object", + "properties":{ + "error":{ + "description":"The details of the error.", + "$ref":"#/definitions/ErrorDetails" } - } - } - } - } - }, - "definitions": { - "Error": { - "description": "Error details for transfer execution.", - "type": "object", - "properties": { - "errorCode": { - "type": "string", - "readOnly": true, - "description": "Error code." - }, - "errorMessage": { - "type": "string", - "readOnly": true, - "description": "Error message." - } - } - }, - "ErrorDetails": { - "description": "The details of the error.", - "type": "object", - "properties": { - "code": { - "description": "Error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string", - "readOnly": true - } - } - }, - "ErrorResponse": { - "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type": "object", - "properties": { - "error": { - "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "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": { - "description": "The URL to the ZIP file. This Zip file will consists of multiple CSV files", - "type": "string", - "readOnly": true - } + } + }, + "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":{ + "description":"The URL to the ZIP file. This Zip file will consists of multiple CSV files", + "type":"string", + "readOnly":true + } + } + }, + "ProxyResource":{ + "description":"The Resource model definition.", + "type":"object", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Resource Id." + }, + "name":{ + "readOnly":true, + "type":"string", + "description":"Resource name." + }, + "type":{ + "readOnly":true, + "type":"string", + "description":"Resource type." + }, + "eTag":{ + "type":"string", + "description":"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "x-ms-azure-resource":true } - }, - "ProxyResource": { - "description": "The Resource model definition.", - "type": "object", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "eTag": { - "type": "string", - "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." - } + }, + "parameters":{ + "apiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"Version of the API to be used with the client request." + }, + "billingAccountNameParameter":{ + "name":"billingAccountName", + "in":"path", + "description":"The ID that uniquely identifies a billing account.", + "required":true, + "type":"string", + "x-ms-parameter-location":"method" }, - "x-ms-azure-resource": true - } - }, - "parameters": { - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request." - }, - "billingAccountNameParameter": { - "name": "billingAccountName", - "in": "path", - "description": "The ID that uniquely identifies a billing account.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "billingProfileNameParameter": { - "name": "billingProfileName", - "in": "path", - "description": "The ID that uniquely identifies a billing profile.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "operationIdParameter": { - "name": "operationId", - "in": "path", - "description": "Operation Id.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "billingAccountIdParameter": { - "name": "billingAccountId", - "in": "path", - "description": "BillingAccount ID", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "invoiceNameParameter": { - "name": "invoiceName", - "in": "path", - "description": "The ID that uniquely identifies an invoice.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } + "billingProfileNameParameter":{ + "name":"billingProfileName", + "in":"path", + "description":"The ID that uniquely identifies a billing profile.", + "required":true, + "type":"string", + "x-ms-parameter-location":"method" + }, + "operationIdParameter":{ + "name":"operationId", + "in":"path", + "description":"Operation Id.", + "required":true, + "type":"string", + "x-ms-parameter-location":"method" + }, + "billingAccountIdParameter":{ + "name":"billingAccountId", + "in":"path", + "description":"BillingAccount ID", + "required":true, + "type":"string", + "x-ms-parameter-location":"method" + }, + "invoiceNameParameter":{ + "name":"invoiceName", + "in":"path", + "description":"The ID that uniquely identifies an invoice.", + "required":true, + "type":"string", + "x-ms-parameter-location":"method" + } + } } From 8de72685dc71e3475eef9b40d3d45cf1950e3ca3 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 11:38:29 -0800 Subject: [PATCH 13/33] Update costmanagement.pricesheets.json --- .../costmanagement.pricesheets.json | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 411a8d0f0936..88560c403aba 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -157,6 +157,38 @@ } } }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available consumption REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, "definitions":{ "Error":{ "description":"Error details for transfer execution.", @@ -174,6 +206,24 @@ } } }, + "OperationListResult": { + "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of consumption operations supported by the Microsoft.Consumption resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, "ErrorDetails":{ "description":"The details of the error.", "type":"object", From a243406b90bea51e39e8b31af8df8aff11756705 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 12:11:46 -0800 Subject: [PATCH 14/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 88560c403aba..dc6dffe360b7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -155,9 +155,8 @@ } } } - } - }, - "/providers/Microsoft.CostManagement/operations": { + }, + "/providers/Microsoft.CostManagement/operations": { "get": { "tags": [ "Operations" @@ -188,7 +187,7 @@ } } } - }, + }, "definitions":{ "Error":{ "description":"Error details for transfer execution.", From 768fca5e9431768172e14bc002208bc33511fe53 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 12:12:33 -0800 Subject: [PATCH 15/33] Update costmanagement.pricesheets.json From 7d71178a7e5cfc03546bbd4be6fddf390324cb7e Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 16:18:36 -0800 Subject: [PATCH 16/33] Update costmanagement.pricesheets.json --- .../costmanagement.pricesheets.json | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index dc6dffe360b7..a2f3ab4c51df 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -205,6 +205,47 @@ } } }, + "Operation": { + "description": "A Consumption REST API operation.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Operation Id." + }, + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Consumption.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: UsageDetail, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Description of the operation.", + "type": "string", + "readOnly": true + } + } + } + } + }, "OperationListResult": { "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", "properties": { From 17308c8ecc22ec07aeda0174b688015eccff01ee Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 16:19:40 -0800 Subject: [PATCH 17/33] Update costmanagement.pricesheets.json --- .../preview/2022-02-01-preview/costmanagement.pricesheets.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index a2f3ab4c51df..d6f3eab164d6 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -248,6 +248,7 @@ }, "OperationListResult": { "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", + "type":"object", "properties": { "value": { "description": "List of consumption operations supported by the Microsoft.Consumption resource provider.", From 0ec062f6537f88dbddbbd678469136b11815fb1f Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 16:39:55 -0800 Subject: [PATCH 18/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index d6f3eab164d6..663ca104af2c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -161,6 +161,9 @@ "tags": [ "Operations" ], + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, "operationId": "Operations_List", "description": "Lists all of the available consumption REST API operations.", "parameters": [ @@ -221,6 +224,7 @@ }, "display": { "description": "The object that represents the operation.", + "type": "object", "properties": { "provider": { "description": "Service provider: Microsoft.Consumption.", From 87461445890763c0b5286af9b5254d4445021bd6 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:01:58 -0800 Subject: [PATCH 19/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 663ca104af2c..42d104882a38 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -185,6 +185,12 @@ } } }, + "isDataAction": false, + "display": { + "provider": "Micrsoft CostManagement", + "resource": "Micrsoft.CostManagement", + "description": "Cost Management Operations" + }, "x-ms-pageable": { "nextLinkName": "nextLink" } From 101fe04f90183b41020f2e103e004124478554c6 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:06:24 -0800 Subject: [PATCH 20/33] Create OperationList --- .../2022-02-01-preview/examples/OperationList | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList new file mode 100644 index 000000000000..76e999642b14 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList @@ -0,0 +1,21 @@ +{ + "parameters":{ + "api-version":"2022-02-01-preview" + }, + "responses":{ + "200":{ + "OperationListResult":{ + "nextLink":"1", + "value":{ + "display":{ + "description":"Cost Management allowed operations", + "description":"Microsoft.CostManagement", + "resource":"Pricesheets" + }, + "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", + "name":"/providers/Microsoft.CostMangement/OperationStatus" + } + } + } + } +} From 3896e7d98a3cc491931c5db92b1156f9b5bf32bc Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:07:25 -0800 Subject: [PATCH 21/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 42d104882a38..41a2e3d2943f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -161,6 +161,11 @@ "tags": [ "Operations" ], + "x-ms-examples":{ + "OperationsList":{ + "$ref":"./examples/OperationList.json" + } + }, "externalDocs": { "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" }, From 8e7504e3a1de3a5a48f9e26e7d661955df704934 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:17:14 -0800 Subject: [PATCH 22/33] Rename OperationList to OperationList.json --- .../examples/{OperationList => OperationList.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/{OperationList => OperationList.json} (100%) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json similarity index 100% rename from specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList rename to specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json From 9c12b312227534e5b0a5178787fb494ef8c56d5a Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:23:04 -0800 Subject: [PATCH 23/33] Update OperationList.json --- .../examples/OperationList.json | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json index 76e999642b14..f30cecef8870 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json @@ -4,16 +4,18 @@ }, "responses":{ "200":{ - "OperationListResult":{ - "nextLink":"1", - "value":{ - "display":{ - "description":"Cost Management allowed operations", - "description":"Microsoft.CostManagement", - "resource":"Pricesheets" - }, - "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", - "name":"/providers/Microsoft.CostMangement/OperationStatus" + "body":{ + "OperationListResult":{ + "nextLink":"1", + "value":{ + "display":{ + "description":"Cost Management allowed operations", + "provider":"Microsoft.CostManagement", + "resource":"Pricesheets" + }, + "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", + "name":"/providers/Microsoft.CostMangement/OperationStatus" + } } } } From 208e0f4a18c8f77a83bbccd7cef713226cdd28ad Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:38:44 -0800 Subject: [PATCH 24/33] Update OperationList.json --- .../preview/2022-02-01-preview/examples/OperationList.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json index f30cecef8870..ef7c7de65870 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json @@ -12,10 +12,7 @@ "description":"Cost Management allowed operations", "provider":"Microsoft.CostManagement", "resource":"Pricesheets" - }, - "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", - "name":"/providers/Microsoft.CostMangement/OperationStatus" - } + } } } } From d44dc258eeff37a1f9c94422db78666cce761934 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:00:44 -0800 Subject: [PATCH 25/33] Update OperationList.json --- .../preview/2022-02-01-preview/examples/OperationList.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json index ef7c7de65870..053fca282221 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json @@ -13,6 +13,7 @@ "provider":"Microsoft.CostManagement", "resource":"Pricesheets" } + } } } } From 909071b9a8f8b17df77dd7df5f7dd1712ba18442 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:21:37 -0800 Subject: [PATCH 26/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 41a2e3d2943f..c936792f20fa 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -192,8 +192,8 @@ }, "isDataAction": false, "display": { - "provider": "Micrsoft CostManagement", - "resource": "Micrsoft.CostManagement", + "provider": "Microsoft CostManagement", + "resource": "Microsoft.CostManagement", "description": "Cost Management Operations" }, "x-ms-pageable": { From 949682166cbc305c3d6c8b0fa9c294f38ed21ada Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:27:19 -0800 Subject: [PATCH 27/33] Update OperationList.json --- .../examples/OperationList.json | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json index 053fca282221..c1f2bd026ac5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json @@ -7,13 +7,17 @@ "body":{ "OperationListResult":{ "nextLink":"1", - "value":{ - "display":{ - "description":"Cost Management allowed operations", - "provider":"Microsoft.CostManagement", - "resource":"Pricesheets" + "value":[ + { + "display":{ + "description":"Cost Management allowed operations", + "provider":"Microsoft.CostManagement", + "resource":"Pricesheets" + }, + "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", + "name":"/providers/Microsoft.CostManagement/OperationStatus" } - } + ] } } } From 2807f80d7f66be83df7c6d1ede81e0d177771da4 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Tue, 22 Feb 2022 20:42:34 -0800 Subject: [PATCH 28/33] Update OperationList.json --- .../examples/OperationList.json | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json index c1f2bd026ac5..9b777dd077fc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json @@ -5,20 +5,17 @@ "responses":{ "200":{ "body":{ - "OperationListResult":{ - "nextLink":"1", - "value":[ - { - "display":{ - "description":"Cost Management allowed operations", - "provider":"Microsoft.CostManagement", - "resource":"Pricesheets" - }, - "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", - "name":"/providers/Microsoft.CostManagement/OperationStatus" - } - ] - } + "value":[ + { + "display":{ + "description":"Cost Management allowed operations", + "provider":"Microsoft.CostManagement", + "resource":"Pricesheets" + }, + "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", + "name":"/providers/Microsoft.CostManagement/OperationStatus" + } + ] } } } From 9b422243f112b1e9743201b5faf52a168cb61fc6 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 23 Feb 2022 19:23:19 -0800 Subject: [PATCH 29/33] Update costmanagement.pricesheets.json --- .../2022-02-01-preview/costmanagement.pricesheets.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index c936792f20fa..f9afdaccfd80 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -190,12 +190,6 @@ } } }, - "isDataAction": false, - "display": { - "provider": "Microsoft CostManagement", - "resource": "Microsoft.CostManagement", - "description": "Cost Management Operations" - }, "x-ms-pageable": { "nextLinkName": "nextLink" } From d22cb3114a67aefa7144431df943e20eff0237ac Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 23 Feb 2022 19:31:53 -0800 Subject: [PATCH 30/33] Update costmanagement.pricesheets.json --- .../costmanagement.pricesheets.json | 218 ++++++++++-------- 1 file changed, 124 insertions(+), 94 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index f9afdaccfd80..a60b88d1bb42 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -156,45 +156,45 @@ } } }, - "/providers/Microsoft.CostManagement/operations": { - "get": { - "tags": [ - "Operations" - ], - "x-ms-examples":{ - "OperationsList":{ - "$ref":"./examples/OperationList.json" - } - }, - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" - }, - "operationId": "Operations_List", - "description": "Lists all of the available consumption REST API operations.", - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" + "/providers/Microsoft.CostManagement/operations":{ + "get":{ + "tags":[ + "Operations" + ], + "x-ms-examples":{ + "OperationsList":{ + "$ref":"./examples/OperationList.json" + } + }, + "externalDocs":{ + "url":"https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, + "operationId":"Operations_List", + "description":"Lists all of the available consumption REST API operations.", + "parameters":[ + { + "$ref":"#/parameters/apiVersionParameter" + } + ], + "responses":{ + "200":{ + "description":"OK. The request has succeeded.", + "schema":{ + "$ref":"#/definitions/OperationListResult" + } + }, + "default":{ + "description":"Error response describing why the operation failed.", + "schema":{ + "$ref":"#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":"nextLink" } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + } } - } }, "definitions":{ "Error":{ @@ -213,67 +213,97 @@ } } }, - "Operation": { - "description": "A Consumption REST API operation.", - "type": "object", - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Operation Id." - }, - "name": { - "description": "Operation name: {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - }, - "display": { - "description": "The object that represents the operation.", - "type": "object", - "properties": { - "provider": { - "description": "Service provider: Microsoft.Consumption.", - "type": "string", - "readOnly": true + "Operation":{ + "description":"A Consumption REST API operation.", + "type":"object", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Operation Id." + }, + "name":{ + "description":"Operation name: {provider}/{resource}/{operation}.", + "type":"string", + "readOnly":true + }, + "display":{ + "description":"The object that represents the operation.", + "type":"object", + "properties":{ + "provider":{ + "description":"Service provider: Microsoft.Consumption.", + "type":"string", + "readOnly":true + }, + "resource":{ + "description":"Resource on which the operation is performed: UsageDetail, etc.", + "type":"string", + "readOnly":true + }, + "operation":{ + "description":"Operation type: Read, write, delete, etc.", + "type":"string", + "readOnly":true + }, + "description":{ + "description":"Description of the operation.", + "type":"string", + "readOnly":true + } + } + } + } + }, + "OperationDisplay":{ + "description":"Operation display payload", + "type":"object", + "properties":{ + "provider":{ + "description":"Resource provider of the operation", + "type":"string" }, - "resource": { - "description": "Resource on which the operation is performed: UsageDetail, etc.", - "type": "string", - "readOnly": true + "resource":{ + "description":"Resource of the operation", + "type":"string" }, - "operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string", - "readOnly": true + "operation":{ + "description":"Localized friendly name for the operation", + "type":"string" }, - "description": { - "description": "Description of the operation.", - "type": "string", - "readOnly": true + "description":{ + "description":"Localized friendly description for the operation", + "type":"string" } - } - } - } - }, - "OperationListResult": { - "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", - "type":"object", - "properties": { - "value": { - "description": "List of consumption operations supported by the Microsoft.Consumption resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } - } - }, + } + }, + "OperationListResult":{ + "description":"Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", + "type":"object", + "properties":{ + "value":{ + "description":"List of consumption operations supported by the Microsoft.Consumption resource provider.", + "type":"array", + "readOnly":true, + "items":{ + "$ref":"#/definitions/Operation" + } + }, + "nextLink":{ + "description":"URL to get the next set of operation list results if there are any.", + "type":"string", + "readOnly":true + }, + "isDataAction":{ + "description":"Indicates whether the operation is a data action", + "type":"boolean" + }, + "display":{ + "$ref":"#/definitions/OperationDisplay", + "description":"Display of the operation" + } + } + }, "ErrorDetails":{ "description":"The details of the error.", "type":"object", From 014548a861060550817657a623f450fe4f4a2917 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 23 Feb 2022 19:44:57 -0800 Subject: [PATCH 31/33] Update costmanagement.pricesheets.json --- .../costmanagement.pricesheets.json | 36 +++---------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index a60b88d1bb42..12cd09c6e80f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -227,6 +227,10 @@ "type":"string", "readOnly":true }, + "isDataAction":{ + "description":"Indicates whether the operation is a data action", + "type":"boolean" + }, "display":{ "description":"The object that represents the operation.", "type":"object", @@ -255,28 +259,6 @@ } } }, - "OperationDisplay":{ - "description":"Operation display payload", - "type":"object", - "properties":{ - "provider":{ - "description":"Resource provider of the operation", - "type":"string" - }, - "resource":{ - "description":"Resource of the operation", - "type":"string" - }, - "operation":{ - "description":"Localized friendly name for the operation", - "type":"string" - }, - "description":{ - "description":"Localized friendly description for the operation", - "type":"string" - } - } - }, "OperationListResult":{ "description":"Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", "type":"object", @@ -293,15 +275,7 @@ "description":"URL to get the next set of operation list results if there are any.", "type":"string", "readOnly":true - }, - "isDataAction":{ - "description":"Indicates whether the operation is a data action", - "type":"boolean" - }, - "display":{ - "$ref":"#/definitions/OperationDisplay", - "description":"Display of the operation" - } + } } }, "ErrorDetails":{ From 392fbc4dbb29cb7aab77388b7ff123b698a6f481 Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 23 Feb 2022 19:55:06 -0800 Subject: [PATCH 32/33] Update costmanagement.pricesheets.json From b90ab1586cb99fc47f4969e5c0c9a569d7d1e40e Mon Sep 17 00:00:00 2001 From: janakiramachandran <94479298+janakiramachandran@users.noreply.github.com> Date: Wed, 23 Feb 2022 21:14:21 -0800 Subject: [PATCH 33/33] PrettierNPM --- .../costmanagement.pricesheets.json | 800 +++++++++--------- .../examples/OperationList.json | 38 +- .../examples/PricesheetDownload.json | 46 +- .../PricesheetDownloadByBillingProfile.json | 44 +- 4 files changed, 464 insertions(+), 464 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json index 12cd09c6e80f..4293eb75935d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json @@ -1,400 +1,400 @@ -{ - "swagger":"2.0", - "info":{ - "version":"2022-02-01-preview", - "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":"#/parameters/apiVersionParameter" - }, - { - "$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":"#/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.The name of the zip file is AzurePricesheet as gzip.The names of multiple csv files are AzurePricesheet _1, AzurePricesheet _2", - "parameters":[ - { - "$ref":"#/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" - }, - "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":"#/definitions/ErrorResponse" - } - } - } - } - }, - "/providers/Microsoft.CostManagement/operations":{ - "get":{ - "tags":[ - "Operations" - ], - "x-ms-examples":{ - "OperationsList":{ - "$ref":"./examples/OperationList.json" - } - }, - "externalDocs":{ - "url":"https://docs.microsoft.com/en-us/rest/api/cost-management/" - }, - "operationId":"Operations_List", - "description":"Lists all of the available consumption REST API operations.", - "parameters":[ - { - "$ref":"#/parameters/apiVersionParameter" - } - ], - "responses":{ - "200":{ - "description":"OK. The request has succeeded.", - "schema":{ - "$ref":"#/definitions/OperationListResult" - } - }, - "default":{ - "description":"Error response describing why the operation failed.", - "schema":{ - "$ref":"#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable":{ - "nextLinkName":"nextLink" - } - } - } - }, - "definitions":{ - "Error":{ - "description":"Error details for transfer execution.", - "type":"object", - "properties":{ - "errorCode":{ - "type":"string", - "readOnly":true, - "description":"Error code." - }, - "errorMessage":{ - "type":"string", - "readOnly":true, - "description":"Error message." - } - } - }, - "Operation":{ - "description":"A Consumption REST API operation.", - "type":"object", - "properties":{ - "id":{ - "readOnly":true, - "type":"string", - "description":"Operation Id." - }, - "name":{ - "description":"Operation name: {provider}/{resource}/{operation}.", - "type":"string", - "readOnly":true - }, - "isDataAction":{ - "description":"Indicates whether the operation is a data action", - "type":"boolean" - }, - "display":{ - "description":"The object that represents the operation.", - "type":"object", - "properties":{ - "provider":{ - "description":"Service provider: Microsoft.Consumption.", - "type":"string", - "readOnly":true - }, - "resource":{ - "description":"Resource on which the operation is performed: UsageDetail, etc.", - "type":"string", - "readOnly":true - }, - "operation":{ - "description":"Operation type: Read, write, delete, etc.", - "type":"string", - "readOnly":true - }, - "description":{ - "description":"Description of the operation.", - "type":"string", - "readOnly":true - } - } - } - } - }, - "OperationListResult":{ - "description":"Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", - "type":"object", - "properties":{ - "value":{ - "description":"List of consumption operations supported by the Microsoft.Consumption resource provider.", - "type":"array", - "readOnly":true, - "items":{ - "$ref":"#/definitions/Operation" - } - }, - "nextLink":{ - "description":"URL to get the next set of operation list results if there are any.", - "type":"string", - "readOnly":true - } - } - }, - "ErrorDetails":{ - "description":"The details of the error.", - "type":"object", - "properties":{ - "code":{ - "description":"Error code.", - "type":"string", - "readOnly":true - }, - "message":{ - "description":"Error message indicating why the operation failed.", - "type":"string", - "readOnly":true - } - } - }, - "ErrorResponse":{ - "description":"Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", - "type":"object", - "properties":{ - "error":{ - "description":"The details of the error.", - "$ref":"#/definitions/ErrorDetails" - } - } - }, - "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":{ - "description":"The URL to the ZIP file. This Zip file will consists of multiple CSV files", - "type":"string", - "readOnly":true - } - } - }, - "ProxyResource":{ - "description":"The Resource model definition.", - "type":"object", - "properties":{ - "id":{ - "readOnly":true, - "type":"string", - "description":"Resource Id." - }, - "name":{ - "readOnly":true, - "type":"string", - "description":"Resource name." - }, - "type":{ - "readOnly":true, - "type":"string", - "description":"Resource type." - }, - "eTag":{ - "type":"string", - "description":"eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." - } - }, - "x-ms-azure-resource":true - } - }, - "parameters":{ - "apiVersionParameter":{ - "name":"api-version", - "in":"query", - "required":true, - "type":"string", - "description":"Version of the API to be used with the client request." - }, - "billingAccountNameParameter":{ - "name":"billingAccountName", - "in":"path", - "description":"The ID that uniquely identifies a billing account.", - "required":true, - "type":"string", - "x-ms-parameter-location":"method" - }, - "billingProfileNameParameter":{ - "name":"billingProfileName", - "in":"path", - "description":"The ID that uniquely identifies a billing profile.", - "required":true, - "type":"string", - "x-ms-parameter-location":"method" - }, - "operationIdParameter":{ - "name":"operationId", - "in":"path", - "description":"Operation Id.", - "required":true, - "type":"string", - "x-ms-parameter-location":"method" - }, - "billingAccountIdParameter":{ - "name":"billingAccountId", - "in":"path", - "description":"BillingAccount ID", - "required":true, - "type":"string", - "x-ms-parameter-location":"method" - }, - "invoiceNameParameter":{ - "name":"invoiceName", - "in":"path", - "description":"The ID that uniquely identifies an invoice.", - "required":true, - "type":"string", - "x-ms-parameter-location":"method" - } - } -} +{ + "swagger": "2.0", + "info": { + "version": "2022-02-01-preview", + "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": "#/parameters/apiVersionParameter" + }, + { + "$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": "#/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.The name of the zip file is AzurePricesheet as gzip.The names of multiple csv files are AzurePricesheet _1, AzurePricesheet _2", + "parameters": [ + { + "$ref": "#/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" + }, + "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": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "tags": [ + "Operations" + ], + "x-ms-examples": { + "OperationsList": { + "$ref": "./examples/OperationList.json" + } + }, + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/cost-management/" + }, + "operationId": "Operations_List", + "description": "Lists all of the available consumption REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Error": { + "description": "Error details for transfer execution.", + "type": "object", + "properties": { + "errorCode": { + "type": "string", + "readOnly": true, + "description": "Error code." + }, + "errorMessage": { + "type": "string", + "readOnly": true, + "description": "Error message." + } + } + }, + "Operation": { + "description": "A Consumption REST API operation.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Operation Id." + }, + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Consumption.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: UsageDetail, etc.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Description of the operation.", + "type": "string", + "readOnly": true + } + } + } + } + }, + "OperationListResult": { + "description": "Result of listing consumption operations. It contains a list of operations and a URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "List of consumption operations supported by the Microsoft.Consumption resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorDetails": { + "description": "The details of the error.", + "type": "object", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "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": { + "description": "The URL to the ZIP file. This Zip file will consists of multiple CSV files", + "type": "string", + "readOnly": true + } + } + }, + "ProxyResource": { + "description": "The Resource model definition.", + "type": "object", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "eTag": { + "type": "string", + "description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not." + } + }, + "x-ms-azure-resource": true + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request." + }, + "billingAccountNameParameter": { + "name": "billingAccountName", + "in": "path", + "description": "The ID that uniquely identifies a billing account.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingProfileNameParameter": { + "name": "billingProfileName", + "in": "path", + "description": "The ID that uniquely identifies a billing profile.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "operationIdParameter": { + "name": "operationId", + "in": "path", + "description": "Operation Id.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingAccountIdParameter": { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "invoiceNameParameter": { + "name": "invoiceName", + "in": "path", + "description": "The ID that uniquely identifies an invoice.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json index 9b777dd077fc..39cd69d083f3 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/OperationList.json @@ -1,22 +1,22 @@ { - "parameters":{ - "api-version":"2022-02-01-preview" - }, - "responses":{ - "200":{ - "body":{ - "value":[ - { - "display":{ - "description":"Cost Management allowed operations", - "provider":"Microsoft.CostManagement", - "resource":"Pricesheets" - }, - "id":"edbb014c-80ca-55f8-ffe8-5b0e223f3c96", - "name":"/providers/Microsoft.CostManagement/OperationStatus" - } - ] - } + "parameters": { + "api-version": "2022-02-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "display": { + "description": "Cost Management allowed operations", + "provider": "Microsoft.CostManagement", + "resource": "Pricesheets" + }, + "id": "edbb014c-80ca-55f8-ffe8-5b0e223f3c96", + "name": "/providers/Microsoft.CostManagement/OperationStatus" + } + ] } - } + } + } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json index 14caa97716ad..96fc1c914d5b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownload.json @@ -1,23 +1,23 @@ -{ - "parameters":{ - "api-version":"2022-02-01-preview", - "billingAccountName":"{billingAccountName}", - "billingProfileName":"{billingProfileName}", - "invoiceName":"{invoiceName}" - }, - "responses":{ - "202":{ - "headers":{ - "Location":"https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", - "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" - } - } - } -} +{ + "parameters": { + "api-version": "2022-02-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}", + "invoiceName": "{invoiceName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "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" + } + } + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json index 19d53a41ce5c..71769ba075bc 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-02-01-preview/examples/PricesheetDownloadByBillingProfile.json @@ -1,22 +1,22 @@ -{ - "parameters":{ - "api-version":"2022-02-01-preview", - "billingAccountName":"{billingAccountName}", - "billingProfileName":"{billingProfileName}" - }, - "responses":{ - "202":{ - "headers":{ - "Location":"https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", - "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" - } - } - } -} +{ + "parameters": { + "api-version": "2022-02-01-preview", + "billingAccountName": "{billingAccountName}", + "billingProfileName": "{billingProfileName}" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Billing/operationResults/45000000-0000-0000-0000-000000000000?api-version=2018-07-31", + "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" + } + } + } +}