Class: Google::Apis::DatastreamV1::SpannerSourceConfig

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 Spanner source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpannerSourceConfig

Returns a new instance of SpannerSourceConfig.



4461
4462
4463
# File 'lib/google/apis/datastream_v1/classes.rb', line 4461

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

Instance Attribute Details

#backfill_data_boost_enabledBoolean Also known as: backfill_data_boost_enabled?

Optional. Whether to use Data Boost for Spanner backfills. Defaults to false if not set. Corresponds to the JSON property backfillDataBoostEnabled

Returns:

  • (Boolean)


4423
4424
4425
# File 'lib/google/apis/datastream_v1/classes.rb', line 4423

def backfill_data_boost_enabled
  @backfill_data_boost_enabled
end

#change_stream_nameString

Required. Immutable. The change stream name to use for the stream. Corresponds to the JSON property changeStreamName

Returns:

  • (String)


4429
4430
4431
# File 'lib/google/apis/datastream_v1/classes.rb', line 4429

def change_stream_name
  @change_stream_name
end

#exclude_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property excludeObjects



4434
4435
4436
# File 'lib/google/apis/datastream_v1/classes.rb', line 4434

def exclude_objects
  @exclude_objects
end

#fgac_roleString

Optional. The FGAC role to use for the stream. Corresponds to the JSON property fgacRole

Returns:

  • (String)


4439
4440
4441
# File 'lib/google/apis/datastream_v1/classes.rb', line 4439

def fgac_role
  @fgac_role
end

#include_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property includeObjects



4444
4445
4446
# File 'lib/google/apis/datastream_v1/classes.rb', line 4444

def include_objects
  @include_objects
end

#max_concurrent_backfill_tasksFixnum

Optional. Maximum number of concurrent backfill tasks. Corresponds to the JSON property maxConcurrentBackfillTasks

Returns:

  • (Fixnum)


4449
4450
4451
# File 'lib/google/apis/datastream_v1/classes.rb', line 4449

def max_concurrent_backfill_tasks
  @max_concurrent_backfill_tasks
end

#max_concurrent_cdc_tasksFixnum

Optional. Maximum number of concurrent CDC tasks. Corresponds to the JSON property maxConcurrentCdcTasks

Returns:

  • (Fixnum)


4454
4455
4456
# File 'lib/google/apis/datastream_v1/classes.rb', line 4454

def max_concurrent_cdc_tasks
  @max_concurrent_cdc_tasks
end

#spanner_rpc_priorityString

Optional. The RPC priority to use for the stream. Corresponds to the JSON property spannerRpcPriority

Returns:

  • (String)


4459
4460
4461
# File 'lib/google/apis/datastream_v1/classes.rb', line 4459

def spanner_rpc_priority
  @spanner_rpc_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
# File 'lib/google/apis/datastream_v1/classes.rb', line 4466

def update!(**args)
  @backfill_data_boost_enabled = args[:backfill_data_boost_enabled] if args.key?(:backfill_data_boost_enabled)
  @change_stream_name = args[:change_stream_name] if args.key?(:change_stream_name)
  @exclude_objects = args[:exclude_objects] if args.key?(:exclude_objects)
  @fgac_role = args[:fgac_role] if args.key?(:fgac_role)
  @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)
  @spanner_rpc_priority = args[:spanner_rpc_priority] if args.key?(:spanner_rpc_priority)
end