From 9106a11a581a7a0fcb8875b4cf3cbd879551e95d Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 4 Apr 2023 15:24:26 +0800 Subject: [PATCH 01/11] add 2021-12-01 base --- .../2021-12-01/AzureADAdministrator.json | 349 +++++ .../examples/AzureADAdministratorCreate.json | 49 + .../examples/AzureADAdministratorDelete.json | 24 + .../examples/AzureADAdministratorGet.json | 25 + .../AzureADAdministratorsListByServer.json | 28 + .../Backups/stable/2021-12-01/Backups.json | 259 ++++ .../stable/2021-12-01/examples/BackupGet.json | 23 + .../stable/2021-12-01/examples/BackupPut.json | 23 + .../examples/BackupsListByServer.json | 126 ++ .../stable/2021-12-01/Configurations.json | 489 +++++++ .../2021-12-01/examples/ConfigurationGet.json | 29 + .../examples/ConfigurationUpdate.json | 41 + .../examples/ConfigurationsBatchUpdate.json | 71 + .../examples/ConfigurationsListByServer.json | 146 +++ .../stable/2021-12-01/Databases.json | 320 +++++ .../2021-12-01/examples/DatabaseCreate.json | 40 + .../2021-12-01/examples/DatabaseDelete.json | 19 + .../2021-12-01/examples/DatabaseGet.json | 22 + .../examples/DatabasesListByServer.json | 34 + .../stable/2021-12-01/FirewallRules.json | 329 +++++ .../examples/FirewallRuleCreate.json | 40 + .../examples/FirewallRuleDelete.json | 19 + .../2021-12-01/examples/FirewallRuleGet.json | 22 + .../examples/FirewallRulesListByServer.json | 34 + .../stable/2021-12-01/FlexibleServers.json | 1134 ++++++++++++++++ .../examples/ReplicasListByServer.json | 98 ++ .../2021-12-01/examples/ServerCreate.json | 139 ++ .../examples/ServerCreateReplica.json | 116 ++ .../examples/ServerCreateWithBYOK.json | 152 +++ .../ServerCreateWithPointInTimeRestore.json | 122 ++ .../2021-12-01/examples/ServerDelete.json | 18 + .../2021-12-01/examples/ServerFailover.json | 17 + .../stable/2021-12-01/examples/ServerGet.json | 59 + .../examples/ServerGetWithVnet.json | 59 + .../2021-12-01/examples/ServerRestart.json | 21 + .../2021-12-01/examples/ServerStart.json | 17 + .../2021-12-01/examples/ServerStop.json | 17 + .../2021-12-01/examples/ServerUpdate.json | 75 ++ .../examples/ServerUpdateWithBYOK.json | 82 ++ ...erUpdateWithCustomerMaintenanceWindow.json | 74 ++ .../2021-12-01/examples/ServersList.json | 152 +++ .../examples/ServersListByResourceGroup.json | 153 +++ .../LogFiles/stable/2021-12-01/LogFiles.json | 173 +++ .../examples/LogFilesListByServer.json | 28 + .../stable/2021-12-01/ServiceOperations.json | 654 ++++++++++ .../examples/CapabilitiesByLocationList.json | 1159 +++++++++++++++++ .../examples/CheckNameAvailability.json | 20 + .../CheckVirtualNetworkSubnetUsage.json | 28 + .../examples/GetPrivateDnsZoneSuffix.json | 12 + .../2021-12-01/examples/OperationsList.json | 190 +++ 50 files changed, 7330 insertions(+) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json new file mode 100644 index 000000000000..1d0778cdd76a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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/2021-12-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json new file mode 100644 index 000000000000..58765bbf1eae --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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/2021-12-01/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json new file mode 100644 index 000000000000..7c058207fe0f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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/2021-12-01/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json new file mode 100644 index 000000000000..2aed501b1404 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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/2021-12-01/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json new file mode 100644 index 000000000000..55ad81d81d36 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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/2021-12-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json new file mode 100644 index 000000000000..1cc4d2366a3f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-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/2021-12-01/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json new file mode 100644 index 000000000000..5950175a230f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-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/2021-12-01/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json new file mode 100644 index 000000000000..2228b22f4ab0 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-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/2021-12-01/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json new file mode 100644 index 000000000000..4fa00c9366a8 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-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/2021-12-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json new file mode 100644 index 000000000000..37fba5086f45 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-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/2021-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json new file mode 100644 index 000000000000..4312ffc16a69 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-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/2021-12-01/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json new file mode 100644 index 000000000000..62317140afe3 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-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/2021-12-01/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json new file mode 100644 index 000000000000..9082d516dcf7 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-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/2021-12-01/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json new file mode 100644 index 000000000000..e9701629cae2 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-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/2021-12-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json new file mode 100644 index 000000000000..db628b352d0e --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-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/2021-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json new file mode 100644 index 000000000000..503e703ba62d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-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/2021-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json new file mode 100644 index 000000000000..fcf2a833ac18 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-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/2021-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json new file mode 100644 index 000000000000..04e5c8ec1cee --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-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/2021-12-01/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json new file mode 100644 index 000000000000..50ba0fc9628d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-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/2021-12-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json new file mode 100644 index 000000000000..cc08678ee321 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-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/2021-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json new file mode 100644 index 000000000000..58b0cd1d9a7d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-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/2021-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json new file mode 100644 index 000000000000..850a55650eb3 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-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/2021-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json new file mode 100644 index 000000000000..be637fe35a6a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-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/2021-12-01/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json new file mode 100644 index 000000000000..65ab18edb010 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-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/2021-12-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json new file mode 100644 index 000000000000..1c1241426861 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json new file mode 100644 index 000000000000..8f865bfd5f72 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json new file mode 100644 index 000000000000..0fb61ec23bb4 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json new file mode 100644 index 000000000000..2e8f46ec6f3a --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json new file mode 100644 index 000000000000..c0bfca2d9f1c --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json new file mode 100644 index 000000000000..12864eb4ce3c --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json new file mode 100644 index 000000000000..97e36c48c296 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json new file mode 100644 index 000000000000..0acac834753d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json new file mode 100644 index 000000000000..fd7a32a6a2e3 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json new file mode 100644 index 000000000000..9ff938184d06 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json new file mode 100644 index 000000000000..230c2bb7761b --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json new file mode 100644 index 000000000000..0acac834753d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json new file mode 100644 index 000000000000..0acac834753d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json new file mode 100644 index 000000000000..993b143d99a9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json new file mode 100644 index 000000000000..dd61e6fee539 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json new file mode 100644 index 000000000000..2ff83b111b26 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json new file mode 100644 index 000000000000..059ced0e0e6d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json new file mode 100644 index 000000000000..1737448444d0 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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/2021-12-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json new file mode 100644 index 000000000000..9007edfbf3ff --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-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/2021-12-01/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json new file mode 100644 index 000000000000..8a533b2fdc99 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-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/2021-12-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json new file mode 100644 index 000000000000..497f61dbe1ff --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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/2021-12-01/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json new file mode 100644 index 000000000000..773bb6a1cd75 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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/2021-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..f68785f9fef9 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json new file mode 100644 index 000000000000..4c111a729639 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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/2021-12-01/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json new file mode 100644 index 000000000000..b4ab90c83c70 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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/2021-12-01/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json new file mode 100644 index 000000000000..4ff9be1db93f --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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 9fcd121dcdca8229edab070ad922616ed8e30a6d Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 4 Apr 2023 15:26:50 +0800 Subject: [PATCH 02/11] update api version --- .../AAD/stable/2021-12-01/AzureADAdministrator.json | 2 +- .../examples/AzureADAdministratorCreate.json | 2 +- .../examples/AzureADAdministratorDelete.json | 10 +++++----- .../2021-12-01/examples/AzureADAdministratorGet.json | 2 +- .../examples/AzureADAdministratorsListByServer.json | 2 +- .../Backups/stable/2021-12-01/Backups.json | 2 +- .../Backups/stable/2021-12-01/examples/BackupGet.json | 2 +- .../Backups/stable/2021-12-01/examples/BackupPut.json | 2 +- .../2021-12-01/examples/BackupsListByServer.json | 2 +- .../stable/2021-12-01/Configurations.json | 2 +- .../stable/2021-12-01/examples/ConfigurationGet.json | 2 +- .../2021-12-01/examples/ConfigurationUpdate.json | 6 +++--- .../2021-12-01/examples/ConfigurationsBatchUpdate.json | 6 +++--- .../examples/ConfigurationsListByServer.json | 2 +- .../Databases/stable/2021-12-01/Databases.json | 2 +- .../stable/2021-12-01/examples/DatabaseCreate.json | 2 +- .../stable/2021-12-01/examples/DatabaseDelete.json | 6 +++--- .../stable/2021-12-01/examples/DatabaseGet.json | 2 +- .../2021-12-01/examples/DatabasesListByServer.json | 2 +- .../Firewall/stable/2021-12-01/FirewallRules.json | 2 +- .../stable/2021-12-01/examples/FirewallRuleCreate.json | 2 +- .../stable/2021-12-01/examples/FirewallRuleDelete.json | 6 +++--- .../stable/2021-12-01/examples/FirewallRuleGet.json | 2 +- .../2021-12-01/examples/FirewallRulesListByServer.json | 2 +- .../stable/2021-12-01/FlexibleServers.json | 2 +- .../2021-12-01/examples/ReplicasListByServer.json | 2 +- .../stable/2021-12-01/examples/ServerCreate.json | 2 +- .../2021-12-01/examples/ServerCreateReplica.json | 2 +- .../2021-12-01/examples/ServerCreateWithBYOK.json | 2 +- .../examples/ServerCreateWithPointInTimeRestore.json | 2 +- .../stable/2021-12-01/examples/ServerDelete.json | 6 +++--- .../stable/2021-12-01/examples/ServerFailover.json | 6 +++--- .../stable/2021-12-01/examples/ServerGet.json | 2 +- .../stable/2021-12-01/examples/ServerGetWithVnet.json | 2 +- .../stable/2021-12-01/examples/ServerRestart.json | 6 +++--- .../stable/2021-12-01/examples/ServerStart.json | 6 +++--- .../stable/2021-12-01/examples/ServerStop.json | 6 +++--- .../stable/2021-12-01/examples/ServerUpdate.json | 6 +++--- .../2021-12-01/examples/ServerUpdateWithBYOK.json | 6 +++--- .../ServerUpdateWithCustomerMaintenanceWindow.json | 6 +++--- .../stable/2021-12-01/examples/ServersList.json | 2 +- .../examples/ServersListByResourceGroup.json | 2 +- .../LogFiles/stable/2021-12-01/LogFiles.json | 2 +- .../2021-12-01/examples/LogFilesListByServer.json | 2 +- .../stable/2021-12-01/ServiceOperations.json | 2 +- .../examples/CapabilitiesByLocationList.json | 2 +- .../2021-12-01/examples/CheckNameAvailability.json | 2 +- .../examples/CheckVirtualNetworkSubnetUsage.json | 2 +- .../2021-12-01/examples/GetPrivateDnsZoneSuffix.json | 2 +- .../stable/2021-12-01/examples/OperationsList.json | 2 +- 50 files changed, 78 insertions(+), 78 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json index 1d0778cdd76a..39556ba4c1dd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json index 58765bbf1eae..140ed992a8ee 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "parameters": { "properties": { "administratorType": "ActiveDirectory", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json index 7c058207fe0f..a06d06f2e3a1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json @@ -4,20 +4,20 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01-preview" + "api-version": "2021-12-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=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=2021-12-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=2021-12-01" } }, "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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json index 2aed501b1404..62a1696f153a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01-preview" + "api-version": "2021-12-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json index 55ad81d81d36..9d37e2f60d63 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-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": "2021-12-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json index 1cc4d2366a3f..7d6a0a2943e0 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json index 5950175a230f..6c074cf397bd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json @@ -3,7 +3,7 @@ "backupName": "daily_20210615T160516", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json index 2228b22f4ab0..b1968c176def 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json @@ -3,7 +3,7 @@ "backupName": "mybackup", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json index 4fa00c9366a8..3d892202d8f9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json index 37fba5086f45..f085549418d5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json index 4312ffc16a69..0b04d806db3f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "event_scheduler", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json index 62317140afe3..8c792e62536c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json @@ -3,7 +3,7 @@ "serverName": "testserver", "configurationName": "event_scheduler", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json index 9082d516dcf7..414b6ea9ab1c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json index e9701629cae2..eb573847ea4d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "page": 1, "pageSize": 8 diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json index db628b352d0e..27c98279f81a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json index 503e703ba62d..14dabf8f00e7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json index fcf2a833ac18..3f8a53ed22ba 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json @@ -3,15 +3,15 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json index 04e5c8ec1cee..fd11f7a71018 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json index 50ba0fc9628d..022c2587287d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json index cc08678ee321..3fc63d5061e7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json index 58b0cd1d9a7d..ccb4cda8aa33 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json index 850a55650eb3..f73907e88eac 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json @@ -3,15 +3,15 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json index be637fe35a6a..9e8d6a7a0fe1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json index 65ab18edb010..353fec07dbb4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json index 1c1241426861..42e97958fedb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json index 8f865bfd5f72..5adebfb7bacd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json index 0fb61ec23bb4..02efa51328e5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "sku": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json index 2e8f46ec6f3a..384c90f0f93c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "replica-server", "resourceGroupName": "testgr", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json index c0bfca2d9f1c..6f675b21362b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "identity": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json index 12864eb4ce3c..62cd696866e4 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "targetserver", "resourceGroupName": "TargetResourceGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json index 97e36c48c296..10448d49e8b3 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json index 0acac834753d..c0d89c995aa6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json index fd7a32a6a2e3..4241345b7bd1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json index 9ff938184d06..389ba3bee5f5 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json index 230c2bb7761b..d4cd3202c421 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json index 0acac834753d..c0d89c995aa6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json index 0acac834753d..c0d89c995aa6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json index 993b143d99a9..210237da7f61 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json index dd61e6fee539..4a37de057a79 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 2ff83b111b26..034db5fd7f54 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-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=2021-12-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=2021-12-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json index 059ced0e0e6d..1a298924b92d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json index 1737448444d0..c942657448c9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json index 9007edfbf3ff..e159f7c9f216 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json index 8a533b2fdc99..9b32a2f3584b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestsvc1", "resourceGroupName": "testrg", - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json index 497f61dbe1ff..7b2c203e8c58 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-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": "2021-12-01" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json index 773bb6a1cd75..619b820b3012 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json index f68785f9fef9..5a334f06f92d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "SouthEastAsia", "nameAvailabilityRequest": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json index 4c111a729639..00e5e6c6ede7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview", + "api-version": "2021-12-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS", "parameters": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json index b4ab90c83c70..699ff043ee8a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview" + "api-version": "2021-12-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json index 4ff9be1db93f..f3861ad653e2 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01-preview" + "api-version": "2021-12-01" }, "responses": { "200": { From b4af1b6425af672b12461960fdea4186ab95c567 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 4 Apr 2023 17:21:38 +0800 Subject: [PATCH 03/11] update readme --- specification/mysql/resource-manager/readme.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 2e08b9ea4d40..9950b60a2612 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-2021-12-01 ``` ``` yaml $(package-singleservers) @@ -160,6 +160,22 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` +### Tag: package-flexibleserver-2021-12-01 + +These settings apply only when `--tag=package-flexibleserver-2021-12-01` is specified on the command line. + +``` yaml $(tag) == 'package-flexibleserver-2021-12-01' +input-file: +- Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json +- Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json +- Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json +- Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json +- Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json +- Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json +- Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json +- Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json +``` + ## Suppression ``` yaml From ee1a2e9a7ac8eac1389a438ed73cf87647b118b3 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 4 Apr 2023 17:43:21 +0800 Subject: [PATCH 04/11] fix pattern for linter --- .../AAD/stable/2021-12-01/AzureADAdministrator.json | 6 ++++-- .../Backups/stable/2021-12-01/Backups.json | 6 ++++-- .../Configurations/stable/2021-12-01/Configurations.json | 6 ++++-- .../Databases/stable/2021-12-01/Databases.json | 6 ++++-- .../Firewall/stable/2021-12-01/FirewallRules.json | 6 ++++-- .../FlexibleServers/stable/2021-12-01/FlexibleServers.json | 3 ++- .../LogFiles/stable/2021-12-01/LogFiles.json | 3 ++- .../stable/2021-12-01/ServiceOperations.json | 6 ++++-- 8 files changed, 28 insertions(+), 14 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json index 39556ba4c1dd..02113b4d1c83 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json @@ -328,7 +328,8 @@ "required": true, "type": "string", "description": "The name of the server.", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-z0-9][-a-z0-9]*(? Date: Tue, 4 Apr 2023 17:48:41 +0800 Subject: [PATCH 05/11] fix 202 for linter --- .../2021-12-01/AzureADAdministrator.json | 14 +++++- .../stable/2021-12-01/Configurations.json | 14 +++++- .../stable/2021-12-01/Databases.json | 7 ++- .../stable/2021-12-01/FirewallRules.json | 14 +++++- .../stable/2021-12-01/FlexibleServers.json | 49 ++++++++++++++++--- 5 files changed, 84 insertions(+), 14 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json index 02113b4d1c83..a6ff02b3410d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -130,7 +135,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json index 2ed8ebc8db8c..44f4ec250723 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json @@ -80,7 +80,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -178,7 +183,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json index 224e1241f83c..3ba8732b8b8a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json index 002b939d45be..63a3b3cdcdd1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json @@ -86,7 +86,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -130,7 +135,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json index 52b9d3f354ab..a47b1acb6ae8 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json @@ -92,7 +92,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -151,7 +156,12 @@ } }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -192,7 +202,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -362,7 +377,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -414,7 +434,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -457,7 +482,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -500,7 +530,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", From b92af4cedefabeab07ed53d27b29d8800c367ca3 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 4 Apr 2023 18:06:04 +0800 Subject: [PATCH 06/11] fix linter lro --- .../Databases/stable/2021-12-01/Databases.json | 12 ++++++++++-- .../Firewall/stable/2021-12-01/FirewallRules.json | 5 ++++- .../preview/2021-12-01-preview/FlexibleServers.json | 5 ++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json index 3ba8732b8b8a..3fe8f63437a2 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json @@ -135,7 +135,12 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "headers": { + "Location": { + "type": "string" + } + } }, "204": { "description": "NoContent" @@ -147,7 +152,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } }, "get": { "tags": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json index 63a3b3cdcdd1..c4377887f997 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json @@ -152,7 +152,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } }, "get": { "tags": [ diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json index 1c1241426861..98a1320b988b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json @@ -204,7 +204,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } }, "get": { "tags": [ From fd4985325469a0def00e82a80b44382658d3e779 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Tue, 4 Apr 2023 18:45:22 +0800 Subject: [PATCH 07/11] update pattern for backup --- .../Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json index 34b0ae30049c..67543d2710a1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json @@ -255,7 +255,7 @@ "type": "string", "description": "The name of the backup.", "x-ms-parameter-location": "method", - "pattern": "^[a-z0-9][-a-z0-9]*(? Date: Tue, 11 Apr 2023 17:10:15 +0800 Subject: [PATCH 08/11] fix swagger kpi issue --- .../2021-12-01-preview/Configurations.json | 73 +++++++++++++++++++ .../examples/ConfigurationCreateOrUpdate.json | 33 +++++++++ .../stable/2021-12-01/Configurations.json | 73 +++++++++++++++++++ .../examples/ConfigurationCreateOrUpdate.json | 33 +++++++++ .../2021-12-01-preview/FlexibleServers.json | 6 +- .../stable/2021-12-01/FlexibleServers.json | 6 +- 6 files changed, 220 insertions(+), 4 deletions(-) create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/examples/ConfigurationCreateOrUpdate.json create mode 100644 specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json index 37fba5086f45..05b2c36a9c9b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json @@ -35,6 +35,70 @@ }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}": { + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdate", + "x-ms-examples": { + "ConfigurationCreateOrUpdate": { + "$ref": "./examples/ConfigurationCreateOrUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/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", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, "patch": { "tags": [ "Configurations" @@ -259,11 +323,20 @@ "type": "string", "description": "Value of the configuration." }, + "currentValue": { + "type": "string", + "description": "Current value of the configuration." + }, "description": { "type": "string", "readOnly": true, "description": "Description of the configuration." }, + "documentationLink": { + "type": "string", + "readOnly": true, + "description": "The link used to get the document from community or Azure site." + }, "defaultValue": { "type": "string", "readOnly": true, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/examples/ConfigurationCreateOrUpdate.json new file mode 100644 index 000000000000..3f019eb8720d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/examples/ConfigurationCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "configurationName": "event_scheduler", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "value": "off", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "ON", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json index 44f4ec250723..6f220a687219 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json @@ -35,6 +35,70 @@ }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}": { + "put": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_CreateOrUpdate", + "x-ms-examples": { + "ConfigurationCreateOrUpdate": { + "$ref": "./examples/ConfigurationCreateOrUpdate.json" + } + }, + "description": "Updates a configuration of a server.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v2/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", + "headers": { + "Location": { + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + }, "patch": { "tags": [ "Configurations" @@ -269,11 +333,20 @@ "type": "string", "description": "Value of the configuration." }, + "currentValue": { + "type": "string", + "description": "Current value of the configuration." + }, "description": { "type": "string", "readOnly": true, "description": "Description of the configuration." }, + "documentationLink": { + "type": "string", + "readOnly": true, + "description": "The link used to get the document from community or Azure site." + }, "defaultValue": { "type": "string", "readOnly": true, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json new file mode 100644 index 000000000000..6d9ab3bae981 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "configurationName": "event_scheduler", + "serverName": "testserver", + "resourceGroupName": "TestGroup", + "api-version": "2021-12-01", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "parameters": { + "properties": { + "value": "off", + "source": "user-override" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "value": "ON", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "user-override" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/servers/configurations" + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json index 98a1320b988b..bc83ec68a879 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json @@ -584,7 +584,8 @@ "x-ms-enum": { "name": "EnableStatusEnum", "modelAsString": true - } + }, + "default": "Disabled" }, "ReplicationRole": { "type": "string", @@ -597,7 +598,8 @@ "name": "ReplicationRole", "modelAsString": true }, - "description": "The replication role." + "description": "The replication role.", + "readOnly": true }, "DataEncryption": { "type": "object", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json index a47b1acb6ae8..90a883871c58 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json @@ -616,7 +616,8 @@ "x-ms-enum": { "name": "EnableStatusEnum", "modelAsString": true - } + }, + "default": "Disabled" }, "ReplicationRole": { "type": "string", @@ -629,7 +630,8 @@ "name": "ReplicationRole", "modelAsString": true }, - "description": "The replication role." + "description": "The replication role.", + "readOnly": true }, "DataEncryption": { "type": "object", From 623cc80481d8fa6b3c65a0089b6239b0ca85955f Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Wed, 12 Apr 2023 09:55:16 +0800 Subject: [PATCH 09/11] use 2022-01-01 as version --- .../AzureADAdministrator.json | 21 +++-------- .../examples/AzureADAdministratorCreate.json | 2 +- .../examples/AzureADAdministratorDelete.json | 10 +++--- .../examples/AzureADAdministratorGet.json | 2 +- .../AzureADAdministratorsListByServer.json | 2 +- .../{2021-12-01 => 2022-01-01}/Backups.json | 19 +++------- .../examples/BackupGet.json | 2 +- .../examples/BackupPut.json | 2 +- .../examples/BackupsListByServer.json | 2 +- .../Configurations.json | 21 +++-------- .../examples/ConfigurationCreateOrUpdate.json | 2 +- .../examples/ConfigurationGet.json | 2 +- .../examples/ConfigurationUpdate.json | 6 ++-- .../examples/ConfigurationsBatchUpdate.json | 6 ++-- .../examples/ConfigurationsListByServer.json | 2 +- .../{2021-12-01 => 2022-01-01}/Databases.json | 21 +++-------- .../examples/DatabaseCreate.json | 2 +- .../examples/DatabaseDelete.json | 6 ++-- .../examples/DatabaseGet.json | 2 +- .../examples/DatabasesListByServer.json | 2 +- .../FirewallRules.json | 17 ++------- .../examples/FirewallRuleCreate.json | 2 +- .../examples/FirewallRuleDelete.json | 6 ++-- .../examples/FirewallRuleGet.json | 2 +- .../examples/FirewallRulesListByServer.json | 2 +- .../FlexibleServers.json | 35 +++++++------------ .../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 +- .../{2021-12-01 => 2022-01-01}/LogFiles.json | 15 ++------ .../examples/LogFilesListByServer.json | 2 +- .../ServiceOperations.json | 25 ++++--------- .../examples/CapabilitiesByLocationList.json | 2 +- .../examples/CheckNameAvailability.json | 2 +- .../CheckVirtualNetworkSubnetUsage.json | 2 +- .../examples/GetPrivateDnsZoneSuffix.json | 2 +- .../examples/OperationsList.json | 2 +- .../mysql/resource-manager/readme.md | 24 ++++++------- 52 files changed, 126 insertions(+), 214 deletions(-) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/{2021-12-01 => 2022-01-01}/AzureADAdministrator.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/{2021-12-01 => 2022-01-01}/examples/AzureADAdministratorCreate.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/{2021-12-01 => 2022-01-01}/examples/AzureADAdministratorDelete.json (82%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/{2021-12-01 => 2022-01-01}/examples/AzureADAdministratorGet.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/{2021-12-01 => 2022-01-01}/examples/AzureADAdministratorsListByServer.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/{2021-12-01 => 2022-01-01}/Backups.json (92%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/{2021-12-01 => 2022-01-01}/examples/BackupGet.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/{2021-12-01 => 2022-01-01}/examples/BackupPut.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/{2021-12-01 => 2022-01-01}/examples/BackupsListByServer.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/{2021-12-01 => 2022-01-01}/Configurations.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/{2021-12-01 => 2022-01-01}/examples/ConfigurationCreateOrUpdate.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/{2021-12-01 => 2022-01-01}/examples/ConfigurationGet.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/{2021-12-01 => 2022-01-01}/examples/ConfigurationUpdate.json (92%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/{2021-12-01 => 2022-01-01}/examples/ConfigurationsBatchUpdate.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/{2021-12-01 => 2022-01-01}/examples/ConfigurationsListByServer.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/{2021-12-01 => 2022-01-01}/Databases.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/{2021-12-01 => 2022-01-01}/examples/DatabaseCreate.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/{2021-12-01 => 2022-01-01}/examples/DatabaseDelete.json (83%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/{2021-12-01 => 2022-01-01}/examples/DatabaseGet.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/{2021-12-01 => 2022-01-01}/examples/DatabasesListByServer.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/{2021-12-01 => 2022-01-01}/FirewallRules.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/{2021-12-01 => 2022-01-01}/examples/FirewallRuleCreate.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/{2021-12-01 => 2022-01-01}/examples/FirewallRuleDelete.json (83%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/{2021-12-01 => 2022-01-01}/examples/FirewallRuleGet.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/{2021-12-01 => 2022-01-01}/examples/FirewallRulesListByServer.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/FlexibleServers.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ReplicasListByServer.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerCreate.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerCreateReplica.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerCreateWithBYOK.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerCreateWithPointInTimeRestore.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerDelete.json (82%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerFailover.json (82%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerGet.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerGetWithVnet.json (98%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerRestart.json (84%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerStart.json (82%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerStop.json (82%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerUpdate.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerUpdateWithBYOK.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServerUpdateWithCustomerMaintenanceWindow.json (94%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServersList.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/{2021-12-01 => 2022-01-01}/examples/ServersListByResourceGroup.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/{2021-12-01 => 2022-01-01}/LogFiles.json (91%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/{2021-12-01 => 2022-01-01}/examples/LogFilesListByServer.json (97%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/{2021-12-01 => 2022-01-01}/ServiceOperations.json (96%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/{2021-12-01 => 2022-01-01}/examples/CapabilitiesByLocationList.json (99%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/{2021-12-01 => 2022-01-01}/examples/CheckNameAvailability.json (92%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/{2021-12-01 => 2022-01-01}/examples/CheckVirtualNetworkSubnetUsage.json (95%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/{2021-12-01 => 2022-01-01}/examples/GetPrivateDnsZoneSuffix.json (81%) rename specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/{2021-12-01 => 2022-01-01}/examples/OperationsList.json (99%) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/AzureADAdministrator.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/AzureADAdministrator.json index a6ff02b3410d..8ed2829b6420 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -96,7 +96,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -148,7 +148,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -195,7 +195,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -237,7 +237,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -318,17 +318,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorCreate.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorCreate.json index 140ed992a8ee..154b216a2a90 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorCreate.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "parameters": { "properties": { "administratorType": "ActiveDirectory", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorDelete.json similarity index 82% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorDelete.json index a06d06f2e3a1..8c5eff0b8d4c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorDelete.json @@ -4,20 +4,20 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01" + "api-version": "2022-01-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=2021-12-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=2021-12-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-01-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-01-01" } }, "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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorGet.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorGet.json index 62a1696f153a..c4152e87a1d9 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", "administratorName": "ActiveDirectory", - "api-version": "2021-12-01" + "api-version": "2022-01-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorsListByServer.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorsListByServer.json index 9d37e2f60d63..e0d3d1148068 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2021-12-01/examples/AzureADAdministratorsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/examples/AzureADAdministratorsListByServer.json @@ -3,7 +3,7 @@ "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "testrg", "serverName": "mysqltestsvc4", - "api-version": "2021-12-01" + "api-version": "2022-01-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/Backups.json similarity index 92% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/Backups.json index 67543d2710a1..271b3065e890 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -73,7 +73,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -116,7 +116,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -158,7 +158,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -225,17 +225,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupGet.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupGet.json index 6c074cf397bd..dbfff073de31 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupGet.json @@ -3,7 +3,7 @@ "backupName": "daily_20210615T160516", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupPut.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupPut.json index b1968c176def..5d832d2d545c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupPut.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupPut.json @@ -3,7 +3,7 @@ "backupName": "mybackup", "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupsListByServer.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupsListByServer.json index 3d892202d8f9..8b168d6e5041 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2021-12-01/examples/BackupsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/examples/BackupsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/Configurations.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/Configurations.json index 6f220a687219..2f7357a9924e 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -154,7 +154,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -198,7 +198,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -257,7 +257,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -315,7 +315,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -504,17 +504,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationCreateOrUpdate.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationCreateOrUpdate.json index 6d9ab3bae981..c67ea725cdca 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationCreateOrUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationCreateOrUpdate.json @@ -3,7 +3,7 @@ "configurationName": "event_scheduler", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationGet.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationGet.json index 0b04d806db3f..5ec2bd3f568b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationGet.json @@ -3,7 +3,7 @@ "configurationName": "event_scheduler", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationUpdate.json similarity index 92% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationUpdate.json index 8c792e62536c..26671e711525 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationUpdate.json @@ -3,7 +3,7 @@ "serverName": "testserver", "configurationName": "event_scheduler", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationsBatchUpdate.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationsBatchUpdate.json index 414b6ea9ab1c..63fa9332ee2f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsBatchUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationsBatchUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationsListByServer.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationsListByServer.json index eb573847ea4d..1f926d7bbd32 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2021-12-01/examples/ConfigurationsListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/examples/ConfigurationsListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "page": 1, "pageSize": 8 diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json index 3fe8f63437a2..9853bd6ff3a6 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -96,7 +96,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -148,7 +148,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -195,7 +195,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -237,7 +237,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -299,17 +299,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseCreate.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseCreate.json index 14dabf8f00e7..3153e63074d7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseCreate.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseDelete.json similarity index 83% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseDelete.json index 3f8a53ed22ba..c3eb4aa575cb 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseDelete.json @@ -3,15 +3,15 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseGet.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseGet.json index fd11f7a71018..7a7f70cfef14 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabaseGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabaseGet.json @@ -3,7 +3,7 @@ "databaseName": "db1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabasesListByServer.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabasesListByServer.json index 022c2587287d..19accda6daa3 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2021-12-01/examples/DatabasesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/examples/DatabasesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json index c4377887f997..53b1b2e807e1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -195,7 +195,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -237,7 +237,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -308,17 +308,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleCreate.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleCreate.json index ccb4cda8aa33..abd8883eca00 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleCreate.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "properties": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleDelete.json similarity index 83% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleDelete.json index f73907e88eac..3d353740f260 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleDelete.json @@ -3,15 +3,15 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleGet.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleGet.json index 9e8d6a7a0fe1..04bfba6d6599 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRuleGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRuleGet.json @@ -3,7 +3,7 @@ "firewallRuleName": "rule1", "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRulesListByServer.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRulesListByServer.json index 353fec07dbb4..224681ace290 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2021-12-01/examples/FirewallRulesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/examples/FirewallRulesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/FlexibleServers.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/FlexibleServers.json index 90a883871c58..732e546fa435 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -102,7 +102,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -166,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -215,7 +215,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -259,7 +259,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -298,7 +298,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -337,7 +337,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -387,7 +387,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -444,7 +444,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -492,7 +492,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -540,7 +540,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -583,7 +583,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -1145,17 +1145,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ReplicasListByServer.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ReplicasListByServer.json index 5adebfb7bacd..67b49c21a700 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ReplicasListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ReplicasListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreate.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreate.json index 02efa51328e5..96006a3a891a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "sku": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateReplica.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateReplica.json index 384c90f0f93c..4e4b0b2a5271 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateReplica.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateReplica.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "replica-server", "resourceGroupName": "testgr", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateWithBYOK.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateWithBYOK.json index 6f675b21362b..5091ed31e804 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "identity": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateWithPointInTimeRestore.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateWithPointInTimeRestore.json index 62cd696866e4..74e419cf435b 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerCreateWithPointInTimeRestore.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerCreateWithPointInTimeRestore.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "targetserver", "resourceGroupName": "TargetResourceGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "parameters": { "location": "SoutheastAsia", diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerDelete.json similarity index 82% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerDelete.json index 10448d49e8b3..2d5c79b17db7 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerDelete.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerDelete.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } }, "204": {} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerFailover.json similarity index 82% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerFailover.json index c0d89c995aa6..3fcbb5be7b62 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerFailover.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerFailover.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerGet.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerGet.json index 4241345b7bd1..f6d21a0b9a5a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerGet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerGetWithVnet.json similarity index 98% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerGetWithVnet.json index 389ba3bee5f5..d02cfce32383 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerGetWithVnet.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerGetWithVnet.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerRestart.json similarity index 84% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerRestart.json index d4cd3202c421..c08b9a458a01 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerRestart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerRestart.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerStart.json similarity index 82% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerStart.json index c0d89c995aa6..3fcbb5be7b62 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStart.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerStart.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerStop.json similarity index 82% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerStop.json index c0d89c995aa6..3fcbb5be7b62 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerStop.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerStop.json @@ -2,15 +2,15 @@ "parameters": { "serverName": "testserver", "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdate.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdate.json index 210237da7f61..5f7cd71fbe25 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdate.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdate.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdateWithBYOK.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdateWithBYOK.json index 4a37de057a79..9a9c084e78e8 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithBYOK.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdateWithBYOK.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json similarity index 94% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json index 034db5fd7f54..78ce10ddf25a 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServerUpdateWithCustomerMaintenanceWindow.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestserver", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-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", - "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" + "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-01-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-01-01" } } } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServersList.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServersList.json index 1a298924b92d..37151f7100cd 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServersList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServersListByResourceGroup.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServersListByResourceGroup.json index c942657448c9..c65812c04e03 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/examples/ServersListByResourceGroup.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/stable/2022-01-01/examples/ServersListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "TestGroup", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-01-01/LogFiles.json similarity index 91% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-01-01/LogFiles.json index 922dce95d976..5ddaededc5a1 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -70,7 +70,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -147,17 +147,6 @@ } }, "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-01-01/examples/LogFilesListByServer.json similarity index 97% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-01-01/examples/LogFilesListByServer.json index 9b32a2f3584b..cfc713c5a221 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/examples/LogFilesListByServer.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/LogFiles/stable/2022-01-01/examples/LogFilesListByServer.json @@ -2,7 +2,7 @@ "parameters": { "serverName": "mysqltestsvc1", "resourceGroupName": "testrg", - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" }, "responses": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/ServiceOperations.json similarity index 96% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/ServiceOperations.json index 748f2e29c420..c7315957cb76 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-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" + "version": "2022-01-01" }, "host": "management.azure.com", "schemes": [ @@ -67,7 +67,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -118,7 +118,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -166,7 +166,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -211,7 +211,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -244,7 +244,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -277,7 +277,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -620,17 +620,6 @@ "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": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CapabilitiesByLocationList.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CapabilitiesByLocationList.json index 619b820b3012..17c503d18aaa 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CapabilitiesByLocationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CapabilitiesByLocationList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS" }, diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CheckNameAvailability.json similarity index 92% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CheckNameAvailability.json index 5a334f06f92d..33e3792b3c54 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckNameAvailability.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CheckNameAvailability.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "SouthEastAsia", "nameAvailabilityRequest": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CheckVirtualNetworkSubnetUsage.json similarity index 95% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CheckVirtualNetworkSubnetUsage.json index 00e5e6c6ede7..9358fdcfa624 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/CheckVirtualNetworkSubnetUsage.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/CheckVirtualNetworkSubnetUsage.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01", + "api-version": "2022-01-01", "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "locationName": "WestUS", "parameters": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/GetPrivateDnsZoneSuffix.json similarity index 81% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/GetPrivateDnsZoneSuffix.json index 699ff043ee8a..9368edaa27ac 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/GetPrivateDnsZoneSuffix.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/GetPrivateDnsZoneSuffix.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01" + "api-version": "2022-01-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/OperationsList.json similarity index 99% rename from specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json rename to specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/OperationsList.json index f3861ad653e2..e95d5e49966f 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/examples/OperationsList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2022-01-01/examples/OperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-12-01" + "api-version": "2022-01-01" }, "responses": { "200": { diff --git a/specification/mysql/resource-manager/readme.md b/specification/mysql/resource-manager/readme.md index 9950b60a2612..03b41aa7be4b 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 +tag: package-flexibleserver-2022-01-01 ``` ``` yaml $(package-singleservers) @@ -160,20 +160,20 @@ input-file: - Microsoft.DBforMySQL/AAD/preview/2021-12-01-preview/AzureADAdministrator.json ``` -### Tag: package-flexibleserver-2021-12-01 +### Tag: package-flexibleserver-2022-01-01 -These settings apply only when `--tag=package-flexibleserver-2021-12-01` 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-2021-12-01' +``` yaml $(tag) == 'package-flexibleserver-2022-01-01' input-file: -- Microsoft.DBforMySQL/Backups/stable/2021-12-01/Backups.json -- Microsoft.DBforMySQL/Configurations/stable/2021-12-01/Configurations.json -- Microsoft.DBforMySQL/Databases/stable/2021-12-01/Databases.json -- Microsoft.DBforMySQL/Firewall/stable/2021-12-01/FirewallRules.json -- Microsoft.DBforMySQL/FlexibleServers/stable/2021-12-01/FlexibleServers.json -- Microsoft.DBforMySQL/LogFiles/stable/2021-12-01/LogFiles.json -- Microsoft.DBforMySQL/ServiceOperations/stable/2021-12-01/ServiceOperations.json -- Microsoft.DBforMySQL/AAD/stable/2021-12-01/AzureADAdministrator.json +- 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 ``` ## Suppression From 53a8b871cdf6042914098f14452569742a7a8397 Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Wed, 12 Apr 2023 10:13:42 +0800 Subject: [PATCH 10/11] fix errorResponse --- .../Firewall/stable/2022-01-01/FirewallRules.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json index 53b1b2e807e1..9c9d05e89c31 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json @@ -96,7 +96,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -148,7 +148,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, From f45cc4a41e3f6fd4cabbb755f70e636985d58f9e Mon Sep 17 00:00:00 2001 From: Xiaoxu Qi Date: Thu, 13 Apr 2023 11:20:51 +0800 Subject: [PATCH 11/11] remove pattern for prettier check --- .../Databases/stable/2022-01-01/Databases.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json index 9853bd6ff3a6..ec27a4869b8c 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json @@ -317,8 +317,7 @@ "required": true, "type": "string", "description": "The name of the database.", - "x-ms-parameter-location": "method", - "pattern": "^([0-9,a-z,A-Z$_,\\-,\u0080-\uFFFF])+$" + "x-ms-parameter-location": "method" } } }