Class SqlBackupRunsServiceConnection (2.22.0-rc)

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

To create a concrete instance, see MakeSqlBackupRunsServiceConnection().

For mocking, see sql_v1_mocks::MockSqlBackupRunsServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

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

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

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

Parameter
NameDescription
request google::cloud::sql::v1::SqlBackupRunsGetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::BackupRun >

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

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

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

Parameter
NameDescription
request google::cloud::sql::v1::SqlBackupRunsListRequest const &
Returns
TypeDescription
StatusOr< google::cloud::sql::v1::BackupRunsListResponse >