Class BackupForGKEConnection (2.26.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 CreateBackupPlan(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::CreateBackupPlanRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateBackupPlan(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 UpdateBackupPlan(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateBackupPlan(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 DeleteBackupPlan(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteBackupPlan(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 CreateBackup(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::CreateBackupRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateBackup(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 UpdateBackup(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::UpdateBackupRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateBackup(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 DeleteBackup(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::DeleteBackupRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteBackup(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 CreateRestorePlan(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::CreateRestorePlanRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateRestorePlan(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 UpdateRestorePlan(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateRestorePlan(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 DeleteRestorePlan(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteRestorePlan(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 CreateRestore(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::CreateRestoreRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateRestore(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 UpdateRestore(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::UpdateRestoreRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateRestore(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 DeleteRestore(ExperimentalTag, NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::gkebackup::v1::DeleteRestoreRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteRestore(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation 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 >

virtual GetBackupIndexDownloadUrl(google::cloud::gkebackup::v1::GetBackupIndexDownloadUrlRequest const &)

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