Class TasksResource
The "tasks" collection of methods.
Inherited Members
Namespace: Google.Apis.WorkspaceEvents.v1
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class TasksResource
Constructors
TasksResource(IClientService)
Constructs a new resource.
Declaration
public TasksResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
PushNotificationConfigs
Gets the PushNotificationConfigs resource.
Declaration
public virtual TasksResource.PushNotificationConfigsResource PushNotificationConfigs { get; }
Property Value
| Type | Description |
|---|---|
| TasksResource.PushNotificationConfigsResource |
Methods
Cancel(CancelTaskRequest, string)
Cancel a task from the agent. If supported one should expect no more task updates for the task.
Declaration
public virtual TasksResource.CancelRequest Cancel(CancelTaskRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| CancelTaskRequest | body | The body of the request. |
| string | name | The resource name of the task to cancel. Format: tasks/{task_id} |
Returns
| Type | Description |
|---|---|
| TasksResource.CancelRequest |
Get(string)
Get the current state of a task from the agent.
Declaration
public virtual TasksResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the task. Format: tasks/{task_id} |
Returns
| Type | Description |
|---|---|
| TasksResource.GetRequest |
Subscribe(string)
TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
Declaration
public virtual TasksResource.SubscribeRequest Subscribe(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The resource name of the task to subscribe to. Format: tasks/{task_id} |
Returns
| Type | Description |
|---|---|
| TasksResource.SubscribeRequest |