diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json index e737d0fe77a4..2cada3c5bc95 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json @@ -1946,9 +1946,89 @@ } } } + }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available cost management 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": { + "Operation": { + "description": "A Cost Management REST API operation.", + "type": "object", + "properties": { + "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.CostManagement.", + "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 + } + } + } + } + }, + "OperationListResult": { + "description": "Result of listing CostManagement operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of CostManagement operations supported by the Microsoft.CostManagement 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 + } + } + }, "ErrorBase": { "description": "The details of the error.", "properties": { @@ -2784,9 +2864,6 @@ }, "collection": { "$ref": "#/definitions/ConnectorCollectionInfo", - "x-ms-mutability": [ - "read" - ], "description": "Collection information", "readOnly": true } diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index ade67a1f48e1..2574976be824 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -23,6 +23,7 @@ These are the global settings for the Cost Management API. ``` yaml openapi-type: arm tag: package-2018-05 +azure-validator: true ``` --- @@ -35,6 +36,14 @@ input-file: - Microsoft.CostManagement/stable/2018-05-31/costmanagement.json ``` +## Suppression +``` yaml +directive: + - suppress: R2059 + from: costmanagement.json + where: $.paths + reason: We are extending Microsoft.Billing RP in some scenarios +``` ### Tag: package-2018-08-preview