Class: Google::Apis::SearchconsoleV1::Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/searchconsole_v1/classes.rb,
generated/google/apis/searchconsole_v1/representations.rb,
generated/google/apis/searchconsole_v1/representations.rb

Overview

Describe image data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image



60
61
62
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 60

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

Instance Attribute Details

#dataString

Image data in format determined by the mime type. Currently, the format will always be "image/png", but this might change in the future. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


53
54
55
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 53

def data
  @data
end

#mime_typeString

The mime-type of the image data. Corresponds to the JSON property mimeType

Returns:

  • (String)


58
59
60
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 58

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



65
66
67
68
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 65

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