Class: Google::Apis::ChatV1::GoogleAppsCardV1Icon
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1Icon
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
Instance Attribute Summary collapse
-
#alt_text ⇒ String
Optional.
-
#icon_url ⇒ String
Display a custom icon hosted at an HTTPS URL.
-
#image_type ⇒ String
The crop style applied to the image.
-
#known_icon ⇒ String
Display one of the standard icons provided by Google Workspace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1Icon
constructor
A new instance of GoogleAppsCardV1Icon.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1Icon
Returns a new instance of GoogleAppsCardV1Icon.
1727 1728 1729 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alt_text ⇒ String
Optional. A description of the icon used for accessibility. If unspecified, a
default value is provided. As a best practice, you should set a helpful
description. For example, if an icon displays a user's account portrait, you
could describe it as "A user's account portrait." If the icon displays in a
Button, this alt text takes precedence and overwrites the button's alt text,
so you should write alt text for the button: Set descriptive text that lets
users know what the button does. For example, if a button opens a hyperlink,
you might write: "Opens a new browser tab and navigates to the Google Chat
developer documentation at https://developers.google.com/chat".
Corresponds to the JSON property altText
1704 1705 1706 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1704 def alt_text @alt_text end |
#icon_url ⇒ String
Display a custom icon hosted at an HTTPS URL. For example: "iconUrl": "
https://developers.google.com/chat/images/quickstart-app-avatar.png"
Supported file types include .png and .jpg.
Corresponds to the JSON property iconUrl
1711 1712 1713 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1711 def icon_url @icon_url end |
#image_type ⇒ String
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
1717 1718 1719 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1717 def image_type @image_type end |
#known_icon ⇒ String
Display one of the standard icons provided by Google Workspace. For example,
to display an airplane icon, specify AIRPLANE. For a bus, specify BUS. For
a full list of supported icons, see standard icons.
Corresponds to the JSON property knownIcon
1725 1726 1727 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1725 def known_icon @known_icon end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1732 1733 1734 1735 1736 1737 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1732 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) end |