Class: Google::Apis::CloudsearchV1::InsertContent

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) ⇒ InsertContent

Returns a new instance of InsertContent.



11819
11820
11821
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11819

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

Instance Attribute Details

#contentString

The content to be inserted. Corresponds to the JSON property content

Returns:

  • (String)


11807
11808
11809
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11807

def content
  @content
end

#content_typeString

The type of inserted content. Corresponds to the JSON property contentType

Returns:

  • (String)


11812
11813
11814
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11812

def content_type
  @content_type
end

#mime_typeString

Corresponds to the JSON property mimeType

Returns:

  • (String)


11817
11818
11819
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11817

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11824
11825
11826
11827
11828
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11824

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