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

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.
  • 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.
  • openLink (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1OpenLink.t, default: nil) - If specified, this onClick triggers an open link action.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.