Class: Google::Apis::TpuV2alpha1::ListReservationsResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_tokenString

The next page token or empty if none. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


642
643
644
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 642

def next_page_token
  @next_page_token
end

#reservationsArray<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