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.



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

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



6237
6238
6239
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6237

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



6242
6243
6244
# File 'lib/google/apis/datamigration_v1/classes.rb', line 6242

def sqlserver_source_config
  @sqlserver_source_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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