你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PostgreSqlMigrationPatch Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a migration resource for patch.
public class PostgreSqlMigrationPatch : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationPatch>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationPatch>
type PostgreSqlMigrationPatch = class
interface IJsonModel<PostgreSqlMigrationPatch>
interface IPersistableModel<PostgreSqlMigrationPatch>
Public Class PostgreSqlMigrationPatch
Implements IJsonModel(Of PostgreSqlMigrationPatch), IPersistableModel(Of PostgreSqlMigrationPatch)
- Inheritance
-
PostgreSqlMigrationPatch
- Implements
Constructors
PostgreSqlMigrationPatch() |
Initializes a new instance of PostgreSqlMigrationPatch. |
Properties
Cancel |
To trigger cancel for entire migration we need to send this flag as True. |
DbsToCancelMigrationOn |
When you want to trigger cancel for specific databases send cancel flag as True and database names in this array. |
DbsToMigrate |
Number of databases to migrate. |
DbsToTriggerCutoverOn |
When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array. |
MigrateRoles |
To migrate roles and permissions we need to send this flag as True. |
MigrationMode |
There are two types of migration modes Online and Offline. |
MigrationWindowStartTimeInUtc |
Start time in UTC for migration window. |
OverwriteDbsInTarget |
Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists. |
SecretParameters |
Migration secret parameters. |
SetupLogicalReplicationOnSourceDbIfNeeded |
Indicates whether to setup LogicalReplicationOnSourceDb, if needed. |
SourceDbServerFullyQualifiedDomainName |
Source server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration service will always use it for connection. |
SourceDbServerResourceId |
ResourceId of the source database server. |
StartDataMigration |
Indicates whether the data migration should start right away. |
Tags |
Application-specific metadata in the form of key-value pairs. |
TargetDbServerFullyQualifiedDomainName |
Target server fully qualified domain name (FQDN) or IP address. It is a optional value, if customer provide it, migration service will always use it for connection. |
TriggerCutover |
To trigger cutover for entire migration we need to send this flag as True. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<PostgreSqlMigrationPatch>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<PostgreSqlMigrationPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<PostgreSqlMigrationPatch>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<PostgreSqlMigrationPatch>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<PostgreSqlMigrationPatch>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |