Class SqlDatabasesServiceConnection (2.18.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
Type Description
Options

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

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

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

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

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

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

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

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

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

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

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

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