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

Google Chat events.


  • action (type: GoogleApi.Chat.V1.Model.FormAction.t, default: nil) - The form action data associated with an interactive card that was clicked. Only populated for CARD_CLICKED events. See the Interactive Cards guide for more information.
  • configCompleteRedirectUrl (type: String.t, default: nil) - The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. See the Authorizing access to 3p services guide for more information.
  • eventTime (type: DateTime.t, default: nil) - The timestamp indicating when the event was dispatched.
  • message (type: GoogleApi.Chat.V1.Model.Message.t, default: nil) - The message that triggered the event, if applicable.
  • space (type: GoogleApi.Chat.V1.Model.Space.t, default: nil) - The room or DM in which the event occurred.
  • threadKey (type: String.t, default: nil) - The bot-defined key for the thread related to the event. See the thread_key field of the spaces.message.create request for more information.
  • token (type: String.t, default: nil) - A secret value that bots can use to verify if a request is from Google. The token is randomly generated by Google, remains static, and can be obtained from the Google Chat API configuration page in the Cloud Console. Developers can revoke/regenerate it if needed from the same page.
  • type (type: String.t, default: nil) - The type of the event.
  • user (type: GoogleApi.Chat.V1.Model.User.t, default: nil) - The user that triggered the event.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Chat.V1.Model.DeprecatedEvent{
  action: GoogleApi.Chat.V1.Model.FormAction.t() | nil,
  configCompleteRedirectUrl: String.t() | nil,
  eventTime: DateTime.t() | nil,
  message: GoogleApi.Chat.V1.Model.Message.t() | nil,
  space: GoogleApi.Chat.V1.Model.Space.t() | nil,
  threadKey: String.t() | nil,
  token: String.t() | nil,
  type: String.t() | nil,
  user: GoogleApi.Chat.V1.Model.User.t() | nil

Link to this section Functions


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

Unwrap a decoded JSON object into its complex fields.