Class CloudRedisClusterConnection (2.29.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 UpdateCluster(NoAwaitTag, google::cloud::redis::cluster::v1::UpdateClusterRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteCluster(NoAwaitTag, google::cloud::redis::cluster::v1::DeleteClusterRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

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

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

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

virtual GetClusterCertificateAuthority(google::cloud::redis::cluster::v1::GetClusterCertificateAuthorityRequest const &)

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