Class: Google::Apis::TpuV2alpha1::ListReservationsResponse
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::ListReservationsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb
Overview
Response for ListReservations.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
The next page token or empty if none.
-
#reservations ⇒ Array<Google::Apis::TpuV2alpha1::Reservation>
The listed reservations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListReservationsResponse
constructor
A new instance of ListReservationsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListReservationsResponse
Returns a new instance of ListReservationsResponse.
649 650 651 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 649 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
The next page token or empty if none.
Corresponds to the JSON property nextPageToken
642 643 644 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 642 def next_page_token @next_page_token end |
#reservations ⇒ Array<Google::Apis::TpuV2alpha1::Reservation>
The listed reservations.
Corresponds to the JSON property reservations
647 648 649 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 647 def reservations @reservations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
654 655 656 657 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 654 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @reservations = args[:reservations] if args.key?(:reservations) end |