Class SqlDatabasesServiceConnection (2.19.0)

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

To create a concrete instance, see MakeSqlDatabasesServiceConnection().

For mocking, see sql_v1_mocks::MockSqlDatabasesServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual Delete(google::cloud::sql::v1::SqlDatabasesDeleteRequest const &)

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

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

Parameter
NameDescription
request google::cloud::sql::v1::SqlDatabasesGetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::Database >

virtual Insert(google::cloud::sql::v1::SqlDatabasesInsertRequest const &)

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

virtual List(google::cloud::sql::v1::SqlDatabasesListRequest const &)

Parameter
NameDescription
request google::cloud::sql::v1::SqlDatabasesListRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::DatabasesListResponse >

virtual Patch(google::cloud::sql::v1::SqlDatabasesUpdateRequest const &)

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

virtual Update(google::cloud::sql::v1::SqlDatabasesUpdateRequest const &)

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