Class SqlConnectServiceConnection (2.23.0)

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

To create a concrete instance, see MakeSqlConnectServiceConnection().

For mocking, see sql_v1_mocks::MockSqlConnectServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetConnectSettings(google::cloud::sql::v1::GetConnectSettingsRequest const &)

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

virtual GenerateEphemeralCert(google::cloud::sql::v1::GenerateEphemeralCertRequest const &)

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