Class: Google::Apis::CloudsearchV1::InsertContent
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::InsertContent
- 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
-
#content ⇒ String
The content to be inserted.
-
#content_type ⇒ String
The type of inserted content.
-
#mime_type ⇒ String
Corresponds to the JSON property
mimeType
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertContent
constructor
A new instance of InsertContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InsertContent
Returns a new instance of InsertContent.
11896 11897 11898 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11896 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The content to be inserted.
Corresponds to the JSON property content
11884 11885 11886 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11884 def content @content end |
#content_type ⇒ String
The type of inserted content.
Corresponds to the JSON property contentType
11889 11890 11891 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11889 def content_type @content_type end |
#mime_type ⇒ String
Corresponds to the JSON property mimeType
11894 11895 11896 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11894 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11901 11902 11903 11904 11905 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11901 def update!(**args) @content = args[:content] if args.key?(:content) @content_type = args[:content_type] if args.key?(:content_type) @mime_type = args[:mime_type] if args.key?(:mime_type) end |