diff --git a/schemas/2021-12-01-preview/Microsoft.DBforMySQL.json b/schemas/2021-12-01-preview/Microsoft.DBforMySQL.json index 6e51c6e6a7..984f8f06ed 100644 --- a/schemas/2021-12-01-preview/Microsoft.DBforMySQL.json +++ b/schemas/2021-12-01-preview/Microsoft.DBforMySQL.json @@ -50,6 +50,9 @@ { "$ref": "#/definitions/flexibleServers_backups_childResource" }, + { + "$ref": "#/definitions/flexibleServers_configurations_childResource" + }, { "$ref": "#/definitions/flexibleServers_databases_childResource" }, @@ -178,6 +181,45 @@ ], "description": "Microsoft.DBforMySQL/flexibleServers/backups" }, + "flexibleServers_configurations": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-12-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the server configuration." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ConfigurationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a configuration." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.DBforMySQL/flexibleServers/configurations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, "flexibleServers_databases": { "type": "object", "properties": { @@ -326,6 +368,35 @@ }, "description": "Storage Profile properties of a server" }, + "ConfigurationProperties": { + "type": "object", + "properties": { + "currentValue": { + "type": "string", + "description": "Current value of the configuration." + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "system-default", + "user-override" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Source of the configuration." + }, + "value": { + "type": "string", + "description": "Value of the configuration." + } + }, + "description": "The properties of a configuration." + }, "DatabaseProperties": { "type": "object", "properties": { @@ -480,6 +551,45 @@ ], "description": "Microsoft.DBforMySQL/flexibleServers/backups" }, + "flexibleServers_configurations_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-12-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the server configuration." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ConfigurationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of a configuration." + }, + "type": { + "type": "string", + "enum": [ + "configurations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, "flexibleServers_databases_childResource": { "type": "object", "properties": { diff --git a/schemas/2022-01-01/Microsoft.DBforMySQL.json b/schemas/2022-01-01/Microsoft.DBforMySQL.json new file mode 100644 index 0000000000..9fbed2cb3a --- /dev/null +++ b/schemas/2022-01-01/Microsoft.DBforMySQL.json @@ -0,0 +1,1077 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-01-01/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": [ + "2022-01-01" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/Identity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties to configure Identity for Bring your Own Keys" + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-z0-9][-a-z0-9]*(?