Class: Google::Apis::DatastreamV1::MongodbCluster

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

MongoDB Cluster structure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MongodbCluster

Returns a new instance of MongodbCluster.



1892
1893
1894
# File 'lib/google/apis/datastream_v1/classes.rb', line 1892

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

Instance Attribute Details

#databasesArray<Google::Apis::DatastreamV1::MongodbDatabase>

MongoDB databases in the cluster. Corresponds to the JSON property databases



1890
1891
1892
# File 'lib/google/apis/datastream_v1/classes.rb', line 1890

def databases
  @databases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1897
1898
1899
# File 'lib/google/apis/datastream_v1/classes.rb', line 1897

def update!(**args)
  @databases = args[:databases] if args.key?(:databases)
end