Class BackupForGKEConnection (2.16.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::gkebackup::v1::CreateBackupPlanRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::ListBackupPlansRequest
Returns
Type Description
StreamRange< google::cloud::gkebackup::v1::BackupPlan >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::GetBackupPlanRequest const &
Returns
Type Description
StatusOr< google::cloud::gkebackup::v1::BackupPlan >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::CreateBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::Backup > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::ListBackupsRequest
Returns
Type Description
StreamRange< google::cloud::gkebackup::v1::Backup >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::GetBackupRequest const &
Returns
Type Description
StatusOr< google::cloud::gkebackup::v1::Backup >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::UpdateBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::Backup > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::DeleteBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::ListVolumeBackupsRequest
Returns
Type Description
StreamRange< google::cloud::gkebackup::v1::VolumeBackup >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::GetVolumeBackupRequest const &
Returns
Type Description
StatusOr< google::cloud::gkebackup::v1::VolumeBackup >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::CreateRestorePlanRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::ListRestorePlansRequest
Returns
Type Description
StreamRange< google::cloud::gkebackup::v1::RestorePlan >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::GetRestorePlanRequest const &
Returns
Type Description
StatusOr< google::cloud::gkebackup::v1::RestorePlan >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::CreateRestoreRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::Restore > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::ListRestoresRequest
Returns
Type Description
StreamRange< google::cloud::gkebackup::v1::Restore >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::GetRestoreRequest const &
Returns
Type Description
StatusOr< google::cloud::gkebackup::v1::Restore >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::UpdateRestoreRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::Restore > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::DeleteRestoreRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::ListVolumeRestoresRequest
Returns
Type Description
StreamRange< google::cloud::gkebackup::v1::VolumeRestore >

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

Parameter
Name Description
request google::cloud::gkebackup::v1::GetVolumeRestoreRequest const &
Returns
Type Description
StatusOr< google::cloud::gkebackup::v1::VolumeRestore >