Class: Google::Apis::DatastreamV1::MongodbSourceConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::MongodbSourceConfig
- 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
-
#exclude_objects ⇒ Google::Apis::DatastreamV1::MongodbCluster
MongoDB Cluster structure.
-
#include_objects ⇒ Google::Apis::DatastreamV1::MongodbCluster
MongoDB Cluster structure.
-
#json_mode ⇒ String
Optional.
-
#max_concurrent_backfill_tasks ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MongodbSourceConfig
constructor
A new instance of MongodbSourceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MongodbSourceConfig
Returns a new instance of MongodbSourceConfig.
2000 2001 2002 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2000 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclude_objects ⇒ Google::Apis::DatastreamV1::MongodbCluster
MongoDB Cluster structure.
Corresponds to the JSON property excludeObjects
1981 1982 1983 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1981 def exclude_objects @exclude_objects end |
#include_objects ⇒ Google::Apis::DatastreamV1::MongodbCluster
MongoDB Cluster structure.
Corresponds to the JSON property includeObjects
1986 1987 1988 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1986 def include_objects @include_objects end |
#json_mode ⇒ String
Optional. MongoDB JSON mode to use for the stream.
Corresponds to the JSON property jsonMode
1991 1992 1993 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1991 def json_mode @json_mode end |
#max_concurrent_backfill_tasks ⇒ Fixnum
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
1998 1999 2000 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1998 def max_concurrent_backfill_tasks @max_concurrent_backfill_tasks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2005 2006 2007 2008 2009 2010 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2005 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 |