Class: Google::Apis::BigqueryreservationV1::ListCapacityCommitmentsResponse

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

Overview

The response for ReservationService.ListCapacityCommitments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListCapacityCommitmentsResponse

Returns a new instance of ListCapacityCommitmentsResponse.



310
311
312
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 310

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

Instance Attribute Details

#capacity_commitmentsArray<Google::Apis::BigqueryreservationV1::CapacityCommitment>

List of capacity commitments visible to the user. Corresponds to the JSON property capacityCommitments



302
303
304
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 302

def capacity_commitments
  @capacity_commitments
end

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


308
309
310
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 308

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



315
316
317
318
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 315

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