Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [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-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Delete a group<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | alt: Specifies an alternative representation type.<br> |
| 21 | userId: ID of the user being referenced. (required)<br> |
| 22 | groupId: ID of the group to delete. (required)<br> |
| 23 | hl: Language code to limit language results.</tt></dd></dl> |
| 24 | |
| 25 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Get a group<br> |
| 26 | <br> |
| 27 | Args:<br> |
| 28 | alt: Specifies an alternative representation type.<br> |
| 29 | userId: ID of the user being referenced. (required)<br> |
| 30 | groupId: ID of the group to get. (required)<br> |
| 31 | hl: Language code to limit language results.</tt></dd></dl> |
| 32 | |
| 33 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Create a group<br> |
| 34 | <br> |
| 35 | Args:<br> |
| 36 | body: The request body.<br> |
| 37 | alt: Specifies an alternative representation type.<br> |
| 38 | userId: ID of the user being referenced. (required)<br> |
| 39 | hl: Language code to limit language results.</tt></dd></dl> |
| 40 | |
| 41 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Get a user's groups<br> |
| 42 | <br> |
| 43 | Args:<br> |
| 44 | c: A continuation token that allows pagination.<br> |
| 45 | max_results: Maximum number of results to include.<br> |
| 46 | userId: ID of the user being referenced. (required)<br> |
| 47 | alt: Specifies an alternative representation type.<br> |
| 48 | hl: Language code to limit language results.</tt></dd></dl> |
| 49 | |
| 50 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous)</dt><dd><tt>Takes a single argument, 'body', which is the results<br> |
| 51 | from the last call, and returns the next set of items<br> |
| 52 | in the collection.<br> |
| 53 | <br> |
| 54 | Returns None if there are no more items in<br> |
| 55 | the collection.</tt></dd></dl> |
| 56 | |
| 57 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Update a group<br> |
| 58 | <br> |
| 59 | Args:<br> |
| 60 | body: The request body.<br> |
| 61 | alt: Specifies an alternative representation type.<br> |
| 62 | userId: ID of the user being referenced. (required)<br> |
| 63 | groupId: ID of the group to update. (required)<br> |
| 64 | hl: Language code to limit language results.</tt></dd></dl> |
| 65 | |
| 66 | <hr> |
| 67 | Data descriptors defined here:<br> |
| 68 | <dl><dt><strong>__dict__</strong></dt> |
| 69 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 70 | </dl> |
| 71 | <dl><dt><strong>__weakref__</strong></dt> |
| 72 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 73 | </dl> |
| 74 | </td></tr></table> |
| 75 | </body></html> |