JobController

google.cloud.dataproc.v1. JobController

Represents a JobController

Constructor

new JobController(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new JobController 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

cancelJob(request, callback) → {undefined}

Calls CancelJob.

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

CancelJobRequest message or plain object

callback google.cloud.dataproc.v1.JobController.CancelJobCallback

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

Returns:
Type Description
undefined

cancelJob(request) → {Promise.<google.cloud.dataproc.v1.Job>}

Calls CancelJob.

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

CancelJobRequest message or plain object

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

Promise

deleteJob(request, callback) → {undefined}

Calls DeleteJob.

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

DeleteJobRequest message or plain object

callback google.cloud.dataproc.v1.JobController.DeleteJobCallback

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

Returns:
Type Description
undefined

deleteJob(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteJob.

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

DeleteJobRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getJob(request, callback) → {undefined}

Calls GetJob.

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

GetJobRequest message or plain object

callback google.cloud.dataproc.v1.JobController.GetJobCallback

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

Returns:
Type Description
undefined

getJob(request) → {Promise.<google.cloud.dataproc.v1.Job>}

Calls GetJob.

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

GetJobRequest message or plain object

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

Promise

listJobs(request, callback) → {undefined}

Calls ListJobs.

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

ListJobsRequest message or plain object

callback google.cloud.dataproc.v1.JobController.ListJobsCallback

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

Returns:
Type Description
undefined

listJobs(request) → {Promise.<google.cloud.dataproc.v1.ListJobsResponse>}

Calls ListJobs.

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

ListJobsRequest message or plain object

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

Promise

submitJob(request, callback) → {undefined}

Calls SubmitJob.

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

SubmitJobRequest message or plain object

callback google.cloud.dataproc.v1.JobController.SubmitJobCallback

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

Returns:
Type Description
undefined

submitJob(request) → {Promise.<google.cloud.dataproc.v1.Job>}

Calls SubmitJob.

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

SubmitJobRequest message or plain object

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

Promise

submitJobAsOperation(request, callback) → {undefined}

Calls SubmitJobAsOperation.

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

SubmitJobRequest message or plain object

callback google.cloud.dataproc.v1.JobController.SubmitJobAsOperationCallback

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

Returns:
Type Description
undefined

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

Calls SubmitJobAsOperation.

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

SubmitJobRequest message or plain object

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

Promise

updateJob(request, callback) → {undefined}

Calls UpdateJob.

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

UpdateJobRequest message or plain object

callback google.cloud.dataproc.v1.JobController.UpdateJobCallback

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

Returns:
Type Description
undefined

updateJob(request) → {Promise.<google.cloud.dataproc.v1.Job>}

Calls UpdateJob.

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

UpdateJobRequest message or plain object

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

Promise

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

Creates new JobController 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
JobController

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

Type Definitions

CancelJobCallback(error, responseopt)

Callback as used by cancelJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job

DeleteJobCallback(error, responseopt)

Callback as used by deleteJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetJobCallback(error, responseopt)

Callback as used by getJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job

ListJobsCallback(error, responseopt)

Callback as used by listJobs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListJobsResponse

SubmitJobAsOperationCallback(error, responseopt)

Callback as used by submitJobAsOperation.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

SubmitJobCallback(error, responseopt)

Callback as used by submitJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job

UpdateJobCallback(error, responseopt)

Callback as used by updateJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job