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.



4488
4489
4490
# File 'lib/google/apis/datastream_v1/classes.rb', line 4488

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)


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

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)


4456
4457
4458
# File 'lib/google/apis/datastream_v1/classes.rb', line 4456

def change_stream_name
  @change_stream_name
end

#exclude_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property excludeObjects



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

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)


4466
4467
4468
# File 'lib/google/apis/datastream_v1/classes.rb', line 4466

def fgac_role
  @fgac_role
end

#include_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property includeObjects



4471
4472
4473
# File 'lib/google/apis/datastream_v1/classes.rb', line 4471

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)


4476
4477
4478
# File 'lib/google/apis/datastream_v1/classes.rb', line 4476

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)


4481
4482
4483
# File 'lib/google/apis/datastream_v1/classes.rb', line 4481

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)


4486
4487
4488
# File 'lib/google/apis/datastream_v1/classes.rb', line 4486

def spanner_rpc_priority
  @spanner_rpc_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
# File 'lib/google/apis/datastream_v1/classes.rb', line 4493

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