Class: Google::Apis::DatastreamV1::MysqlSourceConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::MysqlSourceConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
MySQL source configuration
Instance Attribute Summary collapse
-
#binary_log_position ⇒ Google::Apis::DatastreamV1::BinaryLogPosition
Use Binary log position based replication.
-
#exclude_objects ⇒ Google::Apis::DatastreamV1::MysqlRdbms
MySQL database structure Corresponds to the JSON property
excludeObjects. -
#gtid ⇒ Google::Apis::DatastreamV1::Gtid
Use GTID based replication.
-
#include_objects ⇒ Google::Apis::DatastreamV1::MysqlRdbms
MySQL database structure Corresponds to the JSON property
includeObjects. -
#max_concurrent_backfill_tasks ⇒ Fixnum
Maximum number of concurrent backfill tasks.
-
#max_concurrent_cdc_tasks ⇒ Fixnum
Maximum number of concurrent CDC tasks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MysqlSourceConfig
constructor
A new instance of MysqlSourceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MysqlSourceConfig
Returns a new instance of MysqlSourceConfig.
2106 2107 2108 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#binary_log_position ⇒ Google::Apis::DatastreamV1::BinaryLogPosition
Use Binary log position based replication.
Corresponds to the JSON property binaryLogPosition
2077 2078 2079 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2077 def binary_log_position @binary_log_position end |
#exclude_objects ⇒ Google::Apis::DatastreamV1::MysqlRdbms
MySQL database structure
Corresponds to the JSON property excludeObjects
2082 2083 2084 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2082 def exclude_objects @exclude_objects end |
#gtid ⇒ Google::Apis::DatastreamV1::Gtid
Use GTID based replication.
Corresponds to the JSON property gtid
2087 2088 2089 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2087 def gtid @gtid end |
#include_objects ⇒ Google::Apis::DatastreamV1::MysqlRdbms
MySQL database structure
Corresponds to the JSON property includeObjects
2092 2093 2094 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2092 def include_objects @include_objects end |
#max_concurrent_backfill_tasks ⇒ Fixnum
Maximum number of concurrent backfill tasks. The number should be non negative.
If not set (or set to 0), the system's default value will be used.
Corresponds to the JSON property maxConcurrentBackfillTasks
2098 2099 2100 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2098 def max_concurrent_backfill_tasks @max_concurrent_backfill_tasks end |
#max_concurrent_cdc_tasks ⇒ Fixnum
Maximum number of concurrent CDC tasks. The number should be non negative. If
not set (or set to 0), the system's default value will be used.
Corresponds to the JSON property maxConcurrentCdcTasks
2104 2105 2106 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2104 def max_concurrent_cdc_tasks @max_concurrent_cdc_tasks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2111 2112 2113 2114 2115 2116 2117 2118 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2111 def update!(**args) @binary_log_position = args[:binary_log_position] if args.key?(:binary_log_position) @exclude_objects = args[:exclude_objects] if args.key?(:exclude_objects) @gtid = args[:gtid] if args.key?(:gtid) @include_objects = args[:include_objects] if args.key?(:include_objects) @max_concurrent_backfill_tasks = args[:max_concurrent_backfill_tasks] if args.key?(:max_concurrent_backfill_tasks) @max_concurrent_cdc_tasks = args[:max_concurrent_cdc_tasks] if args.key?(:max_concurrent_cdc_tasks) end |