Class SqlConnectServiceConnection (2.21.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::sql::v1::GetConnectSettingsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::ConnectSettings >

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

Parameter
NameDescription
request google::cloud::sql::v1::GenerateEphemeralCertRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::GenerateEphemeralCertResponse >