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

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const &)

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

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

Parameter
Name Description
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(NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const &)

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

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

Parameter
Name Description
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 >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status