Class BackupDRConnection (2.26.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(ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::CreateManagementServerRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::backupdr::v1::DeleteManagementServerRequest const &)

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

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

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