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.
Namespace
Google.Cloud.Run.V2Assembly
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 | |
---|---|
Name | Description |
grpcClient | TasksTasksClient The underlying gRPC client. |
settings | TasksSettings The base TasksSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override Tasks.TasksClient GrpcClient { get; }
The underlying gRPC Tasks client
Property Value | |
---|---|
Type | Description |
TasksTasksClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
GetTask(GetTaskRequest, CallSettings)
public override Task GetTask(GetTaskRequest request, CallSettings callSettings = null)
Gets information about a Task.
Parameters | |
---|---|
Name | Description |
request | GetTaskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | The RPC response. |
GetTaskAsync(GetTaskRequest, CallSettings)
public override Task<Task> GetTaskAsync(GetTaskRequest request, CallSettings callSettings = null)
Gets information about a Task.
Parameters | |
---|---|
Name | Description |
request | GetTaskRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTask | A Task containing the RPC response. |
ListTasks(ListTasksRequest, CallSettings)
public override PagedEnumerable<ListTasksResponse, Task> ListTasks(ListTasksRequest request, CallSettings callSettings = null)
Lists Tasks from an Execution of a Job.
Parameters | |
---|---|
Name | Description |
request | ListTasksRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTasksResponseTask | A pageable sequence of Task resources. |
ListTasksAsync(ListTasksRequest, CallSettings)
public override PagedAsyncEnumerable<ListTasksResponse, Task> ListTasksAsync(ListTasksRequest request, CallSettings callSettings = null)
Lists Tasks from an Execution of a Job.
Parameters | |
---|---|
Name | Description |
request | ListTasksRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTasksResponseTask | A pageable asynchronous sequence of Task resources. |