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.



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

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)


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

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)


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

def change_stream_name
  @change_stream_name
end

#exclude_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property excludeObjects



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

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)


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

def fgac_role
  @fgac_role
end

#include_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property includeObjects



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

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)


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

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)


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

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)


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

def spanner_rpc_priority
  @spanner_rpc_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
# File 'lib/google/apis/datastream_v1/classes.rb', line 4472

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