From 77b41541e8a7f91ddeb4f15cc662b21d715b8a8d Mon Sep 17 00:00:00 2001 From: srilatha inavolu Date: Sat, 16 Apr 2022 04:08:59 -0700 Subject: [PATCH] [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2021-10-01 (#18676) * Adding common-types u u u * Adding common-types u u u u:x * Fixing common-types ref in exports.json * Fixing references and remove Resource definition * Reverting changes to pricesheets * Adding Operations_List example * Adding example * Reverting breaking change * Reverting a breaking change and using ApiVersionParameter from types.json * Reverting api-version parameter change since that flagged as a breaking change --- .../stable/2021-10-01/common-types.json | 71 ++++++++ .../2021-10-01/costmanagement.exports.json | 119 ++------------ ...management.generatedetailedcostreport.json | 47 +----- .../stable/2021-10-01/costmanagement.json | 152 ++++++------------ .../2021-10-01/examples/OperationList.json | 113 +++++++++++++ 5 files changed, 255 insertions(+), 247 deletions(-) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/common-types.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/examples/OperationList.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/common-types.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/common-types.json new file mode 100644 index 000000000000..286119be63a9 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/common-types.json @@ -0,0 +1,71 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-10-01", + "title": "Cost Management common types" + }, + "paths": {}, + "definitions": { + "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" + } + } + }, + "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 + } + } + }, + "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." + } + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json index 04eded4633c5..2f6099525030 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json @@ -68,7 +68,7 @@ "$ref": "#/parameters/scopeExportParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "name": "$expand", @@ -88,7 +88,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -129,7 +129,7 @@ "$ref": "#/parameters/scopeExportParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/exportNameParameter" @@ -152,7 +152,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -191,7 +191,7 @@ "$ref": "#/parameters/scopeExportParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/exportNameParameter" @@ -222,7 +222,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -261,7 +261,7 @@ "$ref": "#/parameters/scopeExportParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/exportNameParameter" @@ -274,7 +274,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -315,7 +315,7 @@ "$ref": "#/parameters/scopeExportParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/exportNameParameter" @@ -328,7 +328,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -369,7 +369,7 @@ "$ref": "#/parameters/scopeExportParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/exportNameParameter" @@ -385,7 +385,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -393,88 +393,6 @@ } }, "definitions": { - "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" - } - } - }, - "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 - } - } - }, - "Resource": { - "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." - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." - } - }, - "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." - } - }, - "x-ms-azure-resource": true - }, "ExportListResult": { "description": "Result of listing exports. It contains a list of available exports in the scope provided.", "type": "object", @@ -494,7 +412,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "common-types.json#/definitions/ProxyResource" } ], "properties": { @@ -781,7 +699,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "common-types.json#/definitions/ProxyResource" } ], "properties": { @@ -854,19 +772,12 @@ }, "error": { "description": "The details of any error.", - "$ref": "#/definitions/ErrorDetails" + "$ref": "common-types.json#/definitions/ErrorDetails" } } } }, "parameters": { - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request." - }, "scopeExportParameter": { "name": "scope", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.generatedetailedcostreport.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.generatedetailedcostreport.json index 8c8359107f03..860cc3abde70 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.generatedetailedcostreport.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.generatedetailedcostreport.json @@ -69,7 +69,7 @@ "$ref": "#/parameters/scopeUsageDetailsParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "name": "parameters", @@ -143,7 +143,7 @@ "$ref": "#/parameters/scopeUsageDetailsParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -159,7 +159,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -189,7 +189,7 @@ "$ref": "#/parameters/scopeUsageDetailsParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -202,7 +202,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -216,7 +216,7 @@ "properties": { "error": { "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetails" + "$ref": "common-types.json#/definitions/ErrorDetails" } } }, @@ -291,7 +291,7 @@ }, "error": { "description": "The details of the error.", - "$ref": "#/definitions/ErrorDetails" + "$ref": "common-types.json#/definitions/ErrorDetails" }, "properties": { "x-ms-client-flatten": true, @@ -338,32 +338,6 @@ } } }, - "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" - } - } - }, "Status": { "description": "The status of the long running operation.", "properties": { @@ -388,13 +362,6 @@ } }, "parameters": { - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request." - }, "scopeUsageDetailsParameter": { "name": "scope", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.json index 96596c83fdef..f5a19b0a9516 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.json @@ -50,7 +50,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -63,7 +63,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } }, @@ -92,7 +92,7 @@ "$ref": "#/parameters/scopeViewParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -105,7 +105,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } }, @@ -131,7 +131,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/viewNameParameter" @@ -147,7 +147,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -168,7 +168,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/viewNameParameter" @@ -199,7 +199,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -220,7 +220,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/viewNameParameter" @@ -236,7 +236,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -262,7 +262,7 @@ "$ref": "#/parameters/scopeViewParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/viewNameParameter" @@ -278,7 +278,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -302,7 +302,7 @@ "$ref": "#/parameters/scopeViewParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/viewNameParameter" @@ -333,7 +333,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -357,7 +357,7 @@ "$ref": "#/parameters/scopeViewParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/viewNameParameter" @@ -373,7 +373,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -414,7 +414,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/scopeAlertParameter" @@ -430,7 +430,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -456,7 +456,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/scopeAlertParameter" @@ -475,7 +475,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -499,7 +499,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/scopeAlertParameter" @@ -527,7 +527,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -553,7 +553,7 @@ }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/externalCloudProviderTypeParameter" @@ -572,7 +572,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -620,7 +620,7 @@ "type": "string" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/scopeForecastParameter" @@ -648,7 +648,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -681,7 +681,7 @@ "type": "string" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/externalCloudProviderTypeParameter" @@ -709,7 +709,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -811,7 +811,7 @@ "$ref": "#/parameters/scopeDimensionParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "name": "$filter", @@ -858,7 +858,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } }, @@ -894,7 +894,7 @@ "$ref": "#/parameters/externalCloudProviderIdParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "name": "$filter", @@ -938,7 +938,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } }, @@ -1024,7 +1024,7 @@ "$ref": "#/parameters/scopeQueryParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "name": "parameters", @@ -1049,7 +1049,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -1081,7 +1081,7 @@ "$ref": "#/parameters/externalCloudProviderIdParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" }, { "name": "parameters", @@ -1103,7 +1103,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -1139,7 +1139,7 @@ "$ref": "#/parameters/endDateParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -1166,7 +1166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -1205,7 +1205,7 @@ "$ref": "#/parameters/endDateParameter" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -1232,7 +1232,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } } @@ -1245,9 +1245,14 @@ ], "operationId": "Operations_List", "description": "Lists all of the available cost management REST API operations.", + "x-ms-examples": { + "OperationList": { + "$ref": "./examples/OperationList.json" + } + }, "parameters": [ { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "common-types.json#/parameters/apiVersionParameter" } ], "responses": { @@ -1260,7 +1265,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "common-types.json#/definitions/ErrorResponse" } } }, @@ -1581,7 +1586,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "common-types.json#/definitions/ProxyResource" } ], "properties": { @@ -1739,32 +1744,6 @@ } } }, - "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" - } - } - }, "Resource": { "description": "The Resource model definition.", "type": "object", @@ -1810,32 +1789,6 @@ }, "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." - } - }, - "x-ms-azure-resource": true - }, "DimensionsListResult": { "description": "Result of listing dimensions. It contains a list of available dimensions.", "type": "object", @@ -1948,7 +1901,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "common-types.json#/definitions/ProxyResource" } ], "properties": { @@ -2734,13 +2687,6 @@ } }, "parameters": { - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request." - }, "viewNameParameter": { "name": "viewName", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/examples/OperationList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/examples/OperationList.json new file mode 100644 index 000000000000..bb657778f56f --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/examples/OperationList.json @@ -0,0 +1,113 @@ +{ + "parameters": { + "api-version": "2021-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "Microsoft.CostManagement/budgets/read", + "name": "Microsoft.CostManagement/budgets/read", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Budgets", + "operation": "List budgets", + "description": "List the budgets by a subscription or a management group." + } + }, + { + "id": "Microsoft.CostManagement/query/action", + "name": "Microsoft.CostManagement/query/action", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Query", + "operation": "Query usage data", + "description": "Query usage data by a scope." + } + }, + { + "id": "Microsoft.CostManagement/exports/read", + "name": "Microsoft.CostManagement/exports/read", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Exports", + "operation": "List exports", + "description": "List the exports by scope." + } + }, + { + "id": "Microsoft.CostManagement/exports/write", + "name": "Microsoft.CostManagement/exports/write", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Exports", + "operation": "Create and update export", + "description": "Create or update the specified export." + } + }, + { + "id": "Microsoft.CostManagement/exports/action", + "name": "Microsoft.CostManagement/exports/action", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Exports", + "operation": "Run export", + "description": "Run the specified export." + } + }, + { + "id": "Microsoft.CostManagement/exports/run/action", + "name": "Microsoft.CostManagement/exports/run/action", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "exports/run", + "operation": "Run exports", + "description": "Run exports." + } + }, + { + "id": "Microsoft.CostManagement/alerts/read", + "name": "Microsoft.CostManagement/alerts/read", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Alerts", + "operation": "List Alerts", + "description": "List alerts." + } + }, + { + "id": "Microsoft.CostManagement/operations/read", + "name": "Microsoft.CostManagement/operations/read", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Operations", + "operation": "List supported operations", + "description": "List all supported operations by Microsoft.CostManagement resource provider." + } + }, + { + "id": "Microsoft.CostManagement/views/action", + "name": "Microsoft.CostManagement/views/action", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Views", + "operation": "Create views", + "description": "Create view." + } + }, + { + "id": "Microsoft.CostManagement/views/write", + "name": "Microsoft.CostManagement/views/write", + "display": { + "provider": "Microsoft.CostManagement", + "resource": "Views", + "operation": "Update views", + "description": "Update view." + } + } + ] + } + } + } +}