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
Namespace
GoogleCloudGoogle.Cloud.RunV2Assembly
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 | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
TasksClient(ChannelBase)
public TasksClient(ChannelBase channel)
Creates a new client for Tasks
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
TasksClient(ClientBaseConfiguration)
protected TasksClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTaskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTaskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTaskRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GetTaskRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallTask | The call object. |
ListTasks(ListTasksRequest, CallOptions)
public virtual ListTasksResponse ListTasks(ListTasksRequest request, CallOptions options)
Lists Tasks from an Execution of a Job.
Parameters | |
---|---|
Name | Description |
request | ListTasksRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListTasksRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListTasksRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ListTasksRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListTasksResponse | The call object. |
NewInstance(ClientBaseConfiguration)
protected override Tasks.TasksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TasksTasksClient |