-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Creating Settings.json spec under preview #21723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
313 changes: 313 additions & 0 deletions
313
...gement/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json
This file contains hidden or 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,313 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "CostManagementClient", | ||
| "version": "2022-10-01-preview" | ||
| }, | ||
| "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": { | ||
| "/{scope}/providers/Microsoft.CostManagement/settings": { | ||
| "get": { | ||
| "tags": [ | ||
| "Settings" | ||
| ], | ||
| "operationId": "Settings_List", | ||
| "description": "List all cost management settings in the requested scope.", | ||
| "externalDocs": { | ||
| "url": "https://docs.microsoft.com/rest/api/cost-management/" | ||
| }, | ||
| "x-ms-examples": { | ||
| "SettingsList": { | ||
| "$ref": "./examples/settingsList.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/scopeSettingParameter" | ||
| }, | ||
| { | ||
| "$ref": "common-types.json#/parameters/apiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/SettingsListResult" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "common-types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/{scope}/providers/Microsoft.CostManagement/settings/{type}": { | ||
| "put": { | ||
| "tags": [ | ||
| "Settings" | ||
| ], | ||
| "operationId": "Settings_CreateOrUpdateByScope", | ||
| "description": "Create or update a setting within the given scope.", | ||
| "x-ms-examples": { | ||
| "CreateOrUpdateSettingByScope": { | ||
| "$ref": "./examples/settings-createOrUpdate.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/scopeSettingParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/settingTypeParameter" | ||
| }, | ||
| { | ||
| "$ref": "common-types.json#/parameters/apiVersionParameter" | ||
| }, | ||
| { | ||
| "name": "setting", | ||
| "description": "Setting to be created or updated.", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/Setting" | ||
| } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "201": { | ||
| "description": "Setting Created.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Setting" | ||
| } | ||
| }, | ||
| "200": { | ||
| "description": "Setting Updated.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Setting" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "common-types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "get": { | ||
| "tags": [ | ||
| "Settings" | ||
| ], | ||
| "operationId": "Settings_GetByScope", | ||
| "description": "Get the setting from the given scope by name.", | ||
| "externalDocs": { | ||
| "url": "https://docs.microsoft.com/rest/api/cost-management/" | ||
| }, | ||
| "x-ms-examples": { | ||
| "SettingByScope": { | ||
| "$ref": "./examples/setting-get.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/scopeSettingParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/settingTypeParameter" | ||
| }, | ||
| { | ||
| "$ref": "common-types.json#/parameters/apiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded.", | ||
| "schema": { | ||
| "$ref": "#/definitions/Setting" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "common-types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "delete": { | ||
| "tags": [ | ||
| "Settings" | ||
| ], | ||
| "operationId": "Settings_DeleteByScope", | ||
| "description": "Delete a setting within the given scope.", | ||
| "externalDocs": { | ||
| "url": "https://docs.microsoft.com/rest/api/cost-management/" | ||
| }, | ||
| "x-ms-examples": { | ||
| "SettingDeleteByScope": { | ||
| "$ref": "./examples/setting-delete.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/scopeSettingParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/settingTypeParameter" | ||
| }, | ||
| { | ||
| "$ref": "common-types.json#/parameters/apiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK. The request has succeeded." | ||
|
thramu marked this conversation as resolved.
|
||
| }, | ||
| "204": { | ||
| "description": "OK. The request has succeeded." | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "common-types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "Setting": { | ||
| "description": "Setting definition.", | ||
| "discriminator": "kind", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "common-types.json#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "kind": { | ||
| "type": "string", | ||
| "description": "Specifies the kind of settings.", | ||
| "enum": [ | ||
| "taginheritance" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "SettingsKind", | ||
| "modelAsString": true | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "kind" | ||
| ] | ||
| }, | ||
| "TagInheritanceSetting": { | ||
| "description": "Tag Inheritance Setting definition.", | ||
| "type": "object", | ||
| "x-ms-discriminator-value": "taginheritance", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/Setting" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "properties": { | ||
|
thramu marked this conversation as resolved.
|
||
| "$ref": "#/definitions/TagInheritanceProperties", | ||
| "title": "Tag Inheritance properties" | ||
| } | ||
| } | ||
| }, | ||
| "SettingsListResult": { | ||
| "description": "Setting list result. It contains a list of settings.", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "The list of settings.", | ||
| "type": "array", | ||
| "readOnly": true, | ||
| "items": { | ||
| "$ref": "#/definitions/Setting" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "TagInheritanceProperties": { | ||
| "type": "object", | ||
| "description": "The properties of the tag inheritance setting.", | ||
| "required": [ | ||
| "preferContainerTags" | ||
| ], | ||
| "properties": { | ||
| "preferContainerTags": { | ||
|
thramu marked this conversation as resolved.
|
||
| "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", | ||
| "type": "boolean" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "scopeSettingParameter": { | ||
| "name": "scope", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The scope associated with setting. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billing profile scope.", | ||
|
thramu marked this conversation as resolved.
|
||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "settingTypeParameter": { | ||
| "name": "type", | ||
| "in": "path", | ||
| "description": "Setting type.", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method", | ||
| "enum": [ | ||
| "taginheritance" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "SettingType", | ||
| "modelAsString": true, | ||
| "values": [ | ||
| { | ||
| "value": "taginheritance", | ||
| "description": "Tag Inheritance Settings is to inherit user defined tags from container(subscription/resource group) to its respective resources.", | ||
| "name": "TagInheritance" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.