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
The mailbox sequence ID. Corresponds to the JSON property `id` @return [String]
Labels added to messages in this history record. Corresponds to the JSON property `labelsAdded` @return [Array<Google::Apis::GmailV1::HistoryLabelAdded>]
Labels removed from messages in this history record. Corresponds to the JSON property `labelsRemoved` @return [Array<Google::Apis::GmailV1::HistoryLabelRemoved>]
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 to the mailbox in this history record. Corresponds to the JSON property `messagesAdded` @return [Array<Google::Apis::GmailV1::HistoryMessageAdded>]
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
# File generated/google/apis/gmail_v1/classes.rb, line 106 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/gmail_v1/classes.rb, line 111 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