Class ClusterControllerConnection (2.32.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 CreateCluster(NoAwaitTag, google::cloud::dataproc::v1::CreateClusterRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::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::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 UpdateCluster(NoAwaitTag, google::cloud::dataproc::v1::UpdateClusterRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::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::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 StopCluster(NoAwaitTag, google::cloud::dataproc::v1::StopClusterRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::v1::StopClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation 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 StartCluster(NoAwaitTag, google::cloud::dataproc::v1::StartClusterRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::v1::StartClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

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

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::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::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 > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::dataproc::v1::DiagnoseClusterRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::DiagnoseClusterResults > >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

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