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.
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
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- tags
- IDictionary<String,String>
Resource tags.
- location
- AzureLocation
The geo-location where the resource lives.
- 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.