Class SqlUsersServiceConnection (2.21.0)

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

To create a concrete instance, see MakeSqlUsersServiceConnection().

For mocking, see sql_v1_mocks::MockSqlUsersServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

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

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

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

Parameter
NameDescription
request google::cloud::sql::v1::SqlUsersGetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::User >

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

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

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

Parameter
NameDescription
request google::cloud::sql::v1::SqlUsersListRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::UsersListResponse >

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

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