Class CloudRedisConnection (2.26.0)

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

To create a concrete instance, see MakeCloudRedisConnection().

For mocking, see redis_v1_mocks::MockCloudRedisConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListInstances(google::cloud::redis::v1::ListInstancesRequest)

Parameter
Name Description
request google::cloud::redis::v1::ListInstancesRequest
Returns
Type Description
StreamRange< google::cloud::redis::v1::Instance >

virtual GetInstance(google::cloud::redis::v1::GetInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::GetInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::redis::v1::Instance >

virtual GetInstanceAuthString(google::cloud::redis::v1::GetInstanceAuthStringRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::GetInstanceAuthStringRequest const &
Returns
Type Description
StatusOr< google::cloud::redis::v1::InstanceAuthString >

virtual CreateInstance(google::cloud::redis::v1::CreateInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::CreateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual CreateInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const &)

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

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

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

virtual UpdateInstance(google::cloud::redis::v1::UpdateInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::UpdateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual UpdateInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpdateInstanceRequest const &)

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

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

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

virtual UpgradeInstance(google::cloud::redis::v1::UpgradeInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::UpgradeInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual UpgradeInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::UpgradeInstanceRequest const &)

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

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

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

virtual ImportInstance(google::cloud::redis::v1::ImportInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::ImportInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual ImportInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ImportInstanceRequest const &)

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

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

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

virtual ExportInstance(google::cloud::redis::v1::ExportInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::ExportInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual ExportInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::ExportInstanceRequest const &)

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

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

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

virtual FailoverInstance(google::cloud::redis::v1::FailoverInstanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::FailoverInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual FailoverInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::FailoverInstanceRequest const &)

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

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

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

virtual DeleteInstance(google::cloud::redis::v1::DeleteInstanceRequest const &)

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

virtual DeleteInstance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::DeleteInstanceRequest const &)

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

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

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

virtual RescheduleMaintenance(google::cloud::redis::v1::RescheduleMaintenanceRequest const &)

Parameter
Name Description
request google::cloud::redis::v1::RescheduleMaintenanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::v1::Instance > >

virtual RescheduleMaintenance(ExperimentalTag, NoAwaitTag, google::cloud::redis::v1::RescheduleMaintenanceRequest const &)

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

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

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