JobController

google.cloud.dataproc.v1beta2. 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

(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

cancelJob(request, callback) → {undefined}

Calls CancelJob.

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

CancelJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.CancelJobCallback

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

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

Calls CancelJob.

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

CancelJobRequest message or plain object

deleteJob(request, callback) → {undefined}

Calls DeleteJob.

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

DeleteJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.DeleteJobCallback

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

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

Calls DeleteJob.

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

DeleteJobRequest message or plain object

getJob(request, callback) → {undefined}

Calls GetJob.

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

GetJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.GetJobCallback

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

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

Calls GetJob.

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

GetJobRequest message or plain object

listJobs(request, callback) → {undefined}

Calls ListJobs.

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

ListJobsRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.ListJobsCallback

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

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

Calls ListJobs.

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

ListJobsRequest message or plain object

submitJob(request, callback) → {undefined}

Calls SubmitJob.

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

SubmitJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.SubmitJobCallback

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

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

Calls SubmitJob.

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

SubmitJobRequest message or plain object

submitJobAsOperation(request, callback) → {undefined}

Calls SubmitJobAsOperation.

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

SubmitJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.SubmitJobAsOperationCallback

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

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

Calls SubmitJobAsOperation.

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

SubmitJobRequest message or plain object

updateJob(request, callback) → {undefined}

Calls UpdateJob.

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

UpdateJobRequest message or plain object

callback google.cloud.dataproc.v1beta2.JobController.UpdateJobCallback

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

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

Calls UpdateJob.

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

UpdateJobRequest message or plain object

Type Definitions

CancelJobCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1beta2.JobController#cancelJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job

DeleteJobCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1beta2.JobController#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 google.cloud.dataproc.v1beta2.JobController#getJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job

ListJobsCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1beta2.JobController#listJobs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListJobsResponse

SubmitJobAsOperationCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1beta2.JobController#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 google.cloud.dataproc.v1beta2.JobController#submitJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job

UpdateJobCallback(error, responseopt)

Callback as used by google.cloud.dataproc.v1beta2.JobController#updateJob.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Job