From 79ed995366d0818276fae99c51fbecfed2055a2f Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Mon, 10 Jul 2023 15:48:14 +0800 Subject: [PATCH 1/4] copy previous version as base for 2023-06-30 --- .../PrivateEndpointConnections.json | 275 ++++++++++++++++++ .../PrivateLinkResources.json | 130 +++++++++ .../PrivateEndpointConnectionDelete.json | 19 ++ .../PrivateEndpointConnectionGet.json | 29 ++ .../PrivateEndpointConnectionList.json | 48 +++ .../PrivateEndpointConnectionUpdate.json | 61 ++++ .../examples/PrivateLinkResourcesGet.json | 24 ++ .../examples/PrivateLinkResourcesList.json | 27 ++ 8 files changed, 613 insertions(+) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json new file mode 100644 index 000000000000..58039b0c2bfe --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json @@ -0,0 +1,275 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-30-preview", + "title": "MySQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations." + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Approve or reject a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully update the private endpoint connection by approving, rejecting or disconnecting it.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionUpdate.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Deletes a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted private endpoint connection." + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets all private endpoint connections on a server.", + "operationId": "PrivateEndpointConnections_ListByServer", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets list of private endpoint connections on a server.": { + "$ref": "./examples/PrivateEndpointConnectionList.json" + } + } + } + } + }, + "definitions": { + "TagsObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json new file mode 100644 index 000000000000..58ef45cbcc8b --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json @@ -0,0 +1,130 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-30-preview", + "title": "MySQLManagementClient", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations." + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Lists the private link resources for MySQL server.", + "operationId": "PrivateLinkResources_ListByServer", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets private link resources for MySQL.": { + "$ref": "./examples/PrivateLinkResourcesList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateLinkResources/{groupName}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets a private link resource for MySQL server.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" + }, + { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, + "type": "string", + "pattern": "^[a-z0-9][-a-z0-9]*(? Date: Mon, 10 Jul 2023 15:53:07 +0800 Subject: [PATCH 2/4] update api version --- .../PrivateEndpointConnections.json | 2 +- .../PrivateLinkResources.json | 2 +- .../examples/PrivateEndpointConnectionDelete.json | 6 +++--- .../examples/PrivateEndpointConnectionGet.json | 2 +- .../examples/PrivateEndpointConnectionList.json | 2 +- .../examples/PrivateEndpointConnectionUpdate.json | 6 +++--- .../examples/PrivateLinkResourcesGet.json | 2 +- .../examples/PrivateLinkResourcesList.json | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/PrivateEndpointConnections.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/PrivateLinkResources.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/examples/PrivateEndpointConnectionDelete.json (81%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/examples/PrivateEndpointConnectionGet.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/examples/PrivateEndpointConnectionList.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/examples/PrivateEndpointConnectionUpdate.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/examples/PrivateLinkResourcesGet.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/{2022-09-30-preview => 2023-06-30}/examples/PrivateLinkResourcesList.json (94%) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateEndpointConnections.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateEndpointConnections.json index 58039b0c2bfe..cd2c12ee5efa 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateEndpointConnections.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateEndpointConnections.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-09-30-preview", + "version": "2023-06-30", "title": "MySQLManagementClient", "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations." }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateLinkResources.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateLinkResources.json index 58ef45cbcc8b..dbc9acf8af96 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/PrivateLinkResources.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateLinkResources.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-09-30-preview", + "version": "2023-06-30", "title": "MySQLManagementClient", "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations." }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionDelete.json similarity index 81% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionDelete.json index 00bf5dde4c46..e461db86b997 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionDelete.json @@ -4,14 +4,14 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-30-preview" + "api-version": "2023-06-30" }, "responses": { "200": {}, "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-09-30-preview", - "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-09-30-preview" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-30", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-30" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionGet.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionGet.json index 4c46ae3fc46d..34b061d048ce 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-30-preview" + "api-version": "2023-06-30" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionList.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionList.json index 9bca3861c696..055592b8f8ee 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionList.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "Default", "serverName": "test-svr", - "api-version": "2022-09-30-preview" + "api-version": "2023-06-30" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionUpdate.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionUpdate.json index 3082ef825752..5d05d028747b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateEndpointConnectionUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-30-preview", + "api-version": "2023-06-30", "parameters": { "properties": { "privateLinkServiceConnectionState": { @@ -53,8 +53,8 @@ }, "202": { "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-09-30-preview", - "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-09-30-preview" + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-30", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-06-30" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json index 8fef354c6ab3..f1e0e159d120 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "groupName": "plr", - "api-version": "2022-09-30-preview" + "api-version": "2023-06-30" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json index 2adbb0c8c21a..aa69687faefe 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-30-preview/examples/PrivateLinkResourcesList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "Default", "serverName": "test-svr", - "api-version": "2022-09-30-preview" + "api-version": "2023-06-30" }, "responses": { "200": { From e9426a9f74ddab87d508aca7b746c9cc7234c0bb Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Mon, 10 Jul 2023 15:55:04 +0800 Subject: [PATCH 3/4] update readme --- specification/mysql/resource-manager/readme.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index b172e706d109..f0a56e0b34ae 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -28,11 +28,11 @@ These are the global settings for the MySql API. title: MySQLManagementClient description: The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model. openapi-type: arm -tag: package-flexibleserver-2022-09-30-preview +tag: package-flexibleserver-2023-06-30-privatelink ``` ``` yaml $(package-flexibleservers) -tag: package-flexibleserver-2022-09-30-preview +tag: package-flexibleserver-2023-06-30-privatelink ``` ``` yaml $(package-singleservers) @@ -212,6 +212,17 @@ input-file: - Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json ``` +### Tag: package-flexibleserver-2023-06-30-privatelink + +These settings apply only when `--tag=package-flexibleserver-2023-06-30-privatelink` is specified on the command line. + +``` yaml $(tag) == 'package-flexibleserver-2023-06-30-privatelink' +input-file: +- Microsoft.DBforMySQL/common-types/v1/common-types.json +- Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateEndpointConnections.json +- Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/PrivateLinkResources.json +``` + ## Suppression ``` yaml From d1d6e0b2c6701892cdd9143c33df79ef9a59ae44 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Mon, 10 Jul 2023 16:23:05 +0800 Subject: [PATCH 4/4] fix arm id --- .../stable/2023-06-30/examples/PrivateLinkResourcesGet.json | 2 +- .../stable/2023-06-30/examples/PrivateLinkResourcesList.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json index f1e0e159d120..e526d1d0cd6f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesGet.json @@ -9,7 +9,7 @@ "responses": { "200": { "body": { - "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateLinkResources/plr", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateLinkResources/plr", "name": "plr", "type": "Microsoft.DBforMySQL/servers/privateLinkResources", "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json index aa69687faefe..c511fc2aec52 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2023-06-30/examples/PrivateLinkResourcesList.json @@ -10,7 +10,7 @@ "body": { "value": [ { - "id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateLinkResources/plr", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateLinkResources/plr", "name": "plr", "type": "Microsoft.DBforMySQL/servers/privateLinkResources", "properties": {