Class: Google::Apis::DatamigrationV1::PostgresDestinationConfig

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 Postgres as a destination in a migration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgresDestinationConfig

Returns a new instance of PostgresDestinationConfig.



3946
3947
3948
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3946

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

Instance Attribute Details

#max_concurrent_connectionsFixnum

Optional. Maximum number of connections Database Migration Service will open to the destination for data migration. Corresponds to the JSON property maxConcurrentConnections

Returns:

  • (Fixnum)


3939
3940
3941
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3939

def max_concurrent_connections
  @max_concurrent_connections
end

#transaction_timeoutString

Optional. Timeout for data migration transactions. Corresponds to the JSON property transactionTimeout

Returns:

  • (String)


3944
3945
3946
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3944

def transaction_timeout
  @transaction_timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3951
3952
3953
3954
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3951

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