Class SqlOperationsServiceConnection (2.13.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::sql::v1::SqlOperationsGetRequest const &
Returns
Type Description
StatusOr< google::cloud::sql::v1::Operation >

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

Parameter
Name Description
request google::cloud::sql::v1::SqlOperationsListRequest
Returns
Type Description
StreamRange< google::cloud::sql::v1::Operation >