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.



4917
4918
4919
# File 'lib/google/apis/datastream_v1/classes.rb', line 4917

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)


4879
4880
4881
# File 'lib/google/apis/datastream_v1/classes.rb', line 4879

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)


4885
4886
4887
# File 'lib/google/apis/datastream_v1/classes.rb', line 4885

def change_stream_name
  @change_stream_name
end

#exclude_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property excludeObjects



4890
4891
4892
# File 'lib/google/apis/datastream_v1/classes.rb', line 4890

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)


4895
4896
4897
# File 'lib/google/apis/datastream_v1/classes.rb', line 4895

def fgac_role
  @fgac_role
end

#include_objectsGoogle::Apis::DatastreamV1::SpannerDatabase

Spanner database structure. Corresponds to the JSON property includeObjects



4900
4901
4902
# File 'lib/google/apis/datastream_v1/classes.rb', line 4900

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)


4905
4906
4907
# File 'lib/google/apis/datastream_v1/classes.rb', line 4905

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)


4910
4911
4912
# File 'lib/google/apis/datastream_v1/classes.rb', line 4910

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)


4915
4916
4917
# File 'lib/google/apis/datastream_v1/classes.rb', line 4915

def spanner_rpc_priority
  @spanner_rpc_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
# File 'lib/google/apis/datastream_v1/classes.rb', line 4922

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