Skip to content

Commit 7ae7189

Browse files
kentzhanganuchandy
authored andcommitted
Microsoft.CostManagement - Add supression command into readme (#4334)
* Update specification/cost-management/resource-manager/readme.md add supression command into readme * Update specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json remove x-ms-mutability from collection property * Update specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json fix Automation for azure-sdk-for-go by adding operations method def * Update specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json add missing parameters * Update specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json fix typo
1 parent 01eb8f2 commit 7ae7189

File tree

2 files changed

+89
-3
lines changed

2 files changed

+89
-3
lines changed

specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,9 +1946,89 @@
19461946
}
19471947
}
19481948
}
1949+
},
1950+
"/providers/Microsoft.CostManagement/operations": {
1951+
"get": {
1952+
"tags": [
1953+
"Operations"
1954+
],
1955+
"operationId": "Operations_List",
1956+
"description": "Lists all of the available cost management REST API operations.",
1957+
"parameters": [
1958+
{
1959+
"$ref": "#/parameters/apiVersionParameter"
1960+
}
1961+
],
1962+
"responses": {
1963+
"200": {
1964+
"description": "OK. The request has succeeded.",
1965+
"schema": {
1966+
"$ref": "#/definitions/OperationListResult"
1967+
}
1968+
},
1969+
"default": {
1970+
"description": "Error response describing why the operation failed.",
1971+
"schema": {
1972+
"$ref": "#/definitions/ErrorResponse"
1973+
}
1974+
}
1975+
},
1976+
"x-ms-pageable": {
1977+
"nextLinkName": "nextLink"
1978+
}
1979+
}
19491980
}
19501981
},
19511982
"definitions": {
1983+
"Operation": {
1984+
"description": "A Cost Management REST API operation.",
1985+
"type": "object",
1986+
"properties": {
1987+
"name": {
1988+
"description": "Operation name: {provider}/{resource}/{operation}.",
1989+
"type": "string",
1990+
"readOnly": true
1991+
},
1992+
"display": {
1993+
"description": "The object that represents the operation.",
1994+
"properties": {
1995+
"provider": {
1996+
"description": "Service provider: Microsoft.CostManagement.",
1997+
"type": "string",
1998+
"readOnly": true
1999+
},
2000+
"resource": {
2001+
"description": "Resource on which the operation is performed: UsageDetail, etc.",
2002+
"type": "string",
2003+
"readOnly": true
2004+
},
2005+
"operation": {
2006+
"description": "Operation type: Read, write, delete, etc.",
2007+
"type": "string",
2008+
"readOnly": true
2009+
}
2010+
}
2011+
}
2012+
}
2013+
},
2014+
"OperationListResult": {
2015+
"description": "Result of listing CostManagement operations. It contains a list of operations and a URL link to get the next set of results.",
2016+
"properties": {
2017+
"value": {
2018+
"description": "List of CostManagement operations supported by the Microsoft.CostManagement resource provider.",
2019+
"type": "array",
2020+
"readOnly": true,
2021+
"items": {
2022+
"$ref": "#/definitions/Operation"
2023+
}
2024+
},
2025+
"nextLink": {
2026+
"description": "URL to get the next set of operation list results if there are any.",
2027+
"type": "string",
2028+
"readOnly": true
2029+
}
2030+
}
2031+
},
19522032
"ErrorBase": {
19532033
"description": "The details of the error.",
19542034
"properties": {
@@ -2784,9 +2864,6 @@
27842864
},
27852865
"collection": {
27862866
"$ref": "#/definitions/ConnectorCollectionInfo",
2787-
"x-ms-mutability": [
2788-
"read"
2789-
],
27902867
"description": "Collection information",
27912868
"readOnly": true
27922869
}

specification/cost-management/resource-manager/readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ These are the global settings for the Cost Management API.
2323
``` yaml
2424
openapi-type: arm
2525
tag: package-2018-05
26+
azure-validator: true
2627
```
2728
2829
---
@@ -35,6 +36,14 @@ input-file:
3536
- Microsoft.CostManagement/stable/2018-05-31/costmanagement.json
3637
```
3738

39+
## Suppression
40+
``` yaml
41+
directive:
42+
- suppress: R2059
43+
from: costmanagement.json
44+
where: $.paths
45+
reason: We are extending Microsoft.Billing RP in some scenarios
46+
```
3847

3948
### Tag: package-2018-08-preview
4049

0 commit comments

Comments
 (0)