Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardAction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardAction
- 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
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Instance Attribute Summary collapse
-
#action_label ⇒ String
The label used to be displayed in the action menu item.
-
#on_click ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick
An onclick action (e.g. open a link).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardCardAction
constructor
A new instance of GoogleChatV1ContextualAddOnMarkupCardCardAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardCardAction
Returns a new instance of GoogleChatV1ContextualAddOnMarkupCardCardAction.
8440 8441 8442 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8440 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_label ⇒ String
The label used to be displayed in the action menu item.
Corresponds to the JSON property actionLabel
8433 8434 8435 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8433 def action_label @action_label end |
#on_click ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick
An onclick action (e.g. open a link).
Corresponds to the JSON property onClick
8438 8439 8440 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8438 def on_click @on_click end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8445 8446 8447 8448 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8445 def update!(**args) @action_label = args[:action_label] if args.key?(:action_label) @on_click = args[:on_click] if args.key?(:on_click) end |