diff --git a/schemas/2017-12-01-preview/Microsoft.DBforMySQL.json b/schemas/2017-12-01-preview/Microsoft.DBforMySQL.json index fddda4ba4b..840b33248c 100644 --- a/schemas/2017-12-01-preview/Microsoft.DBforMySQL.json +++ b/schemas/2017-12-01-preview/Microsoft.DBforMySQL.json @@ -275,7 +275,7 @@ "oneOf": [ { "type": "string", - "pattern": "^.*/Default$" + "pattern": "^.*/default$" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -889,7 +889,7 @@ "name": { "type": "string", "enum": [ - "Default" + "default" ], "description": "The name of the threat detection policy." }, diff --git a/schemas/2017-12-01/Microsoft.DBforMySQL.json b/schemas/2017-12-01/Microsoft.DBforMySQL.json index bc0597da88..19cef92e07 100644 --- a/schemas/2017-12-01/Microsoft.DBforMySQL.json +++ b/schemas/2017-12-01/Microsoft.DBforMySQL.json @@ -64,6 +64,12 @@ }, { "$ref": "#/definitions/servers_securityAlertPolicies_childResource" + }, + { + "$ref": "#/definitions/servers_privateEndpointConnections_childResource" + }, + { + "$ref": "#/definitions/servers_keys_childResource" } ] } @@ -112,72 +118,6 @@ }, "servers_Administrators": { "type": "object", - "oneOf": [ - { - "type": "object", - "properties": { - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/activeDirectory$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - } - }, - "required": [ - "name", - "properties" - ], - "description": "Microsoft.DBforMySQL/servers/Administrators" - }, - { - "type": "object", - "properties": { - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^.*/activeDirectory$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - } - }, - "required": [ - "name", - "properties" - ], - "description": "Microsoft.DBforMySQL/servers/Administrators" - } - ], "properties": { "apiVersion": { "type": "string", @@ -185,6 +125,28 @@ "2017-12-01" ] }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/activeDirectory$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerAdministratorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of an server Administrator." + }, "type": { "type": "string", "enum": [ @@ -194,6 +156,8 @@ }, "required": [ "apiVersion", + "name", + "properties", "type" ], "description": "Microsoft.DBforMySQL/servers/Administrators" @@ -315,6 +279,84 @@ ], "description": "Microsoft.DBforMySQL/servers/firewallRules" }, + "servers_keys": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-12-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the MySQL Server key to be operated on (updated or created)." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerKeyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties for a key execution." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforMySQL/servers/keys" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/servers/keys" + }, + "servers_privateEndpointConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-12-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the private endpoint connection." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of a private endpoint connection." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforMySQL/servers/privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/servers/privateEndpointConnections" + }, "servers_securityAlertPolicies": { "type": "object", "properties": { @@ -465,6 +507,58 @@ ], "description": "The properties of a server firewall rule." }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "privateLinkServiceConnectionState": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "Properties of a private endpoint connection." + }, + "PrivateEndpointProperty": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource id of the private endpoint." + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The private link service connection description." + }, + "status": { + "type": "string", + "description": "The private link service connection status." + } + }, + "required": [ + "description", + "status" + ] + }, "ResourceIdentity": { "type": "object", "properties": { @@ -621,6 +715,33 @@ ], "description": "The properties of an server Administrator." }, + "ServerKeyProperties": { + "type": "object", + "properties": { + "serverKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AzureKeyVault" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key type like 'AzureKeyVault'." + }, + "uri": { + "type": "string", + "description": "The URI of the key." + } + }, + "required": [ + "serverKeyType" + ], + "description": "Properties for a key execution." + }, "ServerPropertiesForCreate": { "type": "object", "oneOf": [ @@ -730,68 +851,6 @@ }, "description": "The properties used to create a new server." }, - "ServerPropertiesForCreateModel": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/ServerPropertiesForDefaultCreateModel" - }, - { - "$ref": "#/definitions/ServerPropertiesForRestoreModel" - }, - { - "$ref": "#/definitions/ServerPropertiesForGeoRestoreModel" - }, - { - "$ref": "#/definitions/ServerPropertiesForReplicaModel" - } - ], - "properties": { - "sslEnforcement": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable ssl enforcement or not when connect to server." - }, - "storageProfile": { - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage Profile properties of a server" - }, - "version": { - "oneOf": [ - { - "type": "string", - "enum": [ - "5.6", - "5.7", - "8.0" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Server version." - } - }, - "description": "The properties used to create a new server." - }, "ServerPropertiesForDefaultCreate": { "type": "object", "properties": { @@ -818,32 +877,6 @@ ], "description": "The properties used to create a new server." }, - "ServerPropertiesForDefaultCreateModel": { - "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)." - }, - "administratorLoginPassword": { - "type": "string", - "format": "password", - "description": "The password of the administrator login." - }, - "createMode": { - "type": "string", - "enum": [ - "Default" - ] - } - }, - "required": [ - "administratorLogin", - "administratorLoginPassword", - "createMode" - ], - "description": "The properties used to create a new server." - }, "ServerPropertiesForGeoRestore": { "type": "object", "properties": { @@ -864,26 +897,6 @@ ], "description": "The properties used to create a new server by restoring to a different region from a geo replicated backup." }, - "ServerPropertiesForGeoRestoreModel": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "GeoRestore" - ] - }, - "sourceServerId": { - "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "createMode", - "sourceServerId" - ], - "description": "The properties used to create a new server by restoring to a different region from a geo replicated backup." - }, "ServerPropertiesForReplica": { "type": "object", "properties": { @@ -904,26 +917,6 @@ ], "description": "The properties to create a new replica." }, - "ServerPropertiesForReplicaModel": { - "type": "object", - "properties": { - "createMode": { - "type": "string", - "enum": [ - "Replica" - ] - }, - "sourceServerId": { - "type": "string", - "description": "The master server id to create replica from." - } - }, - "required": [ - "createMode", - "sourceServerId" - ], - "description": "The properties to create a new replica." - }, "ServerPropertiesForRestore": { "type": "object", "properties": { @@ -950,96 +943,31 @@ ], "description": "The properties used to create a new server by restoring from a backup." }, - "ServerPropertiesForRestoreModel": { + "servers_Administrators_childResource": { "type": "object", "properties": { - "createMode": { + "apiVersion": { "type": "string", "enum": [ - "PointInTimeRestore" + "2017-12-01" ] }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." - }, - "sourceServerId": { + "name": { "type": "string", - "description": "The source server id to restore from." - } - }, - "required": [ - "createMode", - "restorePointInTime", - "sourceServerId" - ], - "description": "The properties used to create a new server by restoring from a backup." - }, - "servers_Administrators_childResource": { - "type": "object", - "oneOf": [ - { - "type": "object", - "properties": { - "name": { - "type": "string", - "enum": [ - "activeDirectory" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." - } - }, - "required": [ - "name", - "properties" - ], - "description": "Microsoft.DBforMySQL/servers/Administrators" + "enum": [ + "activeDirectory" + ] }, - { - "type": "object", - "properties": { - "name": { - "type": "string", - "enum": [ - "activeDirectory" - ] + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerAdministratorProperties" }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ServerAdministratorProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an server Administrator." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - }, - "required": [ - "name", - "properties" ], - "description": "Microsoft.DBforMySQL/servers/Administrators" - } - ], - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2017-12-01" - ] + "description": "The properties of an server Administrator." }, "type": { "type": "string", @@ -1050,6 +978,8 @@ }, "required": [ "apiVersion", + "name", + "properties", "type" ], "description": "Microsoft.DBforMySQL/servers/Administrators" @@ -1171,6 +1101,84 @@ ], "description": "Microsoft.DBforMySQL/servers/firewallRules" }, + "servers_keys_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-12-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the MySQL Server key to be operated on (updated or created)." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerKeyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties for a key execution." + }, + "type": { + "type": "string", + "enum": [ + "keys" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/servers/keys" + }, + "servers_privateEndpointConnections_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-12-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the private endpoint connection." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of a private endpoint connection." + }, + "type": { + "type": "string", + "enum": [ + "privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/servers/privateEndpointConnections" + }, "servers_securityAlertPolicies_childResource": { "type": "object", "properties": { diff --git a/schemas/2020-01-01-privatepreview/Microsoft.DBforMySQL.json b/schemas/2020-01-01-privatepreview/Microsoft.DBforMySQL.json new file mode 100644 index 0000000000..c509af616b --- /dev/null +++ b/schemas/2020-01-01-privatepreview/Microsoft.DBforMySQL.json @@ -0,0 +1,76 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-01-01-privatepreview/Microsoft.DBforMySQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBforMySQL", + "description": "Microsoft DBforMySQL Resource Types", + "resourceDefinitions": { + "servers_keys": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-01-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the MySQL Server key to be operated on (updated or created)." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerKeyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties for a key execution." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforMySQL/servers/keys" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/servers/keys" + } + }, + "definitions": { + "ServerKeyProperties": { + "type": "object", + "properties": { + "serverKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AzureKeyVault" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key type like 'AzureKeyVault'." + }, + "uri": { + "type": "string", + "description": "The URI of the key." + } + }, + "required": [ + "serverKeyType" + ], + "description": "Properties for a key execution." + } + } +} \ No newline at end of file diff --git a/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json b/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json new file mode 100644 index 0000000000..97f3202f96 --- /dev/null +++ b/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json @@ -0,0 +1,730 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBForMySql", + "description": "Microsoft DBForMySql Resource Types", + "resourceDefinitions": { + "flexibleServers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/Identity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Identity for the resource." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the server." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ServerProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/flexibleServers_firewallRules_childResource" + }, + { + "$ref": "#/definitions/flexibleServers_databases_childResource" + }, + { + "$ref": "#/definitions/flexibleServers_maintenanceWindows_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Billing information related properties of a server." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForMySql/flexibleServers" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers" + }, + "flexibleServers_databases": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the database." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DatabaseProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a database." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForMySql/flexibleServers/databases" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers/databases" + }, + "flexibleServers_firewallRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the server firewall rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FirewallRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server firewall rule." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForMySql/flexibleServers/firewallRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers/firewallRules" + }, + "flexibleServers_maintenanceWindows": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the maintenance window." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MaintenanceWindowProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server maintenance window." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBForMySql/flexibleServers/maintenanceWindows" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers/maintenanceWindows" + } + }, + "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." + }, + "FirewallRuleProperties": { + "type": "object", + "properties": { + "endIpAddress": { + "oneOf": [ + { + "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])$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The end IP address of the server firewall rule. Must be IPv4 format." + }, + "startIpAddress": { + "oneOf": [ + { + "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])$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The start IP address of the server firewall rule. Must be IPv4 format." + } + }, + "required": [ + "endIpAddress", + "startIpAddress" + ], + "description": "The properties of a server firewall rule." + }, + "flexibleServers_databases_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the database." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DatabaseProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a database." + }, + "type": { + "type": "string", + "enum": [ + "databases" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers/databases" + }, + "flexibleServers_firewallRules_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the server firewall rule." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FirewallRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server firewall rule." + }, + "type": { + "type": "string", + "enum": [ + "firewallRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers/firewallRules" + }, + "flexibleServers_maintenanceWindows_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-07-01-privatepreview" + ] + }, + "name": { + "type": "string", + "description": "The name of the maintenance window." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MaintenanceWindowProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a server maintenance window." + }, + "type": { + "type": "string", + "enum": [ + "maintenanceWindows" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBForMySql/flexibleServers/maintenanceWindows" + }, + "Identity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SystemAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The identity type." + } + }, + "description": "Identity for the resource." + }, + "MaintenanceWindowProperties": { + "type": "object", + "properties": { + "dayOfWeek": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The day of week of the maintenance window to start" + }, + "durationInMinutes": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The duration of the maintenance window to run." + }, + "startHour": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The starting hour of the maintenance window." + }, + "startMinute": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The starting minutes of the maintenance window." + } + }, + "required": [ + "dayOfWeek", + "startHour", + "startMinute" + ], + "description": "The properties of a server maintenance window." + }, + "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)." + }, + "administratorLoginPassword": { + "type": "string", + "format": "password", + "description": "The password of the administrator login (required for server creation)." + }, + "createMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Default", + "PointInTimeRestore", + "Replica" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The mode to create a new MySQL server." + }, + "earliestRestoreDate": { + "type": "string", + "format": "date-time", + "description": "Earliest restore point creation time (ISO8601 format)" + }, + "infrastructureEncryption": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status showing whether the server enabled infrastructure encryption." + }, + "publicNetworkAccess": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'." + }, + "replicaCapacity": { + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The maximum number of replicas that a primary server can have." + }, + "replicationRole": { + "type": "string", + "description": "The replication role." + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Restore point creation time (ISO8601 format), specifying the time to restore from." + }, + "sourceServerId": { + "type": "string", + "description": "The source MySQL server name to restore from." + }, + "sslEnforcement": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable ssl enforcement or not when connect to server." + }, + "standbyCount": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "stand by count value can be either 0 or 1" + }, + "storageProfile": { + "oneOf": [ + { + "$ref": "#/definitions/StorageProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage Profile properties of a server" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Application-specific metadata in the form of key-value pairs." + }, + "version": { + "oneOf": [ + { + "type": "string", + "enum": [ + "5.7" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Server version." + }, + "vnetInjArgs": { + "oneOf": [ + { + "$ref": "#/definitions/VnetInjArgs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Vnet properties of a server" + } + }, + "description": "The properties of a server." + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, e.g. Standard_D32s_v3." + }, + "tier": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Burstable", + "GeneralPurpose", + "MemoryOptimized" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The tier of the particular SKU, e.g. GeneralPurpose." + } + }, + "description": "Billing information related properties of a server." + }, + "StorageProfile": { + "type": "object", + "properties": { + "backupRetentionDays": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Backup retention days for the server." + }, + "storageAutogrow": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable Storage Auto Grow." + }, + "storageIops": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage IOPS for a server." + }, + "storageMB": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Max storage allowed for a server." + } + }, + "description": "Storage Profile properties of a server" + }, + "VnetInjArgs": { + "type": "object", + "properties": { + "delegatedSubnetName": { + "type": "string", + "description": "delegated subnet name" + }, + "delegatedVnetID": { + "type": "string", + "description": "delegated vNet ID" + }, + "delegatedVnetName": { + "type": "string", + "description": "delegated vNet name" + } + }, + "description": "Vnet properties of a server" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index a18ff59272..abeef5be99 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -1993,6 +1993,12 @@ { "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforMySQL.json#/resourceDefinitions/servers_firewallRules" }, + { + "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforMySQL.json#/resourceDefinitions/servers_keys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforMySQL.json#/resourceDefinitions/servers_privateEndpointConnections" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforMySQL.json#/resourceDefinitions/servers_securityAlertPolicies" }, @@ -2029,6 +2035,21 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.DBforMySQL.json#/resourceDefinitions/servers_securityAlertPolicies" }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-01-01-privatepreview/Microsoft.DBforMySQL.json#/resourceDefinitions/servers_keys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers_databases" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers_firewallRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-07-01-privatepreview/Microsoft.DBforMySQL.json#/resourceDefinitions/flexibleServers_maintenanceWindows" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-12-01/Microsoft.DBforPostgreSQL.json#/resourceDefinitions/servers" },