Class CloudRedisConnection (2.18.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 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 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 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 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 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 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 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 > >