Cloud Run Admin v2 API - Class Jobs.JobsBase (2.5.0)

[BindServiceMethod(typeof(Jobs), "BindService")]
public abstract class Jobs.JobsBase

Reference documentation and code samples for the Cloud Run Admin v2 API class Jobs.JobsBase.

Base class for server-side implementations of Jobs

Inheritance

object > Jobs.JobsBase

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Methods

CreateJob(CreateJobRequest, ServerCallContext)

public virtual Task<Operation> CreateJob(CreateJobRequest request, ServerCallContext context)

Creates a Job.

Parameters
NameDescription
requestCreateJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

DeleteJob(DeleteJobRequest, ServerCallContext)

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

Deletes a Job.

Parameters
NameDescription
requestDeleteJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies.

Parameters
NameDescription
requestGetIamPolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskPolicy

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 information about a Job.

Parameters
NameDescription
requestGetJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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 Jobs.

Parameters
NameDescription
requestListJobsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListJobsResponse

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

RunJob(RunJobRequest, ServerCallContext)

public virtual Task<Operation> RunJob(RunJobRequest request, ServerCallContext context)

Triggers creation of a new Execution of this Job.

Parameters
NameDescription
requestRunJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the IAM Access control policy for the specified Job. Overwrites any existing policy.

Parameters
NameDescription
requestSetIamPolicyRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskPolicy

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

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified Project.

There are no permissions required for making this API call.

Parameters
NameDescription
requestTestIamPermissionsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTestIamPermissionsResponse

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

UpdateJob(UpdateJobRequest, ServerCallContext)

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

Updates a Job.

Parameters
NameDescription
requestUpdateJobRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskOperation

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