ClusterController

google.cloud.dataproc.v1. ClusterController

Represents a ClusterController

Constructor

new ClusterController(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ClusterController service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {ClusterController}

Creates new ClusterController service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

createCluster(request, callback) → {undefined}

Calls CreateCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.ICreateClusterRequest

CreateClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.CreateClusterCallback

Node-style callback called with the error, if any, and Operation

createCluster(request) → {Promise.<google.longrunning.Operation>}

Calls CreateCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.ICreateClusterRequest

CreateClusterRequest message or plain object

deleteCluster(request, callback) → {undefined}

Calls DeleteCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IDeleteClusterRequest

DeleteClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.DeleteClusterCallback

Node-style callback called with the error, if any, and Operation

deleteCluster(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IDeleteClusterRequest

DeleteClusterRequest message or plain object

diagnoseCluster(request, callback) → {undefined}

Calls DiagnoseCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IDiagnoseClusterRequest

DiagnoseClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.DiagnoseClusterCallback

Node-style callback called with the error, if any, and Operation

diagnoseCluster(request) → {Promise.<google.longrunning.Operation>}

Calls DiagnoseCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IDiagnoseClusterRequest

DiagnoseClusterRequest message or plain object

getCluster(request, callback) → {undefined}

Calls GetCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IGetClusterRequest

GetClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.GetClusterCallback

Node-style callback called with the error, if any, and Cluster

getCluster(request) → {Promise.<google.cloud.dataproc.v1.Cluster>}

Calls GetCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IGetClusterRequest

GetClusterRequest message or plain object

listClusters(request, callback) → {undefined}

Calls ListClusters.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IListClustersRequest

ListClustersRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.ListClustersCallback

Node-style callback called with the error, if any, and ListClustersResponse

listClusters(request) → {Promise.<google.cloud.dataproc.v1.ListClustersResponse>}

Calls ListClusters.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IListClustersRequest

ListClustersRequest message or plain object

updateCluster(request, callback) → {undefined}

Calls UpdateCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IUpdateClusterRequest

UpdateClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.UpdateClusterCallback

Node-style callback called with the error, if any, and Operation

updateCluster(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateCluster.

Parameters:
Name Type Description
request google.cloud.dataproc.v1.IUpdateClusterRequest

UpdateClusterRequest message or plain object

Type Definitions

CreateClusterCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.ClusterController#createCluster.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteClusterCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.ClusterController#deleteCluster.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DiagnoseClusterCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.ClusterController#diagnoseCluster.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetClusterCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.ClusterController#getCluster.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dataproc.v1.Cluster <optional>

Cluster

ListClustersCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.ClusterController#listClusters.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dataproc.v1.ListClustersResponse <optional>

ListClustersResponse

UpdateClusterCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1.ClusterController#updateCluster.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation