Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-clear"><strong>clear</strong></a> = method(self, **kwargs)</dt><dd><tt>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.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | body: object, The request body. (required)<br> |
| 21 | tasklist: string, Task list identifier. (required)</tt></dd></dl> |
| 22 | |
| 23 | <dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes the specified task from the task list.<br> |
| 24 | <br> |
| 25 | Args:<br> |
| 26 | tasklist: string, Task list identifier. (required)<br> |
| 27 | task: string, Task identifier. (required)</tt></dd></dl> |
| 28 | |
| 29 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns the specified task.<br> |
| 30 | <br> |
| 31 | Args:<br> |
| 32 | tasklist: string, Task list identifier. (required)<br> |
| 33 | task: string, Task identifier. (required)</tt></dd></dl> |
| 34 | |
| 35 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Creates a new task on the specified task list.<br> |
| 36 | <br> |
| 37 | Args:<br> |
| 38 | body: object, The request body. (required)<br> |
| 39 | tasklist: string, Task list identifier. (required)<br> |
| 40 | parent: string, Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.<br> |
| 41 | previous: string, Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.</tt></dd></dl> |
| 42 | |
| 43 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns all tasks in the specified task list.<br> |
| 44 | <br> |
| 45 | Args:<br> |
| 46 | dueMax: string, Upper bound for a task's due date (as a <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp) to filter by. Optional. The default is not to filter by due date.<br> |
| 47 | tasklist: string, Task list identifier. (required)<br> |
| 48 | pageToken: string, Token specifying the result page to return. Optional.<br> |
| 49 | updatedMin: string, Lower bound for a task's last modification time (as a <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp) to filter by. Optional. The default is not to filter by last modification time.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame^] | 50 | maxResults: string, Maximum number of task lists returned on one page. Optional. The default is 100.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 51 | completedMin: string, Lower bound for a task's completion date (as a <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp) to filter by. Optional. The default is not to filter by completion date.<br> |
| 52 | showDeleted: boolean, Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.<br> |
| 53 | completedMax: string, Upper bound for a task's completion date (as a <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp) to filter by. Optional. The default is not to filter by completion date.<br> |
| 54 | showHidden: boolean, Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.<br> |
| 55 | showCompleted: boolean, Flag indicating whether completed tasks are returned in the result. Optional. The default is True.<br> |
| 56 | dueMin: string, Lower bound for a task's due date (as a <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp) to filter by. Optional. The default is not to filter by due date.</tt></dd></dl> |
| 57 | |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame^] | 58 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 59 | <br> |
| 60 | Args:<br> |
| 61 | previous_request: The request for the previous page.<br> |
| 62 | previous_response: The response from the request for the previous page.<br> |
| 63 | <br> |
| 64 | Returns:<br> |
| 65 | A request object that you can call 'execute()' on to request the next<br> |
| 66 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 67 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 68 | <dl><dt><a name="Resource-move"><strong>move</strong></a> = method(self, **kwargs)</dt><dd><tt>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.<br> |
| 69 | <br> |
| 70 | Args:<br> |
| 71 | body: object, The request body. (required)<br> |
| 72 | tasklist: string, Task list identifier. (required)<br> |
| 73 | parent: string, New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.<br> |
| 74 | task: string, Task identifier. (required)<br> |
| 75 | previous: string, New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.</tt></dd></dl> |
| 76 | |
| 77 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the specified task. This method supports patch semantics.<br> |
| 78 | <br> |
| 79 | Args:<br> |
| 80 | body: object, The request body. (required)<br> |
| 81 | tasklist: string, Task list identifier. (required)<br> |
| 82 | task: string, Task identifier. (required)</tt></dd></dl> |
| 83 | |
| 84 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates the specified task.<br> |
| 85 | <br> |
| 86 | Args:<br> |
| 87 | body: object, The request body. (required)<br> |
| 88 | tasklist: string, Task list identifier. (required)<br> |
| 89 | task: string, Task identifier. (required)</tt></dd></dl> |
| 90 | |
| 91 | <hr> |
| 92 | Data descriptors defined here:<br> |
| 93 | <dl><dt><strong>__dict__</strong></dt> |
| 94 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 95 | </dl> |
| 96 | <dl><dt><strong>__weakref__</strong></dt> |
| 97 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 98 | </dl> |
| 99 | </td></tr></table> |
| 100 | </body></html> |