Class: Google::Apis::DatamigrationV1::PostgresToSqlServerConfig

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 failback migrations from PostgreSQL to SQL Server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgresToSqlServerConfig

Returns a new instance of PostgresToSqlServerConfig.



4298
4299
4300
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4298

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

Instance Attribute Details

#postgres_source_configGoogle::Apis::DatamigrationV1::PostgresSourceConfig

Configuration for Postgres as a source in a migration. Corresponds to the JSON property postgresSourceConfig



4291
4292
4293
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4291

def postgres_source_config
  @postgres_source_config
end

#sqlserver_destination_configGoogle::Apis::DatamigrationV1::SqlServerDestinationConfig

Configuration for SQL Server as a destination in a migration. Corresponds to the JSON property sqlserverDestinationConfig



4296
4297
4298
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4296

def sqlserver_destination_config
  @sqlserver_destination_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4303
4304
4305
4306
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4303

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