Class CloudRedisClusterConnection (2.20.0)

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

To create a concrete instance, see MakeCloudRedisClusterConnection().

For mocking, see redis_cluster_v1_mocks::MockCloudRedisClusterConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListClusters(google::cloud::redis::cluster::v1::ListClustersRequest)

Parameter
Name Description
request google::cloud::redis::cluster::v1::ListClustersRequest
Returns
Type Description
StreamRange< google::cloud::redis::cluster::v1::Cluster >

virtual GetCluster(google::cloud::redis::cluster::v1::GetClusterRequest const &)

Parameter
Name Description
request google::cloud::redis::cluster::v1::GetClusterRequest const &
Returns
Type Description
StatusOr< google::cloud::redis::cluster::v1::Cluster >

virtual UpdateCluster(google::cloud::redis::cluster::v1::UpdateClusterRequest const &)

Parameter
Name Description
request google::cloud::redis::cluster::v1::UpdateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::cluster::v1::Cluster > >

virtual DeleteCluster(google::cloud::redis::cluster::v1::DeleteClusterRequest const &)

Parameter
Name Description
request google::cloud::redis::cluster::v1::DeleteClusterRequest const &
Returns
Type Description
future< StatusOr< google::protobuf::Any > >

virtual CreateCluster(google::cloud::redis::cluster::v1::CreateClusterRequest const &)

Parameter
Name Description
request google::cloud::redis::cluster::v1::CreateClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::redis::cluster::v1::Cluster > >