你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PostgreSqlMigrationData 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.
A class representing the PostgreSqlMigration data model. Represents a migration resource.
public class PostgreSqlMigrationData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlMigrationData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlMigrationData>
type PostgreSqlMigrationData = class
inherit TrackedResourceData
interface IJsonModel<PostgreSqlMigrationData>
interface IPersistableModel<PostgreSqlMigrationData>
Public Class PostgreSqlMigrationData
Inherits TrackedResourceData
Implements IJsonModel(Of PostgreSqlMigrationData), IPersistableModel(Of PostgreSqlMigrationData)
- Inheritance
- Implements
Constructors
PostgreSqlMigrationData(AzureLocation) |
Initializes a new instance of PostgreSqlMigrationData. |
Properties
Cancel |
To trigger cancel for entire migration we need to send this flag as True. |
CurrentStatus |
Current status of migration. |
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. |
Id |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. (Inherited from ResourceData) |
Location |
The geo-location where the resource lives. (Inherited from TrackedResourceData) |
MigrateRoles |
To migrate roles and permissions we need to send this flag as True. |
MigrationId |
ID for migration, a GUID. |
MigrationInstanceResourceId |
ResourceId of the private endpoint migration instance. |
MigrationMode |
There are two types of migration modes Online and Offline. |
MigrationOption |
This indicates the supported Migration option for the migration. |
MigrationWindowEndTimeInUtc |
End time in UTC for migration window. |
MigrationWindowStartTimeInUtc |
Start time in UTC for migration window. |
Name |
The name of the resource. (Inherited from ResourceData) |
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. |
ResourceType |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". (Inherited from ResourceData) |
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. |
SourceDbServerMetadata |
Metadata of the source database server. |
SourceDbServerResourceId |
ResourceId of the source database server in case the sourceType is PostgreSQLSingleServer. For other source types this should be ipaddress:port@username or hostname:port@username. |
SourceType |
migration source server type : OnPremises, AWS, GCP, AzureVM, PostgreSQLSingleServer, AWS_RDS, AWS_AURORA, AWS_EC2, GCP_CloudSQL, GCP_AlloyDB, GCP_Compute, or EDB. |
SslMode |
SSL modes for migration. Default SSL mode for PostgreSQLSingleServer is VerifyFull and Prefer for other source types. |
StartDataMigration |
Indicates whether the data migration should start right away. |
SystemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. (Inherited from ResourceData) |
Tags |
Resource tags. (Inherited from TrackedResourceData) |
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. |
TargetDbServerMetadata |
Metadata of the target database server. |
TargetDbServerResourceId |
ResourceId of the source database server. |
TriggerCutover |
To trigger cutover for entire migration we need to send this flag as True. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | (Inherited from TrackedResourceData) |
Explicit Interface Implementations
IJsonModel<PostgreSqlMigrationData>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<PostgreSqlMigrationData>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<PostgreSqlMigrationData>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<PostgreSqlMigrationData>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<PostgreSqlMigrationData>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |