Class BackupDRConnection (2.31.0)

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

To create a concrete instance, see MakeBackupDRConnection().

For mocking, see backupdr_v1_mocks::MockBackupDRConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListManagementServers(google::cloud::backupdr::v1::ListManagementServersRequest)

Parameter
Name Description
request google::cloud::backupdr::v1::ListManagementServersRequest
Returns
Type Description
StreamRange< google::cloud::backupdr::v1::ManagementServer >

virtual GetManagementServer(google::cloud::backupdr::v1::GetManagementServerRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::GetManagementServerRequest const &
Returns
Type Description
StatusOr< google::cloud::backupdr::v1::ManagementServer >

virtual CreateManagementServer(google::cloud::backupdr::v1::CreateManagementServerRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::CreateManagementServerRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::ManagementServer > >

virtual CreateManagementServer(NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::ManagementServer > >

virtual DeleteManagementServer(google::cloud::backupdr::v1::DeleteManagementServerRequest const &)

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

virtual DeleteManagementServer(NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::OperationMetadata > >

virtual CreateBackupVault(google::cloud::backupdr::v1::CreateBackupVaultRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::CreateBackupVaultRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupVault > >

virtual CreateBackupVault(NoAwaitTag, google::cloud::backupdr::v1::CreateBackupVaultRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupVault > >

virtual ListBackupVaults(google::cloud::backupdr::v1::ListBackupVaultsRequest)

Parameter
Name Description
request google::cloud::backupdr::v1::ListBackupVaultsRequest
Returns
Type Description
StreamRange< google::cloud::backupdr::v1::BackupVault >

virtual FetchUsableBackupVaults(google::cloud::backupdr::v1::FetchUsableBackupVaultsRequest)

Parameter
Name Description
request google::cloud::backupdr::v1::FetchUsableBackupVaultsRequest
Returns
Type Description
StreamRange< google::cloud::backupdr::v1::BackupVault >

virtual GetBackupVault(google::cloud::backupdr::v1::GetBackupVaultRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::GetBackupVaultRequest const &
Returns
Type Description
StatusOr< google::cloud::backupdr::v1::BackupVault >

virtual UpdateBackupVault(google::cloud::backupdr::v1::UpdateBackupVaultRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::UpdateBackupVaultRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupVault > >

virtual UpdateBackupVault(NoAwaitTag, google::cloud::backupdr::v1::UpdateBackupVaultRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupVault > >

virtual DeleteBackupVault(google::cloud::backupdr::v1::DeleteBackupVaultRequest const &)

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

virtual DeleteBackupVault(NoAwaitTag, google::cloud::backupdr::v1::DeleteBackupVaultRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::OperationMetadata > >

virtual ListDataSources(google::cloud::backupdr::v1::ListDataSourcesRequest)

Parameter
Name Description
request google::cloud::backupdr::v1::ListDataSourcesRequest
Returns
Type Description
StreamRange< google::cloud::backupdr::v1::DataSource >

virtual GetDataSource(google::cloud::backupdr::v1::GetDataSourceRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::GetDataSourceRequest const &
Returns
Type Description
StatusOr< google::cloud::backupdr::v1::DataSource >

virtual UpdateDataSource(google::cloud::backupdr::v1::UpdateDataSourceRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::UpdateDataSourceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::DataSource > >

virtual UpdateDataSource(NoAwaitTag, google::cloud::backupdr::v1::UpdateDataSourceRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::DataSource > >

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

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

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

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

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

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

virtual UpdateBackup(NoAwaitTag, google::cloud::backupdr::v1::UpdateBackupRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::backupdr::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::backupdr::v1::Backup > >

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

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

virtual DeleteBackup(NoAwaitTag, google::cloud::backupdr::v1::DeleteBackupRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::backupdr::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::backupdr::v1::Backup > >

virtual RestoreBackup(google::cloud::backupdr::v1::RestoreBackupRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::RestoreBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::RestoreBackupResponse > >

virtual RestoreBackup(NoAwaitTag, google::cloud::backupdr::v1::RestoreBackupRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::RestoreBackupResponse > >

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

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

virtual CreateBackupPlan(NoAwaitTag, google::cloud::backupdr::v1::CreateBackupPlanRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::backupdr::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::backupdr::v1::BackupPlan > >

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

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

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

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

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

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

virtual DeleteBackupPlan(NoAwaitTag, google::cloud::backupdr::v1::DeleteBackupPlanRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::backupdr::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::backupdr::v1::OperationMetadata > >

virtual CreateBackupPlanAssociation(google::cloud::backupdr::v1::CreateBackupPlanAssociationRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::CreateBackupPlanAssociationRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupPlanAssociation > >

virtual CreateBackupPlanAssociation(NoAwaitTag, google::cloud::backupdr::v1::CreateBackupPlanAssociationRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupPlanAssociation > >

virtual GetBackupPlanAssociation(google::cloud::backupdr::v1::GetBackupPlanAssociationRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::GetBackupPlanAssociationRequest const &
Returns
Type Description
StatusOr< google::cloud::backupdr::v1::BackupPlanAssociation >

virtual ListBackupPlanAssociations(google::cloud::backupdr::v1::ListBackupPlanAssociationsRequest)

Parameter
Name Description
request google::cloud::backupdr::v1::ListBackupPlanAssociationsRequest
Returns
Type Description
StreamRange< google::cloud::backupdr::v1::BackupPlanAssociation >

virtual DeleteBackupPlanAssociation(google::cloud::backupdr::v1::DeleteBackupPlanAssociationRequest const &)

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

virtual DeleteBackupPlanAssociation(NoAwaitTag, google::cloud::backupdr::v1::DeleteBackupPlanAssociationRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::OperationMetadata > >

virtual TriggerBackup(google::cloud::backupdr::v1::TriggerBackupRequest const &)

Parameter
Name Description
request google::cloud::backupdr::v1::TriggerBackupRequest const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupPlanAssociation > >

virtual TriggerBackup(NoAwaitTag, google::cloud::backupdr::v1::TriggerBackupRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::backupdr::v1::BackupPlanAssociation > >

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