Class: Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1ListShelvesResponse

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

Overview

Response message for LibraryAgent.ListShelves.

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) ⇒ GoogleExampleLibraryagentV1ListShelvesResponse

Returns a new instance of GoogleExampleLibraryagentV1ListShelvesResponse.



112
113
114
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 112

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

Instance Attribute Details

#next_page_tokenString

A token to retrieve next page of results. Pass this value in the ListShelvesRequest.page_token field in the subsequent call to ListShelves method to retrieve the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 105

def next_page_token
  @next_page_token
end

#shelvesArray<Google::Apis::LibraryagentV1::GoogleExampleLibraryagentV1Shelf>

The list of shelves. Corresponds to the JSON property shelves



110
111
112
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 110

def shelves
  @shelves
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



117
118
119
120
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 117

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