Class BackupForGKEConnection (2.22.0)

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

To create a concrete instance, see MakeBackupForGKEConnection().

For mocking, see gkebackup_v1_mocks::MockBackupForGKEConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateBackupPlan(google::cloud::gkebackup::v1::CreateBackupPlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::CreateBackupPlanRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > >

virtual ListBackupPlans(google::cloud::gkebackup::v1::ListBackupPlansRequest)

Parameter
NameDescription
request google::cloud::gkebackup::v1::ListBackupPlansRequest
Returns
TypeDescription
StreamRange< google::cloud::gkebackup::v1::BackupPlan >

virtual GetBackupPlan(google::cloud::gkebackup::v1::GetBackupPlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::GetBackupPlanRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkebackup::v1::BackupPlan >

virtual UpdateBackupPlan(google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > >

virtual DeleteBackupPlan(google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

virtual CreateBackup(google::cloud::gkebackup::v1::CreateBackupRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::CreateBackupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::Backup > >

virtual ListBackups(google::cloud::gkebackup::v1::ListBackupsRequest)

Parameter
NameDescription
request google::cloud::gkebackup::v1::ListBackupsRequest
Returns
TypeDescription
StreamRange< google::cloud::gkebackup::v1::Backup >

virtual GetBackup(google::cloud::gkebackup::v1::GetBackupRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::GetBackupRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkebackup::v1::Backup >

virtual UpdateBackup(google::cloud::gkebackup::v1::UpdateBackupRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::UpdateBackupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::Backup > >

virtual DeleteBackup(google::cloud::gkebackup::v1::DeleteBackupRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::DeleteBackupRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

virtual ListVolumeBackups(google::cloud::gkebackup::v1::ListVolumeBackupsRequest)

Parameter
NameDescription
request google::cloud::gkebackup::v1::ListVolumeBackupsRequest
Returns
TypeDescription
StreamRange< google::cloud::gkebackup::v1::VolumeBackup >

virtual GetVolumeBackup(google::cloud::gkebackup::v1::GetVolumeBackupRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::GetVolumeBackupRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkebackup::v1::VolumeBackup >

virtual CreateRestorePlan(google::cloud::gkebackup::v1::CreateRestorePlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::CreateRestorePlanRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > >

virtual ListRestorePlans(google::cloud::gkebackup::v1::ListRestorePlansRequest)

Parameter
NameDescription
request google::cloud::gkebackup::v1::ListRestorePlansRequest
Returns
TypeDescription
StreamRange< google::cloud::gkebackup::v1::RestorePlan >

virtual GetRestorePlan(google::cloud::gkebackup::v1::GetRestorePlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::GetRestorePlanRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkebackup::v1::RestorePlan >

virtual UpdateRestorePlan(google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > >

virtual DeleteRestorePlan(google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

virtual CreateRestore(google::cloud::gkebackup::v1::CreateRestoreRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::CreateRestoreRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::Restore > >

virtual ListRestores(google::cloud::gkebackup::v1::ListRestoresRequest)

Parameter
NameDescription
request google::cloud::gkebackup::v1::ListRestoresRequest
Returns
TypeDescription
StreamRange< google::cloud::gkebackup::v1::Restore >

virtual GetRestore(google::cloud::gkebackup::v1::GetRestoreRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::GetRestoreRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkebackup::v1::Restore >

virtual UpdateRestore(google::cloud::gkebackup::v1::UpdateRestoreRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::UpdateRestoreRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::Restore > >

virtual DeleteRestore(google::cloud::gkebackup::v1::DeleteRestoreRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::DeleteRestoreRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

virtual ListVolumeRestores(google::cloud::gkebackup::v1::ListVolumeRestoresRequest)

Parameter
NameDescription
request google::cloud::gkebackup::v1::ListVolumeRestoresRequest
Returns
TypeDescription
StreamRange< google::cloud::gkebackup::v1::VolumeRestore >

virtual GetVolumeRestore(google::cloud::gkebackup::v1::GetVolumeRestoreRequest const &)

Parameter
NameDescription
request google::cloud::gkebackup::v1::GetVolumeRestoreRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkebackup::v1::VolumeRestore >