BigQuery Reservation V1 API - Class Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::ServiceStub (v1.0.0)

Reference documentation and code samples for the BigQuery Reservation V1 API class Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::ServiceStub.

REST service stub for the ReservationService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_assignment

def create_assignment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::Assignment

Baseline implementation for the create_assignment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_capacity_commitment

def create_capacity_commitment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment

Baseline implementation for the create_capacity_commitment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_reservation

def create_reservation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::Reservation

Baseline implementation for the create_reservation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_assignment

def delete_assignment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_assignment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_capacity_commitment

def delete_capacity_commitment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_capacity_commitment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_reservation

def delete_reservation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_reservation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_bi_reservation

def get_bi_reservation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::BiReservation

Baseline implementation for the get_bi_reservation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_capacity_commitment

def get_capacity_commitment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment

Baseline implementation for the get_capacity_commitment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_reservation

def get_reservation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::Reservation

Baseline implementation for the get_reservation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_assignments

def list_assignments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsResponse

Baseline implementation for the list_assignments REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_capacity_commitments

def list_capacity_commitments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsResponse

Baseline implementation for the list_capacity_commitments REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_reservations

def list_reservations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::ListReservationsResponse

Baseline implementation for the list_reservations REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#merge_capacity_commitments

def merge_capacity_commitments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment

Baseline implementation for the merge_capacity_commitments REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#move_assignment

def move_assignment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::Assignment

Baseline implementation for the move_assignment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#search_all_assignments

def search_all_assignments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::SearchAllAssignmentsResponse

Baseline implementation for the search_all_assignments REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#search_assignments

def search_assignments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsResponse

Baseline implementation for the search_assignments REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#split_capacity_commitment

def split_capacity_commitment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse

Baseline implementation for the split_capacity_commitment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_assignment

def update_assignment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::Assignment

Baseline implementation for the update_assignment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_bi_reservation

def update_bi_reservation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::BiReservation

Baseline implementation for the update_bi_reservation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_capacity_commitment

def update_capacity_commitment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment

Baseline implementation for the update_capacity_commitment REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_reservation

def update_reservation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Reservation::V1::Reservation

Baseline implementation for the update_reservation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)