forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 22943 in Azure/azure-rest-api-specs
{AzurePostgreSQL} fixes Azure/azure-rest-api-specs#22851 Data encryption type enum should be SystemManaged (#22943) merged with breaking change approved.
- Loading branch information
SDKAuto
committed
Mar 9, 2023
1 parent
f0c32b9
commit 97f3429
Showing
4 changed files
with
254 additions
and
938 deletions.
There are no files selected for viewing
251 changes: 251 additions & 0 deletions
251
schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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." | ||
} | ||
} | ||
} |
Oops, something went wrong.