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
ID for migration, a GUID.
- currentStatus
- PostgreSqlMigrationStatus
Current status of migration.
- migrationInstanceResourceId
- ResourceIdentifier
ResourceId of the private endpoint migration instance.
- migrationMode
- Nullable<PostgreSqlMigrationMode>
There are two types of migration modes Online and Offline.
- migrationOption
- Nullable<MigrationOption>
This indicates the supported Migration option for the migration.
- sourceType
- Nullable<PostgreSqlFlexibleServersSourceType>
migration source server type : OnPremises, AWS, GCP, AzureVM, PostgreSQLSingleServer, AWS_RDS, AWS_AURORA, AWS_EC2, GCP_CloudSQL, GCP_AlloyDB, GCP_Compute, or EDB.
- sslMode
- Nullable<PostgreSqlFlexibleServersSslMode>
SSL modes for migration. Default SSL mode for PostgreSQLSingleServer is VerifyFull and Prefer for other source types.
- sourceDbServerMetadata
- PostgreSqlServerMetadata
Metadata of the source database server.
- targetDbServerMetadata
- PostgreSqlServerMetadata
Metadata of the target database server.
- sourceDbServerResourceId
- ResourceIdentifier
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.
- sourceDbServerFullyQualifiedDomainName
- String
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.
- targetDbServerResourceId
- ResourceIdentifier
ResourceId of the source database server.
- targetDbServerFullyQualifiedDomainName
- String
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.
- 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.
- migrateRoles
- Nullable<MigrateRolesEnum>
To migrate roles and permissions we need to send this flag as True.
- 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
Azure SDK for .NET