Google Cloud Dataproc v1 API - Class JobController.JobControllerBase (5.11.0)

[BindServiceMethod(typeof(JobController), "BindService")]
public abstract class JobController.JobControllerBase

Reference documentation and code samples for the Google Cloud Dataproc v1 API class JobController.JobControllerBase.

Base class for server-side implementations of JobController

Inheritance

object > JobController.JobControllerBase

Namespace

Google.Cloud.Dataproc.V1

Assembly

Google.Cloud.Dataproc.V1.dll

Methods

CancelJob(CancelJobRequest, ServerCallContext)

public virtual Task<Job> CancelJob(CancelJobRequest request, ServerCallContext context)

Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.

Parameters
Name Description
request CancelJobRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskJob

The response to send back to the client (wrapped by a task).

DeleteJob(DeleteJobRequest, ServerCallContext)

public virtual Task<Empty> DeleteJob(DeleteJobRequest request, ServerCallContext context)

Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.

Parameters
Name Description
request DeleteJobRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

GetJob(GetJobRequest, ServerCallContext)

public virtual Task<Job> GetJob(GetJobRequest request, ServerCallContext context)

Gets the resource representation for a job in a project.

Parameters
Name Description
request GetJobRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskJob

The response to send back to the client (wrapped by a task).

ListJobs(ListJobsRequest, ServerCallContext)

public virtual Task<ListJobsResponse> ListJobs(ListJobsRequest request, ServerCallContext context)

Lists regions/{region}/jobs in a project.

Parameters
Name Description
request ListJobsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListJobsResponse

The response to send back to the client (wrapped by a task).

SubmitJob(SubmitJobRequest, ServerCallContext)

public virtual Task<Job> SubmitJob(SubmitJobRequest request, ServerCallContext context)

Submits a job to a cluster.

Parameters
Name Description
request SubmitJobRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskJob

The response to send back to the client (wrapped by a task).

SubmitJobAsOperation(SubmitJobRequest, ServerCallContext)

public virtual Task<Operation> SubmitJobAsOperation(SubmitJobRequest request, ServerCallContext context)

Submits job to a cluster.

Parameters
Name Description
request SubmitJobRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateJob(UpdateJobRequest, ServerCallContext)

public virtual Task<Job> UpdateJob(UpdateJobRequest request, ServerCallContext context)

Updates a job in a project.

Parameters
Name Description
request UpdateJobRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskJob

The response to send back to the client (wrapped by a task).