From 48f9281d615c80b0aa6ea7a9ffa83e6a8ce932da Mon Sep 17 00:00:00 2001 From: Theertharaj Ramu Date: Thu, 1 Dec 2022 15:10:04 +0530 Subject: [PATCH 1/4] Creating Settings.json spec under preview --- .../2022-10-01-preview/costmanagement.json | 264 --------------- .../preview/2022-10-01-preview/settings.json | 313 ++++++++++++++++++ .../2022-10-05-preview/costmanagement.json | 264 --------------- .../preview/2022-10-05-preview/settings.json | 313 ++++++++++++++++++ 4 files changed, 626 insertions(+), 528 deletions(-) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json index fc6b6a73a383..a6bcf37e8426 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json @@ -1287,179 +1287,6 @@ "nextLinkName": "nextLink" } } - }, - "/{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." - }, - "204": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } } }, "definitions": { @@ -2893,75 +2720,6 @@ "name": "ReservationReportSchema", "modelAsString": true } - }, - "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": { - "$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": { - "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", - "type": "boolean" - } - } } }, "parameters": { @@ -2973,28 +2731,6 @@ "type": "string", "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" - } - ] - } - }, "scopeViewParameter": { "name": "scope", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json new file mode 100644 index 000000000000..a6686ad1b76e --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json @@ -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." + }, + "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": { + "$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": { + "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.", + "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" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json index b420ce8c3943..f2461ac96fb0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json @@ -1288,179 +1288,6 @@ } } }, - "/{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." - }, - "204": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } - } - }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules": { "get": { "tags": [ @@ -3302,75 +3129,6 @@ "name": "ReservationReportSchema", "modelAsString": true } - }, - "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": { - "$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": { - "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", - "type": "boolean" - } - } } }, "parameters": { @@ -3390,28 +3148,6 @@ "type": "string", "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" - } - ] - } - }, "scopeViewParameter": { "name": "scope", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json new file mode 100644 index 000000000000..638c5914c97d --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json @@ -0,0 +1,313 @@ +{ + "swagger": "2.0", + "info": { + "title": "CostManagementClient", + "version": "2022-10-05-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." + }, + "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": { + "$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": { + "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.", + "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" + } + ] + } + } + } +} \ No newline at end of file From 14f655fb12f034296c536b9e794ac132aca519d9 Mon Sep 17 00:00:00 2001 From: Theertharaj Ramu Date: Thu, 1 Dec 2022 15:16:47 +0530 Subject: [PATCH 2/4] Adding settings.json into readme.md --- specification/cost-management/resource-manager/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index 24878a10b326..f536e1e4b43a 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -55,6 +55,7 @@ These settings apply only when `--tag=package-preview-2022-10-05` is specified o ```yaml $(tag) == 'package-preview-2022-10-05' input-file: - Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json + - Microsoft.CostManagement/preview/2022-10-01-preview/settings.json ``` ### Tag: package-preview-2022-10 @@ -64,6 +65,7 @@ These settings apply only when `--tag=package-preview-2022-10` is specified on t ``` yaml $(tag) == 'package-preview-2022-10' input-file: - Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json + - Microsoft.CostManagement/preview/2022-10-01-preview/settings.json ``` ### Tag: package-preview-2022-08 From 09472d65192b82e4ff6f983db13cf75d6ad049c4 Mon Sep 17 00:00:00 2001 From: Theertharaj Ramu Date: Fri, 2 Dec 2022 00:50:13 +0530 Subject: [PATCH 3/4] Prettier fix --- .../2022-10-01-preview/costmanagement.json | 264 ++++++++ .../preview/2022-10-01-preview/settings.json | 594 +++++++++--------- .../2022-10-05-preview/costmanagement.json | 264 ++++++++ .../preview/2022-10-05-preview/settings.json | 594 +++++++++--------- .../resource-manager/readme.md | 2 +- 5 files changed, 1123 insertions(+), 595 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json index a6bcf37e8426..fc6b6a73a383 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json @@ -1287,6 +1287,179 @@ "nextLinkName": "nextLink" } } + }, + "/{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." + }, + "204": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "common-types.json#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -2720,6 +2893,75 @@ "name": "ReservationReportSchema", "modelAsString": true } + }, + "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": { + "$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": { + "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", + "type": "boolean" + } + } } }, "parameters": { @@ -2731,6 +2973,28 @@ "type": "string", "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" + } + ] + } + }, "scopeViewParameter": { "name": "scope", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json index a6686ad1b76e..c0ca43f150c1 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-01-preview/settings.json @@ -1,313 +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" + "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" + } + } } + } }, - "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" + } }, - "/{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." - }, - "204": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } + "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" } + } } - }, - "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" - ] + }, + "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/" }, - "TagInheritanceSetting": { - "description": "Tag Inheritance Setting definition.", - "type": "object", - "x-ms-discriminator-value": "taginheritance", - "allOf": [ - { - "$ref": "#/definitions/Setting" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TagInheritanceProperties", - "title": "Tag Inheritance properties" - } - } + "x-ms-examples": { + "SettingByScope": { + "$ref": "./examples/setting-get.json" + } }, - "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" - } - } + "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" } - }, - "TagInheritanceProperties": { - "type": "object", - "description": "The properties of the tag inheritance setting.", - "required": [ - "preferContainerTags" - ], - "properties": { - "preferContainerTags": { - "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", - "type": "boolean" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "common-types.json#/definitions/ErrorResponse" } + } } - }, - "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.", - "x-ms-parameter-location": "method" + }, + "delete": { + "tags": [ + "Settings" + ], + "operationId": "Settings_DeleteByScope", + "description": "Delete a setting within the given scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" }, - "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" - } - ] + "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." + }, + "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": { + "$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": { + "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.", + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json index f2461ac96fb0..b420ce8c3943 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json @@ -1288,6 +1288,179 @@ } } }, + "/{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." + }, + "204": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "common-types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/markupRules": { "get": { "tags": [ @@ -3129,6 +3302,75 @@ "name": "ReservationReportSchema", "modelAsString": true } + }, + "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": { + "$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": { + "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", + "type": "boolean" + } + } } }, "parameters": { @@ -3148,6 +3390,28 @@ "type": "string", "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" + } + ] + } + }, "scopeViewParameter": { "name": "scope", "in": "path", diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json index 638c5914c97d..1e9ee599a174 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json @@ -1,313 +1,313 @@ { - "swagger": "2.0", - "info": { - "title": "CostManagementClient", - "version": "2022-10-05-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" + "swagger": "2.0", + "info": { + "title": "CostManagementClient", + "version": "2022-10-05-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" + } + } } + } }, - "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" + } }, - "/{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." - }, - "204": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "common-types.json#/definitions/ErrorResponse" - } - } - } + "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" } + } } - }, - "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" - ] + }, + "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/" }, - "TagInheritanceSetting": { - "description": "Tag Inheritance Setting definition.", - "type": "object", - "x-ms-discriminator-value": "taginheritance", - "allOf": [ - { - "$ref": "#/definitions/Setting" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TagInheritanceProperties", - "title": "Tag Inheritance properties" - } - } + "x-ms-examples": { + "SettingByScope": { + "$ref": "./examples/setting-get.json" + } }, - "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" - } - } + "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" } - }, - "TagInheritanceProperties": { - "type": "object", - "description": "The properties of the tag inheritance setting.", - "required": [ - "preferContainerTags" - ], - "properties": { - "preferContainerTags": { - "description": "Prefer Container tags to override container tags with resource tags in case of conflicts.", - "type": "boolean" - } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "common-types.json#/definitions/ErrorResponse" } + } } - }, - "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.", - "x-ms-parameter-location": "method" + }, + "delete": { + "tags": [ + "Settings" + ], + "operationId": "Settings_DeleteByScope", + "description": "Delete a setting within the given scope.", + "externalDocs": { + "url": "https://docs.microsoft.com/rest/api/cost-management/" }, - "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" - } - ] + "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." + }, + "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": { + "$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": { + "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.", + "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" + } + ] + } } -} \ No newline at end of file + } +} diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index f536e1e4b43a..4dddb6da306a 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -55,7 +55,7 @@ These settings apply only when `--tag=package-preview-2022-10-05` is specified o ```yaml $(tag) == 'package-preview-2022-10-05' input-file: - Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json - - Microsoft.CostManagement/preview/2022-10-01-preview/settings.json + - Microsoft.CostManagement/preview/2022-10-05-preview/settings.json ``` ### Tag: package-preview-2022-10 From 6aefc5c0653fc14e9dcfa467712f38e05b9f8a63 Mon Sep 17 00:00:00 2001 From: Theertharaj Ramu Date: Mon, 5 Dec 2022 12:52:32 +0530 Subject: [PATCH 4/4] Review comments --- .../preview/2022-10-05-preview/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json index 1e9ee599a174..899235cd412e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2022-10-05-preview/settings.json @@ -192,10 +192,10 @@ ], "responses": { "200": { - "description": "OK. The request has succeeded." + "description": "Setting deleted successfully." }, "204": { - "description": "OK. The request has succeeded." + "description": "Setting is already deleted or not found." }, "default": { "description": "Error response describing why the operation failed.",