다음을 통해 공유


PostgreSqlMigrationData Class

Definition

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
PostgreSqlMigrationData
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)
MigrationId

ID for migration, a GUID.

MigrationMode

There are two types of migration modes Online and Offline.

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 or ip. It is a optional value, if customer provide it, dms will always use it for connection.

SourceDbServerMetadata

Metadata of the source database server.

SourceDbServerResourceId

ResourceId of the source database server.

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 or ip. It is a optional value, if customer provide it, dms 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) (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.

Applies to