Class: Google::Apis::CloudsearchV1::UpdateBody
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::UpdateBody
- 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
-
#insert_contents ⇒ Array<Google::Apis::CloudsearchV1::InsertContent>
A repeated field that contains a series of content to insert into the draft that the user is currently editing.
-
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateBody
constructor
A new instance of UpdateBody.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateBody
Returns a new instance of UpdateBody.
20174 20175 20176 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#insert_contents ⇒ Array<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
20167 20168 20169 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20167 def insert_contents @insert_contents end |
#type ⇒ String
Corresponds to the JSON property type
20172 20173 20174 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20172 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20179 20180 20181 20182 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20179 def update!(**args) @insert_contents = args[:insert_contents] if args.key?(:insert_contents) @type = args[:type] if args.key?(:type) end |