Class JobController.JobControllerBase (3.4.0)

[BindServiceMethod(typeof(JobController), "BindService")]
public abstract class 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
NameDescription
requestCancelJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Job>

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
NameDescription
requestDeleteJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Empty>

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
NameDescription
requestGetJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Job>

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
NameDescription
requestListJobsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListJobsResponse>

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
NameDescription
requestSubmitJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Job>

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
NameDescription
requestSubmitJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestUpdateJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Job>

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