Represents a JobController
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.JobControllerPackage
@google-cloud/dataprocConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new JobController service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
cancelJob(request, callback)
public cancelJob(request: google.cloud.dataproc.v1.ICancelJobRequest, callback: google.cloud.dataproc.v1.JobController.CancelJobCallback): void;
Calls CancelJob.
Parameters | |
---|---|
Name | Description |
request |
ICancelJobRequest
CancelJobRequest message or plain object |
callback |
CancelJobCallback
Node-style callback called with the error, if any, and Job |
Returns | |
---|---|
Type | Description |
void |
cancelJob(request)
public cancelJob(request: google.cloud.dataproc.v1.ICancelJobRequest): Promise<google.cloud.dataproc.v1.Job>;
Calls CancelJob.
Parameter | |
---|---|
Name | Description |
request |
ICancelJobRequest
CancelJobRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.Job> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobController;
Creates new JobController service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
JobController |
RPC service. Useful where requests and/or responses are streamed. |
deleteJob(request, callback)
public deleteJob(request: google.cloud.dataproc.v1.IDeleteJobRequest, callback: google.cloud.dataproc.v1.JobController.DeleteJobCallback): void;
Calls DeleteJob.
Parameters | |
---|---|
Name | Description |
request |
IDeleteJobRequest
DeleteJobRequest message or plain object |
callback |
DeleteJobCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteJob(request)
public deleteJob(request: google.cloud.dataproc.v1.IDeleteJobRequest): Promise<google.protobuf.Empty>;
Calls DeleteJob.
Parameter | |
---|---|
Name | Description |
request |
IDeleteJobRequest
DeleteJobRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getJob(request, callback)
public getJob(request: google.cloud.dataproc.v1.IGetJobRequest, callback: google.cloud.dataproc.v1.JobController.GetJobCallback): void;
Calls GetJob.
Parameters | |
---|---|
Name | Description |
request |
IGetJobRequest
GetJobRequest message or plain object |
callback |
GetJobCallback
Node-style callback called with the error, if any, and Job |
Returns | |
---|---|
Type | Description |
void |
getJob(request)
public getJob(request: google.cloud.dataproc.v1.IGetJobRequest): Promise<google.cloud.dataproc.v1.Job>;
Calls GetJob.
Parameter | |
---|---|
Name | Description |
request |
IGetJobRequest
GetJobRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.Job> |
Promise |
listJobs(request, callback)
public listJobs(request: google.cloud.dataproc.v1.IListJobsRequest, callback: google.cloud.dataproc.v1.JobController.ListJobsCallback): void;
Calls ListJobs.
Parameters | |
---|---|
Name | Description |
request |
IListJobsRequest
ListJobsRequest message or plain object |
callback |
ListJobsCallback
Node-style callback called with the error, if any, and ListJobsResponse |
Returns | |
---|---|
Type | Description |
void |
listJobs(request)
public listJobs(request: google.cloud.dataproc.v1.IListJobsRequest): Promise<google.cloud.dataproc.v1.ListJobsResponse>;
Calls ListJobs.
Parameter | |
---|---|
Name | Description |
request |
IListJobsRequest
ListJobsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.ListJobsResponse> |
Promise |
submitJob(request, callback)
public submitJob(request: google.cloud.dataproc.v1.ISubmitJobRequest, callback: google.cloud.dataproc.v1.JobController.SubmitJobCallback): void;
Calls SubmitJob.
Parameters | |
---|---|
Name | Description |
request |
ISubmitJobRequest
SubmitJobRequest message or plain object |
callback |
SubmitJobCallback
Node-style callback called with the error, if any, and Job |
Returns | |
---|---|
Type | Description |
void |
submitJob(request)
public submitJob(request: google.cloud.dataproc.v1.ISubmitJobRequest): Promise<google.cloud.dataproc.v1.Job>;
Calls SubmitJob.
Parameter | |
---|---|
Name | Description |
request |
ISubmitJobRequest
SubmitJobRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.Job> |
Promise |
submitJobAsOperation(request, callback)
public submitJobAsOperation(request: google.cloud.dataproc.v1.ISubmitJobRequest, callback: google.cloud.dataproc.v1.JobController.SubmitJobAsOperationCallback): void;
Calls SubmitJobAsOperation.
Parameters | |
---|---|
Name | Description |
request |
ISubmitJobRequest
SubmitJobRequest message or plain object |
callback |
SubmitJobAsOperationCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
submitJobAsOperation(request)
public submitJobAsOperation(request: google.cloud.dataproc.v1.ISubmitJobRequest): Promise<google.longrunning.Operation>;
Calls SubmitJobAsOperation.
Parameter | |
---|---|
Name | Description |
request |
ISubmitJobRequest
SubmitJobRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> |
Promise |
updateJob(request, callback)
public updateJob(request: google.cloud.dataproc.v1.IUpdateJobRequest, callback: google.cloud.dataproc.v1.JobController.UpdateJobCallback): void;
Calls UpdateJob.
Parameters | |
---|---|
Name | Description |
request |
IUpdateJobRequest
UpdateJobRequest message or plain object |
callback |
UpdateJobCallback
Node-style callback called with the error, if any, and Job |
Returns | |
---|---|
Type | Description |
void |
updateJob(request)
public updateJob(request: google.cloud.dataproc.v1.IUpdateJobRequest): Promise<google.cloud.dataproc.v1.Job>;
Calls UpdateJob.
Parameter | |
---|---|
Name | Description |
request |
IUpdateJobRequest
UpdateJobRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dataproc.v1.Job> |
Promise |