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

Returns:
Type Description
ClusterController

RPC service. Useful where requests and/or responses are streamed.

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

Returns:
Type Description
undefined

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

Calls CreateCluster.

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

CreateClusterRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Calls DeleteCluster.

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

DeleteClusterRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Calls DiagnoseCluster.

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

DiagnoseClusterRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.dataproc.v1.Cluster>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.dataproc.v1.ListClustersResponse>

Promise

startCluster(request, callback) → {undefined}

Calls StartCluster.

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

StartClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.StartClusterCallback

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

Returns:
Type Description
undefined

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

Calls StartCluster.

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

StartClusterRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

stopCluster(request, callback) → {undefined}

Calls StopCluster.

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

StopClusterRequest message or plain object

callback google.cloud.dataproc.v1.ClusterController.StopClusterCallback

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

Returns:
Type Description
undefined

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

Calls StopCluster.

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

StopClusterRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Calls UpdateCluster.

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

UpdateClusterRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

StartClusterCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

StopClusterCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

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