class Google::Apis::GmailV1::History

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

Attributes

id[RW]

The mailbox sequence ID. Corresponds to the JSON property `id` @return [Fixnum]

labels_added[RW]

Labels added to messages in this history record. Corresponds to the JSON property `labelsAdded` @return [Array<Google::Apis::GmailV1::HistoryLabelAdded>]

labels_removed[RW]

Labels removed from messages in this history record. Corresponds to the JSON property `labelsRemoved` @return [Array<Google::Apis::GmailV1::HistoryLabelRemoved>]

messages[RW]

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. Corresponds to the JSON property `messages` @return [Array<Google::Apis::GmailV1::Message>]

messages_added[RW]

Messages added to the mailbox in this history record. Corresponds to the JSON property `messagesAdded` @return [Array<Google::Apis::GmailV1::HistoryMessageAdded>]

messages_deleted[RW]

Messages deleted (not Trashed) from the mailbox in this history record. Corresponds to the JSON property `messagesDeleted` @return [Array<Google::Apis::GmailV1::HistoryMessageDeleted>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 365
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 370
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @labels_added = args[:labels_added] if args.key?(:labels_added)
  @labels_removed = args[:labels_removed] if args.key?(:labels_removed)
  @messages = args[:messages] if args.key?(:messages)
  @messages_added = args[:messages_added] if args.key?(:messages_added)
  @messages_deleted = args[:messages_deleted] if args.key?(:messages_deleted)
end