From 6ca91535c8901b546a4fa7c8d85a6a0c937bee32 Mon Sep 17 00:00:00 2001 From: Magda Bojarska Date: Thu, 12 Oct 2017 18:36:17 -0700 Subject: [PATCH 1/3] Swagger spec for Server DNS Aliasing --- .../examples/ServerDnsAliasAcquire.json | 25 + .../ServerDnsAliasCreateOrUpdate.json | 34 ++ .../examples/ServerDnsAliasDelete.json | 20 + .../examples/ServerDnsAliasGet.json | 23 + .../examples/ServerDnsAliasList.json | 34 ++ .../2017-03-01-preview/serverDnsAliases.json | 428 ++++++++++++++++++ specification/sql/resource-manager/readme.md | 1 + 7 files changed, 565 insertions(+) create mode 100644 specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasDelete.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json new file mode 100644 index 000000000000..402ff205e1ff --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "dns-alias-new-server", + "dnsAliasName": "dns-alias-name-1", + "api-version": "2017-03-01-preview", + "parameters": { + "oldServerDnsAliasId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-old-server/dnsAliases/dns-alias-name-1" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-new-server/dnsAliases/dns-alias-name-1", + "name": "server-dns-alias-name-1", + "type": "Microsoft.Sql/servers/dnsAliases", + "properties": { + "azureDnsRecord": "dns-alias-name-1.database.windows.net" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json new file mode 100644 index 000000000000..b93326b5f09d --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "dns-alias-server", + "dnsAliasName": "dns-alias-name-1", + "api-version": "2017-03-01-preview", + "parameters": { + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-server/dnsAliases/dns-alias-name-1", + "name": "dns-alias-name-1", + "type": "Microsoft.Sql/servers/dnsAliases", + "properties": { + "azureDnsRecord": "dns-alias-name-1.database.windows.net" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-server/dnsAliases/dns-alias-name-1", + "name": "dns-alias-name-1", + "type": "Microsoft.Sql/servers/dnsAliases", + "properties": { + "azureDnsRecord": "dns-alias-name-1.database.windows.net" + } + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasDelete.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasDelete.json new file mode 100644 index 000000000000..e356667b12f2 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "dns-alias-server", + "dnsAliasName": "dns-alias-name-1", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": "" + }, + "202": { + "body": "" + }, + "204": { + "body": "" + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json new file mode 100644 index 000000000000..7c7e3ed4519a --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "dns-alias-server", + "dnsAliasName": "dns-alias-name-1", + "api-version": "2017-03-01-preview", + "parameters": { + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-server/dnsAliases/dns-alias-name-1", + "name": "dns-alias-name-1", + "type": "Microsoft.Sql/servers/dnsAliases", + "properties": { + "azureDnsRecord": "dns-alias-name-1.database.windows.net" + } + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json new file mode 100644 index 000000000000..2f0fe7fb5788 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "dns-alias-server", + "api-version": "2017-03-01-preview", + "parameters": { + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-server/dnsAliases/dns-alias-1", + "name": "server-dns-alias-1", + "type": "Microsoft.Sql/servers/dnsAliases", + "properties": { + "azureDnsRecord": "dns-alias-1.database.windows.net" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-server/dnsAliases/dns-alias-2", + "name": "server-dns-alias-2", + "type": "Microsoft.Sql/servers/dnsAliases", + "properties": { + "azureDnsRecord": "dns-alias-2.database.windows.net" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json new file mode 100644 index 000000000000..f027a9ba99a7 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json @@ -0,0 +1,428 @@ +{ + "swagger": "2.0", + "info": { + "version": "2017-03-01-preview", + "title": "SqlManagementClient", + "description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}": { + "get": { + "tags": [ + "ServerDnsAliases" + ], + "description": "Gets a server DNS alias.", + "operationId": "ServerDnsAliases_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "serverName", + "in": "path", + "description": "The name of the server that the alias is pointing to.", + "required": true, + "type": "string" + }, + { + "name": "dnsAliasName", + "in": "path", + "description": "The name of the server dns alias.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified server DNS alias.", + "schema": { + "$ref": "#/definitions/ServerDnsAlias" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-examples": { + "Get server DNS alias": { + "$ref": "../examples/ServerDnsAliasGet.json" + } + } + }, + "put": { + "tags": [ + "ServerDnsAliases" + ], + "description": "Creates a server dns alias.", + "operationId": "ServerDnsAliases_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "serverName", + "in": "path", + "description": "The name of the server that the alias is pointing to.", + "required": true, + "type": "string" + }, + { + "name": "dnsAliasName", + "in": "path", + "description": "The name of the server dns alias.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The server DNS alias already exists.", + "schema": { + "$ref": "#/definitions/ServerDnsAlias" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidServerDnsAliasAcquireRequest - The acquire server DNS alias request body is empty or invalid (it should contain the old server alias id, for example: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-old-server/dnsAliases/dns-alias-name-1).\n\n * 400 ServerDnsAliasAcquireRequestInvalidOldServerDnsAliasId - \n\n * 400 UnableToResolveRemoteServer - \n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 409 ServerDnsAliasAlreadyExists - \n\n * 409 ServerDnsAliasAlreadyExists - \n\n * 409 ServerDnsAliasBusy - \n\n * 409 ServerDnsAliasDnsRecordInUse - \n\n * 409 InvalidServerDnsAliasName - \n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 429 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + }, + "202": { + "description": "Accepted" + }, + "201": { + "description": "Successfully created a server DNS alias.", + "schema": { + "$ref": "#/definitions/ServerDnsAlias" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create server DNS alias": { + "$ref": "../examples/ServerDnsAliasCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "ServerDnsAliases" + ], + "description": "Deletes the server DNS alias with the given name.", + "operationId": "ServerDnsAliases_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "serverName", + "in": "path", + "description": "The name of the server that the alias is pointing to.", + "required": true, + "type": "string" + }, + { + "name": "dnsAliasName", + "in": "path", + "description": "The name of the server dns alias.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the server DNS alias." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "The specified server DNS alias does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete server DNS alias": { + "$ref": "../examples/ServerDnsAliasDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases": { + "get": { + "tags": [ + "ServerDnsAliases" + ], + "description": "Gets a list of server DNS aliases for a server.", + "operationId": "ServerDnsAliases_ListByServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "serverName", + "in": "path", + "description": "The name of the server that the alias is pointing to.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of server DNS aliases.", + "schema": { + "$ref": "#/definitions/ServerDnsAliasListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List server DNS aliases": { + "$ref": "../examples/ServerDnsAliasList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}/acquire": { + "post": { + "tags": [ + "ServerDnsAliases" + ], + "description": "Acquires server DNS alias from another server.", + "operationId": "ServerDnsAliases_Acquire", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "serverName", + "in": "path", + "description": "The name of the server that the alias is pointing to.", + "required": true, + "type": "string" + }, + { + "name": "dnsAliasName", + "in": "path", + "description": "The name of the server dns alias.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerDnsAliasAcquisition" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully acquired server DNS alias." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidServerDnsAliasAcquireRequest - The acquire server DNS alias request body is empty or invalid (it should contain the old server alias id, for example: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-old-server/dnsAliases/dns-alias-name-1).\n\n * 400 ServerDnsAliasAcquireRequestInvalidOldServerDnsAliasId - \n\n * 400 UnableToResolveRemoteServer - \n\n * 400 ServerNotFound - The requested server was not found.\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 CannotUseReservedDatabaseName - Cannot use reserved database name in this operation.\n\n * 400 InvalidServerName - Invalid server name specified.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 OperationIdNotFound - The operation with Id does not exist.\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ServerNotInSubscription - Specified server does not exist on the specified subscription.\n\n * 409 OperationCancelled - The operation has been cancelled by user.\n\n * 409 OperationInterrupted - The operation on the resource could not be completed because it was interrupted by another operation on the same resource.\n\n * 409 ServerDnsAliasAlreadyExists - \n\n * 409 ServerDnsAliasAlreadyExists - \n\n * 409 ServerDnsAliasBusy - \n\n * 409 ServerDnsAliasDnsRecordInUse - \n\n * 409 InvalidServerDnsAliasName - \n\n * 409 SubscriptionDisabled - Subscription is disabled.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 ConflictingServerOperation - An operation is currently in progress for the server.\n\n * 429 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 500 OperationTimedOut - The operation timed out and automatically rolled back. Please retry the operation.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout." + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Acquire server DNS alias": { + "$ref": "../examples/ServerDnsAliasAcquire.json" + } + } + } + } + }, + "definitions": { + "ServerDnsAliasProperties": { + "description": "Properties of a server DNS alias.", + "type": "object", + "properties": { + "azureDnsRecord": { + "description": "The fully qualified DNS record for alias", + "type": "string", + "readOnly": true + } + } + }, + "Resource": { + "description": "ARM resource.", + "type": "object", + "properties": { + "id": { + "description": "Resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + } + }, + "x-ms-azure-resource": true + }, + "ProxyResource": { + "description": "ARM proxy resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": {} + }, + "ServerDnsAlias": { + "description": "A server DNS alias.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ServerDnsAliasProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "ServerDnsAliasListResult": { + "description": "A list of server DNS aliases.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/ServerDnsAlias" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ServerDnsAliasAcquisition": { + "description": "A server dns alias acquisition request.", + "type": "object", + "properties": { + "oldServerDnsAliasId": { + "description": "The id of the server alias that will be acquired to point to this server instead.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The subscription ID that identifies an Azure subscription.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for the request.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "description": "The name of the database.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index c968f043f640..2585d99f0ec3 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -66,6 +66,7 @@ input-file: - Microsoft.Sql/2015-05-01-preview/syncMembers.json - Microsoft.Sql/2015-05-01-preview/virtualNetworkRules.json - Microsoft.Sql/2017-03-01-preview/cancelOperations.json +- Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json # Needed when there is more than one input file override-info: From c1a1dc8842ab79015ad48f38a9f9dec6134d9c09 Mon Sep 17 00:00:00 2001 From: Magda Bojarska Date: Thu, 12 Oct 2017 18:49:50 -0700 Subject: [PATCH 2/3] Fix path to example files in swagger file --- .../2017-03-01-preview/serverDnsAliases.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json index f027a9ba99a7..a07b97bf1b9e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json @@ -61,7 +61,7 @@ }, "x-ms-examples": { "Get server DNS alias": { - "$ref": "../examples/ServerDnsAliasGet.json" + "$ref": "./examples/ServerDnsAliasGet.json" } } }, @@ -119,7 +119,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "Create server DNS alias": { - "$ref": "../examples/ServerDnsAliasCreateOrUpdate.json" + "$ref": "./examples/ServerDnsAliasCreateOrUpdate.json" } } }, @@ -171,7 +171,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "Delete server DNS alias": { - "$ref": "../examples/ServerDnsAliasDelete.json" + "$ref": "./examples/ServerDnsAliasDelete.json" } } } @@ -217,7 +217,7 @@ }, "x-ms-examples": { "List server DNS aliases": { - "$ref": "../examples/ServerDnsAliasList.json" + "$ref": "./examples/ServerDnsAliasList.json" } } } @@ -276,7 +276,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "Acquire server DNS alias": { - "$ref": "../examples/ServerDnsAliasAcquire.json" + "$ref": "./examples/ServerDnsAliasAcquire.json" } } } From 54b43b83135aeac6c4ef82cee11db8c7928ffc55 Mon Sep 17 00:00:00 2001 From: Magda Bojarska Date: Fri, 13 Oct 2017 16:45:13 -0700 Subject: [PATCH 3/3] Addressed first round of comments for pull request (small changes, mostly style) --- .../examples/ServerDnsAliasAcquire.json | 6 +++--- .../examples/ServerDnsAliasCreateOrUpdate.json | 4 ++-- .../examples/ServerDnsAliasGet.json | 4 ++-- .../examples/ServerDnsAliasList.json | 6 +++--- .../2017-03-01-preview/serverDnsAliases.json | 8 ++++---- specification/sql/resource-manager/readme.md | 15 +++++++++++++++ 6 files changed, 29 insertions(+), 14 deletions(-) diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json index 402ff205e1ff..66342bc445b7 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasAcquire.json @@ -5,9 +5,9 @@ "serverName": "dns-alias-new-server", "dnsAliasName": "dns-alias-name-1", "api-version": "2017-03-01-preview", - "parameters": { - "oldServerDnsAliasId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-old-server/dnsAliases/dns-alias-name-1" - } + "parameters": { + "oldServerDnsAliasId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/servers/dns-alias-old-server/dnsAliases/dns-alias-name-1" + } }, "responses": { "200": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json index b93326b5f09d..b2bb2e446fdf 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasCreateOrUpdate.json @@ -5,8 +5,8 @@ "serverName": "dns-alias-server", "dnsAliasName": "dns-alias-name-1", "api-version": "2017-03-01-preview", - "parameters": { - } + "parameters": { + } }, "responses": { "200": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json index 7c7e3ed4519a..25ae46277c9b 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasGet.json @@ -5,8 +5,8 @@ "serverName": "dns-alias-server", "dnsAliasName": "dns-alias-name-1", "api-version": "2017-03-01-preview", - "parameters": { - } + "parameters": { + } }, "responses": { "200": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json index 2f0fe7fb5788..4efa8de0ea38 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ServerDnsAliasList.json @@ -4,8 +4,8 @@ "resourceGroupName": "Default", "serverName": "dns-alias-server", "api-version": "2017-03-01-preview", - "parameters": { - } + "parameters": { + } }, "responses": { "200": { @@ -26,7 +26,7 @@ "properties": { "azureDnsRecord": "dns-alias-2.database.windows.net" } - } + } ] } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json index a07b97bf1b9e..5dd066d31f8b 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json @@ -37,7 +37,7 @@ { "name": "dnsAliasName", "in": "path", - "description": "The name of the server dns alias.", + "description": "The name of the server DNS alias.", "required": true, "type": "string" }, @@ -85,7 +85,7 @@ { "name": "dnsAliasName", "in": "path", - "description": "The name of the server dns alias.", + "description": "The name of the server DNS alias.", "required": true, "type": "string" }, @@ -143,7 +143,7 @@ { "name": "dnsAliasName", "in": "path", - "description": "The name of the server dns alias.", + "description": "The name of the server DNS alias.", "required": true, "type": "string" }, @@ -362,7 +362,7 @@ } }, "ServerDnsAliasAcquisition": { - "description": "A server dns alias acquisition request.", + "description": "A server DNS alias acquisition request.", "type": "object", "properties": { "oldServerDnsAliasId": { diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 2585d99f0ec3..4631f766369f 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -129,6 +129,21 @@ override-info: title: SqlManagementClient ``` +### Tag: schema-2017-03-preview + +These settings apply only when `--tag=schema-2017-03-preview` is specified on the command line. + +These can be regenerated by running the following PowerShell script from this readme file's folder: `dir .\Microsoft.Sql\2017-03-01-preview\ -File | Resolve-Path -Relative | % { " - $_".Replace("\", "/") }` + +``` yaml $(tag) == 'schema-2017-03-preview' +input-file: + - ./Microsoft.Sql/2017-03-01-preview/serverDnsAliases.json + +# Needed when there is more than one input file +override-info: + title: SqlManagementClient +``` + ### Tag: schema-2015-05-preview These settings apply only when `--tag=schema-2015-05-preview` is specified on the command line.