forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading Scheduled Actions API to GA (Azure#20964)
* Upgrading Scheduled Actions API to GA * First commit:- upgrading existing API to GA version * Upgraded api-version * Adding Operations API in common-types * upgrading api-version in Operations example * referencing common operation def * removing reference to common Operation as it caused multiple validation errors * renaming Operation to CostManagementOperation and referencing Operation from V3 types * fixing csv
- Loading branch information
1 parent
8d7bc83
commit 908adee
Showing
20 changed files
with
2,052 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
...t/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/OperationList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-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." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...e/2022-10-01/examples/scheduledActions/checkNameAvailability-private-scheduledAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-10-01", | ||
"checkNameAvailabilityRequest": { | ||
"name": "testName", | ||
"type": "Microsoft.CostManagement/ScheduledActions" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists", | ||
"message": "A private scheduled action with name 'testName' is already present. Please specify a differnt name." | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...le/2022-10-01/examples/scheduledActions/checkNameAvailability-shared-scheduledAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-10-01", | ||
"scope": "subscriptions/00000000-0000-0000-0000-000000000000", | ||
"checkNameAvailabilityRequest": { | ||
"name": "testName", | ||
"type": "Microsoft.CostManagement/ScheduledActions" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.