Class ClusterControllerConnection (2.18.0)

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

To create a concrete instance, see MakeClusterControllerConnection().

For mocking, see dataproc_v1_mocks::MockClusterControllerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateCluster(google::cloud::dataproc::v1::CreateClusterRequest const &)

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

virtual UpdateCluster(google::cloud::dataproc::v1::UpdateClusterRequest const &)

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

virtual StopCluster(google::cloud::dataproc::v1::StopClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::StopClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual StartCluster(google::cloud::dataproc::v1::StartClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::StartClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Cluster > >

virtual DeleteCluster(google::cloud::dataproc::v1::DeleteClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DeleteClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::ClusterOperationMetadata > >

virtual GetCluster(google::cloud::dataproc::v1::GetClusterRequest const &)

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

virtual ListClusters(google::cloud::dataproc::v1::ListClustersRequest)

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

virtual DiagnoseCluster(google::cloud::dataproc::v1::DiagnoseClusterRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DiagnoseClusterRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::DiagnoseClusterResults > >