ArmPostgreSqlFlexibleServersModelFactory.PostgreSqlMigrationData Method
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.
Overloads
PostgreSqlMigrationData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, String, PostgreSqlMigrationStatus, Nullable<PostgreSqlMigrationMode>, PostgreSqlServerMetadata, PostgreSqlServerMetadata, ResourceIdentifier, String, ResourceIdentifier, String, PostgreSqlMigrationSecretParameters, IEnumerable<String>, Nullable<PostgreSqlMigrationLogicalReplicationOnSourceDb>, Nullable<PostgreSqlMigrationOverwriteDbsInTarget>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<PostgreSqlMigrationStartDataMigration>, Nullable<PostgreSqlMigrationTriggerCutover>, IEnumerable<String>, Nullable<PostgreSqlMigrationCancel>, IEnumerable<String>)
Initializes a new instance of PostgreSqlMigrationData.
public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlMigrationData PostgreSqlMigrationData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string migrationId = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStatus currentStatus = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationMode? migrationMode = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata sourceDbServerMetadata = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata targetDbServerMetadata = default, Azure.Core.ResourceIdentifier sourceDbServerResourceId = default, string sourceDbServerFullyQualifiedDomainName = default, Azure.Core.ResourceIdentifier targetDbServerResourceId = default, string targetDbServerFullyQualifiedDomainName = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationSecretParameters secretParameters = default, System.Collections.Generic.IEnumerable<string> dbsToMigrate = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationLogicalReplicationOnSourceDb? setupLogicalReplicationOnSourceDbIfNeeded = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationOverwriteDbsInTarget? overwriteDbsInTarget = default, DateTimeOffset? migrationWindowStartTimeInUtc = default, DateTimeOffset? migrationWindowEndTimeInUtc = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStartDataMigration? startDataMigration = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationTriggerCutover? triggerCutover = default, System.Collections.Generic.IEnumerable<string> dbsToTriggerCutoverOn = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationCancel? cancel = default, System.Collections.Generic.IEnumerable<string> dbsToCancelMigrationOn = default);
static member PostgreSqlMigrationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStatus * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationMode> * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata * Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceIdentifier * string * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationSecretParameters * seq<string> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationLogicalReplicationOnSourceDb> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationOverwriteDbsInTarget> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStartDataMigration> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationTriggerCutover> * seq<string> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationCancel> * seq<string> -> Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlMigrationData
Public Shared Function PostgreSqlMigrationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional migrationId As String = Nothing, Optional currentStatus As PostgreSqlMigrationStatus = Nothing, Optional migrationMode As Nullable(Of PostgreSqlMigrationMode) = Nothing, Optional sourceDbServerMetadata As PostgreSqlServerMetadata = Nothing, Optional targetDbServerMetadata As PostgreSqlServerMetadata = Nothing, Optional sourceDbServerResourceId As ResourceIdentifier = Nothing, Optional sourceDbServerFullyQualifiedDomainName As String = Nothing, Optional targetDbServerResourceId As ResourceIdentifier = Nothing, Optional targetDbServerFullyQualifiedDomainName As String = Nothing, Optional secretParameters As PostgreSqlMigrationSecretParameters = Nothing, Optional dbsToMigrate As IEnumerable(Of String) = Nothing, Optional setupLogicalReplicationOnSourceDbIfNeeded As Nullable(Of PostgreSqlMigrationLogicalReplicationOnSourceDb) = Nothing, Optional overwriteDbsInTarget As Nullable(Of PostgreSqlMigrationOverwriteDbsInTarget) = Nothing, Optional migrationWindowStartTimeInUtc As Nullable(Of DateTimeOffset) = Nothing, Optional migrationWindowEndTimeInUtc As Nullable(Of DateTimeOffset) = Nothing, Optional startDataMigration As Nullable(Of PostgreSqlMigrationStartDataMigration) = Nothing, Optional triggerCutover As Nullable(Of PostgreSqlMigrationTriggerCutover) = Nothing, Optional dbsToTriggerCutoverOn As IEnumerable(Of String) = Nothing, Optional cancel As Nullable(Of PostgreSqlMigrationCancel) = Nothing, Optional dbsToCancelMigrationOn As IEnumerable(Of String) = Nothing) As PostgreSqlMigrationData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- migrationId
- String
ID for migration, a GUID.
- currentStatus
- PostgreSqlMigrationStatus
Current status of migration.
- migrationMode
- Nullable<PostgreSqlMigrationMode>
There are two types of migration modes Online and Offline.
- sourceDbServerMetadata
- PostgreSqlServerMetadata
Metadata of the source database server.
- targetDbServerMetadata
- PostgreSqlServerMetadata
Metadata of the target database server.
- sourceDbServerResourceId
- ResourceIdentifier
ResourceId of the source database server.
- sourceDbServerFullyQualifiedDomainName
- String
Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection.
- targetDbServerResourceId
- ResourceIdentifier
ResourceId of the source database server.
- targetDbServerFullyQualifiedDomainName
- String
Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection.
- secretParameters
- PostgreSqlMigrationSecretParameters
Migration secret parameters.
- dbsToMigrate
- IEnumerable<String>
Number of databases to migrate.
- setupLogicalReplicationOnSourceDbIfNeeded
- Nullable<PostgreSqlMigrationLogicalReplicationOnSourceDb>
Indicates whether to setup LogicalReplicationOnSourceDb, if needed.
- overwriteDbsInTarget
- Nullable<PostgreSqlMigrationOverwriteDbsInTarget>
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.
- migrationWindowStartTimeInUtc
- Nullable<DateTimeOffset>
Start time in UTC for migration window.
- migrationWindowEndTimeInUtc
- Nullable<DateTimeOffset>
End time in UTC for migration window.
- startDataMigration
- Nullable<PostgreSqlMigrationStartDataMigration>
Indicates whether the data migration should start right away.
- triggerCutover
- Nullable<PostgreSqlMigrationTriggerCutover>
To trigger cutover for entire migration we need to send this flag as True.
- dbsToTriggerCutoverOn
- IEnumerable<String>
When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array.
- cancel
- Nullable<PostgreSqlMigrationCancel>
To trigger cancel for entire migration we need to send this flag as True.
- dbsToCancelMigrationOn
- IEnumerable<String>
When you want to trigger cancel for specific databases send cancel flag as True and database names in this array.
Returns
A new PostgreSqlMigrationData instance for mocking.
Applies to
PostgreSqlMigrationData(ResourceIdentifier, String, ResourceType, SystemData, IDictionary<String,String>, AzureLocation, String, PostgreSqlMigrationStatus, ResourceIdentifier, Nullable<PostgreSqlMigrationMode>, Nullable<MigrationOption>, Nullable<PostgreSqlFlexibleServersSourceType>, Nullable<PostgreSqlFlexibleServersSslMode>, PostgreSqlServerMetadata, PostgreSqlServerMetadata, ResourceIdentifier, String, ResourceIdentifier, String, PostgreSqlMigrationSecretParameters, IEnumerable<String>, Nullable<PostgreSqlMigrationLogicalReplicationOnSourceDb>, Nullable<PostgreSqlMigrationOverwriteDbsInTarget>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<MigrateRolesEnum>, Nullable<PostgreSqlMigrationStartDataMigration>, Nullable<PostgreSqlMigrationTriggerCutover>, IEnumerable<String>, Nullable<PostgreSqlMigrationCancel>, IEnumerable<String>)
Initializes a new instance of PostgreSqlMigrationData.
public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlMigrationData PostgreSqlMigrationData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string migrationId = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStatus currentStatus = default, Azure.Core.ResourceIdentifier migrationInstanceResourceId = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationMode? migrationMode = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.MigrationOption? migrationOption = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersSourceType? sourceType = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersSslMode? sslMode = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata sourceDbServerMetadata = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata targetDbServerMetadata = default, Azure.Core.ResourceIdentifier sourceDbServerResourceId = default, string sourceDbServerFullyQualifiedDomainName = default, Azure.Core.ResourceIdentifier targetDbServerResourceId = default, string targetDbServerFullyQualifiedDomainName = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationSecretParameters secretParameters = default, System.Collections.Generic.IEnumerable<string> dbsToMigrate = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationLogicalReplicationOnSourceDb? setupLogicalReplicationOnSourceDbIfNeeded = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationOverwriteDbsInTarget? overwriteDbsInTarget = default, DateTimeOffset? migrationWindowStartTimeInUtc = default, DateTimeOffset? migrationWindowEndTimeInUtc = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.MigrateRolesEnum? migrateRoles = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStartDataMigration? startDataMigration = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationTriggerCutover? triggerCutover = default, System.Collections.Generic.IEnumerable<string> dbsToTriggerCutoverOn = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationCancel? cancel = default, System.Collections.Generic.IEnumerable<string> dbsToCancelMigrationOn = default);
static member PostgreSqlMigrationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStatus * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationMode> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.MigrationOption> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersSourceType> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersSslMode> * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlServerMetadata * Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceIdentifier * string * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationSecretParameters * seq<string> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationLogicalReplicationOnSourceDb> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationOverwriteDbsInTarget> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.MigrateRolesEnum> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationStartDataMigration> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationTriggerCutover> * seq<string> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlMigrationCancel> * seq<string> -> Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlMigrationData
Public Shared Function PostgreSqlMigrationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional migrationId As String = Nothing, Optional currentStatus As PostgreSqlMigrationStatus = Nothing, Optional migrationInstanceResourceId As ResourceIdentifier = Nothing, Optional migrationMode As Nullable(Of PostgreSqlMigrationMode) = Nothing, Optional migrationOption As Nullable(Of MigrationOption) = Nothing, Optional sourceType As Nullable(Of PostgreSqlFlexibleServersSourceType) = Nothing, Optional sslMode As Nullable(Of PostgreSqlFlexibleServersSslMode) = Nothing, Optional sourceDbServerMetadata As PostgreSqlServerMetadata = Nothing, Optional targetDbServerMetadata As PostgreSqlServerMetadata = Nothing, Optional sourceDbServerResourceId As ResourceIdentifier = Nothing, Optional sourceDbServerFullyQualifiedDomainName As String = Nothing, Optional targetDbServerResourceId As ResourceIdentifier = Nothing, Optional targetDbServerFullyQualifiedDomainName As String = Nothing, Optional secretParameters As PostgreSqlMigrationSecretParameters = Nothing, Optional dbsToMigrate As IEnumerable(Of String) = Nothing, Optional setupLogicalReplicationOnSourceDbIfNeeded As Nullable(Of PostgreSqlMigrationLogicalReplicationOnSourceDb) = Nothing, Optional overwriteDbsInTarget As Nullable(Of PostgreSqlMigrationOverwriteDbsInTarget) = Nothing, Optional migrationWindowStartTimeInUtc As Nullable(Of DateTimeOffset) = Nothing, Optional migrationWindowEndTimeInUtc As Nullable(Of DateTimeOffset) = Nothing, Optional migrateRoles As Nullable(Of MigrateRolesEnum) = Nothing, Optional startDataMigration As Nullable(Of PostgreSqlMigrationStartDataMigration) = Nothing, Optional triggerCutover As Nullable(Of PostgreSqlMigrationTriggerCutover) = Nothing, Optional dbsToTriggerCutoverOn As IEnumerable(Of String) = Nothing, Optional cancel As Nullable(Of PostgreSqlMigrationCancel) = Nothing, Optional dbsToCancelMigrationOn As IEnumerable(Of String) = Nothing) As PostgreSqlMigrationData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- migrationId
- String
Identifier of a migration.
- currentStatus
- PostgreSqlMigrationStatus
Current status of a migration.
- migrationInstanceResourceId
- ResourceIdentifier
Identifier of the private endpoint migration instance.
- migrationMode
- Nullable<PostgreSqlMigrationMode>
Mode used to perform the migration: Online or Offline.
- migrationOption
- Nullable<MigrationOption>
Supported option for a migration.
- sourceType
- Nullable<PostgreSqlFlexibleServersSourceType>
Source server type used for the migration: ApsaraDB_RDS, AWS, AWS_AURORA, AWS_EC2, AWS_RDS, AzureVM, Crunchy_PostgreSQL, Digital_Ocean_Droplets, Digital_Ocean_PostgreSQL, EDB, EDB_Oracle_Server, EDB_PostgreSQL, GCP, GCP_AlloyDB, GCP_CloudSQL, GCP_Compute, Heroku_PostgreSQL, Huawei_Compute, Huawei_RDS, OnPremises, PostgreSQLCosmosDB, PostgreSQLFlexibleServer, PostgreSQLSingleServer, or Supabase_PostgreSQL.
- sslMode
- Nullable<PostgreSqlFlexibleServersSslMode>
SSL mode used by a migration. Default SSL mode for 'PostgreSQLSingleServer' is 'VerifyFull'. Default SSL mode for other source types is 'Prefer'.
- sourceDbServerMetadata
- PostgreSqlServerMetadata
Metadata of source database server.
- targetDbServerMetadata
- PostgreSqlServerMetadata
Metadata of target database server.
- sourceDbServerResourceId
- ResourceIdentifier
Identifier of the source database server resource, when 'sourceType' is 'PostgreSQLSingleServer'. For other source types this must be set to ipaddress:port@username or hostname:port@username.
- sourceDbServerFullyQualifiedDomainName
- String
Fully qualified domain name (FQDN) or IP address of the source server. This property is optional. When provided, the migration service will always use it to connect to the source server.
- targetDbServerResourceId
- ResourceIdentifier
Identifier of the target database server resource.
- targetDbServerFullyQualifiedDomainName
- String
Fully qualified domain name (FQDN) or IP address of the target server. This property is optional. When provided, the migration service will always use it to connect to the target server.
- secretParameters
- PostgreSqlMigrationSecretParameters
Migration secret parameters.
- dbsToMigrate
- IEnumerable<String>
Names of databases to migrate.
- setupLogicalReplicationOnSourceDbIfNeeded
- Nullable<PostgreSqlMigrationLogicalReplicationOnSourceDb>
Indicates whether to setup logical replication on source server, if needed.
- overwriteDbsInTarget
- Nullable<PostgreSqlMigrationOverwriteDbsInTarget>
Indicates if databases on the target server can be overwritten when already present. If set to 'False', when the migration workflow detects that the database already exists on the target server, it will wait for a confirmation.
- migrationWindowStartTimeInUtc
- Nullable<DateTimeOffset>
Start time (UTC) for migration window.
- migrationWindowEndTimeInUtc
- Nullable<DateTimeOffset>
End time (UTC) for migration window.
- migrateRoles
- Nullable<MigrateRolesEnum>
Indicates if roles and permissions must be migrated.
- startDataMigration
- Nullable<PostgreSqlMigrationStartDataMigration>
Indicates if data migration must start right away.
- triggerCutover
- Nullable<PostgreSqlMigrationTriggerCutover>
Indicates if cutover must be triggered for the entire migration.
- dbsToTriggerCutoverOn
- IEnumerable<String>
When you want to trigger cutover for specific databases set 'triggerCutover' to 'True' and the names of the specific databases in this array.
- cancel
- Nullable<PostgreSqlMigrationCancel>
Indicates if cancel must be triggered for the entire migration.
- dbsToCancelMigrationOn
- IEnumerable<String>
When you want to trigger cancel for specific databases set 'triggerCutover' to 'True' and the names of the specific databases in this array.
Returns
A new PostgreSqlMigrationData instance for mocking.