Class CloudRedisConnection (2.19.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::redis::v1::ListInstancesRequest
Returns
TypeDescription
StreamRange< google::cloud::redis::v1::Instance >

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

Parameter
NameDescription
request google::cloud::redis::v1::GetInstanceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::redis::v1::Instance >

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

Parameter
NameDescription
request google::cloud::redis::v1::GetInstanceAuthStringRequest const &
Returns
TypeDescription
StatusOr< google::cloud::redis::v1::InstanceAuthString >

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

Parameter
NameDescription
request google::cloud::redis::v1::CreateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::redis::v1::UpdateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::redis::v1::UpgradeInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::redis::v1::ImportInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::redis::v1::ExportInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::redis::v1::FailoverInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >

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

Parameter
NameDescription
request google::cloud::redis::v1::DeleteInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::redis::v1::RescheduleMaintenanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::v1::Instance > >