Class: Google::Apis::CloudsearchV1::UpdateBody

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateBody

Returns a new instance of UpdateBody.



17809
17810
17811
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17809

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

Instance Attribute Details

#insert_contentsArray<Google::Apis::CloudsearchV1::InsertContent>

A repeated field that contains a series of content to insert into the draft that the user is currently editing. The content can contain HTML content or plain text content. Corresponds to the JSON property insertContents



17802
17803
17804
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17802

def insert_contents
  @insert_contents
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


17807
17808
17809
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17807

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17814
17815
17816
17817
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17814

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