Class: Google::Apis::DatamigrationV1::SqlServerToPostgresConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datamigration_v1/classes.rb,
lib/google/apis/datamigration_v1/representations.rb,
lib/google/apis/datamigration_v1/representations.rb

Overview

Configuration for heterogeneous SQL Server to Cloud SQL for PostgreSQL migrations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlServerToPostgresConfig

Returns a new instance of SqlServerToPostgresConfig.



6252
6253
6254
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6252

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#postgres_destination_configGoogle::Apis::DatamigrationV1::PostgresDestinationConfig

Configuration for Postgres as a destination in a migration. Corresponds to the JSON property postgresDestinationConfig



6245
6246
6247
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6245

def postgres_destination_config
  @postgres_destination_config
end

#sqlserver_source_configGoogle::Apis::DatamigrationV1::SqlServerSourceConfig

Configuration for SQL Server as a source in a migration. Corresponds to the JSON property sqlserverSourceConfig



6250
6251
6252
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6250

def sqlserver_source_config
  @sqlserver_source_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6257
6258
6259
6260
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6257

def update!(**args)
  @postgres_destination_config = args[:postgres_destination_config] if args.key?(:postgres_destination_config)
  @sqlserver_source_config = args[:sqlserver_source_config] if args.key?(:sqlserver_source_config)
end