Class CloudRedisClusterConnection (2.22.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::redis::cluster::v1::ListClustersRequest
Returns
TypeDescription
StreamRange< google::cloud::redis::cluster::v1::Cluster >

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

Parameter
NameDescription
request google::cloud::redis::cluster::v1::GetClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::redis::cluster::v1::Cluster >

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

Parameter
NameDescription
request google::cloud::redis::cluster::v1::UpdateClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::cluster::v1::Cluster > >

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

Parameter
NameDescription
request google::cloud::redis::cluster::v1::DeleteClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::protobuf::Any > >

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

Parameter
NameDescription
request google::cloud::redis::cluster::v1::CreateClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::redis::cluster::v1::Cluster > >