diff --git a/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json b/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json new file mode 100644 index 0000000000..8c7bb311f2 --- /dev/null +++ b/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json @@ -0,0 +1,251 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.DBforPostgreSQL", + "description": "Microsoft DBforPostgreSQL Resource Types", + "resourceDefinitions": { + "flexibleServers_migrations": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-z][a-z0-9]*$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the migration." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MigrationResourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Migration resource properties." + }, + "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.DBforPostgreSQL/flexibleServers/migrations" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.DBforPostgreSQL/flexibleServers/migrations" + } + }, + "definitions": { + "AdminCredentials": { + "type": "object", + "properties": { + "sourceServerPassword": { + "type": "string" + }, + "targetServerPassword": { + "type": "string" + } + }, + "required": [ + "sourceServerPassword", + "targetServerPassword" + ], + "description": "Server admin credentials." + }, + "MigrationResourceProperties": { + "type": "object", + "properties": { + "cancel": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "To trigger cancel for entire migration we need to send this flag as true" + }, + "dBsToCancelMigrationOn": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When you want to trigger cancel for specific databases send triggerCutover flag as true and database names in this array" + }, + "dBsToMigrate": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "dBsToTiggerCutoverOn": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When you want to trigger cutover for specific databases send triggerCutover flag as true and database names in this array" + }, + "migrationMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Offline", + "Online" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "There are two types of migration modes Online and Offline." + }, + "migrationWindowStartTimeInUtc": { + "type": "string", + "format": "date-time" + }, + "overwriteDBsInTarget": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "secretParameters": { + "oneOf": [ + { + "$ref": "#/definitions/MigrationSecretParameters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Migration secret parameters." + }, + "setupLogicalReplicationOnSourceDBIfNeeded": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "sourceDBServerFullyQualifiedDomainName": { + "type": "string" + }, + "sourceDBServerResourceId": { + "type": "string" + }, + "startDataMigration": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "targetDBServerFullyQualifiedDomainName": { + "type": "string" + }, + "triggerCutover": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "To trigger cutover for entire migration we need to send this flag as true" + } + }, + "description": "Migration resource properties." + }, + "MigrationSecretParameters": { + "type": "object", + "properties": { + "adminCredentials": { + "oneOf": [ + { + "$ref": "#/definitions/AdminCredentials" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Server admin credentials." + } + }, + "required": [ + "adminCredentials" + ], + "description": "Migration secret parameters." + } + } +} \ No newline at end of file diff --git a/schemas/2022-11-08/Microsoft.DBforPostgreSQL.json b/schemas/2022-11-08/Microsoft.DBforPostgreSQL.json deleted file mode 100644 index 74aef4ea3f..0000000000 --- a/schemas/2022-11-08/Microsoft.DBforPostgreSQL.json +++ /dev/null @@ -1,920 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2022-11-08/Microsoft.DBforPostgreSQL.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.DBforPostgreSQL", - "description": "Microsoft DBforPostgreSQL Resource Types", - "resourceDefinitions": { - "serverGroupsv2": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2022-11-08" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^(?![0-9]+$)(?!-)[a-z0-9-]{3,40}(?