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.



6285
6286
6287
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6285

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



6278
6279
6280
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6278

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



6283
6284
6285
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6283

def sqlserver_source_config
  @sqlserver_source_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6290
6291
6292
6293
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6290

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