Class: Google::Apis::CloudsearchV1::ImageKeyValue

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

Overview

This is deprecated and please use KeyValue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageKeyValue

Returns a new instance of ImageKeyValue.



10998
10999
11000
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10998

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

Instance Attribute Details

#iconString

Corresponds to the JSON property icon

Returns:

  • (String)


10981
10982
10983
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10981

def icon
  @icon
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


10986
10987
10988
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10986

def icon_url
  @icon_url
end

#on_clickGoogle::Apis::CloudsearchV1::OnClick

Corresponds to the JSON property onClick



10991
10992
10993
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10991

def on_click
  @on_click
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


10996
10997
10998
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10996

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11003
11004
11005
11006
11007
11008
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11003

def update!(**args)
  @icon = args[:icon] if args.key?(:icon)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @on_click = args[:on_click] if args.key?(:on_click)
  @text = args[:text] if args.key?(:text)
end