Class: Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
- Defined in:
- generated/google/apis/cloudresourcemanager_v1beta1/classes.rb,
generated/google/apis/cloudresourcemanager_v1beta1/representations.rb,
generated/google/apis/cloudresourcemanager_v1beta1/representations.rb
Overview
A page of the response received from the
ListProjects
method.
A paginated response where more pages are available has
next_page_token
set. This token can be used in a subsequent request to
retrieve the next request page.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
Pagination token.
-
#projects ⇒ Array<Google::Apis::CloudresourcemanagerV1beta1::Project>
The list of Projects that matched the list filter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListProjectsResponse
constructor
A new instance of ListProjectsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ListProjectsResponse
Returns a new instance of ListProjectsResponse
386 387 388 |
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
Pagination token.
If the result set is too large to fit in a single response, this token
is returned. It encodes the position of the current result cursor.
Feeding this value into a new list request with the page_token
parameter
gives the next page of the results.
When next_page_token
is not filled in, there is no next page and
the list returned is the last page in the result set.
Pagination tokens have a limited lifetime.
Corresponds to the JSON property nextPageToken
378 379 380 |
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 378 def next_page_token @next_page_token end |
#projects ⇒ Array<Google::Apis::CloudresourcemanagerV1beta1::Project>
The list of Projects that matched the list filter. This list can
be paginated.
Corresponds to the JSON property projects
384 385 386 |
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 384 def projects @projects end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
391 392 393 394 |
# File 'generated/google/apis/cloudresourcemanager_v1beta1/classes.rb', line 391 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @projects = args[:projects] if args.key?(:projects) end |