Class CloudRedisConnection (2.29.0-rc)

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(NoAwaitTag, google::cloud::redis::v1::CreateInstanceRequest const &)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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