Class: Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse

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

Overview

The response for ReservationService.ListReservations.

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

Returns a new instance of ListReservationsResponse.


103
104
105
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 103

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

Instance Attribute Details

#next_page_tokenString

Token to retrieve the next page of results, or empty if there are no more results in the list. Corresponds to the JSON property nextPageToken

Returns:

  • (String)

96
97
98
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 96

def next_page_token
  @next_page_token
end

#reservationsArray<Google::Apis::BigqueryreservationV1alpha2::Reservation>

List of reservations visible to the user. Corresponds to the JSON property reservations


101
102
103
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 101

def reservations
  @reservations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


108
109
110
111
# File 'generated/google/apis/bigqueryreservation_v1alpha2/classes.rb', line 108

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