Class: Google::Apis::AndroidenterpriseV1::TokenPagination

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb

Overview

Pagination information returned by a List operation when token pagination is enabled. List operations that supports paging return only one "page" of results. This protocol buffer message describes the page that has been returned. When using token pagination, clients should use the next/previous token to get another page of the result. The presence or absence of next/ previous token indicates whether a next/previous page is available and provides a mean of accessing this page. ListRequest.page_token should be set to either next_page_token or previous_page_token to access another page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TokenPagination

Returns a new instance of TokenPagination.



2864
2865
2866
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2864

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

Instance Attribute Details

#next_page_tokenString

Tokens to pass to the standard list field 'page_token'. Whenever available, tokens are preferred over manipulating start_index. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2857
2858
2859
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2857

def next_page_token
  @next_page_token
end

#previous_page_tokenString

Corresponds to the JSON property previousPageToken

Returns:

  • (String)


2862
2863
2864
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2862

def previous_page_token
  @previous_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2869
2870
2871
2872
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2869

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