Class SqlOperationsServiceConnection (2.21.0)

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

To create a concrete instance, see MakeSqlOperationsServiceConnection().

For mocking, see sql_v1_mocks::MockSqlOperationsServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual Get(google::cloud::sql::v1::SqlOperationsGetRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlOperationsGetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Operation >

virtual List(google::cloud::sql::v1::SqlOperationsListRequest)

Parameter
NameDescription
request google::cloud::sql::v1::SqlOperationsListRequest
Returns
TypeDescription
StreamRange< google::cloud::sql::v1::Operation >

virtual Cancel(google::cloud::sql::v1::SqlOperationsCancelRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlOperationsCancelRequest const &
Returns
TypeDescription
Status