diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/Addons.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/Addons.json index e73eaabd55e1..a4e9517dd2d7 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/Addons.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/Addons.json @@ -1,427 +1,444 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Addons Resource Provider", - "description": "The service for managing third party addons.", - "version": "2017-05-15" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "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": "Azure Addons Resource Provider", + "description": "The service for managing third party addons.", + "version": "2017-05-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "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": { + "/providers/Microsoft.Addons/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available Addons RP operations.", + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "List all the operations.", + "schema": { + "$ref": "#/definitions/OperationList" } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } } + } }, - "paths": { - "/providers/Microsoft.Addons/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists all of the available Addons RP operations.", - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" - } - }, - "parameters": [{ - "$ref": "#/parameters/ApiVersionParameter" - }], - "responses": { - "200": { - "description": "List all the operations.", - "schema": { - "$ref": "#/definitions/OperationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/ErrorDefinition" - } - } - } + "/subscriptions/{subscriptionId}/providers/Microsoft.Addons/supportProviders/{providerName}/supportPlanTypes/{planTypeName}": { + "get": { + "tags": [ + "AddonDetails" + ], + "operationId": "SupportPlanTypes_Get", + "description": "Returns whether or not the canonical support plan of type {type} is enabled for the subscription.", + "x-ms-examples": { + "SupportPlanTypes_Get": { + "$ref": "./examples/SupportPlanTypes_Get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/SupportProviderName" + }, + { + "$ref": "#/parameters/CanonicalSupportPlanType" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "'404' - 'Not Found'.\n'400' - 'Bad Request'", + "schema": { + "$ref": "#/definitions/ErrorDefinition" } + } + } + }, + "put": { + "tags": [ + "AddonDetails" + ], + "operationId": "SupportPlanTypes_CreateOrUpdate", + "description": "Creates or updates the Canonical support plan of type {type} for the subscription.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "SupportPlanTypes_CreateOrUpdate": { + "$ref": "./examples/SupportPlanTypes_CreateOrUpdate.json" + } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Addons/supportProviders/{providerName}/supportPlanTypes/{planTypeName}": { - "get": { - "tags": [ - "AddonDetails" - ], - "operationId": "SupportPlanTypes_Get", - "description": "Returns whether or not the canonical support plan of type {type} is enabled for the subscription.", - "x-ms-examples": { - "SupportPlanTypes_Get": { - "$ref": "./examples/SupportPlanTypes_Get.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/SupportProviderName" - }, - { - "$ref": "#/parameters/CanonicalSupportPlanType" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" - } - }, - "404": { - "description": "Not Found" - }, - "default": { - "description": "'404' - 'Not Found'.\n'400' - 'Bad Request'", - "schema": { - "$ref": "#/definitions/ErrorDefinition" - } - } - } - }, - "put": { - "tags": [ - "AddonDetails" - ], - "operationId": "SupportPlanTypes_CreateOrUpdate", - "description": "Creates or updates the Canonical support plan of type {type} for the subscription.", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "SupportPlanTypes_CreateOrUpdate": { - "$ref": "./examples/SupportPlanTypes_CreateOrUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/SupportProviderName" - }, - { - "$ref": "#/parameters/CanonicalSupportPlanType" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" - } - }, - "404": { - "description": "Not Found" - }, - "default": { - "description": "'404' - 'Not Found'.\n'400' - 'Bad Request'", - "schema": { - "$ref": "#/definitions/ErrorDefinition" - } - } - } - }, - "delete": { - "operationId": "SupportPlanTypes_Delete", - "description": "Cancels the Canonical support plan of type {type} for the subscription.", - "x-ms-long-running-operation": true, - "x-ms-examples": { - "SupportPlanTypes_Delete": { - "$ref": "./examples/SupportPlanTypes_Delete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/SupportProviderName" - }, - { - "$ref": "#/parameters/CanonicalSupportPlanType" - } - ], - "responses": { - "202": { - "description": "Accepted", - "headers": { - }, - "schema": { - "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" - } - }, - "204": { - "description": "No Content" - }, - "default": { - "description": "BadRequest", - "schema": { - "$ref": "#/definitions/ErrorDefinition" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/SupportProviderName" + }, + { + "$ref": "#/parameters/CanonicalSupportPlanType" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" + } + }, + "404": { + "description": "Not Found" + }, + "default": { + "description": "'404' - 'Not Found'.\n'400' - 'Bad Request'", + "schema": { + "$ref": "#/definitions/ErrorDefinition" } + } + } + }, + "delete": { + "operationId": "SupportPlanTypes_Delete", + "description": "Cancels the Canonical support plan of type {type} for the subscription.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "SupportPlanTypes_Delete": { + "$ref": "./examples/SupportPlanTypes_Delete.json" + } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Addons/supportProviders/{providerName}/supportPlanTypes": { - "get": { - "tags": [ - "CanonicalSupportPlanStatus" - ], - "operationId": "CanonicalSupportPlanTypes_Get", - "summary": "Returns the Canonical Support Plans.", - "description": "Returns the Canonical Support Plans as well as whether they are enabled or not for the subscription.", - "x-ms-examples": { - "CanonicalSupportPlanTypes_Get": { - "$ref": "./examples/CanonicalSupportPlanTypes_Get.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/SupportProviderName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CanonicalSupportPlanStatus" - } - }, - "default": { - "description": "'404' - 'Not Found'.\n'400' - 'Bad Request'", - "schema": { - "$ref": "#/definitions/ErrorDefinition" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/SupportProviderName" + }, + { + "$ref": "#/parameters/CanonicalSupportPlanType" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": {}, + "schema": { + "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "BadRequest", + "schema": { + "$ref": "#/definitions/ErrorDefinition" } + } } + } }, - "definitions": { - "CanonicalSupportPlanProperties": { - "type": "object", - "description": "The properties of the Canonical support plan.", - "properties": { - "provisioningState": { - "type": "string", - "description": "The provisioning state of the resource.", - "enum": ["Succeeded", "Failed", "Cancelled", "Purchasing", "Downgrading", "Cancelling", "Upgrading"], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - } - } - }, - "CanonicalSupportPlanResponseEnvelope": { - "type": "object", - "description": "The status of the Canonical support plan.", - "required": [ - "properties" - ], - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The id of the ARM resource, e.g. \"/subscriptions/{id}/providers/Microsoft.Addons/supportProvider/{supportProviderName}/supportPlanTypes/{planTypeName}\"." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the Canonical support plan, i.e. \"essential\", \"standard\" or \"advanced\"." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Microsoft.Addons/supportProvider" - }, - "properties": { - "type": "object", - "$ref": "#/definitions/CanonicalSupportPlanProperties", - "description": "Describes Canonical support plan type and status.", - "x-ms-client-flatten": true - } - }, - "x-ms-azure-resource": true + "/subscriptions/{subscriptionId}/providers/Microsoft.Addons/supportProviders/{providerName}/supportPlanTypes": { + "get": { + "tags": [ + "CanonicalSupportPlanStatus" + ], + "operationId": "CanonicalSupportPlanTypes_Get", + "summary": "Returns the Canonical Support Plans.", + "description": "Returns the Canonical Support Plans as well as whether they are enabled or not for the subscription.", + "x-ms-examples": { + "CanonicalSupportPlanTypes_Get": { + "$ref": "./examples/CanonicalSupportPlanTypes_Get.json" + } }, - "CanonicalSupportPlanStatus" : { - "type": "array", - "title": "Canonical Support Plan Status", - "description": "Contains Canonical support plan status information.", - "items": { - "properties": { - "supportPlanType": { - "type": "string", - "description": "Support plan type.", - "enum": ["essential", "standard", "advanced"], - "x-ms-enum": { - "name": "SupportPlanType", - "modelAsString": true - } - }, - "enabled": { - "type": "boolean", - "description": "Whether the support plan is enabled for this subscription." - }, - "willEmitOneTimeChargeWhenEnabled": { - "type": "boolean", - "description": "This indicates that when this support plan is enabled if AddonsRP will emit a one-time charge." - }, - "willEmitOneTimeChargeIfReEnabled": { - "type": "boolean", - "description": "This indicates that when this support plan is cancelled and then enabled that AddonsRP will emit a one-time charge." - } - } - } - }, - "OperationList": { - "type": "array", - "description": "List of supported operations.", - "items": { - "$ref": "#/definitions/OperationsDefinition" + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/SupportProviderName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CanonicalSupportPlanStatus" } - }, - "OperationsDefinition": { - "type": "object", - "description": "Definition object with the name and properties of an operation.", - "properties": { - "name": { - "type": "string", - "description": "Name of the operation." - }, - "display": { - "$ref": "#/definitions/OperationsDisplayDefinition", - "description": "Display object with properties of the operation." - } + }, + "default": { + "description": "'404' - 'Not Found'.\n'400' - 'Bad Request'", + "schema": { + "$ref": "#/definitions/ErrorDefinition" } + } + } + } + } + }, + "definitions": { + "CanonicalSupportPlanProperties": { + "type": "object", + "description": "The properties of the Canonical support plan.", + "properties": { + "provisioningState": { + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Succeeded", + "Failed", + "Cancelled", + "Purchasing", + "Downgrading", + "Cancelling", + "Upgrading" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + } + } + }, + "CanonicalSupportPlanResponseEnvelope": { + "type": "object", + "description": "The status of the Canonical support plan.", + "required": [ + "properties" + ], + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The id of the ARM resource, e.g. \"/subscriptions/{id}/providers/Microsoft.Addons/supportProvider/{supportProviderName}/supportPlanTypes/{planTypeName}\"." }, - "OperationsDisplayDefinition": { - "type": "object", - "description": "Display object with properties of the operation.", - "properties": { - "provider": { - "type": "string", - "description": "Resource provider of the operation." - }, - "resource": { - "type": "string", - "description": "Resource for the operation." - }, - "operation": { - "type": "string", - "description": "Short description of the operation." - }, - "description": { - "type": "string", - "description": "Description of the operation." - } - } + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the Canonical support plan, i.e. \"essential\", \"standard\" or \"advanced\"." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Microsoft.Addons/supportProvider" }, - "ErrorDefinition": { - "type": "object", - "title": "Error", - "description": "Error description and code explaining why an operation failed.", - "required": [ - "message", - "code" + "properties": { + "type": "object", + "$ref": "#/definitions/CanonicalSupportPlanProperties", + "description": "Describes Canonical support plan type and status.", + "x-ms-client-flatten": true + } + }, + "x-ms-azure-resource": true + }, + "CanonicalSupportPlanStatus": { + "type": "array", + "title": "Canonical Support Plan Status", + "description": "Contains Canonical support plan status information.", + "items": { + "properties": { + "supportPlanType": { + "type": "string", + "description": "Support plan type.", + "enum": [ + "essential", + "standard", + "advanced" ], - "properties": { - "message": { - "type": "string", - "description": "Description of the error." - }, - "code": { - "type": "integer", - "description": "Service specific error code which serves as the substatus for the HTTP error code.", - "minimum": 100, - "maximum": 600 - } + "x-ms-enum": { + "name": "SupportPlanType", + "modelAsString": true } + }, + "enabled": { + "type": "boolean", + "description": "Whether the support plan is enabled for this subscription." + }, + "willEmitOneTimeChargeWhenEnabled": { + "type": "boolean", + "description": "This indicates that when this support plan is enabled if AddonsRP will emit a one-time charge." + }, + "willEmitOneTimeChargeIfReEnabled": { + "type": "boolean", + "description": "This indicates that when this support plan is cancelled and then enabled that AddonsRP will emit a one-time charge." + } } + } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials that uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + "OperationList": { + "type": "array", + "description": "List of supported operations.", + "items": { + "$ref": "#/definitions/OperationsDefinition" + } + }, + "OperationsDefinition": { + "type": "object", + "description": "Definition object with the name and properties of an operation.", + "properties": { + "name": { + "type": "string", + "description": "Name of the operation." }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API version." + "display": { + "$ref": "#/definitions/OperationsDisplayDefinition", + "description": "Display object with properties of the operation." + } + } + }, + "OperationsDisplayDefinition": { + "type": "object", + "description": "Display object with properties of the operation.", + "properties": { + "provider": { + "type": "string", + "description": "Resource provider of the operation." }, - "SupportProviderName": { - "name": "providerName", - "in": "path", - "required": true, - "type": "string", - "description": "The support plan type. For now the only valid type is \"canonical\".", - "x-ms-parameter-location": "method" + "resource": { + "type": "string", + "description": "Resource for the operation." }, - "CanonicalSupportPlanType": { - "name": "planTypeName", - "in": "path", - "required": true, - "type": "string", - "description": "The Canonical support plan type.", - "enum": ["Essential", "Standard", "Advanced"], - "x-ms-enum": { - "name": "PlanTypeName", - "modelAsString": true - }, - "x-ms-parameter-location": "method" + "operation": { + "type": "string", + "description": "Short description of the operation." }, - "OperationResultsIdParameter": { - "name": "operationResultsId", - "in": "path", - "required": true, - "type": "string", - "description": "The id representing an async operation.", - "x-ms-parameter-location": "method" + "description": { + "type": "string", + "description": "Description of the operation." + } + } + }, + "ErrorDefinition": { + "type": "object", + "title": "Error", + "description": "Error description and code explaining why an operation failed.", + "required": [ + "message", + "code" + ], + "properties": { + "message": { + "type": "string", + "description": "Description of the error." + }, + "code": { + "type": "integer", + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "minimum": 100, + "maximum": 600 } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials that uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." + }, + "SupportProviderName": { + "name": "providerName", + "in": "path", + "required": true, + "type": "string", + "description": "The support plan type. For now the only valid type is \"canonical\".", + "x-ms-parameter-location": "method" + }, + "CanonicalSupportPlanType": { + "name": "planTypeName", + "in": "path", + "required": true, + "type": "string", + "description": "The Canonical support plan type.", + "enum": [ + "Essential", + "Standard", + "Advanced" + ], + "x-ms-enum": { + "name": "PlanTypeName", + "modelAsString": true + }, + "x-ms-parameter-location": "method" + }, + "OperationResultsIdParameter": { + "name": "operationResultsId", + "in": "path", + "required": true, + "type": "string", + "description": "The id representing an async operation.", + "x-ms-parameter-location": "method" } + } } diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/CanonicalSupportPlanTypes_Get.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/CanonicalSupportPlanTypes_Get.json index d0536db09402..4828c4468f56 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/CanonicalSupportPlanTypes_Get.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/CanonicalSupportPlanTypes_Get.json @@ -1,30 +1,31 @@ { - "parameters": { - "api-version": "2017-05-15", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical" - }, - "responses": { - "200": { - "body": [{ - "enabled": true, - "supportPlanType": "standard", - "willEmitOneTimeChargeIfReEnabled": true, - "willEmitOneTimeChargeWhenEnabled": false - }, - { - "enabled": false, - "supportPlanType": "advanced", - "willEmitOneTimeChargeIfReEnabled": false, - "willEmitOneTimeChargeWhenEnabled": true - }, - { - "enabled": false, - "supportPlanType": "essential", - "willEmitOneTimeChargeIfReEnabled": false, - "willEmitOneTimeChargeWhenEnabled": false - } - ] + "parameters": { + "api-version": "2017-05-15", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical" + }, + "responses": { + "200": { + "body": [ + { + "enabled": true, + "supportPlanType": "standard", + "willEmitOneTimeChargeIfReEnabled": true, + "willEmitOneTimeChargeWhenEnabled": false + }, + { + "enabled": false, + "supportPlanType": "advanced", + "willEmitOneTimeChargeIfReEnabled": false, + "willEmitOneTimeChargeWhenEnabled": true + }, + { + "enabled": false, + "supportPlanType": "essential", + "willEmitOneTimeChargeIfReEnabled": false, + "willEmitOneTimeChargeWhenEnabled": false } + ] } -} \ No newline at end of file + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/Operations_List.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/Operations_List.json index a4f43890ece9..b43f0323a561 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/Operations_List.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/Operations_List.json @@ -1,54 +1,56 @@ { - "parameters": { - "api-version": "2017-05-15" - }, - "responses": { - "200": { - "body": [{ - "name": "Microsoft.Addons/supportProviders/supportPlanTypes/read", - "display": { - "provider": "Microsoft Addons", - "resource": "supportPlanTypes", - "operation": "Get Canonical support plan state", - "description": "Get the specified Canonical support plan state." - } - }, - { - "name": "Microsoft.Addons/supportProviders/supportPlanTypes/write", - "display": { - "provider": "Microsoft Addons", - "resource": "supportPlanTypes", - "operation": "Adds a Canonical support plan.", - "description": "Adds the Canonical support plan type specified." - } - }, - { - "name": "Microsoft.Addons/supportProviders/supportPlanTypes/delete", - "display": { - "provider": "Microsoft Addons", - "resource": "supportPlanTypes", - "operation": "Removes the Canonical support plan", - "description": "Removes the specified Canonical support plan" - } - }, - { - "name": "Microsoft.Addons/supportProviders/canonical/supportPlanTypes/get", - "display": { - "provider": "Microsoft Addons", - "resource": "supportProviders", - "operation": "Gets available Canonical support plan types.", - "description": "Gets the available Canonical support plan types as well as some extra metadata on their enabled status." - } - }, - { - "name": "Microsoft.Addons/register/action", - "display": { - "provider": "Microsoft Addons", - "resource": "register", - "operation": "Register for Microsoft.Addons", - "description": "Register the specified subscription with Microsoft.Addons" - } - }] + "parameters": { + "api-version": "2017-05-15" + }, + "responses": { + "200": { + "body": [ + { + "name": "Microsoft.Addons/supportProviders/supportPlanTypes/read", + "display": { + "provider": "Microsoft Addons", + "resource": "supportPlanTypes", + "operation": "Get Canonical support plan state", + "description": "Get the specified Canonical support plan state." + } + }, + { + "name": "Microsoft.Addons/supportProviders/supportPlanTypes/write", + "display": { + "provider": "Microsoft Addons", + "resource": "supportPlanTypes", + "operation": "Adds a Canonical support plan.", + "description": "Adds the Canonical support plan type specified." + } + }, + { + "name": "Microsoft.Addons/supportProviders/supportPlanTypes/delete", + "display": { + "provider": "Microsoft Addons", + "resource": "supportPlanTypes", + "operation": "Removes the Canonical support plan", + "description": "Removes the specified Canonical support plan" + } + }, + { + "name": "Microsoft.Addons/supportProviders/canonical/supportPlanTypes/get", + "display": { + "provider": "Microsoft Addons", + "resource": "supportProviders", + "operation": "Gets available Canonical support plan types.", + "description": "Gets the available Canonical support plan types as well as some extra metadata on their enabled status." + } + }, + { + "name": "Microsoft.Addons/register/action", + "display": { + "provider": "Microsoft Addons", + "resource": "register", + "operation": "Register for Microsoft.Addons", + "description": "Register the specified subscription with Microsoft.Addons" + } } + ] } -} \ No newline at end of file + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_CreateOrUpdate.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_CreateOrUpdate.json index 63d319e3010a..83f2534533eb 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_CreateOrUpdate.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_CreateOrUpdate.json @@ -1,32 +1,31 @@ { - "parameters": { - "api-version": "2017-05-15", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical", - "planTypeName": "Standard" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "properties": { - "provisioningState": "Succeeded" - }, - "type": "Microsoft.Addons/supportProvider" - } + "parameters": { + "api-version": "2017-05-15", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical", + "planTypeName": "Standard" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "properties": { + "provisioningState": "Succeeded" }, - "201": { - "body": { - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "properties": { - "provisioningState": "Purchasing" - }, - "type": "Microsoft.Addons/supportProvider" - } + "type": "Microsoft.Addons/supportProvider" + } + }, + "201": { + "body": { + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "properties": { + "provisioningState": "Purchasing" }, - "404": { - } - } -} \ No newline at end of file + "type": "Microsoft.Addons/supportProvider" + } + }, + "404": {} + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Delete.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Delete.json index 7a19f0fe8f7c..0313d7ec7bcb 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Delete.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Delete.json @@ -1,22 +1,21 @@ { - "parameters": { - "api-version": "2017-05-15", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical", - "planTypeName": "Standard" - }, - "responses": { - "202": { - "body": { - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "properties": { - "provisioningState": "Cancelling" - }, - "type": "Microsoft.Addons/supportProvider" - } + "parameters": { + "api-version": "2017-05-15", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical", + "planTypeName": "Standard" + }, + "responses": { + "202": { + "body": { + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "properties": { + "provisioningState": "Cancelling" }, - "204": { - } - } -} \ No newline at end of file + "type": "Microsoft.Addons/supportProvider" + } + }, + "204": {} + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Get.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Get.json index b62c2166c61a..a041806e8ef5 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Get.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2017-05-15/examples/SupportPlanTypes_Get.json @@ -1,22 +1,21 @@ { - "parameters": { - "api-version": "2017-05-15", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical", - "planTypeName": "Standard" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "properties": { - "provisioningState": "Succeeded" - }, - "type": "Microsoft.Addons/supportProvider" - } + "parameters": { + "api-version": "2017-05-15", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical", + "planTypeName": "Standard" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "properties": { + "provisioningState": "Succeeded" }, - "404": { - } - } -} \ No newline at end of file + "type": "Microsoft.Addons/supportProvider" + } + }, + "404": {} + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/addons-swagger.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/addons-swagger.json index 333d8238eafd..62b473bf1191 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/addons-swagger.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/addons-swagger.json @@ -180,8 +180,7 @@ "responses": { "202": { "description": "Accepted", - "headers": { - }, + "headers": {}, "schema": { "$ref": "#/definitions/CanonicalSupportPlanResponseEnvelope" } @@ -246,7 +245,15 @@ "provisioningState": { "type": "string", "description": "The provisioning state of the resource.", - "enum": [ "Succeeded", "Failed", "Cancelled", "Purchasing", "Downgrading", "Cancelling", "Upgrading" ], + "enum": [ + "Succeeded", + "Failed", + "Cancelled", + "Purchasing", + "Downgrading", + "Cancelling", + "Upgrading" + ], "x-ms-enum": { "name": "ProvisioningState", "modelAsString": true @@ -300,7 +307,11 @@ "supportPlanType": { "type": "string", "description": "Support plan type.", - "enum": [ "essential", "standard", "advanced" ], + "enum": [ + "essential", + "standard", + "advanced" + ], "x-ms-enum": { "name": "SupportPlanType", "modelAsString": true @@ -313,7 +324,11 @@ "oneTimeCharge": { "type": "string", "description": "The one time charge status for the subscription.", - "enum": [ "no", "onEnabled", "onReenabled" ], + "enum": [ + "no", + "onEnabled", + "onReenabled" + ], "x-ms-enum": { "name": "OneTimeCharge", "modelAsString": true @@ -415,7 +430,11 @@ "required": true, "type": "string", "description": "The Canonical support plan type.", - "enum": [ "Essential", "Standard", "Advanced" ], + "enum": [ + "Essential", + "Standard", + "Advanced" + ], "x-ms-enum": { "name": "PlanTypeName", "modelAsString": true @@ -431,4 +450,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/CanonicalListSupportPlanInfo_Post.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/CanonicalListSupportPlanInfo_Post.json index fe84ccca563c..90bc6bd218d2 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/CanonicalListSupportPlanInfo_Post.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/CanonicalListSupportPlanInfo_Post.json @@ -1,29 +1,28 @@ { - "parameters": { - "api-version": "2018-03-01", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e" - }, - "responses": { - "200": { - "body": [ - { - "oneTimeCharge": "onReenabled", - "supportPlanType": "standard", - "enabled": false - }, - { - "oneTimeCharge": "onReenabled", - "supportPlanType": "advanced", - "enabled": false - }, - { - "oneTimeCharge": "no", - "supportPlanType": "essential", - "enabled": true - } - ] + "parameters": { + "api-version": "2018-03-01", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e" + }, + "responses": { + "200": { + "body": [ + { + "oneTimeCharge": "onReenabled", + "supportPlanType": "standard", + "enabled": false + }, + { + "oneTimeCharge": "onReenabled", + "supportPlanType": "advanced", + "enabled": false }, - "404": { + { + "oneTimeCharge": "no", + "supportPlanType": "essential", + "enabled": true } - } -} \ No newline at end of file + ] + }, + "404": {} + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/Operations_List.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/Operations_List.json index a4f43890ece9..b43f0323a561 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/Operations_List.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/Operations_List.json @@ -1,54 +1,56 @@ { - "parameters": { - "api-version": "2017-05-15" - }, - "responses": { - "200": { - "body": [{ - "name": "Microsoft.Addons/supportProviders/supportPlanTypes/read", - "display": { - "provider": "Microsoft Addons", - "resource": "supportPlanTypes", - "operation": "Get Canonical support plan state", - "description": "Get the specified Canonical support plan state." - } - }, - { - "name": "Microsoft.Addons/supportProviders/supportPlanTypes/write", - "display": { - "provider": "Microsoft Addons", - "resource": "supportPlanTypes", - "operation": "Adds a Canonical support plan.", - "description": "Adds the Canonical support plan type specified." - } - }, - { - "name": "Microsoft.Addons/supportProviders/supportPlanTypes/delete", - "display": { - "provider": "Microsoft Addons", - "resource": "supportPlanTypes", - "operation": "Removes the Canonical support plan", - "description": "Removes the specified Canonical support plan" - } - }, - { - "name": "Microsoft.Addons/supportProviders/canonical/supportPlanTypes/get", - "display": { - "provider": "Microsoft Addons", - "resource": "supportProviders", - "operation": "Gets available Canonical support plan types.", - "description": "Gets the available Canonical support plan types as well as some extra metadata on their enabled status." - } - }, - { - "name": "Microsoft.Addons/register/action", - "display": { - "provider": "Microsoft Addons", - "resource": "register", - "operation": "Register for Microsoft.Addons", - "description": "Register the specified subscription with Microsoft.Addons" - } - }] + "parameters": { + "api-version": "2017-05-15" + }, + "responses": { + "200": { + "body": [ + { + "name": "Microsoft.Addons/supportProviders/supportPlanTypes/read", + "display": { + "provider": "Microsoft Addons", + "resource": "supportPlanTypes", + "operation": "Get Canonical support plan state", + "description": "Get the specified Canonical support plan state." + } + }, + { + "name": "Microsoft.Addons/supportProviders/supportPlanTypes/write", + "display": { + "provider": "Microsoft Addons", + "resource": "supportPlanTypes", + "operation": "Adds a Canonical support plan.", + "description": "Adds the Canonical support plan type specified." + } + }, + { + "name": "Microsoft.Addons/supportProviders/supportPlanTypes/delete", + "display": { + "provider": "Microsoft Addons", + "resource": "supportPlanTypes", + "operation": "Removes the Canonical support plan", + "description": "Removes the specified Canonical support plan" + } + }, + { + "name": "Microsoft.Addons/supportProviders/canonical/supportPlanTypes/get", + "display": { + "provider": "Microsoft Addons", + "resource": "supportProviders", + "operation": "Gets available Canonical support plan types.", + "description": "Gets the available Canonical support plan types as well as some extra metadata on their enabled status." + } + }, + { + "name": "Microsoft.Addons/register/action", + "display": { + "provider": "Microsoft Addons", + "resource": "register", + "operation": "Register for Microsoft.Addons", + "description": "Register the specified subscription with Microsoft.Addons" + } } + ] } -} \ No newline at end of file + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_CreateOrUpdate.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_CreateOrUpdate.json index 3ab6c201bf06..d25b9c229f80 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_CreateOrUpdate.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_CreateOrUpdate.json @@ -1,32 +1,31 @@ { - "parameters": { - "api-version": "2018-03-01", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical", - "planTypeName": "Standard" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded" - }, - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "type": "Microsoft.Addons/supportProvider" - } + "parameters": { + "api-version": "2018-03-01", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical", + "planTypeName": "Standard" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded" }, - "201": { - "body": { - "properties": { - "provisioningState": "Purchasing" - }, - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "type": "Microsoft.Addons/supportProvider" - } + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "type": "Microsoft.Addons/supportProvider" + } + }, + "201": { + "body": { + "properties": { + "provisioningState": "Purchasing" }, - "404": { - } - } -} \ No newline at end of file + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "type": "Microsoft.Addons/supportProvider" + } + }, + "404": {} + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Delete.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Delete.json index 58482e1ebeab..e376b2935c5d 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Delete.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Delete.json @@ -1,22 +1,21 @@ { - "parameters": { - "api-version": "2018-03-01", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical", - "planTypeName": "Standard" - }, - "responses": { - "202": { - "body": { - "properties": { - "provisioningState": "Cancelling" - }, - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "type": "Microsoft.Addons/supportProvider" - } + "parameters": { + "api-version": "2018-03-01", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical", + "planTypeName": "Standard" + }, + "responses": { + "202": { + "body": { + "properties": { + "provisioningState": "Cancelling" }, - "204": { - } - } -} \ No newline at end of file + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "type": "Microsoft.Addons/supportProvider" + } + }, + "204": {} + } +} diff --git a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Get.json b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Get.json index 84eb7dcedc4e..fa6e94768844 100644 --- a/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Get.json +++ b/specification/addons/resource-manager/Microsoft.Addons/preview/2018-03-01/examples/SupportPlanTypes_Get.json @@ -1,22 +1,21 @@ { - "parameters": { - "api-version": "2018-03-01", - "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", - "providerName": "Canonical", - "planTypeName": "Standard" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded" - }, - "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", - "name": "Standard", - "type": "Microsoft.Addons/supportProvider" - } + "parameters": { + "api-version": "2018-03-01", + "subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e", + "providerName": "Canonical", + "planTypeName": "Standard" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded" }, - "404": { - } - } -} \ No newline at end of file + "id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard", + "name": "Standard", + "type": "Microsoft.Addons/supportProvider" + } + }, + "404": {} + } +}