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

Constructor Details

#initialize(**args) ⇒ GoogleExampleLibraryagentV1ListShelvesResponse

Returns a new instance of GoogleExampleLibraryagentV1ListShelvesResponse.



107
108
109
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 107

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)


100
101
102
# File 'generated/google/apis/libraryagent_v1/classes.rb', line 100

def next_page_token
  @next_page_token
end

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

The list of shelves. Corresponds to the JSON property shelves



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

def shelves
  @shelves
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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