Class: Google::Apis::DatamigrationV1::PostgresDestinationConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::PostgresDestinationConfig
- 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
-
#max_concurrent_connections ⇒ Fixnum
Optional.
-
#transaction_timeout ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostgresDestinationConfig
constructor
A new instance of PostgresDestinationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_connections ⇒ Fixnum
Optional. Maximum number of connections Database Migration Service will open
to the destination for data migration.
Corresponds to the JSON property maxConcurrentConnections
3939 3940 3941 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3939 def max_concurrent_connections @max_concurrent_connections end |
#transaction_timeout ⇒ String
Optional. Timeout for data migration transactions.
Corresponds to the JSON property transactionTimeout
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 |