Class: Google::Apis::DatastreamV1::MysqlSourceConfig

Inherits:
Object
  • Object
show all
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

Configuration for syncing data from a MySQL source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlSourceConfig

Returns a new instance of MysqlSourceConfig.



2356
2357
2358
# File 'lib/google/apis/datastream_v1/classes.rb', line 2356

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

Instance Attribute Details

#binary_log_positionGoogle::Apis::DatastreamV1::BinaryLogPosition

Use Binary log position based replication. Corresponds to the JSON property binaryLogPosition



2327
2328
2329
# File 'lib/google/apis/datastream_v1/classes.rb', line 2327

def binary_log_position
  @binary_log_position
end

#exclude_objectsGoogle::Apis::DatastreamV1::MysqlRdbms

MySQL database structure Corresponds to the JSON property excludeObjects



2332
2333
2334
# File 'lib/google/apis/datastream_v1/classes.rb', line 2332

def exclude_objects
  @exclude_objects
end

#gtidGoogle::Apis::DatastreamV1::Gtid

Use GTID based replication. Corresponds to the JSON property gtid



2337
2338
2339
# File 'lib/google/apis/datastream_v1/classes.rb', line 2337

def gtid
  @gtid
end

#include_objectsGoogle::Apis::DatastreamV1::MysqlRdbms

MySQL database structure Corresponds to the JSON property includeObjects



2342
2343
2344
# File 'lib/google/apis/datastream_v1/classes.rb', line 2342

def include_objects
  @include_objects
end

#max_concurrent_backfill_tasksFixnum

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

Returns:

  • (Fixnum)


2348
2349
2350
# File 'lib/google/apis/datastream_v1/classes.rb', line 2348

def max_concurrent_backfill_tasks
  @max_concurrent_backfill_tasks
end

#max_concurrent_cdc_tasksFixnum

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

Returns:

  • (Fixnum)


2354
2355
2356
# File 'lib/google/apis/datastream_v1/classes.rb', line 2354

def max_concurrent_cdc_tasks
  @max_concurrent_cdc_tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2361
2362
2363
2364
2365
2366
2367
2368
# File 'lib/google/apis/datastream_v1/classes.rb', line 2361

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