From 9aa8cd9116a390f3a1796b0f37229a8ac551f17f Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 19 Jul 2023 12:12:51 +0000 Subject: [PATCH] CodeGen from PR 24738 in Azure/azure-rest-api-specs Convert previous preview version Private Link to GA: 2023-06-30 for mysql (#24738) * copy previous version as base for 2023-06-30 * update api version * update readme * fix arm id --- schemas/2023-06-30/Microsoft.DBforMySQL.json | 140 +++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 143 insertions(+) create mode 100644 schemas/2023-06-30/Microsoft.DBforMySQL.json diff --git a/schemas/2023-06-30/Microsoft.DBforMySQL.json b/schemas/2023-06-30/Microsoft.DBforMySQL.json new file mode 100644 index 0000000000..92d2772c13 --- /dev/null +++ b/schemas/2023-06-30/Microsoft.DBforMySQL.json @@ -0,0 +1,140 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-06-30/Microsoft.DBforMySQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBforMySQL", + "description": "Microsoft DBforMySQL Resource Types", + "resourceDefinitions": { + "flexibleServers_privateEndpointConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-06-30" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the private endpoint connection." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the private endpoint connection." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforMySQL/flexibleServers/privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/flexibleServers/privateEndpointConnections" + } + }, + "definitions": { + "PrivateEndpoint": { + "type": "object", + "properties": {}, + "description": "The private endpoint resource." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpoint" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The private endpoint resource." + }, + "privateLinkServiceConnectionState": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateLinkServiceConnectionState" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Succeeded", + "Creating", + "Deleting", + "Failed" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The provisioning state of the private endpoint connection resource." + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the private endpoint connection." + }, + "PrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "actionsRequired": { + "type": "string", + "description": "A message indicating if changes on the service provider require any updates on the consumer." + }, + "description": { + "type": "string", + "description": "The reason for approval/rejection of the connection." + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Pending", + "Approved", + "Rejected" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." + } + }, + "description": "A collection of information about the state of the connection between service consumer and provider." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index d4926b4c34..f81737aa43 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -9802,6 +9802,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-09-30-preview/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers_privateEndpointConnections" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-06-30/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers_privateEndpointConnections" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers" },