Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageIcon

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

Returns a new instance of AppsDynamiteStorageIcon.



3578
3579
3580
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3578

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

Instance Attribute Details

#alt_textString

The description of the icon, used for accessibility. The default value is provided if you don't specify one. Corresponds to the JSON property altText

Returns:

  • (String)


3551
3552
3553
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3551

def alt_text
  @alt_text
end

#icon_urlString

The icon specified by a URL. Corresponds to the JSON property iconUrl

Returns:

  • (String)


3556
3557
3558
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3556

def icon_url
  @icon_url
end

#image_typeString

The crop style applied to the image. In some cases, applying a CIRCLE crop causes the image to be drawn larger than a standard icon. Corresponds to the JSON property imageType

Returns:

  • (String)


3562
3563
3564
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3562

def image_type
  @image_type
end

#known_iconString

The icon specified by the string name of a list of known icons Corresponds to the JSON property knownIcon

Returns:

  • (String)


3567
3568
3569
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3567

def known_icon
  @known_icon
end

#material_iconGoogle::Apis::CloudsearchV1::AppsDynamiteStorageMaterialIcon

A Google Font Icon, which includes over 2500+ options. For example, to display a check box icon with customized weight and grade, write "name": "check_box", "fill": true, "weight": 300, "grade": -25 Corresponds to the JSON property materialIcon



3576
3577
3578
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3576

def material_icon
  @material_icon
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3583
3584
3585
3586
3587
3588
3589
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3583

def update!(**args)
  @alt_text = args[:alt_text] if args.key?(:alt_text)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @image_type = args[:image_type] if args.key?(:image_type)
  @known_icon = args[:known_icon] if args.key?(:known_icon)
  @material_icon = args[:material_icon] if args.key?(:material_icon)
end