Class: Google::Apis::GmailV1::ListHistoryResponse

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListHistoryResponse

Returns a new instance of ListHistoryResponse.



785
786
787
# File 'generated/google/apis/gmail_v1/classes.rb', line 785

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#historyArray<Google::Apis::GmailV1::History>

List of history records. Any messages contained in the response will typically only have id and threadId fields populated. Corresponds to the JSON property history

Returns:



773
774
775
# File 'generated/google/apis/gmail_v1/classes.rb', line 773

def history
  @history
end

#history_idFixnum

The ID of the mailbox's current history record. Corresponds to the JSON property historyId

Returns:

  • (Fixnum)


778
779
780
# File 'generated/google/apis/gmail_v1/classes.rb', line 778

def history_id
  @history_id
end

#next_page_tokenString

Page token to retrieve the next page of results in the list. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


783
784
785
# File 'generated/google/apis/gmail_v1/classes.rb', line 783

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



790
791
792
793
794
# File 'generated/google/apis/gmail_v1/classes.rb', line 790

def update!(**args)
  @history = args[:history] if args.key?(:history)
  @history_id = args[:history_id] if args.key?(:history_id)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end