View Source GoogleApi.Gmail.V1.Model.History (google_api_gmail v0.15.0)

A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways.

Attributes

  • id (type: String.t, default: nil) - The mailbox sequence ID.
  • labelsAdded (type: list(GoogleApi.Gmail.V1.Model.HistoryLabelAdded.t), default: nil) - Labels added to messages in this history record.
  • labelsRemoved (type: list(GoogleApi.Gmail.V1.Model.HistoryLabelRemoved.t), default: nil) - Labels removed from messages in this history record.
  • messages (type: list(GoogleApi.Gmail.V1.Model.Message.t), default: nil) - List of messages changed in this history record. The fields for specific change types, such as messagesAdded may duplicate messages in this field. We recommend using the specific change-type fields instead of this.
  • messagesAdded (type: list(GoogleApi.Gmail.V1.Model.HistoryMessageAdded.t), default: nil) - Messages added to the mailbox in this history record.
  • messagesDeleted (type: list(GoogleApi.Gmail.V1.Model.HistoryMessageDeleted.t), default: nil) - Messages deleted (not Trashed) from the mailbox in this history record.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Gmail.V1.Model.History{
  id: String.t() | nil,
  labelsAdded: [GoogleApi.Gmail.V1.Model.HistoryLabelAdded.t()] | nil,
  labelsRemoved: [GoogleApi.Gmail.V1.Model.HistoryLabelRemoved.t()] | nil,
  messages: [GoogleApi.Gmail.V1.Model.Message.t()] | nil,
  messagesAdded: [GoogleApi.Gmail.V1.Model.HistoryMessageAdded.t()] | nil,
  messagesDeleted: [GoogleApi.Gmail.V1.Model.HistoryMessageDeleted.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.