Class: Google::Apis::DatastreamV1::MongodbSourceConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MongodbSourceConfig

Returns a new instance of MongodbSourceConfig.



1994
1995
1996
# File 'lib/google/apis/datastream_v1/classes.rb', line 1994

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

Instance Attribute Details

#exclude_objectsGoogle::Apis::DatastreamV1::MongodbCluster

MongoDB Cluster structure. Corresponds to the JSON property excludeObjects



1975
1976
1977
# File 'lib/google/apis/datastream_v1/classes.rb', line 1975

def exclude_objects
  @exclude_objects
end

#include_objectsGoogle::Apis::DatastreamV1::MongodbCluster

MongoDB Cluster structure. Corresponds to the JSON property includeObjects



1980
1981
1982
# File 'lib/google/apis/datastream_v1/classes.rb', line 1980

def include_objects
  @include_objects
end

#json_modeString

Optional. MongoDB JSON mode to use for the stream. Corresponds to the JSON property jsonMode

Returns:

  • (String)


1985
1986
1987
# File 'lib/google/apis/datastream_v1/classes.rb', line 1985

def json_mode
  @json_mode
end

#max_concurrent_backfill_tasksFixnum

Optional. Maximum number of concurrent backfill tasks. The number should be non-negative and less than or equal to 50. If not set (or set to 0), the system's default value is used Corresponds to the JSON property maxConcurrentBackfillTasks

Returns:

  • (Fixnum)


1992
1993
1994
# File 'lib/google/apis/datastream_v1/classes.rb', line 1992

def max_concurrent_backfill_tasks
  @max_concurrent_backfill_tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1999
2000
2001
2002
2003
2004
# File 'lib/google/apis/datastream_v1/classes.rb', line 1999

def update!(**args)
  @exclude_objects = args[:exclude_objects] if args.key?(:exclude_objects)
  @include_objects = args[:include_objects] if args.key?(:include_objects)
  @json_mode = args[:json_mode] if args.key?(:json_mode)
  @max_concurrent_backfill_tasks = args[:max_concurrent_backfill_tasks] if args.key?(:max_concurrent_backfill_tasks)
end