Class: Google::Apis::GmailV1::History
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GmailV1::History
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gmail_v1/classes.rb,
 generated/google/apis/gmail_v1/representations.rb,
 generated/google/apis/gmail_v1/representations.rb
Overview
A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways.
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The mailbox sequence ID. 
- 
  
    
      #labels_added  ⇒ Array<Google::Apis::GmailV1::HistoryLabelAdded> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Labels added to messages in this history record. 
- 
  
    
      #labels_removed  ⇒ Array<Google::Apis::GmailV1::HistoryLabelRemoved> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Labels removed from messages in this history record. 
- 
  
    
      #messages  ⇒ Array<Google::Apis::GmailV1::Message> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    List of messages changed in this history record. 
- 
  
    
      #messages_added  ⇒ Array<Google::Apis::GmailV1::HistoryMessageAdded> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Messages added to the mailbox in this history record. 
- 
  
    
      #messages_deleted  ⇒ Array<Google::Apis::GmailV1::HistoryMessageDeleted> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Messages deleted (not Trashed) from the mailbox in this history record. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ History 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of History. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ History
Returns a new instance of History
| 337 338 339 | # File 'generated/google/apis/gmail_v1/classes.rb', line 337 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#id ⇒ Fixnum
The mailbox sequence ID.
Corresponds to the JSON property id
| 308 309 310 | # File 'generated/google/apis/gmail_v1/classes.rb', line 308 def id @id end | 
#labels_added ⇒ Array<Google::Apis::GmailV1::HistoryLabelAdded>
Labels added to messages in this history record.
Corresponds to the JSON property labelsAdded
| 313 314 315 | # File 'generated/google/apis/gmail_v1/classes.rb', line 313 def labels_added @labels_added end | 
#labels_removed ⇒ Array<Google::Apis::GmailV1::HistoryLabelRemoved>
Labels removed from messages in this history record.
Corresponds to the JSON property labelsRemoved
| 318 319 320 | # File 'generated/google/apis/gmail_v1/classes.rb', line 318 def labels_removed @labels_removed end | 
#messages ⇒ Array<Google::Apis::GmailV1::Message>
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
| 325 326 327 | # File 'generated/google/apis/gmail_v1/classes.rb', line 325 def @messages end | 
#messages_added ⇒ Array<Google::Apis::GmailV1::HistoryMessageAdded>
Messages added to the mailbox in this history record.
Corresponds to the JSON property messagesAdded
| 330 331 332 | # File 'generated/google/apis/gmail_v1/classes.rb', line 330 def @messages_added end | 
#messages_deleted ⇒ Array<Google::Apis::GmailV1::HistoryMessageDeleted>
Messages deleted (not Trashed) from the mailbox in this history record.
Corresponds to the JSON property messagesDeleted
| 335 336 337 | # File 'generated/google/apis/gmail_v1/classes.rb', line 335 def @messages_deleted end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 342 343 344 345 346 347 348 349 | # File 'generated/google/apis/gmail_v1/classes.rb', line 342 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 |