google_api_mirror v0.6.0 GoogleApi.Mirror.V1.Model.Notification View Source

A notification delivered by the API.

Attributes

  • collection (type: String.t, default: nil) - The collection that generated the notification.
  • itemId (type: String.t, default: nil) - The ID of the item that generated the notification.
  • operation (type: String.t, default: nil) - The type of operation that generated the notification.
  • userActions (type: list(GoogleApi.Mirror.V1.Model.UserAction.t), default: nil) - A list of actions taken by the user that triggered the notification.
  • userToken (type: String.t, default: nil) - The user token provided by the service when it subscribed for notifications.
  • verifyToken (type: String.t, default: nil) - The secret verify token provided by the service when it subscribed for notifications.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Mirror.V1.Model.Notification{
  collection: String.t(),
  itemId: String.t(),
  operation: String.t(),
  userActions: [GoogleApi.Mirror.V1.Model.UserAction.t()],
  userToken: String.t(),
  verifyToken: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.