Cloud Run Admin v2 API - Class Tasks.TasksClient (2.1.0)

public class Tasks.TasksClient : ClientBase<Tasks.TasksClient>

Reference documentation and code samples for the Cloud Run Admin v2 API class Tasks.TasksClient.

Client for Tasks

Inheritance

object > ClientBase > ClientBaseTasksTasksClient > Tasks.TasksClient

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

TasksClient()

protected TasksClient()

Protected parameterless constructor to allow creation of test doubles.

TasksClient(CallInvoker)

public TasksClient(CallInvoker callInvoker)

Creates a new client for Tasks that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TasksClient(ChannelBase)

public TasksClient(ChannelBase channel)

Creates a new client for Tasks

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TasksClient(ClientBaseConfiguration)

protected TasksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

GetTask(GetTaskRequest, CallOptions)

public virtual Task GetTask(GetTaskRequest request, CallOptions options)

Gets information about a Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Task

The response received from the server.

GetTask(GetTaskRequest, Metadata, DateTime?, CancellationToken)

public virtual Task GetTask(GetTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets information about a Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Task

The response received from the server.

GetTaskAsync(GetTaskRequest, CallOptions)

public virtual AsyncUnaryCall<Task> GetTaskAsync(GetTaskRequest request, CallOptions options)

Gets information about a Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTask

The call object.

GetTaskAsync(GetTaskRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Task> GetTaskAsync(GetTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets information about a Task.

Parameters
NameDescription
requestGetTaskRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTask

The call object.

ListTasks(ListTasksRequest, CallOptions)

public virtual ListTasksResponse ListTasks(ListTasksRequest request, CallOptions options)

Lists Tasks from an Execution of a Job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTasksResponse

The response received from the server.

ListTasks(ListTasksRequest, Metadata, DateTime?, CancellationToken)

public virtual ListTasksResponse ListTasks(ListTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Tasks from an Execution of a Job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListTasksResponse

The response received from the server.

ListTasksAsync(ListTasksRequest, CallOptions)

public virtual AsyncUnaryCall<ListTasksResponse> ListTasksAsync(ListTasksRequest request, CallOptions options)

Lists Tasks from an Execution of a Job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListTasksResponse

The call object.

ListTasksAsync(ListTasksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListTasksResponse> ListTasksAsync(ListTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists Tasks from an Execution of a Job.

Parameters
NameDescription
requestListTasksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListTasksResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Tasks.TasksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TasksTasksClient
Overrides