Class CloudRedisClusterConnection (2.32.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 >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status