Debian Codegraph @

docs/dyn/tasks_v1.tasks.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="tasks_v1.html">Google Tasks API</a> . <a href="tasks_v1.tasks.html">tasks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#clear">clear(tasklist, x__xgafv=None)</a></code></p>
79 <p class="firstline">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.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(tasklist, task, x__xgafv=None)</a></code></p>
85 <p class="firstline">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.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(tasklist, task, x__xgafv=None)</a></code></p>
88 <p class="firstline">Returns the specified task.</p>
89 <p class="toc_element">
90 <code><a href="#insert">insert(tasklist, body=None, parent=None, previous=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">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.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(tasklist, completedMax=None, completedMin=None, dueMax=None, dueMin=None, maxResults=None, pageToken=None, showAssigned=None, showCompleted=None, showDeleted=None, showHidden=None, updatedMin=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Returns all tasks in the specified task list. Doesn't return assigned tasks by 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.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#move">move(tasklist, task, destinationTasklist=None, parent=None, previous=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">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.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(tasklist, task, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Updates the specified task. This method supports patch semantics.</p>
104 <p class="toc_element">
105 <code><a href="#update">update(tasklist, task, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Updates the specified task.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="clear">clear(tasklist, x__xgafv=None)</code>
110 <pre>Clears all completed tasks from the specified task list. The affected tasks will be marked as &#x27;hidden&#x27; and no longer be returned by default when retrieving all tasks for a task list.
111
112 Args:
113 tasklist: string, Task list identifier. (required)
114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
118 </pre>
119 </div>
120
121 <div class="method">
122 <code class="details" id="close">close()</code>
123 <pre>Close httplib2 connections.</pre>
124 </div>
125
126 <div class="method">
127 <code class="details" id="delete">delete(tasklist, task, x__xgafv=None)</code>
128 <pre>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.
129
130 Args:
131 tasklist: string, Task list identifier. (required)
132 task: string, Task identifier. (required)
133 x__xgafv: string, V1 error format.
134 Allowed values
135 1 - v1 error format
136 2 - v2 error format
137 </pre>
138 </div>
139
140 <div class="method">
141 <code class="details" id="get">get(tasklist, task, x__xgafv=None)</code>
142 <pre>Returns the specified task.
143
144 Args:
145 tasklist: string, Task list identifier. (required)
146 task: string, Task identifier. (required)
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152 Returns:
153 An object of the form:
154
155 {
156 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
157 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
158 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
159 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
160 },
161 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
162 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
163 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
164 },
165 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
166 },
167 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
168 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
169 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
170 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
171 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
172 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
173 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
174 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
175 {
176 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
177 &quot;link&quot;: &quot;A String&quot;, # The URL.
178 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
179 },
180 ],
181 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
182 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
183 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
184 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
185 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
186 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
187 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
188 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
189 }</pre>
190 </div>
191
192 <div class="method">
193 <code class="details" id="insert">insert(tasklist, body=None, parent=None, previous=None, x__xgafv=None)</code>
194 <pre>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.
195
196 Args:
197 tasklist: string, Task list identifier. (required)
198 body: object, The request body.
199 The object takes the form of:
200
201 {
202 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
203 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
204 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
205 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
206 },
207 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
208 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
209 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
210 },
211 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
212 },
213 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
214 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
215 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
216 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
217 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
218 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
219 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
220 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
221 {
222 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
223 &quot;link&quot;: &quot;A String&quot;, # The URL.
224 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
225 },
226 ],
227 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
228 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
229 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
230 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
231 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
232 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
233 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
234 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
235 }
236
237 parent: string, Parent task identifier. If the task is created at the top level, this parameter is omitted. An assigned task cannot be a parent task, nor can it have a parent. Setting the parent to an assigned task results in failure of the request. Optional.
238 previous: string, Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
239 x__xgafv: string, V1 error format.
240 Allowed values
241 1 - v1 error format
242 2 - v2 error format
243
244 Returns:
245 An object of the form:
246
247 {
248 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
249 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
250 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
251 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
252 },
253 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
254 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
255 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
256 },
257 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
258 },
259 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
260 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
261 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
262 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
263 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
264 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
265 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
266 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
267 {
268 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
269 &quot;link&quot;: &quot;A String&quot;, # The URL.
270 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
271 },
272 ],
273 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
274 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
275 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
276 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
277 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
278 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
279 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
280 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
281 }</pre>
282 </div>
283
284 <div class="method">
285 <code class="details" id="list">list(tasklist, completedMax=None, completedMin=None, dueMax=None, dueMin=None, maxResults=None, pageToken=None, showAssigned=None, showCompleted=None, showDeleted=None, showHidden=None, updatedMin=None, x__xgafv=None)</code>
286 <pre>Returns all tasks in the specified task list. Doesn&#x27;t return assigned tasks by 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.
287
288 Args:
289 tasklist: string, Task list identifier. (required)
290 completedMax: string, Upper bound for a task&#x27;s completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
291 completedMin: string, Lower bound for a task&#x27;s completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
292 dueMax: string, Upper bound for a task&#x27;s due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
293 dueMin: string, Lower bound for a task&#x27;s due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
294 maxResults: integer, Maximum number of tasks returned on one page. Optional. The default is 20 (max allowed: 100).
295 pageToken: string, Token specifying the result page to return. Optional.
296 showAssigned: boolean, Optional. Flag indicating whether tasks assigned to the current user are returned in the result. Optional. The default is False.
297 showCompleted: boolean, Flag indicating whether completed tasks are returned in the result. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google&#x27;s mobile apps. Optional. The default is True.
298 showDeleted: boolean, Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
299 showHidden: boolean, Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
300 updatedMin: string, Lower bound for a task&#x27;s last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
305
306 Returns:
307 An object of the form:
308
309 {
310 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
311 &quot;items&quot;: [ # Collection of tasks.
312 {
313 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
314 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
315 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
316 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
317 },
318 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
319 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
320 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
321 },
322 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
323 },
324 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
325 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
326 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
327 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
328 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
329 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
330 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
331 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
332 {
333 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
334 &quot;link&quot;: &quot;A String&quot;, # The URL.
335 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
336 },
337 ],
338 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
339 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
340 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
341 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
342 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
343 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
344 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
345 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
346 },
347 ],
348 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#tasks&quot;.
349 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token used to access the next page of this result.
350 }</pre>
351 </div>
352
353 <div class="method">
354 <code class="details" id="list_next">list_next()</code>
355 <pre>Retrieves the next page of results.
356
357 Args:
358 previous_request: The request for the previous page. (required)
359 previous_response: The response from the request for the previous page. (required)
360
361 Returns:
362 A request object that you can call &#x27;execute()&#x27; on to request the next
363 page. Returns None if there are no more items in the collection.
364 </pre>
365 </div>
366
367 <div class="method">
368 <code class="details" id="move">move(tasklist, task, destinationTasklist=None, parent=None, previous=None, x__xgafv=None)</code>
369 <pre>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.
370
371 Args:
372 tasklist: string, Task list identifier. (required)
373 task: string, Task identifier. (required)
374 destinationTasklist: string, Optional. Destination task list identifier. If set, the task is moved from tasklist to the destinationTasklist list. Otherwise the task is moved within its current list. Recurrent tasks cannot currently be moved between lists.
375 parent: string, Optional. New parent task identifier. If the task is moved to the top level, this parameter is omitted. The task set as parent must exist in the task list and can not be hidden. Exceptions: 1. Assigned and repeating tasks cannot be set as parent tasks (have subtasks), or be moved under a parent task (become subtasks). 2. Tasks that are both completed and hidden cannot be nested, so the parent field must be empty.
376 previous: string, Optional. New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. The task set as previous must exist in the task list and can not be hidden. Exceptions: 1. Tasks that are both completed and hidden can only be moved to position 0, so the previous field must be empty.
377 x__xgafv: string, V1 error format.
378 Allowed values
379 1 - v1 error format
380 2 - v2 error format
381
382 Returns:
383 An object of the form:
384
385 {
386 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
387 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
388 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
389 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
390 },
391 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
392 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
393 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
394 },
395 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
396 },
397 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
398 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
399 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
400 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
401 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
402 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
403 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
404 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
405 {
406 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
407 &quot;link&quot;: &quot;A String&quot;, # The URL.
408 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
409 },
410 ],
411 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
412 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
413 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
414 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
415 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
416 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
417 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
418 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
419 }</pre>
420 </div>
421
422 <div class="method">
423 <code class="details" id="patch">patch(tasklist, task, body=None, x__xgafv=None)</code>
424 <pre>Updates the specified task. This method supports patch semantics.
425
426 Args:
427 tasklist: string, Task list identifier. (required)
428 task: string, Task identifier. (required)
429 body: object, The request body.
430 The object takes the form of:
431
432 {
433 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
434 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
435 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
436 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
437 },
438 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
439 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
440 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
441 },
442 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
443 },
444 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
445 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
446 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
447 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
448 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
449 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
450 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
451 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
452 {
453 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
454 &quot;link&quot;: &quot;A String&quot;, # The URL.
455 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
456 },
457 ],
458 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
459 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
460 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
461 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
462 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
463 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
464 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
465 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
466 }
467
468 x__xgafv: string, V1 error format.
469 Allowed values
470 1 - v1 error format
471 2 - v2 error format
472
473 Returns:
474 An object of the form:
475
476 {
477 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
478 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
479 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
480 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
481 },
482 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
483 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
484 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
485 },
486 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
487 },
488 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
489 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
490 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
491 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
492 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
493 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
494 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
495 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
496 {
497 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
498 &quot;link&quot;: &quot;A String&quot;, # The URL.
499 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
500 },
501 ],
502 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
503 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
504 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
505 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
506 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
507 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
508 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
509 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
510 }</pre>
511 </div>
512
513 <div class="method">
514 <code class="details" id="update">update(tasklist, task, body=None, x__xgafv=None)</code>
515 <pre>Updates the specified task.
516
517 Args:
518 tasklist: string, Task list identifier. (required)
519 task: string, Task identifier. (required)
520 body: object, The request body.
521 The object takes the form of:
522
523 {
524 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
525 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
526 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
527 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
528 },
529 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
530 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
531 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
532 },
533 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
534 },
535 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
536 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
537 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
538 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
539 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
540 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
541 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
542 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
543 {
544 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
545 &quot;link&quot;: &quot;A String&quot;, # The URL.
546 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
547 },
548 ],
549 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
550 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
551 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
552 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
553 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
554 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
555 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
556 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
557 }
558
559 x__xgafv: string, V1 error format.
560 Allowed values
561 1 - v1 error format
562 2 - v2 error format
563
564 Returns:
565 An object of the form:
566
567 {
568 &quot;assignmentInfo&quot;: { # Information about the source of the task assignment (Document, Chat Space). # Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.
569 &quot;driveResourceInfo&quot;: { # Information about the Drive resource where a task was assigned from (the document, sheet, etc.). # Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only.
570 &quot;driveFileId&quot;: &quot;A String&quot;, # Output only. Identifier of the file in the Drive API.
571 &quot;resourceKey&quot;: &quot;A String&quot;, # Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys.
572 },
573 &quot;linkToTask&quot;: &quot;A String&quot;, # Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.).
574 &quot;spaceInfo&quot;: { # Information about the Chat Space where a task was assigned from. # Output only. Information about the Chat Space where this task originates from. This field is read-only.
575 &quot;space&quot;: &quot;A String&quot;, # Output only. The Chat space where this task originates from. The format is &quot;spaces/{space}&quot;.
576 },
577 &quot;surfaceType&quot;: &quot;A String&quot;, # Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.
578 },
579 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
580 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.
581 &quot;due&quot;: &quot;A String&quot;, # Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn&#x27;t represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn&#x27;t possible to read or write the time that a task is scheduled for using the API.
582 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
583 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
584 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
585 &quot;kind&quot;: &quot;A String&quot;, # Output only. Type of the resource. This is always &quot;tasks#task&quot;.
586 &quot;links&quot;: [ # Output only. Collection of links. This collection is read-only.
587 {
588 &quot;description&quot;: &quot;A String&quot;, # The description (might be empty).
589 &quot;link&quot;: &quot;A String&quot;, # The URL.
590 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;, &quot;generic&quot;, &quot;chat_message&quot;, &quot;keep_note&quot;.
591 },
592 ],
593 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.
594 &quot;parent&quot;: &quot;A String&quot;, # Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the &quot;move&quot; method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.
595 &quot;position&quot;: &quot;A String&quot;, # Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task&#x27;s corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the &quot;move&quot; method to move the task to another position.
596 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. URL pointing to this task. Used to retrieve, update, or delete this task.
597 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
598 &quot;title&quot;: &quot;A String&quot;, # Title of the task. Maximum length allowed: 1024 characters.
599 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last modification time of the task (as a RFC 3339 timestamp).
600 &quot;webViewLink&quot;: &quot;A String&quot;, # Output only. An absolute link to the task in the Google Tasks Web UI.
601 }</pre>
602 </div>
603
604 </body></html>