Class ReservationServiceConnection (2.27.0)

This interface defines virtual methods for each of the user-facing overload sets in ReservationServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ReservationServiceClient.

To create a concrete instance, see MakeReservationServiceConnection().

For mocking, see bigquery_reservation_v1_mocks::MockReservationServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateReservation(google::cloud::bigquery::reservation::v1::CreateReservationRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::CreateReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::Reservation >

virtual ListReservations(google::cloud::bigquery::reservation::v1::ListReservationsRequest)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::ListReservationsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::reservation::v1::Reservation >

virtual GetReservation(google::cloud::bigquery::reservation::v1::GetReservationRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::GetReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::Reservation >

virtual DeleteReservation(google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &
Returns
Type Description
Status

virtual UpdateReservation(google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::Reservation >

virtual CreateCapacityCommitment(google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >

virtual ListCapacityCommitments(google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment >

virtual GetCapacityCommitment(google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >

virtual DeleteCapacityCommitment(google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &
Returns
Type Description
Status

virtual UpdateCapacityCommitment(google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >

virtual SplitCapacityCommitment(google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse >

virtual MergeCapacityCommitments(google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >

virtual CreateAssignment(google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::Assignment >

virtual ListAssignments(google::cloud::bigquery::reservation::v1::ListAssignmentsRequest)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::ListAssignmentsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::reservation::v1::Assignment >

virtual DeleteAssignment(google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &
Returns
Type Description
Status

virtual SearchAssignments(google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::reservation::v1::Assignment >

virtual SearchAllAssignments(google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest
Returns
Type Description
StreamRange< google::cloud::bigquery::reservation::v1::Assignment >

virtual MoveAssignment(google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::Assignment >

virtual UpdateAssignment(google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::Assignment >

virtual GetBiReservation(google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::BiReservation >

virtual UpdateBiReservation(google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &)

Parameter
Name Description
request google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::bigquery::reservation::v1::BiReservation >