Cloud Run Admin v2 API - Class TasksClientImpl (2.1.0)

public sealed class TasksClientImpl : TasksClient

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

Tasks client wrapper implementation, for convenient use.

Inheritance

object > TasksClient > TasksClientImpl

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Remarks

Cloud Run Task Control Plane API.

Constructors

TasksClientImpl(TasksClient, TasksSettings, ILogger)

public TasksClientImpl(Tasks.TasksClient grpcClient, TasksSettings settings, ILogger logger)

Constructs a client wrapper for the Tasks service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientTasksTasksClient

The underlying gRPC client.

settingsTasksSettings

The base TasksSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Tasks.TasksClient GrpcClient { get; }

The underlying gRPC Tasks client

Property Value
TypeDescription
TasksTasksClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

GetTask(GetTaskRequest, CallSettings)

public override Task GetTask(GetTaskRequest request, CallSettings callSettings = null)

Gets information about a Task.

Parameters
NameDescription
requestGetTaskRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

The RPC response.

Overrides

GetTaskAsync(GetTaskRequest, CallSettings)

public override Task<Task> GetTaskAsync(GetTaskRequest request, CallSettings callSettings = null)

Gets information about a Task.

Parameters
NameDescription
requestGetTaskRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTask

A Task containing the RPC response.

Overrides

ListTasks(ListTasksRequest, CallSettings)

public override PagedEnumerable<ListTasksResponse, Task> ListTasks(ListTasksRequest request, CallSettings callSettings = null)

Lists Tasks from an Execution of a Job.

Parameters
NameDescription
requestListTasksRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListTasksResponseTask

A pageable sequence of Task resources.

Overrides

ListTasksAsync(ListTasksRequest, CallSettings)

public override PagedAsyncEnumerable<ListTasksResponse, Task> ListTasksAsync(ListTasksRequest request, CallSettings callSettings = null)

Lists Tasks from an Execution of a Job.

Parameters
NameDescription
requestListTasksRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListTasksResponseTask

A pageable asynchronous sequence of Task resources.

Overrides