Class: Google::Apis::DatastreamV1::MongodbField

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 Field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MongodbField

Returns a new instance of MongodbField.



1604
1605
1606
# File 'lib/google/apis/datastream_v1/classes.rb', line 1604

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

Instance Attribute Details

#fieldString

Field name. Corresponds to the JSON property field

Returns:

  • (String)


1602
1603
1604
# File 'lib/google/apis/datastream_v1/classes.rb', line 1602

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1609
1610
1611
# File 'lib/google/apis/datastream_v1/classes.rb', line 1609

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