blob: a72ecbd4d6a6f170df1aa0dcf7470b5a188cd3d8 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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">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)</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="#delete">delete(tasklist, task)</a></code></p>
82<p class="firstline">Deletes the specified task from the task list.</p>
83<p class="toc_element">
84 <code><a href="#get">get(tasklist, task)</a></code></p>
85<p class="firstline">Returns the specified task.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(tasklist, body=None, parent=None, previous=None)</a></code></p>
88<p class="firstline">Creates a new task on the specified task list. Fails with HTTP code 403 or 429 after reaching the storage limit of 100,000 tasks per account.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(tasklist, completedMax=None, completedMin=None, dueMax=None, dueMin=None, maxResults=None, pageToken=None, showCompleted=None, showDeleted=None, showHidden=None, updatedMin=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Returns all tasks in the specified task list.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#move">move(tasklist, task, parent=None, previous=None)</a></code></p>
97<p class="firstline">Moves the specified task to another position in the task 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.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#patch">patch(tasklist, task, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400100<p class="firstline">Updates the specified task. This method supports patch semantics.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#update">update(tasklist, task, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400103<p class="firstline">Updates the specified task.</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="clear">clear(tasklist)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 <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.
John Asmuth614db982014-04-24 15:46:26 -0400108
109Args:
110 tasklist: string, Task list identifier. (required)
111</pre>
112</div>
113
114<div class="method">
115 <code class="details" id="delete">delete(tasklist, task)</code>
116 <pre>Deletes the specified task from the task list.
117
118Args:
119 tasklist: string, Task list identifier. (required)
120 task: string, Task identifier. (required)
121</pre>
122</div>
123
124<div class="method">
125 <code class="details" id="get">get(tasklist, task)</code>
126 <pre>Returns the specified task.
127
128Args:
129 tasklist: string, Task list identifier. (required)
130 task: string, Task identifier. (required)
131
132Returns:
133 An object of the form:
134
135 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &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.
137 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
138 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
139 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
140 &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.
141 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
142 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
143 &quot;links&quot;: [ # Collection of links. This collection is read-only.
144 {
145 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
146 &quot;link&quot;: &quot;A String&quot;, # The URL.
147 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
148 },
149 ],
150 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
151 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
152 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
153 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
154 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
155 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
156 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
157 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400158</div>
159
160<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 <code class="details" id="insert">insert(tasklist, body=None, parent=None, previous=None)</code>
162 <pre>Creates a new task on the specified task list. Fails with HTTP code 403 or 429 after reaching the storage limit of 100,000 tasks per account.
John Asmuth614db982014-04-24 15:46:26 -0400163
164Args:
165 tasklist: string, Task list identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700166 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400167 The object takes the form of:
168
169{
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &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.
171 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
172 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
173 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
174 &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.
175 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
176 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
177 &quot;links&quot;: [ # Collection of links. This collection is read-only.
178 {
179 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
180 &quot;link&quot;: &quot;A String&quot;, # The URL.
181 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
182 },
183 ],
184 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
185 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
186 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
187 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
188 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
189 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
190 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
191}
John Asmuth614db982014-04-24 15:46:26 -0400192
193 parent: string, Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.
194 previous: string, Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
195
196Returns:
197 An object of the form:
198
199 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &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.
201 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
202 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
203 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
204 &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.
205 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
206 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
207 &quot;links&quot;: [ # Collection of links. This collection is read-only.
208 {
209 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
210 &quot;link&quot;: &quot;A String&quot;, # The URL.
211 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
212 },
213 ],
214 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
215 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
216 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
217 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
218 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
219 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
220 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
221 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400222</div>
223
224<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 <code class="details" id="list">list(tasklist, completedMax=None, completedMin=None, dueMax=None, dueMin=None, maxResults=None, pageToken=None, showCompleted=None, showDeleted=None, showHidden=None, updatedMin=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400226 <pre>Returns all tasks in the specified task list.
227
228Args:
229 tasklist: string, Task list identifier. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 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.
231 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.
232 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.
233 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234 maxResults: string, Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).
Bu Sun Kim65020912020-05-20 12:08:20 -0700235 pageToken: string, Token specifying the result page to return. Optional.
236 showCompleted: boolean, Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
237 showDeleted: boolean, Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
John Asmuth614db982014-04-24 15:46:26 -0400238 showHidden: boolean, Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 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.
John Asmuth614db982014-04-24 15:46:26 -0400240
241Returns:
242 An object of the form:
243
244 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
246 &quot;items&quot;: [ # Collection of tasks.
John Asmuth614db982014-04-24 15:46:26 -0400247 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &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.
249 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
250 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
251 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
252 &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.
253 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
254 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
255 &quot;links&quot;: [ # Collection of links. This collection is read-only.
256 {
257 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
258 &quot;link&quot;: &quot;A String&quot;, # The URL.
259 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
260 },
261 ],
262 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
263 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
264 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
265 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
266 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
267 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
268 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
269 },
John Asmuth614db982014-04-24 15:46:26 -0400270 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;kind&quot;: &quot;tasks#tasks&quot;, # Type of the resource. This is always &quot;tasks#tasks&quot;.
272 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token used to access the next page of this result.
John Asmuth614db982014-04-24 15:46:26 -0400273 }</pre>
274</div>
275
276<div class="method">
277 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
278 <pre>Retrieves the next page of results.
279
280Args:
281 previous_request: The request for the previous page. (required)
282 previous_response: The response from the request for the previous page. (required)
283
284Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400286 page. Returns None if there are no more items in the collection.
287 </pre>
288</div>
289
290<div class="method">
291 <code class="details" id="move">move(tasklist, task, parent=None, previous=None)</code>
292 <pre>Moves the specified task to another position in the task 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.
293
294Args:
295 tasklist: string, Task list identifier. (required)
296 task: string, Task identifier. (required)
297 parent: string, New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.
298 previous: string, New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.
299
300Returns:
301 An object of the form:
302
303 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &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.
305 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
306 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
307 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
308 &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.
309 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
310 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
311 &quot;links&quot;: [ # Collection of links. This collection is read-only.
312 {
313 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
314 &quot;link&quot;: &quot;A String&quot;, # The URL.
315 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
316 },
317 ],
318 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
319 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
320 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
321 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
322 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
323 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
324 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
325 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400326</div>
327
328<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 <code class="details" id="patch">patch(tasklist, task, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400330 <pre>Updates the specified task. This method supports patch semantics.
331
332Args:
333 tasklist: string, Task list identifier. (required)
334 task: string, Task identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700335 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400336 The object takes the form of:
337
338{
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 &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.
340 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
341 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
342 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
343 &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.
344 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
345 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
346 &quot;links&quot;: [ # Collection of links. This collection is read-only.
347 {
348 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
349 &quot;link&quot;: &quot;A String&quot;, # The URL.
350 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
351 },
352 ],
353 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
354 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
355 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
356 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
357 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
358 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
359 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
360}
John Asmuth614db982014-04-24 15:46:26 -0400361
362
363Returns:
364 An object of the form:
365
366 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &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.
368 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
369 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
370 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
371 &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.
372 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
373 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
374 &quot;links&quot;: [ # Collection of links. This collection is read-only.
375 {
376 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
377 &quot;link&quot;: &quot;A String&quot;, # The URL.
378 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
379 },
380 ],
381 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
382 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
383 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
384 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
385 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
386 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
387 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
388 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400389</div>
390
391<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700392 <code class="details" id="update">update(tasklist, task, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400393 <pre>Updates the specified task.
394
395Args:
396 tasklist: string, Task list identifier. (required)
397 task: string, Task identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700398 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400399 The object takes the form of:
400
401{
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &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.
403 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
404 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
405 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
406 &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.
407 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
408 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
409 &quot;links&quot;: [ # Collection of links. This collection is read-only.
410 {
411 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
412 &quot;link&quot;: &quot;A String&quot;, # The URL.
413 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
414 },
415 ],
416 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
417 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
418 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
419 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
420 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
421 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
422 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
423}
John Asmuth614db982014-04-24 15:46:26 -0400424
425
426Returns:
427 An object of the form:
428
429 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &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.
431 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default if False.
432 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn&#x27;t possible to read or write the time that a task is due via the API.
433 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
434 &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.
435 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
436 &quot;kind&quot;: &quot;tasks#task&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
437 &quot;links&quot;: [ # Collection of links. This collection is read-only.
438 {
439 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &lt;a&gt; and &lt;/a&gt;.
440 &quot;link&quot;: &quot;A String&quot;, # The URL.
441 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
442 },
443 ],
444 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
445 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the &quot;move&quot; method to move the task under a different parent or to the top level.
446 &quot;position&quot;: &quot;A String&quot;, # 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). This field is read-only. Use the &quot;move&quot; method to move the task to another position.
447 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
448 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
449 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
450 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
451 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400452</div>
453
454</body></html>