Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardAction

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

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. Not supported by Google Chat apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCardCardAction

Returns a new instance of GoogleChatV1ContextualAddOnMarkupCardCardAction.



10074
10075
10076
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10074

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

Instance Attribute Details

#action_labelString

The label used to be displayed in the action menu item. Corresponds to the JSON property actionLabel

Returns:

  • (String)


10067
10068
10069
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10067

def action_label
  @action_label
end

#on_clickGoogle::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupOnClick

An onclick action (e.g. open a link). Corresponds to the JSON property onClick



10072
10073
10074
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10072

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10079
10080
10081
10082
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10079

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