View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick (google_api_chat v0.34.3)

Represents how to respond when users click an interactive element on a card, such as a button. Google Workspace Add-ons and Chat apps:

Attributes

  • action (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t, default: nil) - If specified, an action is triggered by this onClick.
  • card (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Card.t, default: nil) - A new card is pushed to the card stack after clicking if specified. Google Workspace Add-ons:
  • openDynamicLinkAction (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t, default: nil) - An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back. Google Workspace Add-ons:
  • openLink (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OpenLink.t, default: nil) - If specified, this onClick triggers an open link action.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1OnClick{
  action: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t() | nil,
  card: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Card.t() | nil,
  openDynamicLinkAction:
    GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t() | nil,
  openLink: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OpenLink.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.