Class BackupDRConnection (2.29.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 > >