public sealed class ClusterControllerClientImpl : ClusterControllerClient
Reference documentation and code samples for the Google Cloud Dataproc v1 API class ClusterControllerClientImpl.
ClusterController client wrapper implementation, for convenient use.
Namespace
GoogleCloudGoogle.Cloud.DataprocV1Assembly
Google.Cloud.Dataproc.V1.dll
Remarks
The ClusterControllerService provides methods to manage clusters of Compute Engine instances.
Constructors
ClusterControllerClientImpl(ClusterControllerClient, ClusterControllerSettings, ILogger)
public ClusterControllerClientImpl(ClusterController.ClusterControllerClient grpcClient, ClusterControllerSettings settings, ILogger logger)
Constructs a client wrapper for the ClusterController service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | ClusterControllerClusterControllerClient The underlying gRPC client. |
settings | ClusterControllerSettings The base ClusterControllerSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
CreateClusterOperationsClient
public override OperationsClient CreateClusterOperationsClient { get; }
The long-running operations client for CreateCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteClusterOperationsClient
public override OperationsClient DeleteClusterOperationsClient { get; }
The long-running operations client for DeleteCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DiagnoseClusterOperationsClient
public override OperationsClient DiagnoseClusterOperationsClient { get; }
The long-running operations client for DiagnoseCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override ClusterController.ClusterControllerClient GrpcClient { get; }
The underlying gRPC ClusterController client
Property Value | |
---|---|
Type | Description |
ClusterControllerClusterControllerClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
StartClusterOperationsClient
public override OperationsClient StartClusterOperationsClient { get; }
The long-running operations client for StartCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
StopClusterOperationsClient
public override OperationsClient StopClusterOperationsClient { get; }
The long-running operations client for StopCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateClusterOperationsClient
public override OperationsClient UpdateClusterOperationsClient { get; }
The long-running operations client for UpdateCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CreateCluster(CreateClusterRequest, CallSettings)
public override Operation<Cluster, ClusterOperationMetadata> CreateCluster(CreateClusterRequest request, CallSettings callSettings = null)
Creates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | CreateClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterClusterOperationMetadata | The RPC response. |
CreateClusterAsync(CreateClusterRequest, CallSettings)
public override Task<Operation<Cluster, ClusterOperationMetadata>> CreateClusterAsync(CreateClusterRequest request, CallSettings callSettings = null)
Creates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | CreateClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterClusterOperationMetadata | A Task containing the RPC response. |
DeleteCluster(DeleteClusterRequest, CallSettings)
public override Operation<Empty, ClusterOperationMetadata> DeleteCluster(DeleteClusterRequest request, CallSettings callSettings = null)
Deletes a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | DeleteClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyClusterOperationMetadata | The RPC response. |
DeleteClusterAsync(DeleteClusterRequest, CallSettings)
public override Task<Operation<Empty, ClusterOperationMetadata>> DeleteClusterAsync(DeleteClusterRequest request, CallSettings callSettings = null)
Deletes a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | DeleteClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyClusterOperationMetadata | A Task containing the RPC response. |
DiagnoseCluster(DiagnoseClusterRequest, CallSettings)
public override Operation<DiagnoseClusterResults, ClusterOperationMetadata> DiagnoseCluster(DiagnoseClusterRequest request, CallSettings callSettings = null)
Gets cluster diagnostic information. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. After the operation completes, [Operation.response][google.longrunning.Operation.response] contains DiagnoseClusterResults.
Parameters | |
---|---|
Name | Description |
request | DiagnoseClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationDiagnoseClusterResultsClusterOperationMetadata | The RPC response. |
DiagnoseClusterAsync(DiagnoseClusterRequest, CallSettings)
public override Task<Operation<DiagnoseClusterResults, ClusterOperationMetadata>> DiagnoseClusterAsync(DiagnoseClusterRequest request, CallSettings callSettings = null)
Gets cluster diagnostic information. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. After the operation completes, [Operation.response][google.longrunning.Operation.response] contains DiagnoseClusterResults.
Parameters | |
---|---|
Name | Description |
request | DiagnoseClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationDiagnoseClusterResultsClusterOperationMetadata | A Task containing the RPC response. |
GetCluster(GetClusterRequest, CallSettings)
public override Cluster GetCluster(GetClusterRequest request, CallSettings callSettings = null)
Gets the resource representation for a cluster in a project.
Parameters | |
---|---|
Name | Description |
request | GetClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Cluster | The RPC response. |
GetClusterAsync(GetClusterRequest, CallSettings)
public override Task<Cluster> GetClusterAsync(GetClusterRequest request, CallSettings callSettings = null)
Gets the resource representation for a cluster in a project.
Parameters | |
---|---|
Name | Description |
request | GetClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCluster | A Task containing the RPC response. |
ListClusters(ListClustersRequest, CallSettings)
public override PagedEnumerable<ListClustersResponse, Cluster> ListClusters(ListClustersRequest request, CallSettings callSettings = null)
Lists all regions/{region}/clusters in a project alphabetically.
Parameters | |
---|---|
Name | Description |
request | ListClustersRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListClustersResponseCluster | A pageable sequence of Cluster resources. |
ListClustersAsync(ListClustersRequest, CallSettings)
public override PagedAsyncEnumerable<ListClustersResponse, Cluster> ListClustersAsync(ListClustersRequest request, CallSettings callSettings = null)
Lists all regions/{region}/clusters in a project alphabetically.
Parameters | |
---|---|
Name | Description |
request | ListClustersRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListClustersResponseCluster | A pageable asynchronous sequence of Cluster resources. |
StartCluster(StartClusterRequest, CallSettings)
public override Operation<Cluster, ClusterOperationMetadata> StartCluster(StartClusterRequest request, CallSettings callSettings = null)
Starts a cluster in a project.
Parameters | |
---|---|
Name | Description |
request | StartClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterClusterOperationMetadata | The RPC response. |
StartClusterAsync(StartClusterRequest, CallSettings)
public override Task<Operation<Cluster, ClusterOperationMetadata>> StartClusterAsync(StartClusterRequest request, CallSettings callSettings = null)
Starts a cluster in a project.
Parameters | |
---|---|
Name | Description |
request | StartClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterClusterOperationMetadata | A Task containing the RPC response. |
StopCluster(StopClusterRequest, CallSettings)
public override Operation<Cluster, ClusterOperationMetadata> StopCluster(StopClusterRequest request, CallSettings callSettings = null)
Stops a cluster in a project.
Parameters | |
---|---|
Name | Description |
request | StopClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterClusterOperationMetadata | The RPC response. |
StopClusterAsync(StopClusterRequest, CallSettings)
public override Task<Operation<Cluster, ClusterOperationMetadata>> StopClusterAsync(StopClusterRequest request, CallSettings callSettings = null)
Stops a cluster in a project.
Parameters | |
---|---|
Name | Description |
request | StopClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterClusterOperationMetadata | A Task containing the RPC response. |
UpdateCluster(UpdateClusterRequest, CallSettings)
public override Operation<Cluster, ClusterOperationMetadata> UpdateCluster(UpdateClusterRequest request, CallSettings callSettings = null)
Updates a cluster in a project. The returned
[Operation.metadata][google.longrunning.Operation.metadata] will be
ClusterOperationMetadata.
The cluster must be in a
[RUNNING
][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
is returned.
Parameters | |
---|---|
Name | Description |
request | UpdateClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterClusterOperationMetadata | The RPC response. |
UpdateClusterAsync(UpdateClusterRequest, CallSettings)
public override Task<Operation<Cluster, ClusterOperationMetadata>> UpdateClusterAsync(UpdateClusterRequest request, CallSettings callSettings = null)
Updates a cluster in a project. The returned
[Operation.metadata][google.longrunning.Operation.metadata] will be
ClusterOperationMetadata.
The cluster must be in a
[RUNNING
][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
is returned.
Parameters | |
---|---|
Name | Description |
request | UpdateClusterRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterClusterOperationMetadata | A Task containing the RPC response. |