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-addVolume"><strong>addVolume</strong></a> = method(self, **kwargs)</dt><dd><tt>Adds a volume to a bookshelf.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | body: object, The request body. (required)<br> |
| 21 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 22 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 23 | volumeId: string, Id of volume to add. (required)<br> |
| 24 | shelf: string, Id of bookshelf to which to add a volume. (required)</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 25 | |
| 26 | <dl><dt><a name="Resource-clearVolumes"><strong>clearVolumes</strong></a> = method(self, **kwargs)</dt><dd><tt>Clears all volumes from a bookshelf.<br> |
| 27 | <br> |
| 28 | Args:<br> |
| 29 | body: object, The request body. (required)<br> |
| 30 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 31 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 32 | shelf: string, Id of bookshelf from which to remove a volume. (required)</tt></dd></dl> |
| 33 | |
| 34 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a specific bookshelf belonging to the authenticated user.<br> |
| 35 | <br> |
| 36 | Args:<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 37 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 38 | shelf: string, Id of bookshelf to retrieve. (required)<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 39 | country: string, ISO-3166-1 code to override the IP-based location.</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 40 | |
| 41 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of bookshelves belonging to the authenticated user.<br> |
| 42 | <br> |
| 43 | Args:<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 44 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 45 | source: string, String to identify the originator of this request.</tt></dd></dl> |
| 46 | |
| 47 | <dl><dt><a name="Resource-removeVolume"><strong>removeVolume</strong></a> = method(self, **kwargs)</dt><dd><tt>Removes a volume from a bookshelf.<br> |
| 48 | <br> |
| 49 | Args:<br> |
| 50 | body: object, The request body. (required)<br> |
| 51 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 52 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 53 | volumeId: string, Id of volume to remove. (required)<br> |
| 54 | shelf: string, Id of bookshelf from which to remove a volume. (required)</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 55 | |
| 56 | <dl><dt><a name="Resource-volumes"><strong><a href="books.v1.mylibrary.bookshelves.volumes.html">volumes</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 57 | |
| 58 | <hr> |
| 59 | Data descriptors defined here:<br> |
| 60 | <dl><dt><strong>__dict__</strong></dt> |
| 61 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 62 | </dl> |
| 63 | <dl><dt><strong>__weakref__</strong></dt> |
| 64 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 65 | </dl> |
| 66 | </td></tr></table> |
| 67 | </body></html> |