Class TasksResource
The "tasks" collection of methods.
Inherited Members
Namespace: Google.Apis.Tasks.v1
Assembly: Google.Apis.Tasks.v1.dll
Syntax
public class TasksResource
Constructors
TasksResource(IClientService)
Constructs a new resource.
Declaration
public TasksResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Clear(string)
Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.
Declaration
public virtual TasksResource.ClearRequest Clear(string tasklist)
Parameters
Type | Name | Description |
---|---|---|
string | tasklist | Task list identifier. |
Returns
Type | Description |
---|---|
TasksResource.ClearRequest |
Delete(string, string)
Deletes the specified task from the task list. If the task is assigned, both the assigned task and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there.
Declaration
public virtual TasksResource.DeleteRequest Delete(string tasklist, string task)
Parameters
Type | Name | Description |
---|---|---|
string | tasklist | Task list identifier. |
string | task | Task identifier. |
Returns
Type | Description |
---|---|
TasksResource.DeleteRequest |
Get(string, string)
Returns the specified task.
Declaration
public virtual TasksResource.GetRequest Get(string tasklist, string task)
Parameters
Type | Name | Description |
---|---|---|
string | tasklist | Task list identifier. |
string | task | Task identifier. |
Returns
Type | Description |
---|---|
TasksResource.GetRequest |
Insert(Task, string)
Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.
Declaration
public virtual TasksResource.InsertRequest Insert(Task body, string tasklist)
Parameters
Type | Name | Description |
---|---|---|
Task | body | The body of the request. |
string | tasklist | Task list identifier. |
Returns
Type | Description |
---|---|
TasksResource.InsertRequest |
List(string)
Returns all tasks in the specified task list. Does not return assigned tasks be default (from Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.
Declaration
public virtual TasksResource.ListRequest List(string tasklist)
Parameters
Type | Name | Description |
---|---|---|
string | tasklist | Task list identifier. |
Returns
Type | Description |
---|---|
TasksResource.ListRequest |
Move(string, string)
Moves the specified task to another position in the destination task list. If the destination list is not specified, the task is moved within its current list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task.
Declaration
public virtual TasksResource.MoveRequest Move(string tasklist, string task)
Parameters
Type | Name | Description |
---|---|---|
string | tasklist | Task list identifier. |
string | task | Task identifier. |
Returns
Type | Description |
---|---|
TasksResource.MoveRequest |
Patch(Task, string, string)
Updates the specified task. This method supports patch semantics.
Declaration
public virtual TasksResource.PatchRequest Patch(Task body, string tasklist, string task)
Parameters
Type | Name | Description |
---|---|---|
Task | body | The body of the request. |
string | tasklist | Task list identifier. |
string | task | Task identifier. |
Returns
Type | Description |
---|---|
TasksResource.PatchRequest |
Update(Task, string, string)
Updates the specified task.
Declaration
public virtual TasksResource.UpdateRequest Update(Task body, string tasklist, string task)
Parameters
Type | Name | Description |
---|---|---|
Task | body | The body of the request. |
string | tasklist | Task list identifier. |
string | task | Task identifier. |
Returns
Type | Description |
---|---|
TasksResource.UpdateRequest |