diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/attestation.json similarity index 79% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/attestation.json index 8825e71eac8b..2987cf4d8a5a 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/attestation.json @@ -55,9 +55,9 @@ } }, "default": { - "description": "Attestation service error result", + "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -77,17 +77,16 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "providerName", "in": "path", "required": true, "type": "string", - "pattern": "^[a-z0-9]{3,24}$", "description": "Name of the attestation service instance" }, { @@ -104,7 +103,7 @@ "default": { "description": "Error result from Attestation service", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -122,17 +121,16 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "providerName", "in": "path", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$", "description": "Name of the attestation service" }, { @@ -164,7 +162,7 @@ "default": { "description": "Error result from Attestation service", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -182,17 +180,16 @@ }, "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "providerName", "in": "path", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$", "description": "Name of the attestation service" }, { @@ -200,19 +197,19 @@ } ], "responses": { - "202": { - "description": "Request accepted for deletion of attestation service" - }, "200": { "description": "Resource exists and was deleted successfully" }, + "202": { + "description": "Request accepted for deletion of attestation service" + }, "204": { "description": "Resource does not exist" }, "default": { "description": "Error result from Attestation service", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -235,7 +232,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" } ], "x-ms-pageable": { @@ -251,7 +248,7 @@ "default": { "description": "Attestation service error result", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -271,13 +268,13 @@ }, "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" } ], "x-ms-pageable": { @@ -294,7 +291,7 @@ "default": { "description": "Attestation service error result", "schema": { - "$ref": "#/definitions/ErrorResult" + "$ref": "#/definitions/CloudError" } } } @@ -357,7 +354,7 @@ ], "allOf": [ { - "$ref": "../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" } ], "properties": { @@ -395,56 +392,28 @@ } } }, - "ErrorResult": { - "type": "object", - "title": "Error", - "description": "Error description and code explaining why an operation failed.", + "CloudError": { + "x-ms-external": true, "properties": { "error": { - "type": "object", - "description": "Error object.", - "$ref": "#/definitions/ErrorResponseBody" + "$ref": "#/definitions/CloudErrorBody" } - } + }, + "description": "An error response from Attestation." }, - "ErrorResponseBody": { - "type": "object", - "title": "Error", - "description": "Error description and code explaining why an operation failed.", - "required": [ - "message", - "code" - ], + "CloudErrorBody": { + "x-ms-external": true, "properties": { - "message": { + "code": { "type": "string", - "description": "Description of the error." + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." }, - "code": { + "message": { "type": "string", - "description": "Service specific error code" + "description": "A message describing the error, intended to be suitable for displaying in a user interface." } - } - }, - "ErrorResponse": { - "type": "object", - "description": "Error response", - "properties": { - "error": { - "type": "object", - "description": "Error response", - "properties": { - "code": { - "type": "string", - "description": "Description of the error." - }, - "message": { - "type": "string", - "description": "Service specific error code." - } - } - } - } + }, + "description": "An error response from Attestation." }, "AttestationProviderListResult": { "description": "Attestation Providers List.", @@ -469,24 +438,6 @@ } }, "parameters": { - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "Name of the resource group to which the resource belongs.", - "required": true, - "type": "string", - "maxLength": 90, - "minLength": 1, - "pattern": "^[-\\w\\._\\(\\)]+[^\\.]$", - "x-ms-parameter-location": "method" - }, - "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", diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Create_AttestationProvider.json similarity index 96% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Create_AttestationProvider.json index a9b3bd30b942..b3e4b9d1fc53 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Create_AttestationProvider.json @@ -4,7 +4,7 @@ "serviceName": "sampleservicename", "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2018-09-01-preview", - "providerName": "providerName1", + "providerName": "providername1", "creationParams": "test" }, "responses": { diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Delete_AttestationProvider.json similarity index 93% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Delete_AttestationProvider.json index f6a081df3cc1..2b4a5c9d7fe5 100644 --- a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.json +++ b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Delete_AttestationProvider.json @@ -4,7 +4,7 @@ "serviceName": "sampleservicename", "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2018-09-01-preview", - "providerName": "providerName1" + "providerName": "providername1" }, "responses": { "202": { diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvider.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvider.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvider.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvider.json diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersList.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersList.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersList.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersList.json diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.json diff --git a/specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Operations_List.json b/specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Operations_List.json similarity index 100% rename from specification/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Operations_List.json rename to specification/attestation/resource-manager/Microsoft.Attestation/preview/2018-09-01-preview/examples/Operations_List.json diff --git a/specification/attestation/resource-manager/readme.md b/specification/attestation/resource-manager/readme.md index c8165c33e5af..ab77741cbe77 100644 --- a/specification/attestation/resource-manager/readme.md +++ b/specification/attestation/resource-manager/readme.md @@ -26,16 +26,16 @@ These are the global settings for the Attestation API. ``` yaml openapi-type: arm -tag: package-2018-09 +tag: package-2018-09-preview ``` -### Tag: package-2018-09 +### Tag: package-2018-09-preview -These settings apply only when `--tag=package-2018-09` is specified on the command line. +These settings apply only when `--tag=package-2018-09-preview` is specified on the command line. -``` yaml $(tag) == 'package-2018-09' +``` yaml $(tag) == 'package-2018-09-preview' input-file: -- Microsoft.Attestation/2018-09-01-preview/attestation.json +- Microsoft.Attestation/preview/2018-09-01-preview/attestation.json ``` ---