From a1cfd561f204c2dc1679ccfa7d09cd2549f90aaa Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 14 Mar 2023 15:07:14 +0800 Subject: [PATCH 01/20] add new version 20220901 based on 20211201preview --- .../2022-09-01/AzureADAdministrator.json | 349 +++++ .../examples/AzureADAdministratorCreate.json | 49 + .../examples/AzureADAdministratorDelete.json | 24 + .../examples/AzureADAdministratorGet.json | 25 + .../AzureADAdministratorsListByServer.json | 28 + .../Backups/stable/2022-09-01/Backups.json | 259 ++++ .../stable/2022-09-01/examples/BackupGet.json | 23 + .../stable/2022-09-01/examples/BackupPut.json | 23 + .../examples/BackupsListByServer.json | 126 ++ .../stable/2022-09-01/Configurations.json | 489 +++++++ .../2022-09-01/examples/ConfigurationGet.json | 29 + .../examples/ConfigurationUpdate.json | 41 + .../examples/ConfigurationsBatchUpdate.json | 71 + .../examples/ConfigurationsListByServer.json | 146 +++ .../stable/2022-09-01/Databases.json | 320 +++++ .../2022-09-01/examples/DatabaseCreate.json | 40 + .../2022-09-01/examples/DatabaseDelete.json | 19 + .../2022-09-01/examples/DatabaseGet.json | 22 + .../examples/DatabasesListByServer.json | 34 + .../stable/2022-09-01/FirewallRules.json | 329 +++++ .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 19 + .../2022-09-01/examples/FirewallRuleGet.json | 22 + .../examples/FirewallRulesListByServer.json | 34 + .../stable/2022-09-01/FlexibleServers.json | 1134 ++++++++++++++++ .../examples/ReplicasListByServer.json | 98 ++ .../2022-09-01/examples/ServerCreate.json | 139 ++ .../examples/ServerCreateReplica.json | 116 ++ .../examples/ServerCreateWithBYOK.json | 152 +++ .../ServerCreateWithPointInTimeRestore.json | 122 ++ .../2022-09-01/examples/ServerDelete.json | 18 + .../2022-09-01/examples/ServerFailover.json | 17 + .../stable/2022-09-01/examples/ServerGet.json | 59 + .../examples/ServerGetWithVnet.json | 59 + .../2022-09-01/examples/ServerRestart.json | 21 + .../2022-09-01/examples/ServerStart.json | 17 + .../2022-09-01/examples/ServerStop.json | 17 + .../2022-09-01/examples/ServerUpdate.json | 75 ++ .../examples/ServerUpdateWithBYOK.json | 82 ++ ...erUpdateWithCustomerMaintenanceWindow.json | 74 ++ .../2022-09-01/examples/ServersList.json | 152 +++ .../examples/ServersListByResourceGroup.json | 153 +++ .../LogFiles/stable/2022-09-01/LogFiles.json | 173 +++ .../examples/LogFilesListByServer.json | 28 + .../stable/2022-09-01/ServiceOperations.json | 654 ++++++++++ .../examples/CapabilitiesByLocationList.json | 1159 +++++++++++++++++ .../examples/CheckNameAvailability.json | 20 + .../CheckVirtualNetworkSubnetUsage.json | 28 + .../examples/GetPrivateDnsZoneSuffix.json | 12 + .../2022-09-01/examples/OperationsList.json | 190 +++ 50 files changed, 7330 insertions(+) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json new file mode 100644 index 000000000000..1d0778cdd76a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json @@ -0,0 +1,349 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/administrators/{administratorName}": { + "put": { + "tags": [ + "AzureADAdministrators" + ], + "operationId": "AzureADAdministrators_CreateOrUpdate", + "x-ms-examples": { + "Create an azure ad administrator": { + "$ref": "./examples/AzureADAdministratorCreate.json" + } + }, + "description": "Creates or updates an existing Azure Active Directory administrator.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/AdministratorNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AzureADAdministrator" + }, + "description": "The required parameters for creating or updating an aad administrator." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AzureADAdministrator" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AzureADAdministrator" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "AzureADAdministrators" + ], + "operationId": "AzureADAdministrators_Delete", + "x-ms-examples": { + "Delete an azure ad administrator": { + "$ref": "./examples/AzureADAdministratorDelete.json" + } + }, + "description": "Deletes an Azure AD Administrator.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/AdministratorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, + "get": { + "tags": [ + "AzureADAdministrators" + ], + "operationId": "AzureADAdministrators_Get", + "x-ms-examples": { + "Get an azure ad administrator": { + "$ref": "./examples/AzureADAdministratorGet.json" + } + }, + "description": "Gets information about an azure ad administrator.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/AdministratorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AzureADAdministrator" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators": { + "get": { + "tags": [ + "AzureADAdministrators" + ], + "operationId": "AzureADAdministrators_ListByServer", + "x-ms-examples": { + "List Azure AD administrators in a server": { + "$ref": "./examples/AzureADAdministratorsListByServer.json" + } + }, + "description": "List all the AAD administrators in a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdministratorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "AdministratorProperties": { + "type": "object", + "properties": { + "administratorType": { + "type": "string", + "description": "Type of the sever administrator.", + "enum": [ + "ActiveDirectory" + ], + "x-ms-enum": { + "name": "AdministratorType", + "modelAsString": true + } + }, + "login": { + "type": "string", + "description": "Login name of the server administrator." + }, + "sid": { + "type": "string", + "description": "SID (object ID) of the server administrator." + }, + "tenantId": { + "type": "string", + "description": "Tenant ID of the administrator." + }, + "identityResourceId": { + "type": "string", + "description": "The resource id of the identity used for AAD Authentication." + } + }, + "description": "The properties of an administrator." + }, + "AzureADAdministrator": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/AdministratorProperties", + "x-ms-client-flatten": true, + "description": "The properties of an administrator." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a Administrator." + }, + "AdministratorListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureADAdministrator" + }, + "description": "The list of azure ad administrator of a server" + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A List of azure ad administrators." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "AdministratorNameParameter": { + "name": "administratorName", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "ActiveDirectory" + ], + "x-ms-enum": { + "name": "AdministratorName", + "modelAsString": true + }, + "description": "The name of the Azure AD Administrator.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json new file mode 100644 index 000000000000..58765bbf1eae --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "testrg", + "serverName": "mysqltestsvc4", + "administratorName": "ActiveDirectory", + "api-version": "2021-12-01-preview", + "parameters": { + "properties": { + "administratorType": "ActiveDirectory", + "login": "bob@contoso.com", + "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", + "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", + "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", + "name": "ActiveDirectory", + "type": "Microsoft.DBforMySQL/flexibleServers/administrators", + "properties": { + "administratorType": "ActiveDirectory", + "login": "bob@contoso.com", + "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", + "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", + "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", + "name": "ActiveDirectory", + "type": "Microsoft.DBforMySQL/flexibleServers/administrators", + "properties": { + "administratorType": "ActiveDirectory", + "login": "bob@contoso.com", + "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", + "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", + "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" + } + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json new file mode 100644 index 000000000000..7c058207fe0f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "testrg", + "serverName": "mysqltestsvc4", + "administratorName": "ActiveDirectory", + "api-version": "2021-12-01-preview" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + }, + "204": { + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json new file mode 100644 index 000000000000..2aed501b1404 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "testrg", + "serverName": "mysqltestsvc4", + "administratorName": "ActiveDirectory", + "api-version": "2021-12-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", + "name": "ActiveDirectory", + "type": "Microsoft.DBforMySQL/flexibleServers/administrators", + "properties": { + "administratorType": "ActiveDirectory", + "login": "bob@contoso.com", + "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", + "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", + "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" + } + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json new file mode 100644 index 000000000000..55ad81d81d36 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "testrg", + "serverName": "mysqltestsvc4", + "api-version": "2021-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", + "name": "ActiveDirectory", + "type": "Microsoft.DBforMySQL/flexibleServers/administrators", + "properties": { + "administratorType": "ActiveDirectory", + "login": "bob@contoso.com", + "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", + "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", + "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" + } + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json new file mode 100644 index 000000000000..1cc4d2366a3f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json @@ -0,0 +1,259 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/backups/{backupName}": { + "put": { + "tags": [ + "Backups" + ], + "operationId": "Backups_Put", + "x-ms-examples": { + "Create backup for a server": { + "$ref": "./examples/BackupPut.json" + } + }, + "description": "Create backup for a given server with specified backup name.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/BackupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Backups" + ], + "operationId": "Backups_Get", + "x-ms-examples": { + "Get a backup for a server": { + "$ref": "./examples/BackupGet.json" + } + }, + "description": "List all the backups for a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/BackupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups": { + "get": { + "tags": [ + "Backups" + ], + "operationId": "Backups_ListByServer", + "x-ms-examples": { + "List backups for a server": { + "$ref": "./examples/BackupsListByServer.json" + } + }, + "description": "List all the backups for a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerBackupListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ServerBackupProperties": { + "type": "object", + "properties": { + "backupType": { + "type": "string", + "description": "Backup type." + }, + "completedTime": { + "type": "string", + "format": "date-time", + "description": "Backup completed time (ISO8601 format)." + }, + "source": { + "type": "string", + "description": "Backup source" + } + }, + "description": "The properties of a server backup." + }, + "ServerBackup": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ServerBackupProperties", + "x-ms-client-flatten": true, + "description": "The properties of a server backup." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Server backup properties" + }, + "ServerBackupListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerBackup" + }, + "description": "The list of backups of a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server backups." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "BackupNameParameter": { + "name": "backupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the backup.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json new file mode 100644 index 000000000000..5950175a230f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "backupName": "daily_20210615T160516", + "serverName": "mysqltestserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-15T16:05:19.902522+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210615T160516", + "name": "daily_20210615T160516", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json new file mode 100644 index 000000000000..2228b22f4ab0 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "backupName": "mybackup", + "serverName": "mysqltestserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2022-05-07T07:38:01.1498043+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/customer_20220507t073755_bb392c3b-17c6-4d3f-9742-8479ca87b3ac_mybackup", + "name": "customer_20220507t073755_bb392c3b-17c6-4d3f-9742-8479ca87b3ac_mybackup", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json new file mode 100644 index 000000000000..4fa00c9366a8 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json @@ -0,0 +1,126 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-15T16:05:19.902522+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210615T160516", + "name": "daily_20210615T160516", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-16T16:05:23.9243453+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210616T160520", + "name": "daily_20210616T160520", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-17T16:05:28.1247488+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210617T160525", + "name": "daily_20210617T160525", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-18T16:05:32.2736701+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210618T160529", + "name": "daily_20210618T160529", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-19T16:05:36.8603354+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210619T160533", + "name": "daily_20210619T160533", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-20T16:05:41.9200138+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210620T160538", + "name": "daily_20210620T160538", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-21T16:05:48.8528447+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210621T160543", + "name": "daily_20210621T160543", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-22T16:08:06.3121688+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210622T160803", + "name": "daily_20210622T160803", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-22T21:08:10.5057354+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210622T210807", + "name": "daily_20210622T210807", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-23T21:24:16.9401531+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210623T212413", + "name": "daily_20210623T212413", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + }, + { + "properties": { + "backupType": "FULL", + "source": "Automatic", + "completedTime": "2021-06-24T06:13:31.4962137+00:00" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210624T061328", + "name": "daily_20210624T061328", + "type": "Microsoft.DBforMySQL/flexibleServers/backups" + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json new file mode 100644 index 000000000000..37fba5086f45 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json @@ -0,0 +1,489 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/configurations/{configurationName}": { + "patch": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Update", + "x-ms-examples": { + "Update a user configuration": { + "$ref": "./examples/ConfigurationUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Configuration" + }, + "description": "The required parameters for updating a server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_Get", + "x-ms-examples": { + "Get a configuration": { + "$ref": "./examples/ConfigurationGet.json" + } + }, + "description": "Gets information about a configuration of server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Configuration" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/updateConfigurations": { + "post": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_BatchUpdate", + "x-ms-examples": { + "ConfigurationList": { + "$ref": "./examples/ConfigurationsBatchUpdate.json" + } + }, + "description": "Update a list of configurations in a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationListForBatchUpdate" + }, + "description": "The parameters for updating a list of server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations": { + "get": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_ListByServer", + "x-ms-examples": { + "List all configurations for a server": { + "$ref": "./examples/ConfigurationsListByServer.json" + } + }, + "description": "List all the configurations in a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/ConfigurationTagsParameter" + }, + { + "$ref": "#/parameters/ConfigurationKeywordParameter" + }, + { + "$ref": "#/parameters/ConfigurationPageParameter" + }, + { + "$ref": "#/parameters/ConfigurationPageSizeParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ConfigurationProperties": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "Description of the configuration." + }, + "defaultValue": { + "type": "string", + "readOnly": true, + "description": "Default value of the configuration." + }, + "dataType": { + "type": "string", + "readOnly": true, + "description": "Data type of the configuration." + }, + "allowedValues": { + "type": "string", + "readOnly": true, + "description": "Allowed values of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration.", + "enum": [ + "system-default", + "user-override" + ], + "x-ms-enum": { + "name": "ConfigurationSource", + "modelAsString": true + } + }, + "isReadOnly": { + "type": "string", + "readOnly": true, + "description": "If is the configuration read only.", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "IsReadOnly", + "modelAsString": true + } + }, + "isConfigPendingRestart": { + "type": "string", + "readOnly": true, + "description": "If is the configuration pending restart or not.", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "IsConfigPendingRestart", + "modelAsString": true + } + }, + "isDynamicConfig": { + "type": "string", + "readOnly": true, + "description": "If is the configuration dynamic.", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "IsDynamicConfig", + "modelAsString": true + } + } + }, + "description": "The properties of a configuration." + }, + "Configuration": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/ConfigurationProperties", + "x-ms-client-flatten": true, + "description": "The properties of a configuration." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a Configuration." + }, + "ConfigurationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Configuration" + }, + "description": "The list of server configurations." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of server configurations." + }, + "ConfigurationForBatchUpdate": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the configuration." + }, + "properties": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Value of the configuration." + }, + "source": { + "type": "string", + "description": "Source of the configuration." + } + }, + "x-ms-client-flatten": true, + "description": "The properties can be updated for a configuration." + } + }, + "description": "Represents a Configuration." + }, + "ConfigurationListForBatchUpdate": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationForBatchUpdate" + }, + "x-ms-identifiers": [], + "description": "The list of server configurations." + }, + "resetAllToDefault": { + "type": "string", + "description": "Whether to reset all server parameters to default.", + "enum": [ + "True", + "False" + ], + "x-ms-enum": { + "name": "ResetAllToDefault", + "modelAsString": true + } + } + }, + "description": "A list of server configurations to update." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "ConfigurationNameParameter": { + "name": "configurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server configuration.", + "x-ms-parameter-location": "method" + }, + "ConfigurationTagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "string", + "description": "The tags of the server configuration.", + "x-ms-parameter-location": "method" + }, + "ConfigurationKeywordParameter": { + "name": "keyword", + "in": "query", + "required": false, + "type": "string", + "description": "The keyword of the server configuration.", + "x-ms-parameter-location": "method" + }, + "ConfigurationPageParameter": { + "name": "page", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The page of the server configuration.", + "x-ms-parameter-location": "method" + }, + "ConfigurationPageSizeParameter": { + "name": "pageSize", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The pageSize of the server configuration.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json new file mode 100644 index 000000000000..4312ffc16a69 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "configurationName": "event_scheduler", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "OFF", + "description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json new file mode 100644 index 000000000000..62317140afe3 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "serverName": "testserver", + "configurationName": "event_scheduler", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "value": "on", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "ON", + "description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "user-override", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + } + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json new file mode 100644 index 000000000000..9082d516dcf7 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "value": [ + { + "name": "event_scheduler", + "properties": { + "value": "OFF" + } + }, + { + "name": "div_precision_increment", + "properties": { + "value": "8" + } + } + ], + "resetAllToDefault": "False" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "ON", + "description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "user-override", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "8", + "description": "Number of digits by which to increase the scale of the result of division operations.", + "defaultValue": "4", + "dataType": "Integer", + "allowedValues": "0-30", + "source": "user-override", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/div_precision_increment", + "name": "div_precision_increment", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + } + ] + } + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json new file mode 100644 index 000000000000..e9701629cae2 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "page": 1, + "pageSize": 8 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "OFF", + "description": "Tell the server to enable or disable archive engine.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "False", + "isReadOnly": "True" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/archive", + "name": "archive", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Allow to audit the log.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_enabled", + "name": "audit_log_enabled", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "CONNECTION", + "description": "Select the events to audit logs.", + "defaultValue": "CONNECTION", + "dataType": "Set", + "allowedValues": "DDL,DML_SELECT,DML_NONSELECT,DCL,ADMIN,DML,GENERAL,CONNECTION,TABLE_ACCESS", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_events", + "name": "audit_log_events", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "azure_superuser", + "description": "The comma-separated user list whose commands will not be in the audit logs.", + "defaultValue": "azure_superuser", + "dataType": "String", + "allowedValues": "", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_exclude_users", + "name": "audit_log_exclude_users", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "", + "description": "The comma-separated user list whose commands will be in the audit logs. It takes higher priority if the same user name is found in audit_log_exclude_users.", + "defaultValue": "", + "dataType": "String", + "allowedValues": "", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_include_users", + "name": "audit_log_include_users", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "ON", + "description": "Allow to audit the slow log.", + "defaultValue": "ON", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "True" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_slow_log_enabled", + "name": "audit_slow_log_enabled", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "OFF", + "description": "Controls whether the server autogenerates SSL key and certificate files in the data directory, if they do not already exist.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "False", + "isReadOnly": "True" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/auto_generate_certs", + "name": "auto_generate_certs", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "1", + "description": "The auto_increment_increment is intended for use with source-to-source replication, and can be used to control the operation of AUTO_INCREMENT columns.", + "defaultValue": "1", + "dataType": "Integer", + "allowedValues": "1-65535", + "source": "system-default", + "isConfigPendingRestart": "False", + "isDynamicConfig": "True", + "isReadOnly": "False" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/auto_increment_increment", + "name": "auto_increment_increment", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json new file mode 100644 index 000000000000..db628b352d0e --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json @@ -0,0 +1,320 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "Create a database": { + "$ref": "./examples/DatabaseCreate.json" + } + }, + "description": "Creates a new database or updates an existing database.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The required parameters for creating or updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "x-ms-examples": { + "Delete a database": { + "$ref": "./examples/DatabaseDelete.json" + } + }, + "description": "Deletes a database.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "x-ms-examples": { + "Get a database": { + "$ref": "./examples/DatabaseGet.json" + } + }, + "description": "Gets information about a database.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "x-ms-examples": { + "List databases in a server": { + "$ref": "./examples/DatabasesListByServer.json" + } + }, + "description": "List all the databases in a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "DatabaseProperties": { + "type": "object", + "properties": { + "charset": { + "type": "string", + "description": "The charset of the database." + }, + "collation": { + "type": "string", + "description": "The collation of the database." + } + }, + "description": "The properties of a database." + }, + "Database": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "x-ms-client-flatten": true, + "description": "The properties of a database." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a Database." + }, + "DatabaseListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in a server" + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A List of databases." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json new file mode 100644 index 000000000000..503e703ba62d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..fcf2a833ac18 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..04e5c8ec1cee --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "databaseName": "db1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json new file mode 100644 index 000000000000..50ba0fc9628d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", + "name": "db1", + "type": "Microsoft.DBforMySQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db2", + "name": "db2", + "type": "Microsoft.DBforMySQL/flexibleServers/databases", + "properties": { + "charset": "utf8", + "collation": "utf8_general_ci" + } + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json new file mode 100644 index 000000000000..cc08678ee321 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json @@ -0,0 +1,329 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/firewallRules/{firewallRuleName}": { + "put": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_CreateOrUpdate", + "x-ms-examples": { + "Create a firewall rule": { + "$ref": "./examples/FirewallRuleCreate.json" + } + }, + "description": "Creates a new firewall rule or updates an existing firewall rule.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The required parameters for creating or updating a firewall rule." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Delete", + "x-ms-examples": { + "Delete a firewall rule": { + "$ref": "./examples/FirewallRuleDelete.json" + } + }, + "description": "Deletes a firewall rule.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_Get", + "x-ms-examples": { + "Get a firewall rule": { + "$ref": "./examples/FirewallRuleGet.json" + } + }, + "description": "Gets information about a server firewall rule.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/FirewallRuleNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRule" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules": { + "get": { + "tags": [ + "FirewallRules" + ], + "operationId": "FirewallRules_ListByServer", + "x-ms-examples": { + "List all firewall rules in a server": { + "$ref": "./examples/FirewallRulesListByServer.json" + } + }, + "description": "List all the firewall rules in a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/FirewallRuleListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "FirewallRuleProperties": { + "type": "object", + "properties": { + "startIpAddress": { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + }, + "endIpAddress": { + "type": "string", + "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "startIpAddress", + "endIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "FirewallRule": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/FirewallRuleProperties", + "x-ms-client-flatten": true, + "description": "The properties of a firewall rule." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ], + "description": "Represents a server firewall rule." + }, + "FirewallRuleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/FirewallRule" + }, + "description": "The list of firewall rules in a server." + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of firewall rules." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "FirewallRuleNameParameter": { + "name": "firewallRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server firewall rule.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..58b0cd1d9a7d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..850a55650eb3 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..be637fe35a6a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "firewallRuleName": "rule1", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json new file mode 100644 index 000000000000..65ab18edb010 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", + "name": "rule1", + "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "0.0.0.0", + "endIpAddress": "255.255.255.255" + } + }, + { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule2", + "name": "rule2", + "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", + "properties": { + "startIpAddress": "1.0.0.0", + "endIpAddress": "255.0.0.0" + } + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json new file mode 100644 index 000000000000..1c1241426861 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json @@ -0,0 +1,1134 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}": { + "put": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Create", + "x-ms-examples": { + "Create a new server": { + "$ref": "./examples/ServerCreate.json" + }, + "Create a server as a point in time restore": { + "$ref": "./examples/ServerCreateWithPointInTimeRestore.json" + }, + "Create a replica server": { + "$ref": "./examples/ServerCreateReplica.json" + }, + "Create a server with byok": { + "$ref": "./examples/ServerCreateWithBYOK.json" + } + }, + "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Server" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Update", + "x-ms-examples": { + "Update a server": { + "$ref": "./examples/ServerUpdate.json" + }, + "Update server customer maintenance window": { + "$ref": "./examples/ServerUpdateWithCustomerMaintenanceWindow.json" + }, + "Update server with byok": { + "$ref": "./examples/ServerUpdateWithBYOK.json" + } + }, + "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerForUpdate" + }, + "description": "The required parameters for updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Delete", + "x-ms-examples": { + "Delete a server": { + "$ref": "./examples/ServerDelete.json" + } + }, + "description": "Deletes a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_Get", + "x-ms-examples": { + "Get a server": { + "$ref": "./examples/ServerGet.json" + }, + "Get a server with vnet": { + "$ref": "./examples/ServerGetWithVnet.json" + } + }, + "description": "Gets information about a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Server" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_ListByResourceGroup", + "x-ms-examples": { + "List servers in a resource group": { + "$ref": "./examples/ServersListByResourceGroup.json" + } + }, + "description": "List all the servers in a given resource group.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/flexibleServers": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Servers_List", + "x-ms-examples": { + "List servers in a subscription": { + "$ref": "./examples/ServersList.json" + } + }, + "description": "List all the servers in a given subscription.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/failover": { + "post": { + "tags": [ + "ServerFailover" + ], + "operationId": "Servers_Failover", + "x-ms-examples": { + "Restart a server": { + "$ref": "./examples/ServerFailover.json" + } + }, + "description": "Manual failover a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/restart": { + "post": { + "tags": [ + "ServerRestart" + ], + "operationId": "Servers_Restart", + "x-ms-examples": { + "Restart a server": { + "$ref": "./examples/ServerRestart.json" + } + }, + "description": "Restarts a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServerRestartParameter" + }, + "description": "The required parameters for restarting a server." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/start": { + "post": { + "tags": [ + "ServerStart" + ], + "operationId": "Servers_Start", + "x-ms-examples": { + "Start a server": { + "$ref": "./examples/ServerStart.json" + } + }, + "description": "Starts a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/stop": { + "post": { + "tags": [ + "ServerStop" + ], + "operationId": "Servers_Stop", + "x-ms-examples": { + "Stop a server": { + "$ref": "./examples/ServerStop.json" + } + }, + "description": "Stops a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/replicas": { + "get": { + "tags": [ + "Servers" + ], + "operationId": "Replicas_ListByServer", + "x-ms-examples": { + "List replicas for a server": { + "$ref": "./examples/ReplicasListByServer.json" + } + }, + "description": "List all the replicas for a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ServerVersion": { + "type": "string", + "description": "The version of a server.", + "enum": [ + "5.7", + "8.0.21" + ], + "x-ms-enum": { + "name": "ServerVersion", + "modelAsString": true + } + }, + "EnableStatusEnum": { + "type": "string", + "description": "Enum to indicate whether value is 'Enabled' or 'Disabled'", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnableStatusEnum", + "modelAsString": true + } + }, + "ReplicationRole": { + "type": "string", + "enum": [ + "None", + "Source", + "Replica" + ], + "x-ms-enum": { + "name": "ReplicationRole", + "modelAsString": true + }, + "description": "The replication role." + }, + "DataEncryption": { + "type": "object", + "description": "The date encryption for cmk.", + "properties": { + "primaryUserAssignedIdentityId": { + "type": "string", + "description": "Primary user identity resource id" + }, + "primaryKeyURI": { + "type": "string", + "description": "Primary key uri" + }, + "geoBackupUserAssignedIdentityId": { + "type": "string", + "description": "Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup" + }, + "geoBackupKeyURI": { + "type": "string", + "description": "Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup" + }, + "type": { + "type": "string", + "description": "The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.", + "enum": [ + "AzureKeyVault", + "SystemManaged" + ], + "x-ms-enum": { + "name": "DataEncryptionType", + "modelAsString": false + } + } + } + }, + "MaintenanceWindow": { + "type": "object", + "description": "Maintenance window of a server.", + "properties": { + "customWindow": { + "type": "string", + "description": "indicates whether custom window is enabled or disabled" + }, + "startHour": { + "type": "integer", + "format": "int32", + "description": "start hour for maintenance window" + }, + "startMinute": { + "type": "integer", + "format": "int32", + "description": "start minute for maintenance window" + }, + "dayOfWeek": { + "type": "integer", + "format": "int32", + "description": "day of week for maintenance window" + } + } + }, + "Backup": { + "type": "object", + "properties": { + "backupRetentionDays": { + "type": "integer", + "format": "int32", + "description": "Backup retention days for the server." + }, + "geoRedundantBackup": { + "$ref": "#/definitions/EnableStatusEnum", + "description": "Whether or not geo redundant backup is enabled." + }, + "earliestRestoreDate": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Earliest restore point creation time (ISO8601 format)" + } + }, + "description": "Storage Profile properties of a server" + }, + "Storage": { + "type": "object", + "properties": { + "storageSizeGB": { + "type": "integer", + "format": "int32", + "description": "Max storage size allowed for a server." + }, + "iops": { + "type": "integer", + "format": "int32", + "description": "Storage IOPS for a server." + }, + "autoGrow": { + "description": "Enable Storage Auto Grow or not.", + "$ref": "#/definitions/EnableStatusEnum" + }, + "storageSku": { + "type": "string", + "readOnly": true, + "description": "The sku name of the server storage." + }, + "autoIoScaling": { + "description": "Enable IO Auto Scaling or not.", + "$ref": "#/definitions/EnableStatusEnum" + } + }, + "description": "Storage Profile properties of a server" + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, e.g. Standard_D32s_v3." + }, + "tier": { + "type": "string", + "description": "The tier of the particular SKU, e.g. GeneralPurpose.", + "enum": [ + "Burstable", + "GeneralPurpose", + "MemoryOptimized" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + } + }, + "required": [ + "name", + "tier" + ], + "description": "Billing information related properties of a server." + }, + "Network": { + "type": "object", + "properties": { + "publicNetworkAccess": { + "$ref": "#/definitions/EnableStatusEnum", + "readOnly": true, + "description": "Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration." + }, + "delegatedSubnetResourceId": { + "type": "string", + "description": "Delegated subnet resource id used to setup vnet for a server." + }, + "privateDnsZoneResourceId": { + "type": "string", + "description": "Private DNS zone resource id." + } + }, + "description": "Network related properties of a server" + }, + "HighAvailability": { + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": [ + "Disabled", + "ZoneRedundant", + "SameZone" + ], + "x-ms-enum": { + "name": "HighAvailabilityMode", + "modelAsString": true + }, + "description": "High availability mode for a server." + }, + "state": { + "type": "string", + "readOnly": true, + "description": "The state of server high availability.", + "enum": [ + "NotEnabled", + "CreatingStandby", + "Healthy", + "FailingOver", + "RemovingStandby" + ], + "x-ms-enum": { + "name": "HighAvailabilityState", + "modelAsString": true + } + }, + "standbyAvailabilityZone": { + "type": "string", + "description": "Availability zone of the standby server." + } + }, + "description": "Network related properties of a server" + }, + "ServerProperties": { + "type": "object", + "properties": { + "administratorLogin": { + "type": "string", + "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "description": "The password of the administrator login (required for server creation).", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "availabilityZone": { + "type": "string", + "description": "availability Zone information of the server.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "createMode": { + "type": "string", + "description": "The mode to create a new MySQL server.", + "enum": [ + "Default", + "PointInTimeRestore", + "Replica", + "GeoRestore" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + }, + "x-ms-mutability": [ + "create" + ] + }, + "sourceServerResourceId": { + "type": "string", + "description": "The source MySQL server id.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from.", + "x-ms-mutability": [ + "create" + ] + }, + "replicationRole": { + "$ref": "#/definitions/ReplicationRole", + "description": "The replication role." + }, + "replicaCapacity": { + "type": "integer", + "format": "int32", + "minimum": 0, + "readOnly": true, + "description": "The maximum number of replicas that a primary server can have." + }, + "dataEncryption": { + "$ref": "#/definitions/DataEncryption", + "description": "The Data Encryption for CMK." + }, + "state": { + "type": "string", + "readOnly": true, + "description": "The state of a server.", + "enum": [ + "Ready", + "Dropping", + "Disabled", + "Starting", + "Stopping", + "Stopped", + "Updating" + ], + "x-ms-enum": { + "name": "ServerState", + "modelAsString": true + } + }, + "fullyQualifiedDomainName": { + "type": "string", + "description": "The fully qualified domain name of a server.", + "readOnly": true + }, + "storage": { + "$ref": "#/definitions/Storage", + "description": "Storage related properties of a server." + }, + "backup": { + "$ref": "#/definitions/Backup", + "description": "Backup related properties of a server." + }, + "highAvailability": { + "$ref": "#/definitions/HighAvailability", + "description": "High availability related properties of a server." + }, + "network": { + "$ref": "#/definitions/Network", + "description": "Network related properties of a server.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a server.", + "x-ms-mutability": [ + "update", + "read" + ] + } + }, + "description": "The properties of a server." + }, + "Server": { + "type": "object", + "properties": { + "identity": { + "$ref": "#/definitions/Identity", + "description": "The cmk identity for the server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerProperties", + "x-ms-client-flatten": true, + "description": "Properties of the server." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Represents a server." + }, + "ServerPropertiesForUpdate": { + "type": "object", + "properties": { + "administratorLoginPassword": { + "type": "string", + "x-ms-secret": true, + "format": "password", + "description": "The password of the administrator login." + }, + "version": { + "$ref": "#/definitions/ServerVersion", + "description": "Server version." + }, + "storage": { + "$ref": "#/definitions/Storage", + "description": "Storage related properties of a server." + }, + "backup": { + "$ref": "#/definitions/Backup", + "description": "Backup related properties of a server." + }, + "highAvailability": { + "$ref": "#/definitions/HighAvailability", + "description": "High availability related properties of a server." + }, + "maintenanceWindow": { + "$ref": "#/definitions/MaintenanceWindow", + "description": "Maintenance window of a server." + }, + "replicationRole": { + "$ref": "#/definitions/ReplicationRole", + "description": "The replication role of the server." + }, + "dataEncryption": { + "$ref": "#/definitions/DataEncryption", + "description": "The Data Encryption for CMK." + } + }, + "description": "The properties that can be updated for a server." + }, + "ServerForUpdate": { + "type": "object", + "properties": { + "identity": { + "$ref": "#/definitions/Identity", + "description": "The cmk identity for the server." + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The SKU (pricing tier) of the server." + }, + "properties": { + "$ref": "#/definitions/ServerPropertiesForUpdate", + "x-ms-client-flatten": true, + "description": "The properties that can be updated for a server." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Application-specific metadata in the form of key-value pairs." + } + }, + "description": "Parameters allowed to update for a server." + }, + "ServerListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Server" + }, + "description": "The list of servers" + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A list of servers." + }, + "ServerRestartParameter": { + "type": "object", + "properties": { + "restartWithFailover": { + "$ref": "#/definitions/EnableStatusEnum", + "description": "Whether or not failover to standby server when restarting a server with high availability enabled." + }, + "maxFailoverSeconds": { + "type": "integer", + "format": "int32", + "description": "The maximum allowed failover time in seconds." + } + }, + "description": "Server restart parameters." + }, + "Identity": { + "x-ms-client-flatten": true, + "type": "object", + "properties": { + "principalId": { + "type": "string", + "description": "ObjectId from the KeyVault", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "TenantId from the KeyVault", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of managed service identity.", + "enum": [ + "UserAssigned" + ], + "x-ms-enum": { + "name": "ManagedServiceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "description": "", + "items": { + "$ref": "#/definitions/UserAssignedIdentity" + } + }, + "description": "Metadata of user assigned identity." + } + }, + "description": "Properties to configure Identity for Bring your Own Keys" + }, + "UserAssignedIdentity": { + "type": "object", + "properties": { + "principalId": { + "description": "Principal Id of user assigned identity", + "type": "string", + "x-ms-client-name": "PrincipalId", + "readOnly": true + }, + "clientId": { + "description": "Client Id of user assigned identity", + "type": "string", + "x-ms-client-name": "ClientId", + "readOnly": true + } + }, + "description": "Metadata of user assigned identity." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json new file mode 100644 index 000000000000..8f865bfd5f72 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 20, + "iops": 360, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver-repl.orcabrci-seas1-a.mscds.com", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "availabilityZone": "1", + "replicationRole": "Replica", + "replicaCapacity": 0, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T08:19:18.00+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver-repl", + "name": "mysqltestserver-repl", + "type": "Microsoft.DBforMySQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 20, + "iops": 360, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver-repl2.orcabrci-seas1-a.mscds.com", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "availabilityZone": "1", + "replicationRole": "Replica", + "replicaCapacity": 0, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-23T08:19:18.00+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver-repl2", + "name": "mysqltestserver-repl", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json new file mode 100644 index 000000000000..0fb61ec23bb4 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "your_password", + "availabilityZone": "1", + "version": "5.7", + "createMode": "Default", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Disabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "standbyAvailabilityZone": "3" + } + }, + "location": "southeastasia", + "tags": { + "num": "1" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "3" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "3" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json new file mode 100644 index 000000000000..2e8f46ec6f3a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json @@ -0,0 +1,116 @@ +{ + "parameters": { + "serverName": "replica-server", + "resourceGroupName": "testgr", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "SoutheastAsia", + "properties": { + "createMode": "Replica", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 20, + "iops": 360, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "replica-server.database.mysql.azure.com", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server", + "availabilityZone": "3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "Replica", + "replicaCapacity": 0, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T08:19:18.5729164+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server", + "name": "replica-server", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 20, + "iops": 360, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "replica-server.database.mysql.azure.com", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server", + "availabilityZone": "3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "Replica", + "replicaCapacity": 0, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T08:19:18.5729164+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "ElasticServer": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server", + "name": "replica-server", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json new file mode 100644 index 000000000000..c0bfca2d9f1c --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json @@ -0,0 +1,152 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity": {} + } + }, + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "administratorLoginPassword": "your_password", + "availabilityZone": "1", + "version": "5.7", + "createMode": "Default", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Disabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "standbyAvailabilityZone": "3" + }, + "dataEncryption": { + "type": "AzureKeyVault", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity", + "primaryKeyURI": "https://test.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a", + "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-identity", + "geoBackupKeyURI": "https://test-geo.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a" + } + }, + "location": "southeastasia", + "tags": { + "num": "1" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "3" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "3" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json new file mode 100644 index 000000000000..12864eb4ce3c --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "serverName": "targetserver", + "resourceGroupName": "TargetResourceGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "location": "SoutheastAsia", + "properties": { + "restorePointInTime": "2021-06-24T00:00:37.467Z", + "createMode": "PointInTimeRestore", + "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver" + }, + "sku": { + "name": "Standard_D14_v2", + "tier": "GeneralPurpose" + }, + "tags": { + "num": "1" + } + } + }, + "responses": { + "201": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "adminuser", + "storage": { + "storageSizeGB": 20, + "iops": 360, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "targetserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T00:15:24.00+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver", + "name": "targetserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "adminuser", + "storage": { + "storageSizeGB": 20, + "iops": 360, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "targetserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T00:15:24.00+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver", + "name": "targetserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json new file mode 100644 index 000000000000..97e36c48c296 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + }, + "204": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json new file mode 100644 index 000000000000..0acac834753d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json new file mode 100644 index 000000000000..fd7a32a6a2e3 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "autoIoScaling": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "3", + "maintenanceWindow": { + "customWindow": "Enabled", + "dayOfWeek": 1, + "startHour": 1, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json new file mode 100644 index 000000000000..9ff938184d06 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Disabled", + "delegatedSubnetResourceId": "/subscriptions/2941a09d-7bcf-42fe-91ca-1765f521c829/resourceGroups/OrcabrCI-Vnet-Resource-Group/providers/Microsoft.Network/virtualNetworks/OrcabrCI-Vnet/subnets/mysql-subnet" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json new file mode 100644 index 000000000000..230c2bb7761b --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "restartWithFailover": "Enabled", + "maxFailoverSeconds": 60 + } + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json new file mode 100644 index 000000000000..0acac834753d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json new file mode 100644 index 000000000000..0acac834753d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json new file mode 100644 index 000000000000..993b143d99a9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "storage": { + "storageSizeGB": 30, + "iops": 200, + "autoGrow": "Disabled", + "autoIoScaling": "Disabled" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 30, + "iops": 200, + "autoGrow": "Disabled", + "storageSku": "Premium_LRS", + "autoIoScaling": "Disabled" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "3", + "maintenanceWindow": { + "customWindow": "Enabled", + "dayOfWeek": 1, + "startHour": 1, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json new file mode 100644 index 000000000000..dd61e6fee539 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity": {} + } + }, + "properties": { + "dataEncryption": { + "type": "AzureKeyVault", + "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity", + "primaryKeyURI": "https://test.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a", + "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-identity", + "geoBackupKeyURI": "https://test-geo.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "ZoneRedundant", + "state": "Healthy", + "standbyAvailabilityZone": "3" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json new file mode 100644 index 000000000000..2ff83b111b26 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "serverName": "mysqltestserver", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "maintenanceWindow": { + "customWindow": "Enabled", + "dayOfWeek": 1, + "startHour": 8, + "startMinute": 0 + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Standard_D2ds_v4", + "tier": "GeneralPurpose" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", + "availabilityZone": "3", + "maintenanceWindow": { + "customWindow": "Enabled", + "dayOfWeek": 1, + "startHour": 8, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", + "name": "mysqltestserver", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "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=2021-12-01-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=2021-12-01-preview" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json new file mode 100644 index 000000000000..059ced0e0e6d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json @@ -0,0 +1,152 @@ +{ + "parameters": { + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard_B1ms", + "tier": "Burstable" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 23, + "iops": 369, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver1.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver1", + "name": "mysqltestserver1", + "type": "Microsoft.DBforMySQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_B1ms", + "tier": "Burstable" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 23, + "iops": 369, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver2.mysql.database.azure.com", + "availabilityZone": "2", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver2", + "name": "mysqltestserver2", + "type": "Microsoft.DBforMySQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_E2ds_v4", + "tier": "MemoryOptimized" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver3.mysql.database.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T06:28:19.0611667+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup3/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver3", + "name": "mysqltestserver3", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json new file mode 100644 index 000000000000..1737448444d0 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json @@ -0,0 +1,153 @@ +{ + "parameters": { + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "sku": { + "name": "Standard_B1ms", + "tier": "Burstable" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 23, + "iops": 369, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver1.database.mysql.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver1", + "name": "mysqltestserver1", + "type": "Microsoft.DBforMySQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_B1ms", + "tier": "Burstable" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 23, + "iops": 369, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver2.mysql.database.azure.com", + "availabilityZone": "2", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver2", + "name": "mysqltestserver2", + "type": "Microsoft.DBforMySQL/flexibleServers" + }, + { + "sku": { + "name": "Standard_E2ds_v4", + "tier": "MemoryOptimized" + }, + "properties": { + "administratorLogin": "cloudsa", + "storage": { + "storageSizeGB": 100, + "iops": 600, + "autoGrow": "Enabled", + "storageSku": "Premium_LRS" + }, + "version": "5.7", + "state": "Ready", + "fullyQualifiedDomainName": "mysqltestserver3.mysql.database.azure.com", + "availabilityZone": "1", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "replicationRole": "None", + "replicaCapacity": 10, + "network": { + "publicNetworkAccess": "Enabled" + }, + "backup": { + "backupRetentionDays": 7, + "geoRedundantBackup": "Disabled", + "earliestRestoreDate": "2021-06-24T06:28:19.0611667+00:00" + }, + "highAvailability": { + "mode": "Disabled", + "state": "NotEnabled" + } + }, + "location": "Southeast Asia", + "tags": { + "num": "1" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver3", + "name": "mysqltestserver3", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json new file mode 100644 index 000000000000..9007edfbf3ff --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json @@ -0,0 +1,173 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/logFiles": { + "get": { + "tags": [ + "LogFiles" + ], + "operationId": "LogFiles_ListByServer", + "x-ms-examples": { + "List all server log files for a server": { + "$ref": "./examples/LogFilesListByServer.json" + } + }, + "description": "List all the server log files in a given server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogFileListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "LogFileProperties": { + "type": "object", + "properties": { + "sizeInKB": { + "type": "integer", + "format": "int64", + "description": "The size in kb of the logFile." + }, + "createdTime": { + "type": "string", + "format": "date-time", + "description": "Creation timestamp of the log file." + }, + "type": { + "type": "string", + "description": "Type of the log file." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Last modified timestamp of the log file." + }, + "url": { + "type": "string", + "description": "The url to download the log file from." + } + }, + "description": "The properties of a logFile." + }, + "LogFile": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/LogFileProperties", + "x-ms-client-flatten": true, + "description": "The properties of a logFile." + }, + "systemData": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "The system metadata relating to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Represents a logFile." + }, + "LogFileListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LogFile" + }, + "description": "The list of logFiles in a server" + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + }, + "description": "A List of logFiles." + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json new file mode 100644 index 000000000000..8a533b2fdc99 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "serverName": "mysqltestsvc1", + "resourceGroupName": "testrg", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "sizeInKB": 1, + "createdTime": "0001-01-01T00:00:00+00:00", + "lastModifiedTime": "2018-03-01T06:09:20+00:00", + "type": "slowlog", + "url": "https://wasd2prodwus1afse42.file.core.windows.net/833c99b2f36c47349e5554b903fe0440/serverlogs/mysql-slow-mysqltestsvc1-2018022823.log?sv=2015-04-05&sr=f&sig=D9Ga4N5Pa%2BPe5Bmjpvs7A0TPD%2FF7IZpk9e4KWR0jgpM%3D&se=2018-03-01T07%3A12%3A13Z&sp=r" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/logFiles/mysql-slow-mysqltestsvc1-2018022823.log", + "name": "mysql-slow-mysqltestsvc1-2018022823.log", + "type": "Microsoft.DBforMySQL/flexibleServers/logFiles" + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json new file mode 100644 index 000000000000..497f61dbe1ff --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json @@ -0,0 +1,654 @@ +{ + "swagger": "2.0", + "info": { + "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.", + "version": "2021-12-01-preview" + }, + "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}/providers/Microsoft.DBforMySQL/locations/{locationName}/capabilities": { + "get": { + "tags": [ + "LocationBasedCapabilities" + ], + "operationId": "LocationBasedCapabilities_List", + "x-ms-examples": { + "CapabilitiesList": { + "$ref": "./examples/CapabilitiesByLocationList.json" + } + }, + "description": "Get capabilities at specified location in a given subscription.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CapabilitiesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkVirtualNetworkSubnetUsage": { + "post": { + "tags": [ + "CheckVirtualNetworkSubnetUsage" + ], + "operationId": "CheckVirtualNetworkSubnetUsage_Execute", + "x-ms-examples": { + "CheckVirtualNetworkSubnetUsage": { + "$ref": "./examples/CheckVirtualNetworkSubnetUsage.json" + } + }, + "description": "Get virtual network subnet usage for a given vNet resource id.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkSubnetUsageParameter" + }, + "description": "The required parameters for creating or updating a server." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualNetworkSubnetUsageResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailability_Execute", + "x-ms-examples": { + "Check name availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "description": "Check the availability of name for server", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if server name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { + "post": { + "tags": [ + "CheckNameAvailability" + ], + "operationId": "CheckNameAvailabilityWithoutLocation_Execute", + "x-ms-examples": { + "Check name availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "description": "Check the availability of name for server", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "nameAvailabilityRequest", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NameAvailabilityRequest" + }, + "description": "The required parameters for checking if server name is available." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NameAvailability" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": { + "post": { + "tags": [ + "GetPrivateDnsZoneSuffix" + ], + "operationId": "GetPrivateDnsZoneSuffix_Execute", + "x-ms-examples": { + "GetPrivateDnsZoneSuffix": { + "$ref": "./examples/GetPrivateDnsZoneSuffix.json" + } + }, + "description": "Get private DNS zone suffix in the cloud.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GetPrivateDnsZoneSuffixResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/providers/Microsoft.DBforMySQL/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "OperationList": { + "$ref": "./examples/OperationsList.json" + } + }, + "description": "Lists all of the available REST API operations.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "VirtualNetworkSubnetUsageParameter": { + "type": "object", + "properties": { + "virtualNetworkResourceId": { + "type": "string", + "description": "Virtual network resource id." + } + }, + "description": "Virtual network subnet usage parameter" + }, + "DelegatedSubnetUsage": { + "type": "object", + "properties": { + "subnetName": { + "type": "string", + "readOnly": true, + "description": "name of the subnet" + }, + "usage": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Number of used delegated subnets" + } + }, + "description": "Delegated subnet usage data." + }, + "VirtualNetworkSubnetUsageResult": { + "type": "object", + "properties": { + "location": { + "type": "string", + "readOnly": true, + "description": "The location name." + }, + "subscriptionId": { + "type": "string", + "readOnly": true, + "description": "The subscription id." + }, + "delegatedSubnetsUsage": { + "description": "A list of delegated subnet usage", + "type": "array", + "items": { + "$ref": "#/definitions/DelegatedSubnetUsage" + }, + "x-ms-identifiers": [], + "readOnly": true + } + }, + "description": "Virtual network subnet usage data." + }, + "SkuCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "vCore name", + "readOnly": true + }, + "vCores": { + "type": "integer", + "format": "int64", + "description": "supported vCores", + "readOnly": true + }, + "supportedIops": { + "type": "integer", + "format": "int64", + "description": "supported IOPS", + "readOnly": true + }, + "supportedMemoryPerVCoreMB": { + "type": "integer", + "format": "int64", + "description": "supported memory per vCore in MB", + "readOnly": true + } + }, + "description": "Sku capability" + }, + "ServerVersionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "server version", + "readOnly": true + }, + "supportedSkus": { + "description": "A list of supported Skus", + "type": "array", + "items": { + "$ref": "#/definitions/SkuCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + } + }, + "description": "Server version capabilities." + }, + "StorageEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "storage edition name", + "readOnly": true + }, + "minStorageSize": { + "type": "integer", + "format": "int64", + "description": "The minimal supported storage size.", + "readOnly": true + }, + "maxStorageSize": { + "type": "integer", + "format": "int64", + "description": "The maximum supported storage size.", + "readOnly": true + }, + "minBackupRetentionDays": { + "type": "integer", + "format": "int64", + "description": "Minimal backup retention days", + "readOnly": true + }, + "maxBackupRetentionDays": { + "type": "integer", + "format": "int64", + "description": "Maximum backup retention days", + "readOnly": true + } + }, + "description": "storage edition capability" + }, + "ServerEditionCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Server edition name", + "readOnly": true + }, + "supportedStorageEditions": { + "description": "A list of supported storage editions", + "type": "array", + "items": { + "$ref": "#/definitions/StorageEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "supportedServerVersions": { + "description": "A list of supported server versions.", + "type": "array", + "items": { + "$ref": "#/definitions/ServerVersionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + } + }, + "description": "Server edition capabilities." + }, + "CapabilityProperties": { + "type": "object", + "properties": { + "zone": { + "type": "string", + "description": "zone name", + "readOnly": true + }, + "supportedHAMode": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Supported high availability mode", + "readOnly": true + }, + "supportedGeoBackupRegions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "supported geo backup regions", + "readOnly": true + }, + "supportedFlexibleServerEditions": { + "description": "A list of supported flexible server editions.", + "type": "array", + "items": { + "$ref": "#/definitions/ServerEditionCapability" + }, + "x-ms-identifiers": [], + "readOnly": true + } + }, + "description": "Location capabilities." + }, + "CapabilitiesListResult": { + "type": "object", + "properties": { + "value": { + "description": "A list of supported capabilities.", + "type": "array", + "items": { + "$ref": "#/definitions/CapabilityProperties" + }, + "x-ms-identifiers": [], + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + }, + "description": "location capability" + }, + "GetPrivateDnsZoneSuffixResponse": { + "type": "object", + "properties": { + "privateDnsZoneSuffix": { + "type": "string", + "description": "Represents the private DNS zone suffix." + } + }, + "description": "The response of get private dns zone suffix." + }, + "NameAvailabilityRequest": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Resource name to verify." + }, + "type": { + "type": "string", + "description": "Resource type used for verification." + } + }, + "description": "Request from client to check resource name availability." + }, + "NameAvailability": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "Error Message." + }, + "nameAvailable": { + "type": "boolean", + "description": "Indicates whether the resource name is available." + }, + "reason": { + "type": "string", + "description": "Reason for name being unavailable." + } + }, + "description": "Represents a resource name availability." + }, + "OperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "description": "Operation resource provider name." + }, + "resource": { + "type": "string", + "description": "Resource on which the operation is performed." + }, + "operation": { + "type": "string", + "description": "Localized friendly name for the operation." + }, + "description": { + "type": "string", + "description": "Operation description." + } + }, + "description": "Display metadata associated with the operation." + }, + "Operation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the operation being performed on this particular object." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "The localized display information for this particular operation or action." + }, + "origin": { + "type": "string", + "description": "The intended executor of the operation." + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "x-ms-client-flatten": false, + "description": "Additional descriptions for the operation." + } + }, + "description": "REST API operation definition." + }, + "OperationListResult": { + "description": "A list of resource provider operations.", + "type": "object", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).", + "type": "string" + } + } + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "LocationNameParameter": { + "name": "locationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the location.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json new file mode 100644 index 000000000000..773bb6a1cd75 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json @@ -0,0 +1,1159 @@ +{ + "parameters": { + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "WestUS" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "zone": "none", + "supportedHAMode": [ + "SameZone", + "ZoneRedundant" + ], + "supportedGeoBackupRegions": [], + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + } + ] + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + } + ] + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + } + ] + } + ] + }, + { + "zone": "1", + "supportedHAMode": [ + "SameZone", + "ZoneRedundant" + ], + "supportedGeoBackupRegions": [], + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + } + ] + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + } + ] + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + } + ] + } + ] + }, + { + "zone": "2", + "supportedHAMode": [ + "SameZone", + "ZoneRedundant" + ], + "supportedGeoBackupRegions": [], + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + } + ] + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + } + ] + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + } + ] + } + ] + }, + { + "zone": "3", + "supportedHAMode": [ + "SameZone", + "ZoneRedundant" + ], + "supportedGeoBackupRegions": [], + "supportedFlexibleServerEditions": [ + { + "name": "Burstable", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_B1s", + "vCores": 1, + "supportedIops": 400, + "supportedMemoryPerVCoreMB": 1024 + }, + { + "name": "Standard_B1ms", + "vCores": 1, + "supportedIops": 640, + "supportedMemoryPerVCoreMB": 2048 + }, + { + "name": "Standard_B2s", + "vCores": 2, + "supportedIops": 1280, + "supportedMemoryPerVCoreMB": 2048 + } + ] + } + ] + }, + { + "name": "GeneralPurpose", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_D2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + }, + { + "name": "Standard_D64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 4096 + } + ] + } + ] + }, + { + "name": "MemoryOptimized", + "supportedStorageEditions": [ + { + "name": "Premium", + "minStorageSize": 20480, + "maxStorageSize": 16777216, + "minBackupRetentionDays": 7, + "maxBackupRetentionDays": 35 + } + ], + "supportedServerVersions": [ + { + "name": "5.7", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + }, + { + "name": "8.0.21", + "supportedSkus": [ + { + "name": "Standard_E2ds_v4", + "vCores": 2, + "supportedIops": 3200, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E4ds_v4", + "vCores": 4, + "supportedIops": 6400, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E8ds_v4", + "vCores": 8, + "supportedIops": 12800, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E16ds_v4", + "vCores": 16, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E32ds_v4", + "vCores": 32, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E48ds_v4", + "vCores": 48, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + }, + { + "name": "Standard_E64ds_v4", + "vCores": 64, + "supportedIops": 20000, + "supportedMemoryPerVCoreMB": 8192 + } + ] + } + ] + } + ] + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..f68785f9fef9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "SouthEastAsia", + "nameAvailabilityRequest": { + "name": "name1", + "type": "Microsoft.DBforMySQL/flexibleServers" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "message": "", + "reason": "" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json new file mode 100644 index 000000000000..4c111a729639 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "locationName": "WestUS", + "parameters": { + "virtualNetworkResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet" + } + }, + "responses": { + "200": { + "body": { + "location": "WestUS", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "delegatedSubnetsUsage": [ + { + "subnetName": "test-subnet-1", + "usage": 2 + }, + { + "subnetName": "test-subnet-2", + "usage": 3 + } + ] + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json new file mode 100644 index 000000000000..b4ab90c83c70 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-12-01-preview" + }, + "responses": { + "200": { + "body": { + "privateDnsZoneSuffix": "suffix-example" + } + } + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json new file mode 100644 index 000000000000..4ff9be1db93f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json @@ -0,0 +1,190 @@ +{ + "parameters": { + "api-version": "2021-12-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "List/Get Firewall Rules", + "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "Create/Update Firewall Rule", + "description": "Creates a firewall rule with the specified parameters or update an existing rule." + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/delete", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Firewall Rules", + "operation": "Delete Firewall Rule", + "description": "Deletes an existing firewall rule." + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "List/Get MySQL Servers", + "description": "Return the list of servers or gets the properties for the specified server." + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "Create/Update MySQL Server", + "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/delete", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "MySQL Server", + "operation": "Delete MySQL Server", + "description": "Deletes an existing server." + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Get database metric definitions", + "description": "Return types of metrics that are available for databases" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "cpu_percent", + "displayName": "CPU percent", + "displayDescription": "CPU percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "memory_percent", + "displayName": "Memory percent", + "displayDescription": "Memory percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "io_consumption_percent", + "displayName": "IO percent", + "displayDescription": "IO percent", + "unit": "Percent", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "storage_percent", + "displayName": "Storage percentage", + "displayDescription": "Storage percentage", + "unit": "Percent", + "aggregationType": "Average" + }, + { + "name": "storage_used", + "displayName": "Storage used", + "displayDescription": "Storage used", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "storage_limit", + "displayName": "Storage limit", + "displayDescription": "Storage limit", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "serverlog_storage_percent", + "displayName": "Server Log storage percent", + "displayDescription": "Server Log storage percent", + "unit": "Percent", + "aggregationType": "Average" + }, + { + "name": "serverlog_storage_usage", + "displayName": "Server Log storage used", + "displayDescription": "Server Log storage used", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "serverlog_storage_limit", + "displayName": "Server Log storage limit", + "displayDescription": "Server Log storage limit", + "unit": "Bytes", + "aggregationType": "Average" + }, + { + "name": "active_connections", + "displayName": "Total active connections", + "displayDescription": "Total active connections", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "connections_failed", + "displayName": "Total failed connections", + "displayDescription": "Total failed connections", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + }, + { + "name": "seconds_behind_master", + "displayName": "Replication lag in seconds", + "displayDescription": "Replication lag in seconds", + "unit": "Count", + "aggregationType": "Average", + "fillGapWithZero": true + } + ] + } + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Read diagnostic setting", + "description": "Gets the disagnostic setting for the resource" + } + }, + { + "name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write", + "display": { + "provider": "Microsoft DB for MySQL", + "resource": "Database Metric Definition", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + } + ] + } + } + } +} From ca136c4c0603cc5d4744cd582c16693775cf3357 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 14 Mar 2023 15:15:19 +0800 Subject: [PATCH 02/20] change api version, examples and readme --- .../2022-09-01/AzureADAdministrator.json | 2 +- .../examples/AzureADAdministratorCreate.json | 2 +- .../examples/AzureADAdministratorDelete.json | 10 +++++----- .../examples/AzureADAdministratorGet.json | 2 +- .../AzureADAdministratorsListByServer.json | 2 +- .../Backups/stable/2022-09-01/Backups.json | 2 +- .../stable/2022-09-01/examples/BackupGet.json | 2 +- .../stable/2022-09-01/examples/BackupPut.json | 2 +- .../examples/BackupsListByServer.json | 2 +- .../stable/2022-09-01/Configurations.json | 2 +- .../2022-09-01/examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationUpdate.json | 6 +++--- .../examples/ConfigurationsBatchUpdate.json | 6 +++--- .../examples/ConfigurationsListByServer.json | 2 +- .../stable/2022-09-01/Databases.json | 2 +- .../2022-09-01/examples/DatabaseCreate.json | 2 +- .../2022-09-01/examples/DatabaseDelete.json | 6 +++--- .../2022-09-01/examples/DatabaseGet.json | 2 +- .../examples/DatabasesListByServer.json | 2 +- .../stable/2022-09-01/FirewallRules.json | 2 +- .../examples/FirewallRuleCreate.json | 2 +- .../examples/FirewallRuleDelete.json | 6 +++--- .../2022-09-01/examples/FirewallRuleGet.json | 2 +- .../examples/FirewallRulesListByServer.json | 2 +- .../stable/2022-09-01/FlexibleServers.json | 2 +- .../examples/ReplicasListByServer.json | 2 +- .../2022-09-01/examples/ServerCreate.json | 2 +- .../examples/ServerCreateReplica.json | 2 +- .../examples/ServerCreateWithBYOK.json | 2 +- .../ServerCreateWithPointInTimeRestore.json | 2 +- .../2022-09-01/examples/ServerDelete.json | 6 +++--- .../2022-09-01/examples/ServerFailover.json | 6 +++--- .../stable/2022-09-01/examples/ServerGet.json | 2 +- .../examples/ServerGetWithVnet.json | 2 +- .../2022-09-01/examples/ServerRestart.json | 6 +++--- .../2022-09-01/examples/ServerStart.json | 6 +++--- .../2022-09-01/examples/ServerStop.json | 6 +++--- .../2022-09-01/examples/ServerUpdate.json | 6 +++--- .../examples/ServerUpdateWithBYOK.json | 6 +++--- ...erUpdateWithCustomerMaintenanceWindow.json | 6 +++--- .../2022-09-01/examples/ServersList.json | 2 +- .../examples/ServersListByResourceGroup.json | 2 +- .../LogFiles/stable/2022-09-01/LogFiles.json | 2 +- .../examples/LogFilesListByServer.json | 2 +- .../stable/2022-09-01/ServiceOperations.json | 2 +- .../examples/CapabilitiesByLocationList.json | 2 +- .../examples/CheckNameAvailability.json | 2 +- .../CheckVirtualNetworkSubnetUsage.json | 2 +- .../examples/GetPrivateDnsZoneSuffix.json | 2 +- .../2022-09-01/examples/OperationsList.json | 2 +- .../mysql/resource-manager/readme.md | 20 +++++++++++++++++-- 51 files changed, 96 insertions(+), 80 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json index 1d0778cdd76a..5aa04b68610d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json index 58765bbf1eae..cd54a2e6c9d6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01-preview", + "api-version": "", "parameters": { "properties": { "administratorType": "ActiveDirectory", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json index 7c058207fe0f..fc8078402b0c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json @@ -4,20 +4,20 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01-preview" + "api-version": "" }, "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=2021-12-01-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=2021-12-01-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=", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=" } }, "204": { "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=2021-12-01-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=2021-12-01-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=", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json index 2aed501b1404..1a6dd2dc7312 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01-preview" + "api-version": "" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json index 55ad81d81d36..dffce5599c8b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", - "api-version": "2021-12-01-preview" + "api-version": "" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json index 1cc4d2366a3f..b2a2e6bf2abb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json index 5950175a230f..927d28472cee 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json @@ -3,7 +3,7 @@ "backupName": "daily_20210615T160516", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json index 2228b22f4ab0..f53f19c2279f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json @@ -3,7 +3,7 @@ "backupName": "mybackup", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json index 4fa00c9366a8..451d39577b72 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json index 37fba5086f45..3bd6e47c1141 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json index 4312ffc16a69..e686c8fe86ac 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "event_scheduler", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json index 62317140afe3..6ff9b2d42027 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json @@ -3,7 +3,7 @@ "serverName": "testserver", "configurationName": "event_scheduler", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { @@ -33,8 +33,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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json index 9082d516dcf7..2be3c37a0d23 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "value": [ @@ -63,8 +63,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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json index e9701629cae2..e9f724332667 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "page": 1, "pageSize": 8 diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json index db628b352d0e..4237a2a25003 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json index 503e703ba62d..d17e40c852cc 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json index fcf2a833ac18..90fb22c541bd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json @@ -3,15 +3,15 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json index 04e5c8ec1cee..b5c299ede83e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json index 50ba0fc9628d..b2bc5db85c75 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json index cc08678ee321..5321386b884f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json index 58b0cd1d9a7d..d6eda52f1e68 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json index 850a55650eb3..e3afbd406c18 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json @@ -3,15 +3,15 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json index be637fe35a6a..c3bf0c0427cb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json index 65ab18edb010..be10c674181b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json index 1c1241426861..02bfc03240d4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json index 8f865bfd5f72..082422aaf63a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json index 0fb61ec23bb4..7f276df8efe9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "sku": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json index 2e8f46ec6f3a..3085fee26ad7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "replica-server", "resourceGroupName": "testgr", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json index c0bfca2d9f1c..3b4e1eed1484 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "identity": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json index 12864eb4ce3c..2befa50525c3 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "targetserver", "resourceGroupName": "TargetResourceGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json index 97e36c48c296..7105b1efe2f8 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json index 0acac834753d..8e70f6312b2e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json index fd7a32a6a2e3..248a7cd186f9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json index 9ff938184d06..7fa3c9b5eec5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json index 230c2bb7761b..ee4aea22ad24 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "restartWithFailover": "Enabled", @@ -13,8 +13,8 @@ "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json index 0acac834753d..8e70f6312b2e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json index 0acac834753d..8e70f6312b2e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json index 993b143d99a9..bfb760ea7f3a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { @@ -67,8 +67,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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json index dd61e6fee539..24e165724cf1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "identity": { @@ -74,8 +74,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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 2ff83b111b26..d455ffe9acac 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { @@ -66,8 +66,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=2021-12-01-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=2021-12-01-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=2022-09-01", + "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-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json index 059ced0e0e6d..a5b95d2ac21a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json index 1737448444d0..c2ac9c825084 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json index 9007edfbf3ff..628cc0966feb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json index 8a533b2fdc99..aa9fb95721b9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestsvc1", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json index 497f61dbe1ff..2d9e41178f33 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json index 773bb6a1cd75..cc025fdfb212 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json index f68785f9fef9..7a29b52aca7e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "SouthEastAsia", "nameAvailabilityRequest": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json index 4c111a729639..19eaccc18691 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2022-09-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS", "parameters": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json index b4ab90c83c70..502550225f44 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview" + "api-version": "2022-09-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json index 4ff9be1db93f..8b390f0f85ad 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview" + "api-version": "2022-09-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 2e08b9ea4d40..411272d7ac9c 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-2020-01-01 +tag: package-2022-09-01 ``` ``` yaml $(package-flexibleservers) -tag: package-flexibleserver-2021-12-01-preview +tag: package-2022-09-01 ``` ``` yaml $(package-singleservers) @@ -160,6 +160,22 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` +### Tag: package-2022-09-01 + +These settings apply only when `--tag=package-2022-09-01` is specified on the command line. + +``` yaml $(tag) == 'package-2022-09-01' +input-file: +- Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json +- Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json +- Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json +- Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json +- Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json +- Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json +- Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json +- Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json +``` + ## Suppression ``` yaml From 37a6bf7bc19e84c5760505fca8c57cd9f7592f5e Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 14 Mar 2023 15:23:43 +0800 Subject: [PATCH 03/20] fix linter errors --- .../2022-09-01/AzureADAdministrator.json | 22 +++++-- .../Backups/stable/2022-09-01/Backups.json | 6 +- .../stable/2022-09-01/Configurations.json | 34 ++++++++--- .../stable/2022-09-01/Databases.json | 22 +++++-- .../stable/2022-09-01/FirewallRules.json | 22 +++++-- .../stable/2022-09-01/FlexibleServers.json | 61 ++++++++++++++++--- .../LogFiles/stable/2022-09-01/LogFiles.json | 3 +- .../stable/2022-09-01/ServiceOperations.json | 6 +- 8 files changed, 142 insertions(+), 34 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json index 5aa04b68610d..45c2e9cd9974 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json @@ -86,7 +86,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -130,7 +136,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -328,7 +340,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "AdministratorNameParameter": { "name": "administratorName", @@ -343,7 +356,8 @@ "modelAsString": true }, "description": "The name of the Azure AD Administrator.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json index b2a2e6bf2abb..7262d082d701 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json @@ -245,7 +245,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "BackupNameParameter": { "name": "backupName", @@ -253,7 +254,8 @@ "required": true, "type": "string", "description": "The name of the backup.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json index 3bd6e47c1141..2cd12aa606fd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json @@ -80,7 +80,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -178,7 +184,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -441,7 +453,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "ConfigurationNameParameter": { "name": "configurationName", @@ -449,7 +462,8 @@ "required": true, "type": "string", "description": "The name of the server configuration.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "ConfigurationTagsParameter": { "name": "tags", @@ -457,7 +471,8 @@ "required": false, "type": "string", "description": "The tags of the server configuration.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "ConfigurationKeywordParameter": { "name": "keyword", @@ -465,7 +480,8 @@ "required": false, "type": "string", "description": "The keyword of the server configuration.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "ConfigurationPageParameter": { "name": "page", @@ -474,7 +490,8 @@ "type": "integer", "format": "int32", "description": "The page of the server configuration.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "ConfigurationPageSizeParameter": { "name": "pageSize", @@ -483,7 +500,8 @@ "type": "integer", "format": "int32", "description": "The pageSize of the server configuration.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json index 4237a2a25003..0b0d4990c32c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json @@ -86,7 +86,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -130,7 +136,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -306,7 +318,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "DatabaseNameParameter": { "name": "databaseName", @@ -314,7 +327,8 @@ "required": true, "type": "string", "description": "The name of the database.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json index 5321386b884f..7f292112a1f4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json @@ -86,7 +86,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -130,7 +136,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -315,7 +327,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "FirewallRuleNameParameter": { "name": "firewallRuleName", @@ -323,7 +336,8 @@ "required": true, "type": "string", "description": "The name of the server firewall rule.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json index 02bfc03240d4..3afc2c37f25a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json @@ -92,7 +92,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -151,7 +157,13 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -192,7 +204,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -362,7 +380,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -414,7 +438,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -457,7 +487,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -500,7 +536,13 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -1074,7 +1116,7 @@ ], "x-ms-enum": { "name": "ManagedServiceIdentityType", - "modelAsString": false + "modelAsString": true } }, "userAssignedIdentities": { @@ -1128,7 +1170,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json index 628cc0966feb..53ad888a010a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json @@ -167,7 +167,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json index 2d9e41178f33..a2a32e09bb1d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json @@ -640,7 +640,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, "LocationNameParameter": { "name": "locationName", @@ -648,7 +649,8 @@ "required": true, "type": "string", "description": "The name of the location.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" } } } From 1a5512837919c7ab3f431f9f90c6b554cb4fd613 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 14 Mar 2023 16:30:59 +0800 Subject: [PATCH 04/20] fix api version --- .../AAD/stable/2022-09-01/AzureADAdministrator.json | 2 +- .../stable/2022-09-01/examples/AzureADAdministratorCreate.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json index 45c2e9cd9974..9d0929c22cf5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "" + "version": "2022-09-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json index cd54a2e6c9d6..c9d0cb42ca52 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "", + "api-version": "2022-09-01", "parameters": { "properties": { "administratorType": "ActiveDirectory", From d799d6b30173d53950d2a370bab24ab534909417 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 14 Mar 2023 17:30:16 +0800 Subject: [PATCH 05/20] add privatelink --- .../PrivateEndpointConnections.json | 445 ++++++++++++++++++ .../2022-09-01/PrivateLinkResources.json | 235 +++++++++ .../examples/PrivateEndpointConnectList.json | 48 ++ .../PrivateEndpointConnectionDelete.json | 19 + .../PrivateEndpointConnectionGet.json | 29 ++ .../PrivateEndpointConnectionUpdate.json | 38 ++ .../PrivateEndpointConnectionUpdateTags.json | 35 ++ .../examples/PrivateLinkResourcesGet.json | 24 + .../examples/PrivateLinkResourcesList.json | 27 ++ .../mysql/resource-manager/readme.md | 2 + 10 files changed, 902 insertions(+) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json new file mode 100644 index 000000000000..d3e14a2f94c5 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json @@ -0,0 +1,445 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-01", + "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": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/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": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully approved or rejected private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "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": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted private endpoint connection." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionDelete.json" + } + } + }, + "patch": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_UpdateTags", + "summary": "Updates tags on private endpoint connection.", + "description": "Updates private endpoint connection with the specified tags.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsObject" + }, + "description": "Parameters supplied to the Update private endpoint connection Tags operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update private endpoint connection Tags": { + "$ref": "./examples/PrivateEndpointConnectionUpdateTags.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": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of private endpoint connections on a server.": { + "$ref": "./examples/PrivateEndpointConnectionList.json" + } + } + } + } + }, + "definitions": { + "PrivateEndpointConnectionProperties": { + "description": "Properties of a private endpoint connection.", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + }, + "provisioningState": { + "description": "State of the private endpoint connection.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointProperty": { + "type": "object", + "properties": { + "id": { + "description": "Resource id of the private endpoint.", + "type": "string" + } + }, + "x-ms-azure-resource": true + }, + "PrivateLinkServiceConnectionStateProperty": { + "required": [ + "status", + "description" + ], + "type": "object", + "properties": { + "status": { + "description": "The private link service connection status.", + "type": "string" + }, + "description": { + "description": "The private link service connection description.", + "type": "string" + }, + "actionsRequired": { + "description": "The actions required for private link service connection.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "PrivateEndpointConnectionListResult": { + "description": "A list of private endpoint connections.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + }, + "TagsObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + } + }, + "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", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json new file mode 100644 index 000000000000..e2ab0dfbb41f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json @@ -0,0 +1,235 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-01", + "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": "Gets the private link resources for MySQL server.", + "operationId": "PrivateLinkResources_ListByServer", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "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": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets a private link resource for MySQL.": { + "$ref": "./examples/PrivateLinkResourcesGet.json" + } + } + } + } + }, + "definitions": { + "PrivateLinkResourceListResult": { + "description": "A list of private link resources", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkResourceProperties": { + "description": "Properties of a private link resource.", + "type": "object", + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "PrivateLinkResource": { + "description": "A private link resource", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "The private link resource group id.", + "readOnly": true + } + } + }, + "CloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse", + "description": "The resource management error response." + } + }, + "description": "An error response from the Batch service." + } + }, + "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", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectList.json new file mode 100644 index 000000000000..9dda556bdbcd --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectList.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "api-version": "2022-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name-2", + "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name-2" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..47e10af3a842 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-09-01" + }, + "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-01", + "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-01" + } + }, + "204": {} + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..c0768a04ac17 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-09-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..f448910c59c7 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-09-01", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + }, + "202": {} + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json new file mode 100644 index 000000000000..aae2ecb8f50f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2022-09-01", + "parameters": { + "tags": { + "key1": "val1", + "key2": "val2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json new file mode 100644 index 000000000000..25d5c4e97486 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "groupName": "plr", + "api-version": "2022-09-01" + }, + "responses": { + "200": { + "body": { + "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": { + "groupId": "mysqlServer", + "requiredMembers": [ + "mysqlServer" + ] + } + } + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json new file mode 100644 index 000000000000..49aa592ddce2 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "Default", + "serverName": "test-svr", + "api-version": "2022-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "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": { + "groupId": "mysqlServer", + "requiredMembers": [ + "mysqlServer" + ] + } + } + ] + } + } + } + } \ No newline at end of file diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 411272d7ac9c..2c40477bc892 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -174,6 +174,8 @@ input-file: - Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json - Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json - Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json +- Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json +- Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json ``` ## Suppression From e9198acc25ef1152494772ab4856ef9cbaff14bf Mon Sep 17 00:00:00 2001 From: xiaoxu qi Date: Tue, 14 Mar 2023 18:03:06 +0800 Subject: [PATCH 06/20] fix private link validation --- .../PrivateEndpointConnections.json | 629 +++++++----------- .../2022-09-01/PrivateLinkResources.json | 321 +++------ .../stable/2022-09-01/common-types.json | 30 + .../examples/PrivateEndpointConnectList.json | 48 -- .../PrivateEndpointConnectionDelete.json | 34 +- .../PrivateEndpointConnectionGet.json | 48 +- .../PrivateEndpointConnectionList.json | 48 ++ .../PrivateEndpointConnectionUpdate.json | 58 +- .../PrivateEndpointConnectionUpdateTags.json | 56 +- .../examples/PrivateLinkResourcesGet.json | 40 +- .../examples/PrivateLinkResourcesList.json | 46 +- 11 files changed, 552 insertions(+), 806 deletions(-) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json index d3e14a2f94c5..44d0e25e6a53 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json @@ -1,445 +1,266 @@ { - "swagger": "2.0", - "info": { - "version": "2022-09-01", - "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" - } + "swagger": "2.0", + "info": { + "version": "2022-09-01", + "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": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "description": "The name of the private endpoint connection.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved a specified private endpoint connection.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } + } + }, + "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" }, - "x-ms-examples": { - "Gets private endpoint connection.": { - "$ref": "./examples/PrivateEndpointConnectionGet.json" - } + { + "$ref": "./common-types.json#/parameters/ServerNameParameter" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" } - }, - "put": { - "tags": [ - "PrivateEndpointConnections" - ], - "description": "Approve or reject a private endpoint connection with a given name.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully approved or rejected private endpoint connection.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" } }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Approve or reject a private endpoint connection with a given name.": { - "$ref": "./examples/PrivateEndpointConnectionUpdate.json" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" } } }, - "delete": { - "tags": [ - "PrivateEndpointConnections" - ], - "description": "Deletes a private endpoint connection with a given name.", - "operationId": "PrivateEndpointConnections_Delete", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully deleted private endpoint connection." - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "Private endpoint connection does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/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" }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Deletes a private endpoint connection with a given name.": { - "$ref": "./examples/PrivateEndpointConnectionDelete.json" + { + "$ref": "./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" } - }, - "patch": { - "tags": [ - "PrivateEndpointConnections" - ], - "operationId": "PrivateEndpointConnections_UpdateTags", - "summary": "Updates tags on private endpoint connection.", - "description": "Updates private endpoint connection with the specified tags.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "privateEndpointConnectionName", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TagsObject" - }, - "description": "Parameters supplied to the Update private endpoint connection Tags operation." + ], + "responses": { + "200": { + "description": "Successfully approved or rejected private endpoint connection.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" } }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update private endpoint connection Tags": { - "$ref": "./examples/PrivateEndpointConnectionUpdateTags.json" + "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" + } } }, - "/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": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved private endpoint connections.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "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.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" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "204": { + "description": "Private endpoint connection does not exist." }, - "x-ms-examples": { - "Gets list of private endpoint connections on a server.": { - "$ref": "./examples/PrivateEndpointConnectionList.json" + "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" + } } } }, - "definitions": { - "PrivateEndpointConnectionProperties": { - "description": "Properties of a private endpoint connection.", - "type": "object", - "properties": { - "privateEndpoint": { - "$ref": "#/definitions/PrivateEndpointProperty", - "description": "Private endpoint which the connection belongs to." - }, - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", - "description": "Connection state of the private endpoint connection." - }, - "provisioningState": { - "description": "State of the private endpoint connection.", - "type": "string", - "readOnly": true - } - } - }, - "PrivateEndpointProperty": { - "type": "object", - "properties": { - "id": { - "description": "Resource id of the private endpoint.", - "type": "string" - } - }, - "x-ms-azure-resource": true - }, - "PrivateLinkServiceConnectionStateProperty": { - "required": [ - "status", - "description" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" ], - "type": "object", - "properties": { - "status": { - "description": "The private link service connection status.", - "type": "string" + "description": "Gets all private endpoint connections on a server.", + "operationId": "PrivateEndpointConnections_ListByServer", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, - "description": { - "description": "The private link service connection description.", - "type": "string" + { + "$ref": "./common-types.json#/parameters/ServerNameParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" }, - "actionsRequired": { - "description": "The actions required for private link service connection.", - "type": "string", - "readOnly": true - } - } - }, - "PrivateEndpointConnection": { - "description": "A private endpoint connection", - "type": "object", - "allOf": [ { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" } ], - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - } - }, - "PrivateEndpointConnectionListResult": { - "description": "A list of private endpoint connections.", - "type": "object", - "properties": { - "value": { - "description": "Array of results.", - "type": "array", - "items": { - "$ref": "#/definitions/PrivateEndpointConnection" - }, - "readOnly": true + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ErrorResponse" + } } }, - "description": "An error response from the Batch service." - }, - "TagsObject": { - "type": "object", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags." + "x-ms-examples": { + "Gets list of private endpoint connections on a server.": { + "$ref": "./examples/PrivateEndpointConnectionList.json" } - }, - "description": "Tags object for patch operations." + } } - }, - "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", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" + } + }, + "definitions": { + "TagsObject": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } }, - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } + "description": "Tags object for patch operations." } - } \ No newline at end of file + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json index e2ab0dfbb41f..d3236cad6d6a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json @@ -1,235 +1,130 @@ { - "swagger": "2.0", - "info": { - "version": "2022-09-01", - "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" - } + "swagger": "2.0", + "info": { + "version": "2022-09-01", + "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": "Gets the private link resources for MySQL server.", - "operationId": "PrivateLinkResources_ListByServer", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved private link resources.", - "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } + } + }, + "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" }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + { + "$ref": "./common-types.json#/parameters/ServerNameParameter" }, - "x-ms-examples": { - "Gets private link resources for MySQL.": { - "$ref": "./examples/PrivateLinkResourcesList.json" - } + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ApiVersionParameter" } - } - }, - "/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": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "groupName", - "in": "path", - "description": "The name of the private link resource.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved private link resources.", - "schema": { - "$ref": "#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateLinkResourceListResult" } }, - "x-ms-examples": { - "Gets a private link resource for MySQL.": { - "$ref": "./examples/PrivateLinkResourcesGet.json" + "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" + } } } }, - "definitions": { - "PrivateLinkResourceListResult": { - "description": "A list of private link resources", - "type": "object", - "properties": { - "value": { - "description": "Array of results.", - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkResource" - }, - "readOnly": true + "/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" }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "PrivateLinkResourceProperties": { - "description": "Properties of a private link resource.", - "type": "object", - "properties": { - "groupId": { - "description": "The private link resource group id.", + { + "$ref": "./common-types.json#/parameters/ServerNameParameter" + }, + { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, "type": "string", - "readOnly": true + "pattern": "^[a-z0-9][-a-z0-9]*(? Date: Tue, 14 Mar 2023 18:22:52 +0800 Subject: [PATCH 07/20] fix private link --- .../PrivateEndpointConnections.json | 3 +- .../stable/2022-09-01/common-types.json | 2 +- .../PrivateEndpointConnectionUpdateTags.json | 35 ------------------- 3 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json index 44d0e25e6a53..1a7c1366a713 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json @@ -53,7 +53,8 @@ "in": "path", "description": "The name of the private endpoint connection.", "required": true, - "type": "string" + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" }, { "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json index adee47d43bab..b0b8dceec0cb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-09-30-preview", + "version": "2022-09-01", "title": "Common types" }, "paths": {}, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json deleted file mode 100644 index af1c4087d835..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdateTags.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "Default", - "serverName": "test-svr", - "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-01", - "parameters": { - "tags": { - "key1": "val1", - "key2": "val2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name", - "name": "private-endpoint-connection-name", - "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", - "properties": { - "provisioningState": "Ready", - "privateEndpoint": { - "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@contoso.com", - "actionsRequired": "None" - } - } - } - } - } -} From 21c336b1e64b98be714ab8587222e08933a46655 Mon Sep 17 00:00:00 2001 From: xiaoxu qi Date: Tue, 14 Mar 2023 18:25:49 +0800 Subject: [PATCH 08/20] fix private link model --- .../PrivateEndpointConnectionUpdate.json | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json index 9552b22ed04a..93fc8583d782 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "parameters": { "properties": { "privateLinkServiceConnectionState": { @@ -33,6 +33,23 @@ } } }, - "202": {} + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DBforMySQL/servers/test-svr/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.DBforMySQL/servers/privateEndpointConnections", + "properties": { + "provisioningState": "Ready", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + } } } From 0b06ce2473cdb5e09b2d2927e6c5537ae4e7cbbf Mon Sep 17 00:00:00 2001 From: xiaoxu qi Date: Tue, 14 Mar 2023 19:55:20 +0800 Subject: [PATCH 09/20] fix --- .../2022-09-01/examples/PrivateEndpointConnectionUpdate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json index 93fc8583d782..319ec5c2a3e6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/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": "2022-09-01", "parameters": { "properties": { "privateLinkServiceConnectionState": { From 0bc5ab6917631912ba085b0b1258da30eff849a5 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Wed, 15 Mar 2023 11:32:25 +0800 Subject: [PATCH 10/20] use 2022-09-30-preview as version --- .../AzureADAdministrator.json | 18 +----- .../examples/AzureADAdministratorCreate.json | 2 +- .../examples/AzureADAdministratorDelete.json | 10 ++-- .../examples/AzureADAdministratorGet.json | 2 +- .../AzureADAdministratorsListByServer.json | 2 +- .../2022-09-30-preview}/Backups.json | 2 +- .../examples/BackupGet.json | 2 +- .../examples/BackupPut.json | 2 +- .../examples/BackupsListByServer.json | 2 +- .../2022-09-30-preview}/Configurations.json | 18 +----- .../examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationUpdate.json | 6 +- .../examples/ConfigurationsBatchUpdate.json | 6 +- .../examples/ConfigurationsListByServer.json | 2 +- .../2022-09-30-preview}/Databases.json | 18 +----- .../examples/DatabaseCreate.json | 2 +- .../examples/DatabaseDelete.json | 6 +- .../examples/DatabaseGet.json | 2 +- .../examples/DatabasesListByServer.json | 2 +- .../2022-09-30-preview}/FirewallRules.json | 18 +----- .../examples/FirewallRuleCreate.json | 2 +- .../examples/FirewallRuleDelete.json | 6 +- .../examples/FirewallRuleGet.json | 2 +- .../examples/FirewallRulesListByServer.json | 2 +- .../2022-09-30-preview}/FlexibleServers.json | 58 +++---------------- .../examples/ReplicasListByServer.json | 2 +- .../examples/ServerCreate.json | 2 +- .../examples/ServerCreateReplica.json | 2 +- .../examples/ServerCreateWithBYOK.json | 2 +- .../ServerCreateWithPointInTimeRestore.json | 2 +- .../examples/ServerDelete.json | 6 +- .../examples/ServerFailover.json | 6 +- .../examples/ServerGet.json | 2 +- .../examples/ServerGetWithVnet.json | 2 +- .../examples/ServerRestart.json | 6 +- .../examples/ServerStart.json | 6 +- .../examples/ServerStop.json | 6 +- .../examples/ServerUpdate.json | 6 +- .../examples/ServerUpdateWithBYOK.json | 6 +- ...erUpdateWithCustomerMaintenanceWindow.json | 6 +- .../examples/ServersList.json | 2 +- .../examples/ServersListByResourceGroup.json | 2 +- .../2022-09-30-preview}/LogFiles.json | 2 +- .../examples/LogFilesListByServer.json | 2 +- .../PrivateEndpointConnections.json | 2 +- .../PrivateLinkResources.json | 2 +- .../2022-09-30-preview}/common-types.json | 2 +- .../PrivateEndpointConnectionDelete.json | 6 +- .../PrivateEndpointConnectionGet.json | 2 +- .../PrivateEndpointConnectionList.json | 2 +- .../PrivateEndpointConnectionUpdate.json | 2 +- .../examples/PrivateLinkResourcesGet.json | 2 +- .../examples/PrivateLinkResourcesList.json | 2 +- .../ServiceOperations.json | 2 +- .../examples/CapabilitiesByLocationList.json | 2 +- .../examples/CheckNameAvailability.json | 2 +- .../CheckVirtualNetworkSubnetUsage.json | 2 +- .../examples/GetPrivateDnsZoneSuffix.json | 2 +- .../examples/OperationsList.json | 2 +- .../mysql/resource-manager/readme.md | 30 +++++----- 60 files changed, 119 insertions(+), 209 deletions(-) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/{stable/2022-09-01 => preview/2022-09-30-preview}/AzureADAdministrator.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/AzureADAdministratorCreate.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/AzureADAdministratorDelete.json (80%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/AzureADAdministratorGet.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/AzureADAdministratorsListByServer.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/{stable/2022-09-01 => preview/2022-09-30-preview}/Backups.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/BackupGet.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/BackupPut.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/BackupsListByServer.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/{stable/2022-09-01 => preview/2022-09-30-preview}/Configurations.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ConfigurationGet.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ConfigurationUpdate.json (90%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ConfigurationsBatchUpdate.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ConfigurationsListByServer.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/{stable/2022-09-01 => preview/2022-09-30-preview}/Databases.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/DatabaseCreate.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/DatabaseDelete.json (80%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/DatabaseGet.json (93%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/DatabasesListByServer.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/{stable/2022-09-01 => preview/2022-09-30-preview}/FirewallRules.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/FirewallRuleCreate.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/FirewallRuleDelete.json (81%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/FirewallRuleGet.json (93%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/FirewallRulesListByServer.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/FlexibleServers.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ReplicasListByServer.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerCreate.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerCreateReplica.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerCreateWithBYOK.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerCreateWithPointInTimeRestore.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerDelete.json (80%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerFailover.json (79%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerGet.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerGetWithVnet.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerRestart.json (82%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerStart.json (79%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerStop.json (79%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerUpdate.json (93%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerUpdateWithBYOK.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServerUpdateWithCustomerMaintenanceWindow.json (93%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServersList.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/ServersListByResourceGroup.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/{stable/2022-09-01 => preview/2022-09-30-preview}/LogFiles.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/LogFilesListByServer.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/PrivateEndpointConnections.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/PrivateLinkResources.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/common-types.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/PrivateEndpointConnectionDelete.json (81%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/PrivateEndpointConnectionGet.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/PrivateEndpointConnectionList.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/PrivateEndpointConnectionUpdate.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/PrivateLinkResourcesGet.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/PrivateLinkResourcesList.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/{stable/2022-09-01 => preview/2022-09-30-preview}/ServiceOperations.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/CapabilitiesByLocationList.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/CheckNameAvailability.json (90%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/CheckVirtualNetworkSubnetUsage.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/GetPrivateDnsZoneSuffix.json (77%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/{stable/2022-09-01 => preview/2022-09-30-preview}/examples/OperationsList.json (99%) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json index 9d0929c22cf5..7fe0b295d833 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ @@ -86,13 +86,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -136,13 +130,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "204": { "description": "NoContent" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json index c9d0cb42ca52..ccad93560bbe 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "parameters": { "properties": { "administratorType": "ActiveDirectory", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json similarity index 80% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json index fc8078402b0c..32292a61b19c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json @@ -4,20 +4,20 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "" + "api-version": "2022-09-30-preview" }, "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=", - "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=" + "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=2021-12-01-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=2021-12-01-preview" } }, "204": { "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=", - "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=" + "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=2021-12-01-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=2021-12-01-preview" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json index 1a6dd2dc7312..2c030df0a72e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json index dffce5599c8b..ca3cf60aeadd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-09-01/examples/AzureADAdministratorsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", - "api-version": "" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json index 7262d082d701..78e64aa7a4b9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json index 927d28472cee..2e0a9fcd958b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json @@ -3,7 +3,7 @@ "backupName": "daily_20210615T160516", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json index f53f19c2279f..1e696264de16 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupPut.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json @@ -3,7 +3,7 @@ "backupName": "mybackup", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json index 451d39577b72..1f1bfe9d81d7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-09-01/examples/BackupsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json index 2cd12aa606fd..cc614ea25422 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ @@ -80,13 +80,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -184,13 +178,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json index e686c8fe86ac..2b6efcf8806a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "event_scheduler", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json similarity index 90% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json index 6ff9b2d42027..cb558b6f4322 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json @@ -3,7 +3,7 @@ "serverName": "testserver", "configurationName": "event_scheduler", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { @@ -33,8 +33,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-01", - "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-01" + "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=2021-12-01-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=2021-12-01-preview" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json index 2be3c37a0d23..06baa7f4c629 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsBatchUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "value": [ @@ -63,8 +63,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-01", - "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-01" + "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=2021-12-01-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=2021-12-01-preview" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json index e9f724332667..e340ba0a9de8 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-09-01/examples/ConfigurationsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "page": 1, "pageSize": 8 diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json index 0b0d4990c32c..190e4d59c412 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ @@ -86,13 +86,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -136,13 +130,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "204": { "description": "NoContent" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json index d17e40c852cc..8259f9b14358 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json similarity index 80% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json index 90fb22c541bd..f88eea9d2aeb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json @@ -3,15 +3,15 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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-01", - "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-01" + "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=2021-12-01-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=2021-12-01-preview" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json similarity index 93% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json index b5c299ede83e..2b1d8e2b56f9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabaseGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json index b2bc5db85c75..d424b19a9d6c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-09-01/examples/DatabasesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json index 7f292112a1f4..8f0c32e9ed0d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ @@ -86,13 +86,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -136,13 +130,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "204": { "description": "NoContent" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json index d6eda52f1e68..49ef499cc25a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json similarity index 81% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json index e3afbd406c18..037914bcf4d4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json @@ -3,15 +3,15 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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-01", - "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-01" + "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=2021-12-01-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=2021-12-01-preview" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json similarity index 93% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json index c3bf0c0427cb..aadfdcfae08e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRuleGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json index be10c674181b..12ef5cc757eb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-09-01/examples/FirewallRulesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json index 3afc2c37f25a..eea80b4aa088 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2021-12-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -92,13 +92,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -157,13 +151,7 @@ } }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -204,13 +192,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "204": { "description": "NoContent" @@ -380,13 +362,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -438,13 +414,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -487,13 +457,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", @@ -536,13 +500,7 @@ "description": "OK" }, "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "URI to poll for asynchronous operation result.", - "type": "string" - } - } + "description": "Accepted" }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json index 082422aaf63a..be19a77d227d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ReplicasListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json index 7f276df8efe9..fa2d619bf0d3 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "sku": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json index 3085fee26ad7..23b09143847a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateReplica.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "replica-server", "resourceGroupName": "testgr", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json index 3b4e1eed1484..9bdbea850d43 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "identity": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json index 2befa50525c3..fd62c66c4482 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerCreateWithPointInTimeRestore.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "targetserver", "resourceGroupName": "TargetResourceGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json similarity index 80% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json index 7105b1efe2f8..1e4b1589c220 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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-01", - "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-01" + "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" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json similarity index 79% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json index 8e70f6312b2e..7f94628c6f69 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerFailover.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json index 248a7cd186f9..16f3db02f8ee 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json index 7fa3c9b5eec5..237ec60248e4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerGetWithVnet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json similarity index 82% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json index ee4aea22ad24..fd4bda789925 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerRestart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "restartWithFailover": "Enabled", @@ -13,8 +13,8 @@ "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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json similarity index 79% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json index 8e70f6312b2e..7f94628c6f69 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json similarity index 79% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json index 8e70f6312b2e..7f94628c6f69 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerStop.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json similarity index 93% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json index bfb760ea7f3a..72b5fbecd3a7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { @@ -67,8 +67,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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json index 24e165724cf1..d0827064aced 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "identity": { @@ -74,8 +74,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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json similarity index 93% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json index d455ffe9acac..99a75899721f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { @@ -66,8 +66,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-01", - "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-01" + "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" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json index a5b95d2ac21a..e72ed5e7e5bb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json index c2ac9c825084..9823f7223e66 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/examples/ServersListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json index 53ad888a010a..e3e368916629 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json index aa9fb95721b9..21ebd0fa6133 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/examples/LogFilesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestsvc1", "resourceGroupName": "testrg", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json index 1a7c1366a713..fc4a20123785 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-09-01", + "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." }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json index d3236cad6d6a..5949577ca8dd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-09-01", + "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." }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json index b0b8dceec0cb..adee47d43bab 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/common-types.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-09-01", + "version": "2022-09-30-preview", "title": "Common types" }, "paths": {}, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json similarity index 81% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json index a61130b26439..00bf5dde4c46 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionDelete.json @@ -4,14 +4,14 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "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-01", - "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-01" + "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" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json index 4e8966ee16ff..4c46ae3fc46d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionList.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionList.json index 23c2bb924d3d..9bca3861c696 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionList.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "Default", "serverName": "test-svr", - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json index 319ec5c2a3e6..93fc8583d782 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateEndpointConnectionUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "parameters": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateLinkResourcesGet.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateLinkResourcesGet.json index 0067586bb9d5..8fef354c6ab3 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateLinkResourcesGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "Default", "serverName": "test-svr", "groupName": "plr", - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateLinkResourcesList.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateLinkResourcesList.json index 4e2dd9ee48b0..2adbb0c8c21a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/examples/PrivateLinkResourcesList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateLinkResourcesList.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "Default", "serverName": "test-svr", - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json index a2a32e09bb1d..0f931f435ea5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2022-09-01" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json index cc025fdfb212..428fc33e67eb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CapabilitiesByLocationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json similarity index 90% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json index 7a29b52aca7e..4b22b6074db7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckNameAvailability.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "SouthEastAsia", "nameAvailabilityRequest": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json index 19eaccc18691..174797ec8b28 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/CheckVirtualNetworkSubnetUsage.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01", + "api-version": "2022-09-30-preview", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS", "parameters": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json similarity index 77% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json index 502550225f44..dcc7a2cb9018 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/GetPrivateDnsZoneSuffix.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json index 8b390f0f85ad..2098009efd32 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/examples/OperationsList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-09-01" + "api-version": "2022-09-30-preview" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 2c40477bc892..0f03e4fca43e 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-2022-09-01 +tag: package-2022-09-30-preview ``` ``` yaml $(package-flexibleservers) -tag: package-2022-09-01 +tag: package-2022-09-30-preview ``` ``` yaml $(package-singleservers) @@ -160,22 +160,22 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` -### Tag: package-2022-09-01 +### Tag: package-2022-09-30 -These settings apply only when `--tag=package-2022-09-01` is specified on the command line. +These settings apply only when `--tag=package-2022-09-30` is specified on the command line. -``` yaml $(tag) == 'package-2022-09-01' +``` yaml $(tag) == 'package-2022-09-30' input-file: -- Microsoft.DBforMySQL/Backups/stable/2022-09-01/Backups.json -- Microsoft.DBforMySQL/Configurations/stable/2022-09-01/Configurations.json -- Microsoft.DBforMySQL/Databases/stable/2022-09-01/Databases.json -- Microsoft.DBforMySQL/Firewall/stable/2022-09-01/FirewallRules.json -- Microsoft.DBforMySQL/FlexibleServers/stable/2022-09-01/FlexibleServers.json -- Microsoft.DBforMySQL/LogFiles/stable/2022-09-01/LogFiles.json -- Microsoft.DBforMySQL/ServiceOperations/stable/2022-09-01/ServiceOperations.json -- Microsoft.DBforMySQL/AAD/stable/2022-09-01/AzureADAdministrator.json -- Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateEndpointConnections.json -- Microsoft.DBforMySQL/PrivateLink/stable/2022-09-01/PrivateLinkResources.json +- Microsoft.DBforMySQL/Backups/preview/package-2022-09-30/Backups.json +- Microsoft.DBforMySQL/Configurations/preview/package-2022-09-30/Configurations.json +- Microsoft.DBforMySQL/Databases/preview/package-2022-09-30/Databases.json +- Microsoft.DBforMySQL/Firewall/preview/package-2022-09-30/FirewallRules.json +- Microsoft.DBforMySQL/FlexibleServers/preview/package-2022-09-30/FlexibleServers.json +- Microsoft.DBforMySQL/LogFiles/preview/package-2022-09-30/LogFiles.json +- Microsoft.DBforMySQL/ServiceOperations/preview/package-2022-09-30/ServiceOperations.json +- Microsoft.DBforMySQL/AAD/preview/package-2022-09-30/AzureADAdministrator.json +- Microsoft.DBforMySQL/PrivateLink/preview/package-2022-09-30/PrivateEndpointConnections.json +- Microsoft.DBforMySQL/PrivateLink/preview/package-2022-09-30/PrivateLinkResources.json ``` ## Suppression From 395efa50b4fa667b31b06712d1da0308d530f30f Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Wed, 15 Mar 2023 11:57:09 +0800 Subject: [PATCH 11/20] fix readme --- .../2022-09-30-preview/FlexibleServers.json | 2 +- .../mysql/resource-manager/readme.md | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json index eea80b4aa088..e85ee5513495 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json @@ -3,7 +3,7 @@ "info": { "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.", - "version": "2021-12-01-preview" + "version": "2022-09-30-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 0f03e4fca43e..e2fea5f5e500 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -160,22 +160,22 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` -### Tag: package-2022-09-30 +### Tag: package-2022-09-30-preview -These settings apply only when `--tag=package-2022-09-30` is specified on the command line. +These settings apply only when `--tag=package-2022-09-30-preview` is specified on the command line. -``` yaml $(tag) == 'package-2022-09-30' +``` yaml $(tag) == 'package-2022-09-30-preview' input-file: -- Microsoft.DBforMySQL/Backups/preview/package-2022-09-30/Backups.json -- Microsoft.DBforMySQL/Configurations/preview/package-2022-09-30/Configurations.json -- Microsoft.DBforMySQL/Databases/preview/package-2022-09-30/Databases.json -- Microsoft.DBforMySQL/Firewall/preview/package-2022-09-30/FirewallRules.json -- Microsoft.DBforMySQL/FlexibleServers/preview/package-2022-09-30/FlexibleServers.json -- Microsoft.DBforMySQL/LogFiles/preview/package-2022-09-30/LogFiles.json -- Microsoft.DBforMySQL/ServiceOperations/preview/package-2022-09-30/ServiceOperations.json -- Microsoft.DBforMySQL/AAD/preview/package-2022-09-30/AzureADAdministrator.json -- Microsoft.DBforMySQL/PrivateLink/preview/package-2022-09-30/PrivateEndpointConnections.json -- Microsoft.DBforMySQL/PrivateLink/preview/package-2022-09-30/PrivateLinkResources.json +- Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json +- Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json +- Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json +- Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json +- Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json +- Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json +- Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json +- Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json +- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json +- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json ``` ## Suppression From fa8c58db18109c4f7c80d9a763f2369d611b687d Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Mon, 20 Mar 2023 14:19:49 +0800 Subject: [PATCH 12/20] add private link only --- .../AzureADAdministrator.json | 351 ----- .../examples/AzureADAdministratorCreate.json | 49 - .../examples/AzureADAdministratorDelete.json | 24 - .../examples/AzureADAdministratorGet.json | 25 - .../AzureADAdministratorsListByServer.json | 28 - .../preview/2022-09-30-preview/Backups.json | 261 ---- .../examples/BackupGet.json | 23 - .../examples/BackupPut.json | 23 - .../examples/BackupsListByServer.json | 126 -- .../2022-09-30-preview/Configurations.json | 495 ------- .../examples/ConfigurationGet.json | 29 - .../examples/ConfigurationUpdate.json | 41 - .../examples/ConfigurationsBatchUpdate.json | 71 - .../examples/ConfigurationsListByServer.json | 146 --- .../preview/2022-09-30-preview/Databases.json | 322 ----- .../examples/DatabaseCreate.json | 40 - .../examples/DatabaseDelete.json | 19 - .../examples/DatabaseGet.json | 22 - .../examples/DatabasesListByServer.json | 34 - .../2022-09-30-preview/FirewallRules.json | 331 ----- .../examples/FirewallRuleCreate.json | 40 - .../examples/FirewallRuleDelete.json | 19 - .../examples/FirewallRuleGet.json | 22 - .../examples/FirewallRulesListByServer.json | 34 - .../2022-09-30-preview/FlexibleServers.json | 1135 ---------------- .../examples/ReplicasListByServer.json | 98 -- .../examples/ServerCreate.json | 139 -- .../examples/ServerCreateReplica.json | 116 -- .../examples/ServerCreateWithBYOK.json | 152 --- .../ServerCreateWithPointInTimeRestore.json | 122 -- .../examples/ServerDelete.json | 18 - .../examples/ServerFailover.json | 17 - .../examples/ServerGet.json | 59 - .../examples/ServerGetWithVnet.json | 59 - .../examples/ServerRestart.json | 21 - .../examples/ServerStart.json | 17 - .../examples/ServerStop.json | 17 - .../examples/ServerUpdate.json | 75 -- .../examples/ServerUpdateWithBYOK.json | 82 -- ...erUpdateWithCustomerMaintenanceWindow.json | 74 -- .../examples/ServersList.json | 152 --- .../examples/ServersListByResourceGroup.json | 153 --- .../preview/2022-09-30-preview/LogFiles.json | 174 --- .../examples/LogFilesListByServer.json | 28 - .../2022-09-30-preview/ServiceOperations.json | 656 ---------- .../examples/CapabilitiesByLocationList.json | 1159 ----------------- .../examples/CheckNameAvailability.json | 20 - .../CheckVirtualNetworkSubnetUsage.json | 28 - .../examples/GetPrivateDnsZoneSuffix.json | 12 - .../examples/OperationsList.json | 190 --- 50 files changed, 7348 deletions(-) delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json deleted file mode 100644 index 7fe0b295d833..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/administrators/{administratorName}": { - "put": { - "tags": [ - "AzureADAdministrators" - ], - "operationId": "AzureADAdministrators_CreateOrUpdate", - "x-ms-examples": { - "Create an azure ad administrator": { - "$ref": "./examples/AzureADAdministratorCreate.json" - } - }, - "description": "Creates or updates an existing Azure Active Directory administrator.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/AdministratorNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AzureADAdministrator" - }, - "description": "The required parameters for creating or updating an aad administrator." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AzureADAdministrator" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AzureADAdministrator" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "AzureADAdministrators" - ], - "operationId": "AzureADAdministrators_Delete", - "x-ms-examples": { - "Delete an azure ad administrator": { - "$ref": "./examples/AzureADAdministratorDelete.json" - } - }, - "description": "Deletes an Azure AD Administrator.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/AdministratorNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - } - }, - "get": { - "tags": [ - "AzureADAdministrators" - ], - "operationId": "AzureADAdministrators_Get", - "x-ms-examples": { - "Get an azure ad administrator": { - "$ref": "./examples/AzureADAdministratorGet.json" - } - }, - "description": "Gets information about an azure ad administrator.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/AdministratorNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AzureADAdministrator" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators": { - "get": { - "tags": [ - "AzureADAdministrators" - ], - "operationId": "AzureADAdministrators_ListByServer", - "x-ms-examples": { - "List Azure AD administrators in a server": { - "$ref": "./examples/AzureADAdministratorsListByServer.json" - } - }, - "description": "List all the AAD administrators in a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AdministratorListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "AdministratorProperties": { - "type": "object", - "properties": { - "administratorType": { - "type": "string", - "description": "Type of the sever administrator.", - "enum": [ - "ActiveDirectory" - ], - "x-ms-enum": { - "name": "AdministratorType", - "modelAsString": true - } - }, - "login": { - "type": "string", - "description": "Login name of the server administrator." - }, - "sid": { - "type": "string", - "description": "SID (object ID) of the server administrator." - }, - "tenantId": { - "type": "string", - "description": "Tenant ID of the administrator." - }, - "identityResourceId": { - "type": "string", - "description": "The resource id of the identity used for AAD Authentication." - } - }, - "description": "The properties of an administrator." - }, - "AzureADAdministrator": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/AdministratorProperties", - "x-ms-client-flatten": true, - "description": "The properties of an administrator." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a Administrator." - }, - "AdministratorListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureADAdministrator" - }, - "description": "The list of azure ad administrator of a server" - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A List of azure ad administrators." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "AdministratorNameParameter": { - "name": "administratorName", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "ActiveDirectory" - ], - "x-ms-enum": { - "name": "AdministratorName", - "modelAsString": true - }, - "description": "The name of the Azure AD Administrator.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json deleted file mode 100644 index ccad93560bbe..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorCreate.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "testrg", - "serverName": "mysqltestsvc4", - "administratorName": "ActiveDirectory", - "api-version": "2022-09-30-preview", - "parameters": { - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", - "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", - "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", - "name": "ActiveDirectory", - "type": "Microsoft.DBforMySQL/flexibleServers/administrators", - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", - "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", - "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", - "name": "ActiveDirectory", - "type": "Microsoft.DBforMySQL/flexibleServers/administrators", - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", - "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", - "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" - } - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json deleted file mode 100644 index 32292a61b19c..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorDelete.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "testrg", - "serverName": "mysqltestsvc4", - "administratorName": "ActiveDirectory", - "api-version": "2022-09-30-preview" - }, - "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=2021-12-01-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=2021-12-01-preview" - } - }, - "204": { - "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=2021-12-01-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=2021-12-01-preview" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json deleted file mode 100644 index 2c030df0a72e..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorGet.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "testrg", - "serverName": "mysqltestsvc4", - "administratorName": "ActiveDirectory", - "api-version": "2022-09-30-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", - "name": "ActiveDirectory", - "type": "Microsoft.DBforMySQL/flexibleServers/administrators", - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", - "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", - "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" - } - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json deleted file mode 100644 index ca3cf60aeadd..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/examples/AzureADAdministratorsListByServer.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "resourceGroupName": "testrg", - "serverName": "mysqltestsvc4", - "api-version": "2022-09-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc4/administrators/ActiveDirectory", - "name": "ActiveDirectory", - "type": "Microsoft.DBforMySQL/flexibleServers/administrators", - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c", - "tenantId": "c12b7025-bfe2-46c1-b463-993b5e4cd467", - "identityResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/test-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi" - } - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json deleted file mode 100644 index 78e64aa7a4b9..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json +++ /dev/null @@ -1,261 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/backups/{backupName}": { - "put": { - "tags": [ - "Backups" - ], - "operationId": "Backups_Put", - "x-ms-examples": { - "Create backup for a server": { - "$ref": "./examples/BackupPut.json" - } - }, - "description": "Create backup for a given server with specified backup name.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/BackupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerBackup" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - }, - "get": { - "tags": [ - "Backups" - ], - "operationId": "Backups_Get", - "x-ms-examples": { - "Get a backup for a server": { - "$ref": "./examples/BackupGet.json" - } - }, - "description": "List all the backups for a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/BackupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerBackup" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups": { - "get": { - "tags": [ - "Backups" - ], - "operationId": "Backups_ListByServer", - "x-ms-examples": { - "List backups for a server": { - "$ref": "./examples/BackupsListByServer.json" - } - }, - "description": "List all the backups for a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerBackupListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ServerBackupProperties": { - "type": "object", - "properties": { - "backupType": { - "type": "string", - "description": "Backup type." - }, - "completedTime": { - "type": "string", - "format": "date-time", - "description": "Backup completed time (ISO8601 format)." - }, - "source": { - "type": "string", - "description": "Backup source" - } - }, - "description": "The properties of a server backup." - }, - "ServerBackup": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ServerBackupProperties", - "x-ms-client-flatten": true, - "description": "The properties of a server backup." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Server backup properties" - }, - "ServerBackupListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerBackup" - }, - "description": "The list of backups of a server." - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A list of server backups." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "BackupNameParameter": { - "name": "backupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the backup.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json deleted file mode 100644 index 2e0a9fcd958b..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupGet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "backupName": "daily_20210615T160516", - "serverName": "mysqltestserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-15T16:05:19.902522+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210615T160516", - "name": "daily_20210615T160516", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json deleted file mode 100644 index 1e696264de16..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupPut.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "backupName": "mybackup", - "serverName": "mysqltestserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2022-05-07T07:38:01.1498043+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/customer_20220507t073755_bb392c3b-17c6-4d3f-9742-8479ca87b3ac_mybackup", - "name": "customer_20220507t073755_bb392c3b-17c6-4d3f-9742-8479ca87b3ac_mybackup", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json deleted file mode 100644 index 1f1bfe9d81d7..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/examples/BackupsListByServer.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-15T16:05:19.902522+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210615T160516", - "name": "daily_20210615T160516", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-16T16:05:23.9243453+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210616T160520", - "name": "daily_20210616T160520", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-17T16:05:28.1247488+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210617T160525", - "name": "daily_20210617T160525", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-18T16:05:32.2736701+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210618T160529", - "name": "daily_20210618T160529", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-19T16:05:36.8603354+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210619T160533", - "name": "daily_20210619T160533", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-20T16:05:41.9200138+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210620T160538", - "name": "daily_20210620T160538", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-21T16:05:48.8528447+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210621T160543", - "name": "daily_20210621T160543", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-22T16:08:06.3121688+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210622T160803", - "name": "daily_20210622T160803", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-22T21:08:10.5057354+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210622T210807", - "name": "daily_20210622T210807", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-23T21:24:16.9401531+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210623T212413", - "name": "daily_20210623T212413", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - }, - { - "properties": { - "backupType": "FULL", - "source": "Automatic", - "completedTime": "2021-06-24T06:13:31.4962137+00:00" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/daily_20210624T061328", - "name": "daily_20210624T061328", - "type": "Microsoft.DBforMySQL/flexibleServers/backups" - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json deleted file mode 100644 index cc614ea25422..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/configurations/{configurationName}": { - "patch": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Update", - "x-ms-examples": { - "Update a user configuration": { - "$ref": "./examples/ConfigurationUpdate.json" - } - }, - "description": "Updates a configuration of a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Configuration" - }, - "description": "The required parameters for updating a server configuration." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_Get", - "x-ms-examples": { - "Get a configuration": { - "$ref": "./examples/ConfigurationGet.json" - } - }, - "description": "Gets information about a configuration of server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Configuration" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/updateConfigurations": { - "post": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_BatchUpdate", - "x-ms-examples": { - "ConfigurationList": { - "$ref": "./examples/ConfigurationsBatchUpdate.json" - } - }, - "description": "Update a list of configurations in a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ConfigurationListForBatchUpdate" - }, - "description": "The parameters for updating a list of server configuration." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConfigurationListResult" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations": { - "get": { - "tags": [ - "Configurations" - ], - "operationId": "Configurations_ListByServer", - "x-ms-examples": { - "List all configurations for a server": { - "$ref": "./examples/ConfigurationsListByServer.json" - } - }, - "description": "List all the configurations in a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/ConfigurationTagsParameter" - }, - { - "$ref": "#/parameters/ConfigurationKeywordParameter" - }, - { - "$ref": "#/parameters/ConfigurationPageParameter" - }, - { - "$ref": "#/parameters/ConfigurationPageSizeParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConfigurationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ConfigurationProperties": { - "type": "object", - "properties": { - "value": { - "type": "string", - "description": "Value of the configuration." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "Description of the configuration." - }, - "defaultValue": { - "type": "string", - "readOnly": true, - "description": "Default value of the configuration." - }, - "dataType": { - "type": "string", - "readOnly": true, - "description": "Data type of the configuration." - }, - "allowedValues": { - "type": "string", - "readOnly": true, - "description": "Allowed values of the configuration." - }, - "source": { - "type": "string", - "description": "Source of the configuration.", - "enum": [ - "system-default", - "user-override" - ], - "x-ms-enum": { - "name": "ConfigurationSource", - "modelAsString": true - } - }, - "isReadOnly": { - "type": "string", - "readOnly": true, - "description": "If is the configuration read only.", - "enum": [ - "True", - "False" - ], - "x-ms-enum": { - "name": "IsReadOnly", - "modelAsString": true - } - }, - "isConfigPendingRestart": { - "type": "string", - "readOnly": true, - "description": "If is the configuration pending restart or not.", - "enum": [ - "True", - "False" - ], - "x-ms-enum": { - "name": "IsConfigPendingRestart", - "modelAsString": true - } - }, - "isDynamicConfig": { - "type": "string", - "readOnly": true, - "description": "If is the configuration dynamic.", - "enum": [ - "True", - "False" - ], - "x-ms-enum": { - "name": "IsDynamicConfig", - "modelAsString": true - } - } - }, - "description": "The properties of a configuration." - }, - "Configuration": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/ConfigurationProperties", - "x-ms-client-flatten": true, - "description": "The properties of a configuration." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a Configuration." - }, - "ConfigurationListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Configuration" - }, - "description": "The list of server configurations." - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A list of server configurations." - }, - "ConfigurationForBatchUpdate": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of the configuration." - }, - "properties": { - "type": "object", - "properties": { - "value": { - "type": "string", - "description": "Value of the configuration." - }, - "source": { - "type": "string", - "description": "Source of the configuration." - } - }, - "x-ms-client-flatten": true, - "description": "The properties can be updated for a configuration." - } - }, - "description": "Represents a Configuration." - }, - "ConfigurationListForBatchUpdate": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ConfigurationForBatchUpdate" - }, - "x-ms-identifiers": [], - "description": "The list of server configurations." - }, - "resetAllToDefault": { - "type": "string", - "description": "Whether to reset all server parameters to default.", - "enum": [ - "True", - "False" - ], - "x-ms-enum": { - "name": "ResetAllToDefault", - "modelAsString": true - } - } - }, - "description": "A list of server configurations to update." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "ConfigurationNameParameter": { - "name": "configurationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server configuration.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "ConfigurationTagsParameter": { - "name": "tags", - "in": "query", - "required": false, - "type": "string", - "description": "The tags of the server configuration.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "ConfigurationKeywordParameter": { - "name": "keyword", - "in": "query", - "required": false, - "type": "string", - "description": "The keyword of the server configuration.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "ConfigurationPageParameter": { - "name": "page", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "description": "The page of the server configuration.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "ConfigurationPageSizeParameter": { - "name": "pageSize", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "description": "The pageSize of the server configuration.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json deleted file mode 100644 index 2b6efcf8806a..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationGet.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "configurationName": "event_scheduler", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "properties": { - "value": "OFF", - "description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/configurations/event_scheduler", - "name": "event_scheduler", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json deleted file mode 100644 index cb558b6f4322..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationUpdate.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "configurationName": "event_scheduler", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties": { - "value": "on", - "source": "user-override" - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "value": "ON", - "description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/configurations/event_scheduler", - "name": "event_scheduler", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - } - }, - "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=2021-12-01-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=2021-12-01-preview" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json deleted file mode 100644 index 06baa7f4c629..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsBatchUpdate.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "value": [ - { - "name": "event_scheduler", - "properties": { - "value": "OFF" - } - }, - { - "name": "div_precision_increment", - "properties": { - "value": "8" - } - } - ], - "resetAllToDefault": "False" - } - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "value": "ON", - "description": "Indicates the status of the Event Scheduler. It is always OFF for a replica server to keep the replication consistency.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/event_scheduler", - "name": "event_scheduler", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "8", - "description": "Number of digits by which to increase the scale of the result of division operations.", - "defaultValue": "4", - "dataType": "Integer", - "allowedValues": "0-30", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/div_precision_increment", - "name": "div_precision_increment", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - } - ] - } - }, - "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=2021-12-01-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=2021-12-01-preview" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json deleted file mode 100644 index e340ba0a9de8..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/examples/ConfigurationsListByServer.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "page": 1, - "pageSize": 8 - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "value": "OFF", - "description": "Tell the server to enable or disable archive engine.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False", - "isReadOnly": "True" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/archive", - "name": "archive", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "OFF", - "description": "Allow to audit the log.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_enabled", - "name": "audit_log_enabled", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "CONNECTION", - "description": "Select the events to audit logs.", - "defaultValue": "CONNECTION", - "dataType": "Set", - "allowedValues": "DDL,DML_SELECT,DML_NONSELECT,DCL,ADMIN,DML,GENERAL,CONNECTION,TABLE_ACCESS", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_events", - "name": "audit_log_events", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "azure_superuser", - "description": "The comma-separated user list whose commands will not be in the audit logs.", - "defaultValue": "azure_superuser", - "dataType": "String", - "allowedValues": "", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_exclude_users", - "name": "audit_log_exclude_users", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "", - "description": "The comma-separated user list whose commands will be in the audit logs. It takes higher priority if the same user name is found in audit_log_exclude_users.", - "defaultValue": "", - "dataType": "String", - "allowedValues": "", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_log_include_users", - "name": "audit_log_include_users", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "ON", - "description": "Allow to audit the slow log.", - "defaultValue": "ON", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "True" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/audit_slow_log_enabled", - "name": "audit_slow_log_enabled", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "OFF", - "description": "Controls whether the server autogenerates SSL key and certificate files in the data directory, if they do not already exist.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "ON,OFF", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False", - "isReadOnly": "True" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/auto_generate_certs", - "name": "auto_generate_certs", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - }, - { - "properties": { - "value": "1", - "description": "The auto_increment_increment is intended for use with source-to-source replication, and can be used to control the operation of AUTO_INCREMENT columns.", - "defaultValue": "1", - "dataType": "Integer", - "allowedValues": "1-65535", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True", - "isReadOnly": "False" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/configurations/auto_increment_increment", - "name": "auto_increment_increment", - "type": "Microsoft.DBforMySQL/flexibleServers/configurations" - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json deleted file mode 100644 index 190e4d59c412..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/databases/{databaseName}": { - "put": { - "tags": [ - "Databases" - ], - "operationId": "Databases_CreateOrUpdate", - "x-ms-examples": { - "Create a database": { - "$ref": "./examples/DatabaseCreate.json" - } - }, - "description": "Creates a new database or updates an existing database.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Database" - }, - "description": "The required parameters for creating or updating a database." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Databases" - ], - "operationId": "Databases_Delete", - "x-ms-examples": { - "Delete a database": { - "$ref": "./examples/DatabaseDelete.json" - } - }, - "description": "Deletes a database.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_Get", - "x-ms-examples": { - "Get a database": { - "$ref": "./examples/DatabaseGet.json" - } - }, - "description": "Gets information about a database.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/databases": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_ListByServer", - "x-ms-examples": { - "List databases in a server": { - "$ref": "./examples/DatabasesListByServer.json" - } - }, - "description": "List all the databases in a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "DatabaseProperties": { - "type": "object", - "properties": { - "charset": { - "type": "string", - "description": "The charset of the database." - }, - "collation": { - "type": "string", - "description": "The collation of the database." - } - }, - "description": "The properties of a database." - }, - "Database": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "x-ms-client-flatten": true, - "description": "The properties of a database." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a Database." - }, - "DatabaseListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases housed in a server" - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A List of databases." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "DatabaseNameParameter": { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json deleted file mode 100644 index 8259f9b14358..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseCreate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/flexibleServers/databases", - "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" - } - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/flexibleServers/databases", - "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" - } - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json deleted file mode 100644 index f88eea9d2aeb..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseDelete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "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=2021-12-01-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=2021-12-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json deleted file mode 100644 index 2b1d8e2b56f9..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabaseGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "databaseName": "db1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/flexibleServers/databases", - "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" - } - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json deleted file mode 100644 index d424b19a9d6c..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/examples/DatabasesListByServer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db1", - "name": "db1", - "type": "Microsoft.DBforMySQL/flexibleServers/databases", - "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/databases/db2", - "name": "db2", - "type": "Microsoft.DBforMySQL/flexibleServers/databases", - "properties": { - "charset": "utf8", - "collation": "utf8_general_ci" - } - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json deleted file mode 100644 index 8f0c32e9ed0d..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json +++ /dev/null @@ -1,331 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/firewallRules/{firewallRuleName}": { - "put": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_CreateOrUpdate", - "x-ms-examples": { - "Create a firewall rule": { - "$ref": "./examples/FirewallRuleCreate.json" - } - }, - "description": "Creates a new firewall rule or updates an existing firewall rule.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/FirewallRule" - }, - "description": "The required parameters for creating or updating a firewall rule." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Delete", - "x-ms-examples": { - "Delete a firewall rule": { - "$ref": "./examples/FirewallRuleDelete.json" - } - }, - "description": "Deletes a firewall rule.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_Get", - "x-ms-examples": { - "Get a firewall rule": { - "$ref": "./examples/FirewallRuleGet.json" - } - }, - "description": "Gets information about a server firewall rule.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/FirewallRuleNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRule" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/firewallRules": { - "get": { - "tags": [ - "FirewallRules" - ], - "operationId": "FirewallRules_ListByServer", - "x-ms-examples": { - "List all firewall rules in a server": { - "$ref": "./examples/FirewallRulesListByServer.json" - } - }, - "description": "List all the firewall rules in a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/FirewallRuleListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "FirewallRuleProperties": { - "type": "object", - "properties": { - "startIpAddress": { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", - "description": "The start IP address of the server firewall rule. Must be IPv4 format." - }, - "endIpAddress": { - "type": "string", - "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", - "description": "The end IP address of the server firewall rule. Must be IPv4 format." - } - }, - "required": [ - "startIpAddress", - "endIpAddress" - ], - "description": "The properties of a server firewall rule." - }, - "FirewallRule": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/FirewallRuleProperties", - "x-ms-client-flatten": true, - "description": "The properties of a firewall rule." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "required": [ - "properties" - ], - "description": "Represents a server firewall rule." - }, - "FirewallRuleListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/FirewallRule" - }, - "description": "The list of firewall rules in a server." - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A list of firewall rules." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "FirewallRuleNameParameter": { - "name": "firewallRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server firewall rule.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json deleted file mode 100644 index 49ef499cc25a..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleCreate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json deleted file mode 100644 index 037914bcf4d4..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleDelete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "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=2021-12-01-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=2021-12-01-preview" - } - }, - "204": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json deleted file mode 100644 index aadfdcfae08e..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRuleGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "firewallRuleName": "rule1", - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json deleted file mode 100644 index 12ef5cc757eb..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/examples/FirewallRulesListByServer.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - } - }, - { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/testserver/firewallRules/rule2", - "name": "rule2", - "type": "Microsoft.DBforMySQL/flexibleServers/firewallRules", - "properties": { - "startIpAddress": "1.0.0.0", - "endIpAddress": "255.0.0.0" - } - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json deleted file mode 100644 index e85ee5513495..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json +++ /dev/null @@ -1,1135 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}": { - "put": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Create", - "x-ms-examples": { - "Create a new server": { - "$ref": "./examples/ServerCreate.json" - }, - "Create a server as a point in time restore": { - "$ref": "./examples/ServerCreateWithPointInTimeRestore.json" - }, - "Create a replica server": { - "$ref": "./examples/ServerCreateReplica.json" - }, - "Create a server with byok": { - "$ref": "./examples/ServerCreateWithBYOK.json" - } - }, - "description": "Creates a new server or updates an existing server. The update action will overwrite the existing server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Server" - }, - "description": "The required parameters for creating or updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Update", - "x-ms-examples": { - "Update a server": { - "$ref": "./examples/ServerUpdate.json" - }, - "Update server customer maintenance window": { - "$ref": "./examples/ServerUpdateWithCustomerMaintenanceWindow.json" - }, - "Update server with byok": { - "$ref": "./examples/ServerUpdateWithBYOK.json" - } - }, - "description": "Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServerForUpdate" - }, - "description": "The required parameters for updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Delete", - "x-ms-examples": { - "Delete a server": { - "$ref": "./examples/ServerDelete.json" - } - }, - "description": "Deletes a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_Get", - "x-ms-examples": { - "Get a server": { - "$ref": "./examples/ServerGet.json" - }, - "Get a server with vnet": { - "$ref": "./examples/ServerGetWithVnet.json" - } - }, - "description": "Gets information about a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Server" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_ListByResourceGroup", - "x-ms-examples": { - "List servers in a resource group": { - "$ref": "./examples/ServersListByResourceGroup.json" - } - }, - "description": "List all the servers in a given resource group.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/flexibleServers": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Servers_List", - "x-ms-examples": { - "List servers in a subscription": { - "$ref": "./examples/ServersList.json" - } - }, - "description": "List all the servers in a given subscription.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/failover": { - "post": { - "tags": [ - "ServerFailover" - ], - "operationId": "Servers_Failover", - "x-ms-examples": { - "Restart a server": { - "$ref": "./examples/ServerFailover.json" - } - }, - "description": "Manual failover a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/restart": { - "post": { - "tags": [ - "ServerRestart" - ], - "operationId": "Servers_Restart", - "x-ms-examples": { - "Restart a server": { - "$ref": "./examples/ServerRestart.json" - } - }, - "description": "Restarts a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ServerRestartParameter" - }, - "description": "The required parameters for restarting a server." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/start": { - "post": { - "tags": [ - "ServerStart" - ], - "operationId": "Servers_Start", - "x-ms-examples": { - "Start a server": { - "$ref": "./examples/ServerStart.json" - } - }, - "description": "Starts a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/stop": { - "post": { - "tags": [ - "ServerStop" - ], - "operationId": "Servers_Stop", - "x-ms-examples": { - "Stop a server": { - "$ref": "./examples/ServerStop.json" - } - }, - "description": "Stops a server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/replicas": { - "get": { - "tags": [ - "Servers" - ], - "operationId": "Replicas_ListByServer", - "x-ms-examples": { - "List replicas for a server": { - "$ref": "./examples/ReplicasListByServer.json" - } - }, - "description": "List all the replicas for a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ServerVersion": { - "type": "string", - "description": "The version of a server.", - "enum": [ - "5.7", - "8.0.21" - ], - "x-ms-enum": { - "name": "ServerVersion", - "modelAsString": true - } - }, - "EnableStatusEnum": { - "type": "string", - "description": "Enum to indicate whether value is 'Enabled' or 'Disabled'", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnableStatusEnum", - "modelAsString": true - } - }, - "ReplicationRole": { - "type": "string", - "enum": [ - "None", - "Source", - "Replica" - ], - "x-ms-enum": { - "name": "ReplicationRole", - "modelAsString": true - }, - "description": "The replication role." - }, - "DataEncryption": { - "type": "object", - "description": "The date encryption for cmk.", - "properties": { - "primaryUserAssignedIdentityId": { - "type": "string", - "description": "Primary user identity resource id" - }, - "primaryKeyURI": { - "type": "string", - "description": "Primary key uri" - }, - "geoBackupUserAssignedIdentityId": { - "type": "string", - "description": "Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup" - }, - "geoBackupKeyURI": { - "type": "string", - "description": "Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup" - }, - "type": { - "type": "string", - "description": "The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.", - "enum": [ - "AzureKeyVault", - "SystemManaged" - ], - "x-ms-enum": { - "name": "DataEncryptionType", - "modelAsString": false - } - } - } - }, - "MaintenanceWindow": { - "type": "object", - "description": "Maintenance window of a server.", - "properties": { - "customWindow": { - "type": "string", - "description": "indicates whether custom window is enabled or disabled" - }, - "startHour": { - "type": "integer", - "format": "int32", - "description": "start hour for maintenance window" - }, - "startMinute": { - "type": "integer", - "format": "int32", - "description": "start minute for maintenance window" - }, - "dayOfWeek": { - "type": "integer", - "format": "int32", - "description": "day of week for maintenance window" - } - } - }, - "Backup": { - "type": "object", - "properties": { - "backupRetentionDays": { - "type": "integer", - "format": "int32", - "description": "Backup retention days for the server." - }, - "geoRedundantBackup": { - "$ref": "#/definitions/EnableStatusEnum", - "description": "Whether or not geo redundant backup is enabled." - }, - "earliestRestoreDate": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Earliest restore point creation time (ISO8601 format)" - } - }, - "description": "Storage Profile properties of a server" - }, - "Storage": { - "type": "object", - "properties": { - "storageSizeGB": { - "type": "integer", - "format": "int32", - "description": "Max storage size allowed for a server." - }, - "iops": { - "type": "integer", - "format": "int32", - "description": "Storage IOPS for a server." - }, - "autoGrow": { - "description": "Enable Storage Auto Grow or not.", - "$ref": "#/definitions/EnableStatusEnum" - }, - "storageSku": { - "type": "string", - "readOnly": true, - "description": "The sku name of the server storage." - }, - "autoIoScaling": { - "description": "Enable IO Auto Scaling or not.", - "$ref": "#/definitions/EnableStatusEnum" - } - }, - "description": "Storage Profile properties of a server" - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, e.g. Standard_D32s_v3." - }, - "tier": { - "type": "string", - "description": "The tier of the particular SKU, e.g. GeneralPurpose.", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ], - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - } - }, - "required": [ - "name", - "tier" - ], - "description": "Billing information related properties of a server." - }, - "Network": { - "type": "object", - "properties": { - "publicNetworkAccess": { - "$ref": "#/definitions/EnableStatusEnum", - "readOnly": true, - "description": "Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration." - }, - "delegatedSubnetResourceId": { - "type": "string", - "description": "Delegated subnet resource id used to setup vnet for a server." - }, - "privateDnsZoneResourceId": { - "type": "string", - "description": "Private DNS zone resource id." - } - }, - "description": "Network related properties of a server" - }, - "HighAvailability": { - "type": "object", - "properties": { - "mode": { - "type": "string", - "enum": [ - "Disabled", - "ZoneRedundant", - "SameZone" - ], - "x-ms-enum": { - "name": "HighAvailabilityMode", - "modelAsString": true - }, - "description": "High availability mode for a server." - }, - "state": { - "type": "string", - "readOnly": true, - "description": "The state of server high availability.", - "enum": [ - "NotEnabled", - "CreatingStandby", - "Healthy", - "FailingOver", - "RemovingStandby" - ], - "x-ms-enum": { - "name": "HighAvailabilityState", - "modelAsString": true - } - }, - "standbyAvailabilityZone": { - "type": "string", - "description": "Availability zone of the standby server." - } - }, - "description": "Network related properties of a server" - }, - "ServerProperties": { - "type": "object", - "properties": { - "administratorLogin": { - "type": "string", - "description": "The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "administratorLoginPassword": { - "type": "string", - "x-ms-secret": true, - "format": "password", - "description": "The password of the administrator login (required for server creation).", - "x-ms-mutability": [ - "create", - "update" - ] - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "Server version." - }, - "availabilityZone": { - "type": "string", - "description": "availability Zone information of the server.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "createMode": { - "type": "string", - "description": "The mode to create a new MySQL server.", - "enum": [ - "Default", - "PointInTimeRestore", - "Replica", - "GeoRestore" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - }, - "x-ms-mutability": [ - "create" - ] - }, - "sourceServerResourceId": { - "type": "string", - "description": "The source MySQL server id.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from.", - "x-ms-mutability": [ - "create" - ] - }, - "replicationRole": { - "$ref": "#/definitions/ReplicationRole", - "description": "The replication role." - }, - "replicaCapacity": { - "type": "integer", - "format": "int32", - "minimum": 0, - "readOnly": true, - "description": "The maximum number of replicas that a primary server can have." - }, - "dataEncryption": { - "$ref": "#/definitions/DataEncryption", - "description": "The Data Encryption for CMK." - }, - "state": { - "type": "string", - "readOnly": true, - "description": "The state of a server.", - "enum": [ - "Ready", - "Dropping", - "Disabled", - "Starting", - "Stopping", - "Stopped", - "Updating" - ], - "x-ms-enum": { - "name": "ServerState", - "modelAsString": true - } - }, - "fullyQualifiedDomainName": { - "type": "string", - "description": "The fully qualified domain name of a server.", - "readOnly": true - }, - "storage": { - "$ref": "#/definitions/Storage", - "description": "Storage related properties of a server." - }, - "backup": { - "$ref": "#/definitions/Backup", - "description": "Backup related properties of a server." - }, - "highAvailability": { - "$ref": "#/definitions/HighAvailability", - "description": "High availability related properties of a server." - }, - "network": { - "$ref": "#/definitions/Network", - "description": "Network related properties of a server.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a server.", - "x-ms-mutability": [ - "update", - "read" - ] - } - }, - "description": "The properties of a server." - }, - "Server": { - "type": "object", - "properties": { - "identity": { - "$ref": "#/definitions/Identity", - "description": "The cmk identity for the server." - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerProperties", - "x-ms-client-flatten": true, - "description": "Properties of the server." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "Represents a server." - }, - "ServerPropertiesForUpdate": { - "type": "object", - "properties": { - "administratorLoginPassword": { - "type": "string", - "x-ms-secret": true, - "format": "password", - "description": "The password of the administrator login." - }, - "version": { - "$ref": "#/definitions/ServerVersion", - "description": "Server version." - }, - "storage": { - "$ref": "#/definitions/Storage", - "description": "Storage related properties of a server." - }, - "backup": { - "$ref": "#/definitions/Backup", - "description": "Backup related properties of a server." - }, - "highAvailability": { - "$ref": "#/definitions/HighAvailability", - "description": "High availability related properties of a server." - }, - "maintenanceWindow": { - "$ref": "#/definitions/MaintenanceWindow", - "description": "Maintenance window of a server." - }, - "replicationRole": { - "$ref": "#/definitions/ReplicationRole", - "description": "The replication role of the server." - }, - "dataEncryption": { - "$ref": "#/definitions/DataEncryption", - "description": "The Data Encryption for CMK." - } - }, - "description": "The properties that can be updated for a server." - }, - "ServerForUpdate": { - "type": "object", - "properties": { - "identity": { - "$ref": "#/definitions/Identity", - "description": "The cmk identity for the server." - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The SKU (pricing tier) of the server." - }, - "properties": { - "$ref": "#/definitions/ServerPropertiesForUpdate", - "x-ms-client-flatten": true, - "description": "The properties that can be updated for a server." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Application-specific metadata in the form of key-value pairs." - } - }, - "description": "Parameters allowed to update for a server." - }, - "ServerListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Server" - }, - "description": "The list of servers" - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A list of servers." - }, - "ServerRestartParameter": { - "type": "object", - "properties": { - "restartWithFailover": { - "$ref": "#/definitions/EnableStatusEnum", - "description": "Whether or not failover to standby server when restarting a server with high availability enabled." - }, - "maxFailoverSeconds": { - "type": "integer", - "format": "int32", - "description": "The maximum allowed failover time in seconds." - } - }, - "description": "Server restart parameters." - }, - "Identity": { - "x-ms-client-flatten": true, - "type": "object", - "properties": { - "principalId": { - "type": "string", - "description": "ObjectId from the KeyVault", - "readOnly": true - }, - "tenantId": { - "type": "string", - "description": "TenantId from the KeyVault", - "readOnly": true - }, - "type": { - "type": "string", - "description": "Type of managed service identity.", - "enum": [ - "UserAssigned" - ], - "x-ms-enum": { - "name": "ManagedServiceIdentityType", - "modelAsString": true - } - }, - "userAssignedIdentities": { - "type": "object", - "additionalProperties": { - "type": "object", - "description": "", - "items": { - "$ref": "#/definitions/UserAssignedIdentity" - } - }, - "description": "Metadata of user assigned identity." - } - }, - "description": "Properties to configure Identity for Bring your Own Keys" - }, - "UserAssignedIdentity": { - "type": "object", - "properties": { - "principalId": { - "description": "Principal Id of user assigned identity", - "type": "string", - "x-ms-client-name": "PrincipalId", - "readOnly": true - }, - "clientId": { - "description": "Client Id of user assigned identity", - "type": "string", - "x-ms-client-name": "ClientId", - "readOnly": true - } - }, - "description": "Metadata of user assigned identity." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json deleted file mode 100644 index be19a77d227d..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ReplicasListByServer.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 20, - "iops": 360, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver-repl.orcabrci-seas1-a.mscds.com", - "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "availabilityZone": "1", - "replicationRole": "Replica", - "replicaCapacity": 0, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T08:19:18.00+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver-repl", - "name": "mysqltestserver-repl", - "type": "Microsoft.DBforMySQL/flexibleServers" - }, - { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 20, - "iops": 360, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver-repl2.orcabrci-seas1-a.mscds.com", - "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "availabilityZone": "1", - "replicationRole": "Replica", - "replicaCapacity": 0, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-23T08:19:18.00+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver-repl2", - "name": "mysqltestserver-repl", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json deleted file mode 100644 index fa2d619bf0d3..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreate.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "administratorLoginPassword": "your_password", - "availabilityZone": "1", - "version": "5.7", - "createMode": "Default", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Disabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "standbyAvailabilityZone": "3" - } - }, - "location": "southeastasia", - "tags": { - "num": "1" - } - } - }, - "responses": { - "201": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "state": "Healthy", - "standbyAvailabilityZone": "3" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "state": "Healthy", - "standbyAvailabilityZone": "3" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json deleted file mode 100644 index 23b09143847a..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateReplica.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "parameters": { - "serverName": "replica-server", - "resourceGroupName": "testgr", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "location": "SoutheastAsia", - "properties": { - "createMode": "Replica", - "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server" - } - } - }, - "responses": { - "201": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 20, - "iops": 360, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "replica-server.database.mysql.azure.com", - "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server", - "availabilityZone": "3", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "Replica", - "replicaCapacity": 0, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T08:19:18.5729164+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server", - "name": "replica-server", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 20, - "iops": 360, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "replica-server.database.mysql.azure.com", - "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/source-server", - "availabilityZone": "3", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "Replica", - "replicaCapacity": 0, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T08:19:18.5729164+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testgr/providers/Microsoft.DBforMySQL/flexibleServers/replica-server", - "name": "replica-server", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json deleted file mode 100644 index 9bdbea850d43..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithBYOK.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity": {} - } - }, - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "administratorLoginPassword": "your_password", - "availabilityZone": "1", - "version": "5.7", - "createMode": "Default", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Disabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "standbyAvailabilityZone": "3" - }, - "dataEncryption": { - "type": "AzureKeyVault", - "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity", - "primaryKeyURI": "https://test.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a", - "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-identity", - "geoBackupKeyURI": "https://test-geo.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a" - } - }, - "location": "southeastasia", - "tags": { - "num": "1" - } - } - }, - "responses": { - "201": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "state": "Healthy", - "standbyAvailabilityZone": "3" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "state": "Healthy", - "standbyAvailabilityZone": "3" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json deleted file mode 100644 index fd62c66c4482..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerCreateWithPointInTimeRestore.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "parameters": { - "serverName": "targetserver", - "resourceGroupName": "TargetResourceGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "location": "SoutheastAsia", - "properties": { - "restorePointInTime": "2021-06-24T00:00:37.467Z", - "createMode": "PointInTimeRestore", - "sourceServerResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/sourceserver" - }, - "sku": { - "name": "Standard_D14_v2", - "tier": "GeneralPurpose" - }, - "tags": { - "num": "1" - } - } - }, - "responses": { - "201": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "adminuser", - "storage": { - "storageSizeGB": 20, - "iops": 360, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "targetserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T00:15:24.00+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver", - "name": "targetserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "adminuser", - "storage": { - "storageSizeGB": 20, - "iops": 360, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "targetserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T00:15:24.00+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TargetResourceGroup/providers/Microsoft.DBforMySQL/flexibleServers/targetserver", - "name": "targetserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "202": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json deleted file mode 100644 index 1e4b1589c220..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerDelete.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "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" - } - }, - "204": {} - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json deleted file mode 100644 index 7f94628c6f69..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerFailover.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json deleted file mode 100644 index 16f3db02f8ee..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGet.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "autoIoScaling": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "3", - "maintenanceWindow": { - "customWindow": "Enabled", - "dayOfWeek": 1, - "startHour": 1, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json deleted file mode 100644 index 237ec60248e4..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerGetWithVnet.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "3", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Disabled", - "delegatedSubnetResourceId": "/subscriptions/2941a09d-7bcf-42fe-91ca-1765f521c829/resourceGroups/OrcabrCI-Vnet-Resource-Group/providers/Microsoft.Network/virtualNetworks/OrcabrCI-Vnet/subnets/mysql-subnet" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json deleted file mode 100644 index fd4bda789925..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerRestart.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "restartWithFailover": "Enabled", - "maxFailoverSeconds": 60 - } - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json deleted file mode 100644 index 7f94628c6f69..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStart.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json deleted file mode 100644 index 7f94628c6f69..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerStop.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "serverName": "testserver", - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json deleted file mode 100644 index 72b5fbecd3a7..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdate.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties": { - "storage": { - "storageSizeGB": 30, - "iops": 200, - "autoGrow": "Disabled", - "autoIoScaling": "Disabled" - } - } - } - }, - "responses": { - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 30, - "iops": 200, - "autoGrow": "Disabled", - "storageSku": "Premium_LRS", - "autoIoScaling": "Disabled" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "3", - "maintenanceWindow": { - "customWindow": "Enabled", - "dayOfWeek": 1, - "startHour": 1, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json deleted file mode 100644 index d0827064aced..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithBYOK.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity": {} - } - }, - "properties": { - "dataEncryption": { - "type": "AzureKeyVault", - "primaryUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-identity", - "primaryKeyURI": "https://test.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a", - "geoBackupUserAssignedIdentityId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-geo-identity", - "geoBackupKeyURI": "https://test-geo.vault.azure.net/keys/key/c8a92236622244c0a4fdb892666f671a" - } - } - } - }, - "responses": { - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "ZoneRedundant", - "state": "Healthy", - "standbyAvailabilityZone": "3" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json deleted file mode 100644 index 99a75899721f..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestserver", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "parameters": { - "properties": { - "maintenanceWindow": { - "customWindow": "Enabled", - "dayOfWeek": 1, - "startHour": 8, - "startMinute": 0 - } - } - } - }, - "responses": { - "200": { - "body": { - "sku": { - "name": "Standard_D2ds_v4", - "tier": "GeneralPurpose" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver.database.mysql.azure.com", - "availabilityZone": "3", - "maintenanceWindow": { - "customWindow": "Enabled", - "dayOfWeek": 1, - "startHour": 8, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T06:11:38.4150019+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver", - "name": "mysqltestserver", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "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" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json deleted file mode 100644 index e72ed5e7e5bb..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersList.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "sku": { - "name": "Standard_B1ms", - "tier": "Burstable" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 23, - "iops": 369, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver1.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver1", - "name": "mysqltestserver1", - "type": "Microsoft.DBforMySQL/flexibleServers" - }, - { - "sku": { - "name": "Standard_B1ms", - "tier": "Burstable" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 23, - "iops": 369, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver2.mysql.database.azure.com", - "availabilityZone": "2", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup2/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver2", - "name": "mysqltestserver2", - "type": "Microsoft.DBforMySQL/flexibleServers" - }, - { - "sku": { - "name": "Standard_E2ds_v4", - "tier": "MemoryOptimized" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver3.mysql.database.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T06:28:19.0611667+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup3/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver3", - "name": "mysqltestserver3", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json deleted file mode 100644 index 9823f7223e66..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/examples/ServersListByResourceGroup.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "TestGroup", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "sku": { - "name": "Standard_B1ms", - "tier": "Burstable" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 23, - "iops": 369, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver1.database.mysql.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver1", - "name": "mysqltestserver1", - "type": "Microsoft.DBforMySQL/flexibleServers" - }, - { - "sku": { - "name": "Standard_B1ms", - "tier": "Burstable" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 23, - "iops": 369, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver2.mysql.database.azure.com", - "availabilityZone": "2", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-17T07:08:17.4259886+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver2", - "name": "mysqltestserver2", - "type": "Microsoft.DBforMySQL/flexibleServers" - }, - { - "sku": { - "name": "Standard_E2ds_v4", - "tier": "MemoryOptimized" - }, - "properties": { - "administratorLogin": "cloudsa", - "storage": { - "storageSizeGB": 100, - "iops": 600, - "autoGrow": "Enabled", - "storageSku": "Premium_LRS" - }, - "version": "5.7", - "state": "Ready", - "fullyQualifiedDomainName": "mysqltestserver3.mysql.database.azure.com", - "availabilityZone": "1", - "maintenanceWindow": { - "customWindow": "Disabled", - "dayOfWeek": 0, - "startHour": 0, - "startMinute": 0 - }, - "replicationRole": "None", - "replicaCapacity": 10, - "network": { - "publicNetworkAccess": "Enabled" - }, - "backup": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "earliestRestoreDate": "2021-06-24T06:28:19.0611667+00:00" - }, - "highAvailability": { - "mode": "Disabled", - "state": "NotEnabled" - } - }, - "location": "Southeast Asia", - "tags": { - "num": "1" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver3", - "name": "mysqltestserver3", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json deleted file mode 100644 index e3e368916629..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/logFiles": { - "get": { - "tags": [ - "LogFiles" - ], - "operationId": "LogFiles_ListByServer", - "x-ms-examples": { - "List all server log files for a server": { - "$ref": "./examples/LogFilesListByServer.json" - } - }, - "description": "List all the server log files in a given server.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/LogFileListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "LogFileProperties": { - "type": "object", - "properties": { - "sizeInKB": { - "type": "integer", - "format": "int64", - "description": "The size in kb of the logFile." - }, - "createdTime": { - "type": "string", - "format": "date-time", - "description": "Creation timestamp of the log file." - }, - "type": { - "type": "string", - "description": "Type of the log file." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Last modified timestamp of the log file." - }, - "url": { - "type": "string", - "description": "The url to download the log file from." - } - }, - "description": "The properties of a logFile." - }, - "LogFile": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/LogFileProperties", - "x-ms-client-flatten": true, - "description": "The properties of a logFile." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true, - "description": "The system metadata relating to this resource." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a logFile." - }, - "LogFileListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LogFile" - }, - "description": "The list of logFiles in a server" - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - }, - "description": "A List of logFiles." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json deleted file mode 100644 index 21ebd0fa6133..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/examples/LogFilesListByServer.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "serverName": "mysqltestsvc1", - "resourceGroupName": "testrg", - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "sizeInKB": 1, - "createdTime": "0001-01-01T00:00:00+00:00", - "lastModifiedTime": "2018-03-01T06:09:20+00:00", - "type": "slowlog", - "url": "https://wasd2prodwus1afse42.file.core.windows.net/833c99b2f36c47349e5554b903fe0440/serverlogs/mysql-slow-mysqltestsvc1-2018022823.log?sv=2015-04-05&sr=f&sig=D9Ga4N5Pa%2BPe5Bmjpvs7A0TPD%2FF7IZpk9e4KWR0jgpM%3D&se=2018-03-01T07%3A12%3A13Z&sp=r" - }, - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/logFiles/mysql-slow-mysqltestsvc1-2018022823.log", - "name": "mysql-slow-mysqltestsvc1-2018022823.log", - "type": "Microsoft.DBforMySQL/flexibleServers/logFiles" - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json deleted file mode 100644 index 0f931f435ea5..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json +++ /dev/null @@ -1,656 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "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.", - "version": "2022-09-30-preview" - }, - "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}/providers/Microsoft.DBforMySQL/locations/{locationName}/capabilities": { - "get": { - "tags": [ - "LocationBasedCapabilities" - ], - "operationId": "LocationBasedCapabilities_List", - "x-ms-examples": { - "CapabilitiesList": { - "$ref": "./examples/CapabilitiesByLocationList.json" - } - }, - "description": "Get capabilities at specified location in a given subscription.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CapabilitiesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkVirtualNetworkSubnetUsage": { - "post": { - "tags": [ - "CheckVirtualNetworkSubnetUsage" - ], - "operationId": "CheckVirtualNetworkSubnetUsage_Execute", - "x-ms-examples": { - "CheckVirtualNetworkSubnetUsage": { - "$ref": "./examples/CheckVirtualNetworkSubnetUsage.json" - } - }, - "description": "Get virtual network subnet usage for a given vNet resource id.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/VirtualNetworkSubnetUsageParameter" - }, - "description": "The required parameters for creating or updating a server." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/VirtualNetworkSubnetUsageResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/checkNameAvailability": { - "post": { - "tags": [ - "CheckNameAvailability" - ], - "operationId": "CheckNameAvailability_Execute", - "x-ms-examples": { - "Check name availability": { - "$ref": "./examples/CheckNameAvailability.json" - } - }, - "description": "Check the availability of name for server", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/LocationNameParameter" - }, - { - "name": "nameAvailabilityRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NameAvailabilityRequest" - }, - "description": "The required parameters for checking if server name is available." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/NameAvailability" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability": { - "post": { - "tags": [ - "CheckNameAvailability" - ], - "operationId": "CheckNameAvailabilityWithoutLocation_Execute", - "x-ms-examples": { - "Check name availability": { - "$ref": "./examples/CheckNameAvailability.json" - } - }, - "description": "Check the availability of name for server", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "name": "nameAvailabilityRequest", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NameAvailabilityRequest" - }, - "description": "The required parameters for checking if server name is available." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/NameAvailability" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix": { - "post": { - "tags": [ - "GetPrivateDnsZoneSuffix" - ], - "operationId": "GetPrivateDnsZoneSuffix_Execute", - "x-ms-examples": { - "GetPrivateDnsZoneSuffix": { - "$ref": "./examples/GetPrivateDnsZoneSuffix.json" - } - }, - "description": "Get private DNS zone suffix in the cloud.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/GetPrivateDnsZoneSuffixResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/providers/Microsoft.DBforMySQL/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "x-ms-examples": { - "OperationList": { - "$ref": "./examples/OperationsList.json" - } - }, - "description": "Lists all of the available REST API operations.", - "parameters": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "VirtualNetworkSubnetUsageParameter": { - "type": "object", - "properties": { - "virtualNetworkResourceId": { - "type": "string", - "description": "Virtual network resource id." - } - }, - "description": "Virtual network subnet usage parameter" - }, - "DelegatedSubnetUsage": { - "type": "object", - "properties": { - "subnetName": { - "type": "string", - "readOnly": true, - "description": "name of the subnet" - }, - "usage": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Number of used delegated subnets" - } - }, - "description": "Delegated subnet usage data." - }, - "VirtualNetworkSubnetUsageResult": { - "type": "object", - "properties": { - "location": { - "type": "string", - "readOnly": true, - "description": "The location name." - }, - "subscriptionId": { - "type": "string", - "readOnly": true, - "description": "The subscription id." - }, - "delegatedSubnetsUsage": { - "description": "A list of delegated subnet usage", - "type": "array", - "items": { - "$ref": "#/definitions/DelegatedSubnetUsage" - }, - "x-ms-identifiers": [], - "readOnly": true - } - }, - "description": "Virtual network subnet usage data." - }, - "SkuCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "vCore name", - "readOnly": true - }, - "vCores": { - "type": "integer", - "format": "int64", - "description": "supported vCores", - "readOnly": true - }, - "supportedIops": { - "type": "integer", - "format": "int64", - "description": "supported IOPS", - "readOnly": true - }, - "supportedMemoryPerVCoreMB": { - "type": "integer", - "format": "int64", - "description": "supported memory per vCore in MB", - "readOnly": true - } - }, - "description": "Sku capability" - }, - "ServerVersionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "server version", - "readOnly": true - }, - "supportedSkus": { - "description": "A list of supported Skus", - "type": "array", - "items": { - "$ref": "#/definitions/SkuCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - } - }, - "description": "Server version capabilities." - }, - "StorageEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "storage edition name", - "readOnly": true - }, - "minStorageSize": { - "type": "integer", - "format": "int64", - "description": "The minimal supported storage size.", - "readOnly": true - }, - "maxStorageSize": { - "type": "integer", - "format": "int64", - "description": "The maximum supported storage size.", - "readOnly": true - }, - "minBackupRetentionDays": { - "type": "integer", - "format": "int64", - "description": "Minimal backup retention days", - "readOnly": true - }, - "maxBackupRetentionDays": { - "type": "integer", - "format": "int64", - "description": "Maximum backup retention days", - "readOnly": true - } - }, - "description": "storage edition capability" - }, - "ServerEditionCapability": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Server edition name", - "readOnly": true - }, - "supportedStorageEditions": { - "description": "A list of supported storage editions", - "type": "array", - "items": { - "$ref": "#/definitions/StorageEditionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "supportedServerVersions": { - "description": "A list of supported server versions.", - "type": "array", - "items": { - "$ref": "#/definitions/ServerVersionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - } - }, - "description": "Server edition capabilities." - }, - "CapabilityProperties": { - "type": "object", - "properties": { - "zone": { - "type": "string", - "description": "zone name", - "readOnly": true - }, - "supportedHAMode": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported high availability mode", - "readOnly": true - }, - "supportedGeoBackupRegions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "supported geo backup regions", - "readOnly": true - }, - "supportedFlexibleServerEditions": { - "description": "A list of supported flexible server editions.", - "type": "array", - "items": { - "$ref": "#/definitions/ServerEditionCapability" - }, - "x-ms-identifiers": [], - "readOnly": true - } - }, - "description": "Location capabilities." - }, - "CapabilitiesListResult": { - "type": "object", - "properties": { - "value": { - "description": "A list of supported capabilities.", - "type": "array", - "items": { - "$ref": "#/definitions/CapabilityProperties" - }, - "x-ms-identifiers": [], - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - }, - "description": "location capability" - }, - "GetPrivateDnsZoneSuffixResponse": { - "type": "object", - "properties": { - "privateDnsZoneSuffix": { - "type": "string", - "description": "Represents the private DNS zone suffix." - } - }, - "description": "The response of get private dns zone suffix." - }, - "NameAvailabilityRequest": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Resource name to verify." - }, - "type": { - "type": "string", - "description": "Resource type used for verification." - } - }, - "description": "Request from client to check resource name availability." - }, - "NameAvailability": { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "Error Message." - }, - "nameAvailable": { - "type": "boolean", - "description": "Indicates whether the resource name is available." - }, - "reason": { - "type": "string", - "description": "Reason for name being unavailable." - } - }, - "description": "Represents a resource name availability." - }, - "OperationDisplay": { - "type": "object", - "properties": { - "provider": { - "type": "string", - "description": "Operation resource provider name." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "Localized friendly name for the operation." - }, - "description": { - "type": "string", - "description": "Operation description." - } - }, - "description": "Display metadata associated with the operation." - }, - "Operation": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the operation being performed on this particular object." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The localized display information for this particular operation or action." - }, - "origin": { - "type": "string", - "description": "The intended executor of the operation." - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-ms-client-flatten": false, - "description": "Additional descriptions for the operation." - } - }, - "description": "REST API operation definition." - }, - "OperationListResult": { - "description": "A list of resource provider operations.", - "type": "object", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL client should use to fetch the next page (per server side paging).", - "type": "string" - } - } - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse", - "description": "The resource management error response." - } - }, - "description": "An error response from the Batch service." - } - }, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - }, - "LocationNameParameter": { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location.", - "x-ms-parameter-location": "method", - "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*" - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json deleted file mode 100644 index 428fc33e67eb..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CapabilitiesByLocationList.json +++ /dev/null @@ -1,1159 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "locationName": "WestUS" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "zone": "none", - "supportedHAMode": [ - "SameZone", - "ZoneRedundant" - ], - "supportedGeoBackupRegions": [], - "supportedFlexibleServerEditions": [ - { - "name": "Burstable", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - } - ] - }, - { - "name": "GeneralPurpose", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - } - ] - }, - { - "name": "MemoryOptimized", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - } - ] - } - ] - }, - { - "zone": "1", - "supportedHAMode": [ - "SameZone", - "ZoneRedundant" - ], - "supportedGeoBackupRegions": [], - "supportedFlexibleServerEditions": [ - { - "name": "Burstable", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - } - ] - }, - { - "name": "GeneralPurpose", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - } - ] - }, - { - "name": "MemoryOptimized", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - } - ] - } - ] - }, - { - "zone": "2", - "supportedHAMode": [ - "SameZone", - "ZoneRedundant" - ], - "supportedGeoBackupRegions": [], - "supportedFlexibleServerEditions": [ - { - "name": "Burstable", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - } - ] - }, - { - "name": "GeneralPurpose", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - } - ] - }, - { - "name": "MemoryOptimized", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - } - ] - } - ] - }, - { - "zone": "3", - "supportedHAMode": [ - "SameZone", - "ZoneRedundant" - ], - "supportedGeoBackupRegions": [], - "supportedFlexibleServerEditions": [ - { - "name": "Burstable", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_B1s", - "vCores": 1, - "supportedIops": 400, - "supportedMemoryPerVCoreMB": 1024 - }, - { - "name": "Standard_B1ms", - "vCores": 1, - "supportedIops": 640, - "supportedMemoryPerVCoreMB": 2048 - }, - { - "name": "Standard_B2s", - "vCores": 2, - "supportedIops": 1280, - "supportedMemoryPerVCoreMB": 2048 - } - ] - } - ] - }, - { - "name": "GeneralPurpose", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_D2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - }, - { - "name": "Standard_D64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 4096 - } - ] - } - ] - }, - { - "name": "MemoryOptimized", - "supportedStorageEditions": [ - { - "name": "Premium", - "minStorageSize": 20480, - "maxStorageSize": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 - } - ], - "supportedServerVersions": [ - { - "name": "5.7", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - }, - { - "name": "8.0.21", - "supportedSkus": [ - { - "name": "Standard_E2ds_v4", - "vCores": 2, - "supportedIops": 3200, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E4ds_v4", - "vCores": 4, - "supportedIops": 6400, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E8ds_v4", - "vCores": 8, - "supportedIops": 12800, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E16ds_v4", - "vCores": 16, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E32ds_v4", - "vCores": 32, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E48ds_v4", - "vCores": 48, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - }, - { - "name": "Standard_E64ds_v4", - "vCores": 64, - "supportedIops": 20000, - "supportedMemoryPerVCoreMB": 8192 - } - ] - } - ] - } - ] - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json deleted file mode 100644 index 4b22b6074db7..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckNameAvailability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "locationName": "SouthEastAsia", - "nameAvailabilityRequest": { - "name": "name1", - "type": "Microsoft.DBforMySQL/flexibleServers" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "message": "", - "reason": "" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json deleted file mode 100644 index 174797ec8b28..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/CheckVirtualNetworkSubnetUsage.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-30-preview", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "locationName": "WestUS", - "parameters": { - "virtualNetworkResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/testvnet" - } - }, - "responses": { - "200": { - "body": { - "location": "WestUS", - "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", - "delegatedSubnetsUsage": [ - { - "subnetName": "test-subnet-1", - "usage": 2 - }, - { - "subnetName": "test-subnet-2", - "usage": 3 - } - ] - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json deleted file mode 100644 index dcc7a2cb9018..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/GetPrivateDnsZoneSuffix.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-30-preview" - }, - "responses": { - "200": { - "body": { - "privateDnsZoneSuffix": "suffix-example" - } - } - } -} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json deleted file mode 100644 index 2098009efd32..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/examples/OperationsList.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Firewall Rules", - "operation": "List/Get Firewall Rules", - "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/write", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Firewall Rules", - "operation": "Create/Update Firewall Rule", - "description": "Creates a firewall rule with the specified parameters or update an existing rule." - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/firewallRules/delete", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Firewall Rules", - "operation": "Delete Firewall Rule", - "description": "Deletes an existing firewall rule." - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "MySQL Server", - "operation": "List/Get MySQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/write", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "MySQL Server", - "operation": "Create/Update MySQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/delete", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "MySQL Server", - "operation": "Delete MySQL Server", - "description": "Deletes an existing server." - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Database Metric Definition", - "operation": "Get database metric definitions", - "description": "Return types of metrics that are available for databases" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "cpu_percent", - "displayName": "CPU percent", - "displayDescription": "CPU percent", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "memory_percent", - "displayName": "Memory percent", - "displayDescription": "Memory percent", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "io_consumption_percent", - "displayName": "IO percent", - "displayDescription": "IO percent", - "unit": "Percent", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "storage_percent", - "displayName": "Storage percentage", - "displayDescription": "Storage percentage", - "unit": "Percent", - "aggregationType": "Average" - }, - { - "name": "storage_used", - "displayName": "Storage used", - "displayDescription": "Storage used", - "unit": "Bytes", - "aggregationType": "Average" - }, - { - "name": "storage_limit", - "displayName": "Storage limit", - "displayDescription": "Storage limit", - "unit": "Bytes", - "aggregationType": "Average" - }, - { - "name": "serverlog_storage_percent", - "displayName": "Server Log storage percent", - "displayDescription": "Server Log storage percent", - "unit": "Percent", - "aggregationType": "Average" - }, - { - "name": "serverlog_storage_usage", - "displayName": "Server Log storage used", - "displayDescription": "Server Log storage used", - "unit": "Bytes", - "aggregationType": "Average" - }, - { - "name": "serverlog_storage_limit", - "displayName": "Server Log storage limit", - "displayDescription": "Server Log storage limit", - "unit": "Bytes", - "aggregationType": "Average" - }, - { - "name": "active_connections", - "displayName": "Total active connections", - "displayDescription": "Total active connections", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "connections_failed", - "displayName": "Total failed connections", - "displayDescription": "Total failed connections", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": true - }, - { - "name": "seconds_behind_master", - "displayName": "Replication lag in seconds", - "displayDescription": "Replication lag in seconds", - "unit": "Count", - "aggregationType": "Average", - "fillGapWithZero": true - } - ] - } - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Database Metric Definition", - "operation": "Read diagnostic setting", - "description": "Gets the disagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft DB for MySQL", - "resource": "Database Metric Definition", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - } - ] - } - } - } -} From a693919c5d23bb47bca69179c681735970795a25 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Mon, 20 Mar 2023 14:37:53 +0800 Subject: [PATCH 13/20] revert readme.com --- .../mysql/resource-manager/readme.md | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index e2fea5f5e500..2e08b9ea4d40 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-2022-09-30-preview +tag: package-2020-01-01 ``` ``` yaml $(package-flexibleservers) -tag: package-2022-09-30-preview +tag: package-flexibleserver-2021-12-01-preview ``` ``` yaml $(package-singleservers) @@ -160,24 +160,6 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` -### Tag: package-2022-09-30-preview - -These settings apply only when `--tag=package-2022-09-30-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2022-09-30-preview' -input-file: -- Microsoft.DBforMySQL/Backups/preview/2022-09-30-preview/Backups.json -- Microsoft.DBforMySQL/Configurations/preview/2022-09-30-preview/Configurations.json -- Microsoft.DBforMySQL/Databases/preview/2022-09-30-preview/Databases.json -- Microsoft.DBforMySQL/Firewall/preview/2022-09-30-preview/FirewallRules.json -- Microsoft.DBforMySQL/FlexibleServers/preview/2022-09-30-preview/FlexibleServers.json -- Microsoft.DBforMySQL/LogFiles/preview/2022-09-30-preview/LogFiles.json -- Microsoft.DBforMySQL/ServiceOperations/preview/2022-09-30-preview/ServiceOperations.json -- Microsoft.DBforMySQL/AAD/preview/2022-09-30-preview/AzureADAdministrator.json -- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json -- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json -``` - ## Suppression ``` yaml From 023e7a2d7ba3478e482ab782a018385fd06088e8 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Wed, 22 Mar 2023 09:42:10 +0800 Subject: [PATCH 14/20] add readme --- .../mysql/resource-manager/readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 2e08b9ea4d40..2e9c6ef8a50b 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -160,6 +160,25 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` +### Tag: package-flexibleserver-2022-09-01-preview + +These settings apply only when `--tag=package-flexibleserver-2022-09-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-flexibleserver-2021-12-01-preview' +input-file: +- Microsoft.DBforMySQL/Backups/preview/2021-12-01-preview/Backups.json +- Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json +- Microsoft.DBforMySQL/Databases/preview/2021-12-01-preview/Databases.json +- Microsoft.DBforMySQL/Firewall/preview/2021-12-01-preview/FirewallRules.json +- Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json +- Microsoft.DBforMySQL/LogFiles/preview/2021-12-01-preview/LogFiles.json +- Microsoft.DBforMySQL/ServiceOperations/preview/2021-12-01-preview/ServiceOperations.json +- Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json +- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json +- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json +- Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json +``` + ## Suppression ``` yaml From 462ca9e2f3aa653a5ce914d07ffb8cdc3be92dfa Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Wed, 22 Mar 2023 09:52:37 +0800 Subject: [PATCH 15/20] add priviate link in readme to fix avocado --- specification/mysql/resource-manager/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 2e9c6ef8a50b..a16898f4d2b7 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -160,11 +160,11 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` -### Tag: package-flexibleserver-2022-09-01-preview +### Tag: package-flexibleserver-2022-09-30-preview -These settings apply only when `--tag=package-flexibleserver-2022-09-01-preview` is specified on the command line. +These settings apply only when `--tag=package-flexibleserver-2022-09-30-preview` is specified on the command line. -``` yaml $(tag) == 'package-flexibleserver-2021-12-01-preview' +``` yaml $(tag) == 'package-flexibleserver-2022-09-30-preview' input-file: - Microsoft.DBforMySQL/Backups/preview/2021-12-01-preview/Backups.json - Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json From b20a55845da191924332dbd6a1363eff3b61b5a4 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Fri, 7 Apr 2023 18:43:31 +0800 Subject: [PATCH 16/20] fix 202 for LRO --- .../PrivateEndpointConnections.json | 18 +++++++---- .../PrivateLinkResources.json | 4 +-- .../PrivateEndpointConnectionUpdate.json | 6 ++++ .../common-types/v1/common-types.json | 30 +++++++++++++++++++ 4 files changed, 51 insertions(+), 7 deletions(-) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/common-types/v1/common-types.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json index fc4a20123785..58039b0c2bfe 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateEndpointConnections.json @@ -46,7 +46,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" }, { "name": "privateEndpointConnectionName", @@ -94,7 +94,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" }, { "name": "privateEndpointConnectionName", @@ -119,7 +119,7 @@ ], "responses": { "200": { - "description": "Successfully approved or rejected private endpoint connection.", + "description": "Successfully update the private endpoint connection by approving, rejecting or disconnecting it.", "schema": { "$ref": "../../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" } @@ -130,6 +130,14 @@ "$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": { @@ -158,7 +166,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" }, { "name": "privateEndpointConnectionName", @@ -218,7 +226,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" }, { "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json index 5949577ca8dd..809d647e3c46 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json @@ -46,7 +46,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" }, { "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/SubscriptionIdParameter" @@ -88,7 +88,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../Common-types/common-types.json#/parameters/ServerNameParameter" }, { "name": "groupName", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json index 93fc8583d782..3082ef825752 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/examples/PrivateEndpointConnectionUpdate.json @@ -50,6 +50,12 @@ } } } + }, + "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" + } } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/common-types/v1/common-types.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/common-types/v1/common-types.json new file mode 100644 index 000000000000..adee47d43bab --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/common-types/v1/common-types.json @@ -0,0 +1,30 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-30-preview", + "title": "Common types" + }, + "paths": {}, + "definitions": {}, + "parameters": { + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "pattern": "^[a-z0-9][-a-z0-9]*(? Date: Fri, 7 Apr 2023 18:58:55 +0800 Subject: [PATCH 17/20] fix avocado: remove inner common-tyoe --- .../2022-09-30-preview/common-types.json | 30 ------------------- .../mysql/resource-manager/readme.md | 1 - 2 files changed, 31 deletions(-) delete mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json deleted file mode 100644 index adee47d43bab..000000000000 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/common-types.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-09-30-preview", - "title": "Common types" - }, - "paths": {}, - "definitions": {}, - "parameters": { - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "pattern": "^[a-z0-9][-a-z0-9]*(? Date: Fri, 7 Apr 2023 19:07:52 +0800 Subject: [PATCH 18/20] fix --- .../preview/2022-09-30-preview/PrivateLinkResources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json index 809d647e3c46..39188bf2d393 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json @@ -88,7 +88,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../Common-types/common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/common-types.json#/parameters/ServerNameParameter" }, { "name": "groupName", From 00ba135b539f6f00c439652c9d0efb43dcf63409 Mon Sep 17 00:00:00 2001 From: xiaoxu qi Date: Fri, 7 Apr 2023 19:25:20 +0800 Subject: [PATCH 19/20] fix --- .../preview/2022-09-30-preview/PrivateLinkResources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json index 39188bf2d393..58ef45cbcc8b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/PrivateLink/preview/2022-09-30-preview/PrivateLinkResources.json @@ -88,7 +88,7 @@ "$ref": "../../../../../../common-types/resource-management/v4/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../common-types/common-types.json#/parameters/ServerNameParameter" + "$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter" }, { "name": "groupName", From c07ff4c381baf586dbe59dca959d2b3eb652d66b Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Fri, 14 Apr 2023 17:09:29 +0800 Subject: [PATCH 20/20] fix conflict --- .../mysql/resource-manager/readme.md | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index adc2cc03a6ef..60db00927c2c 100644 --- a/specification/mysql/resource-manager/readme.md +++ b/specification/mysql/resource-manager/readme.md @@ -32,7 +32,7 @@ tag: package-2020-01-01 ``` ``` yaml $(package-flexibleservers) -tag: package-flexibleserver-2021-12-01-preview +tag: package-flexibleserver-2022-01-01 ``` ``` yaml $(package-singleservers) @@ -160,11 +160,27 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` -### Tag: package-flexibleserver-2022-09-30-preview +### Tag: package-flexibleserver-2022-01-01 -These settings apply only when `--tag=package-flexibleserver-2022-09-30-preview` is specified on the command line. +These settings apply only when `--tag=package-flexibleserver-2022-01-01` is specified on the command line. -``` yaml $(tag) == 'package-flexibleserver-2022-09-30-preview' +``` yaml $(tag) == 'package-flexibleserver-2022-01-01' +input-file: +- Microsoft.DBforMySQL/Backups/stable/2022-01-01/Backups.json +- Microsoft.DBforMySQL/Configurations/stable/2022-01-01/Configurations.json +- Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json +- Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json +- Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/FlexibleServers.json +- Microsoft.DBforMySQL/LogFiles/stable/2022-01-01/LogFiles.json +- Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/ServiceOperations.json +- Microsoft.DBforMySQL/AAD/stable/2022-01-01/AzureADAdministrator.json +``` + +### Tag: package-flexibleserver-2022-09-30-preview-privatelink + +These settings apply only when `--tag=package-flexibleserver-2022-09-30-preview-privatelink` is specified on the command line. + +``` yaml $(tag) == 'package-flexibleserver-2022-09-30-preview-privatelink' input-file: - Microsoft.DBforMySQL/Backups/preview/2021-12-01-preview/Backups.json - Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json