Class ReservationsConnection (2.33.0-rc)

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

To create a concrete instance, see MakeReservationsConnection().

For mocking, see compute_reservations_v1_mocks::MockReservationsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListReservations(google::cloud::cpp::compute::reservations::v1::AggregatedListReservationsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::AggregatedListReservationsRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::ReservationsScopedList > >

virtual DeleteReservation(google::cloud::cpp::compute::reservations::v1::DeleteReservationRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::DeleteReservationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DeleteReservation(NoAwaitTag, google::cloud::cpp::compute::reservations::v1::DeleteReservationRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::reservations::v1::DeleteReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DeleteReservation(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetReservation(google::cloud::cpp::compute::reservations::v1::GetReservationRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::GetReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Reservation >

virtual GetIamPolicy(google::cloud::cpp::compute::reservations::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual InsertReservation(google::cloud::cpp::compute::reservations::v1::InsertReservationRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::InsertReservationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual InsertReservation(NoAwaitTag, google::cloud::cpp::compute::reservations::v1::InsertReservationRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::reservations::v1::InsertReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual InsertReservation(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual ListReservations(google::cloud::cpp::compute::reservations::v1::ListReservationsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::ListReservationsRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Reservation >

virtual Resize(google::cloud::cpp::compute::reservations::v1::ResizeRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::ResizeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual Resize(NoAwaitTag, google::cloud::cpp::compute::reservations::v1::ResizeRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::reservations::v1::ResizeRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual Resize(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetIamPolicy(google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual TestIamPermissions(google::cloud::cpp::compute::reservations::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >

virtual UpdateReservation(google::cloud::cpp::compute::reservations::v1::UpdateReservationRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::reservations::v1::UpdateReservationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual UpdateReservation(NoAwaitTag, google::cloud::cpp::compute::reservations::v1::UpdateReservationRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::reservations::v1::UpdateReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual UpdateReservation(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >