Class SqlUsersServiceConnection (2.29.0-rc)

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
Type Description
Options

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

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

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

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

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

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

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

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

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

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