blob: 3bf6b515f5b0b8254e5fc37da51c6f4ba8f52f9a [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">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070078 <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</p>
John Asmuth614db982014-04-24 15:46:26 -040080<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070081 <code><a href="#delete">delete(tasklist, task, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Deletes the specified task from the task list.</p>
83<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070084 <code><a href="#get">get(tasklist, task, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Returns the specified task.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#insert">insert(tasklist, body=None, previous=None, parent=None, x__xgafv=None)</a></code></p>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070088<p class="firstline">Creates a new task on the specified task list.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(tasklist, showCompleted=None, pageToken=None, showDeleted=None, completedMax=None, dueMax=None, dueMin=None, showHidden=None, completedMin=None, maxResults=None, updatedMin=None, x__xgafv=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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code><a href="#move">move(tasklist, task, previous=None, parent=None, x__xgafv=None)</a></code></p>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070097<p class="firstline">Moves the specified task to another position in the task list. This can</p>
John Asmuth614db982014-04-24 15:46:26 -040098<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070099 <code><a href="#patch">patch(tasklist, task, body=None, x__xgafv=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">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700102 <code><a href="#update">update(tasklist, task, body=None, x__xgafv=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">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700106 <code class="details" id="clear">clear(tasklist, x__xgafv=None)</code>
107 <pre>Clears all completed tasks from the specified task list. The affected tasks
108will be marked as &#x27;hidden&#x27; and no longer be returned by default when
109retrieving all tasks for a task list.
John Asmuth614db982014-04-24 15:46:26 -0400110
111Args:
112 tasklist: string, Task list identifier. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700113 x__xgafv: string, V1 error format.
114 Allowed values
115 1 - v1 error format
116 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400117</pre>
118</div>
119
120<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700121 <code class="details" id="delete">delete(tasklist, task, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400122 <pre>Deletes the specified task from the task list.
123
124Args:
125 tasklist: string, Task list identifier. (required)
126 task: string, Task identifier. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 x__xgafv: string, V1 error format.
128 Allowed values
129 1 - v1 error format
130 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400131</pre>
132</div>
133
134<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700135 <code class="details" id="get">get(tasklist, task, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400136 <pre>Returns the specified task.
137
138Args:
139 tasklist: string, Task list identifier. (required)
140 task: string, Task identifier. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400145
146Returns:
147 An object of the form:
148
149 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700150 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
151 # This field is read-only. Use the &quot;move&quot; method to move the task under a
152 # different parent or to the top level.
153 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
154 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
155 # had been marked completed when the task list was last cleared. The default
156 # is False. This field is read-only.
157 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
158 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
159 # the same parent task or at the top level. If this string is greater than
160 # another task&#x27;s corresponding position string according to lexicographical
161 # ordering, the task is positioned after the other task under the same parent
162 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
163 # to move the task to another position.
164 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
165 # omitted if the task has not been completed.
166 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
167 &quot;links&quot;: [ # Collection of links. This collection is read-only.
168 {
169 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
170 # &amp;lt;/a&amp;gt;.
171 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
172 &quot;link&quot;: &quot;A String&quot;, # The URL.
173 },
174 ],
175 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
176 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
177 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
178 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
179 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
180 # records date information; the time portion of the timestamp is discarded
181 # when setting the due date. It isn&#x27;t possible to read or write the time that
182 # a task is due via the API.
183 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
184 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
185 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400186</div>
187
188<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700189 <code class="details" id="insert">insert(tasklist, body=None, previous=None, parent=None, x__xgafv=None)</code>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700190 <pre>Creates a new task on the specified task list.
John Asmuth614db982014-04-24 15:46:26 -0400191
192Args:
193 tasklist: string, Task list identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700194 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400195 The object takes the form of:
196
197{
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
199 # This field is read-only. Use the &quot;move&quot; method to move the task under a
200 # different parent or to the top level.
201 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
202 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
203 # had been marked completed when the task list was last cleared. The default
204 # is False. This field is read-only.
205 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
206 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
207 # the same parent task or at the top level. If this string is greater than
208 # another task&#x27;s corresponding position string according to lexicographical
209 # ordering, the task is positioned after the other task under the same parent
210 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
211 # to move the task to another position.
212 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
213 # omitted if the task has not been completed.
214 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
215 &quot;links&quot;: [ # Collection of links. This collection is read-only.
216 {
217 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
218 # &amp;lt;/a&amp;gt;.
219 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
220 &quot;link&quot;: &quot;A String&quot;, # The URL.
221 },
222 ],
223 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
224 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
225 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
226 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
227 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
228 # records date information; the time portion of the timestamp is discarded
229 # when setting the due date. It isn&#x27;t possible to read or write the time that
230 # a task is due via the API.
231 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
232 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
233}
234
235 previous: string, Previous sibling task identifier. If the task is created at the first
236position among its siblings, this parameter is omitted. Optional.
237 parent: string, Parent task identifier. If the task is created at the top level, this
238parameter is omitted. Optional.
239 x__xgafv: string, V1 error format.
240 Allowed values
241 1 - v1 error format
242 2 - v2 error format
243
244Returns:
245 An object of the form:
246
247 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700248 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
249 # This field is read-only. Use the &quot;move&quot; method to move the task under a
250 # different parent or to the top level.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700251 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
252 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
253 # had been marked completed when the task list was last cleared. The default
254 # is False. This field is read-only.
255 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700256 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
257 # the same parent task or at the top level. If this string is greater than
258 # another task&#x27;s corresponding position string according to lexicographical
259 # ordering, the task is positioned after the other task under the same parent
260 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
261 # to move the task to another position.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700262 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
263 # omitted if the task has not been completed.
264 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
265 &quot;links&quot;: [ # Collection of links. This collection is read-only.
266 {
267 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
268 # &amp;lt;/a&amp;gt;.
269 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
270 &quot;link&quot;: &quot;A String&quot;, # The URL.
271 },
272 ],
273 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
274 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
275 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
276 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700277 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
278 # records date information; the time portion of the timestamp is discarded
279 # when setting the due date. It isn&#x27;t possible to read or write the time that
280 # a task is due via the API.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700281 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
282 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
283 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400284</div>
285
286<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700287 <code class="details" id="list">list(tasklist, showCompleted=None, pageToken=None, showDeleted=None, completedMax=None, dueMax=None, dueMin=None, showHidden=None, completedMin=None, maxResults=None, updatedMin=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400288 <pre>Returns all tasks in the specified task list.
289
290Args:
291 tasklist: string, Task list identifier. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700292 showCompleted: boolean, Flag indicating whether completed tasks are returned in the result.
293Optional. The default is True.
294 pageToken: string, Token specifying the result page to return. Optional.
295 showDeleted: boolean, Flag indicating whether deleted tasks are returned in the result. Optional.
296The default is False.
297 completedMax: string, Upper bound for a task&#x27;s completion date (as a RFC 3339 timestamp) to
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700298filter by. Optional. The default is not to filter by completion date.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700299 dueMax: string, Upper bound for a task&#x27;s due date (as a RFC 3339 timestamp) to filter by.
300Optional. The default is not to filter by due date.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700301 dueMin: string, Lower bound for a task&#x27;s due date (as a RFC 3339 timestamp) to filter by.
302Optional. The default is not to filter by due date.
303 showHidden: boolean, Flag indicating whether hidden tasks are returned in the result. Optional.
304The default is False.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 completedMin: string, Lower bound for a task&#x27;s completion date (as a RFC 3339 timestamp) to
306filter by. Optional. The default is not to filter by completion date.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700307 maxResults: integer, Maximum number of task lists returned on one page. Optional. The default is
30820 (max allowed: 100).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700309 updatedMin: string, Lower bound for a task&#x27;s last modification time (as a RFC 3339 timestamp)
310to filter by. Optional. The default is not to filter by last modification
311time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700312 x__xgafv: string, V1 error format.
313 Allowed values
314 1 - v1 error format
315 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400316
317Returns:
318 An object of the form:
319
320 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;items&quot;: [ # Collection of tasks.
John Asmuth614db982014-04-24 15:46:26 -0400322 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700323 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
324 # This field is read-only. Use the &quot;move&quot; method to move the task under a
325 # different parent or to the top level.
326 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
327 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
328 # had been marked completed when the task list was last cleared. The default
329 # is False. This field is read-only.
330 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
331 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
332 # the same parent task or at the top level. If this string is greater than
333 # another task&#x27;s corresponding position string according to lexicographical
334 # ordering, the task is positioned after the other task under the same parent
335 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
336 # to move the task to another position.
337 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
338 # omitted if the task has not been completed.
339 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
340 &quot;links&quot;: [ # Collection of links. This collection is read-only.
341 {
342 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
343 # &amp;lt;/a&amp;gt;.
344 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
345 &quot;link&quot;: &quot;A String&quot;, # The URL.
346 },
347 ],
348 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
349 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
350 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
351 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
352 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
353 # records date information; the time portion of the timestamp is discarded
354 # when setting the due date. It isn&#x27;t possible to read or write the time that
355 # a task is due via the API.
356 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
357 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
358 },
John Asmuth614db982014-04-24 15:46:26 -0400359 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700360 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token used to access the next page of this result.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700361 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#tasks&quot;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700362 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
John Asmuth614db982014-04-24 15:46:26 -0400363 }</pre>
364</div>
365
366<div class="method">
367 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
368 <pre>Retrieves the next page of results.
369
370Args:
371 previous_request: The request for the previous page. (required)
372 previous_response: The response from the request for the previous page. (required)
373
374Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400376 page. Returns None if there are no more items in the collection.
377 </pre>
378</div>
379
380<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700381 <code class="details" id="move">move(tasklist, task, previous=None, parent=None, x__xgafv=None)</code>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700382 <pre>Moves the specified task to another position in the task list. This can
383include putting it as a child task under a new parent and/or move it to a
384different position among its sibling tasks.
John Asmuth614db982014-04-24 15:46:26 -0400385
386Args:
387 tasklist: string, Task list identifier. (required)
388 task: string, Task identifier. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700389 previous: string, New previous sibling task identifier. If the task is moved to the first
390position among its siblings, this parameter is omitted. Optional.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700391 parent: string, New parent task identifier. If the task is moved to the top level, this
392parameter is omitted. Optional.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400397
398Returns:
399 An object of the form:
400
401 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
403 # This field is read-only. Use the &quot;move&quot; method to move the task under a
404 # different parent or to the top level.
405 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
406 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
407 # had been marked completed when the task list was last cleared. The default
408 # is False. This field is read-only.
409 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
410 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
411 # the same parent task or at the top level. If this string is greater than
412 # another task&#x27;s corresponding position string according to lexicographical
413 # ordering, the task is positioned after the other task under the same parent
414 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
415 # to move the task to another position.
416 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
417 # omitted if the task has not been completed.
418 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
419 &quot;links&quot;: [ # Collection of links. This collection is read-only.
420 {
421 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
422 # &amp;lt;/a&amp;gt;.
423 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
424 &quot;link&quot;: &quot;A String&quot;, # The URL.
425 },
426 ],
427 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
428 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
429 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
430 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
431 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
432 # records date information; the time portion of the timestamp is discarded
433 # when setting the due date. It isn&#x27;t possible to read or write the time that
434 # a task is due via the API.
435 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
436 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
437 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400438</div>
439
440<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700441 <code class="details" id="patch">patch(tasklist, task, body=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400442 <pre>Updates the specified task. This method supports patch semantics.
443
444Args:
445 tasklist: string, Task list identifier. (required)
446 task: string, Task identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700447 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400448 The object takes the form of:
449
450{
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700451 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
452 # This field is read-only. Use the &quot;move&quot; method to move the task under a
453 # different parent or to the top level.
454 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
455 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
456 # had been marked completed when the task list was last cleared. The default
457 # is False. This field is read-only.
458 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
459 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
460 # the same parent task or at the top level. If this string is greater than
461 # another task&#x27;s corresponding position string according to lexicographical
462 # ordering, the task is positioned after the other task under the same parent
463 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
464 # to move the task to another position.
465 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
466 # omitted if the task has not been completed.
467 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
468 &quot;links&quot;: [ # Collection of links. This collection is read-only.
469 {
470 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
471 # &amp;lt;/a&amp;gt;.
472 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
473 &quot;link&quot;: &quot;A String&quot;, # The URL.
474 },
475 ],
476 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
477 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
478 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
479 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
480 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
481 # records date information; the time portion of the timestamp is discarded
482 # when setting the due date. It isn&#x27;t possible to read or write the time that
483 # a task is due via the API.
484 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
485 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
486}
John Asmuth614db982014-04-24 15:46:26 -0400487
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700488 x__xgafv: string, V1 error format.
489 Allowed values
490 1 - v1 error format
491 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400492
493Returns:
494 An object of the form:
495
496 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700497 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
498 # This field is read-only. Use the &quot;move&quot; method to move the task under a
499 # different parent or to the top level.
500 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
501 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
502 # had been marked completed when the task list was last cleared. The default
503 # is False. This field is read-only.
504 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
505 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
506 # the same parent task or at the top level. If this string is greater than
507 # another task&#x27;s corresponding position string according to lexicographical
508 # ordering, the task is positioned after the other task under the same parent
509 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
510 # to move the task to another position.
511 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
512 # omitted if the task has not been completed.
513 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
514 &quot;links&quot;: [ # Collection of links. This collection is read-only.
515 {
516 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
517 # &amp;lt;/a&amp;gt;.
518 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
519 &quot;link&quot;: &quot;A String&quot;, # The URL.
520 },
521 ],
522 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
523 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
524 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
525 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
526 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
527 # records date information; the time portion of the timestamp is discarded
528 # when setting the due date. It isn&#x27;t possible to read or write the time that
529 # a task is due via the API.
530 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
531 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
532 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400533</div>
534
535<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 <code class="details" id="update">update(tasklist, task, body=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400537 <pre>Updates the specified task.
538
539Args:
540 tasklist: string, Task list identifier. (required)
541 task: string, Task identifier. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700542 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400543 The object takes the form of:
544
545{
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700546 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
547 # This field is read-only. Use the &quot;move&quot; method to move the task under a
548 # different parent or to the top level.
549 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
550 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
551 # had been marked completed when the task list was last cleared. The default
552 # is False. This field is read-only.
553 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
554 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
555 # the same parent task or at the top level. If this string is greater than
556 # another task&#x27;s corresponding position string according to lexicographical
557 # ordering, the task is positioned after the other task under the same parent
558 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
559 # to move the task to another position.
560 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
561 # omitted if the task has not been completed.
562 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
563 &quot;links&quot;: [ # Collection of links. This collection is read-only.
564 {
565 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
566 # &amp;lt;/a&amp;gt;.
567 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
568 &quot;link&quot;: &quot;A String&quot;, # The URL.
569 },
570 ],
571 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
572 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
573 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
574 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
575 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
576 # records date information; the time portion of the timestamp is discarded
577 # when setting the due date. It isn&#x27;t possible to read or write the time that
578 # a task is due via the API.
579 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
580 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
581}
John Asmuth614db982014-04-24 15:46:26 -0400582
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700583 x__xgafv: string, V1 error format.
584 Allowed values
585 1 - v1 error format
586 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400587
588Returns:
589 An object of the form:
590
591 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700592 &quot;parent&quot;: &quot;A String&quot;, # Parent task identifier. This field is omitted if it is a top-level task.
593 # This field is read-only. Use the &quot;move&quot; method to move the task under a
594 # different parent or to the top level.
595 &quot;kind&quot;: &quot;A String&quot;, # Type of the resource. This is always &quot;tasks#task&quot;.
596 &quot;hidden&quot;: True or False, # Flag indicating whether the task is hidden. This is the case if the task
597 # had been marked completed when the task list was last cleared. The default
598 # is False. This field is read-only.
599 &quot;updated&quot;: &quot;A String&quot;, # Last modification time of the task (as a RFC 3339 timestamp).
600 &quot;position&quot;: &quot;A String&quot;, # String indicating the position of the task among its sibling tasks under
601 # the same parent task or at the top level. If this string is greater than
602 # another task&#x27;s corresponding position string according to lexicographical
603 # ordering, the task is positioned after the other task under the same parent
604 # task (or at the top level). This field is read-only. Use the &quot;move&quot; method
605 # to move the task to another position.
606 &quot;completed&quot;: &quot;A String&quot;, # Completion date of the task (as a RFC 3339 timestamp). This field is
607 # omitted if the task has not been completed.
608 &quot;deleted&quot;: True or False, # Flag indicating whether the task has been deleted. The default is False.
609 &quot;links&quot;: [ # Collection of links. This collection is read-only.
610 {
611 &quot;description&quot;: &quot;A String&quot;, # The description. In HTML speak: Everything between &amp;lt;a&amp;gt; and
612 # &amp;lt;/a&amp;gt;.
613 &quot;type&quot;: &quot;A String&quot;, # Type of the link, e.g. &quot;email&quot;.
614 &quot;link&quot;: &quot;A String&quot;, # The URL.
615 },
616 ],
617 &quot;selfLink&quot;: &quot;A String&quot;, # URL pointing to this task. Used to retrieve, update, or delete this task.
618 &quot;title&quot;: &quot;A String&quot;, # Title of the task.
619 &quot;notes&quot;: &quot;A String&quot;, # Notes describing the task. Optional.
620 &quot;status&quot;: &quot;A String&quot;, # Status of the task. This is either &quot;needsAction&quot; or &quot;completed&quot;.
621 &quot;due&quot;: &quot;A String&quot;, # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
622 # records date information; the time portion of the timestamp is discarded
623 # when setting the due date. It isn&#x27;t possible to read or write the time that
624 # a task is due via the API.
625 &quot;etag&quot;: &quot;A String&quot;, # ETag of the resource.
626 &quot;id&quot;: &quot;A String&quot;, # Task identifier.
627 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400628</div>
629
630</body></html>