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 | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame^] | 39 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 40 | <br> |
| 41 | Returns:<br> |
| 42 | An object of the form<br> |
| 43 | <br> |
| 44 | {<br> |
| 45 | "kind": "books#bookshelf", # Resource type for bookshelf metadata.<br> |
| 46 | "description": "A String", # Description of this bookshelf.<br> |
| 47 | "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 48 | "volumeCount": 42, # Number of volumes in this bookshelf.<br> |
| 49 | "title": "A String", # Title of this bookshelf.<br> |
| 50 | "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 51 | "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.<br> |
| 52 | "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 53 | "id": 42, # Id of this bookshelf, only unique by user.<br> |
| 54 | "selfLink": "A String", # URL to this resource.<br> |
| 55 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 56 | |
| 57 | <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> |
| 58 | <br> |
| 59 | Args:<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 60 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame^] | 61 | source: string, String to identify the originator of this request.<br> |
| 62 | <br> |
| 63 | Returns:<br> |
| 64 | An object of the form<br> |
| 65 | <br> |
| 66 | {<br> |
| 67 | "items": [ # A list of bookshelves.<br> |
| 68 | {<br> |
| 69 | "kind": "books#bookshelf", # Resource type for bookshelf metadata.<br> |
| 70 | "description": "A String", # Description of this bookshelf.<br> |
| 71 | "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 72 | "volumeCount": 42, # Number of volumes in this bookshelf.<br> |
| 73 | "title": "A String", # Title of this bookshelf.<br> |
| 74 | "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 75 | "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.<br> |
| 76 | "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 77 | "id": 42, # Id of this bookshelf, only unique by user.<br> |
| 78 | "selfLink": "A String", # URL to this resource.<br> |
| 79 | },<br> |
| 80 | ],<br> |
| 81 | "kind": "books#bookshelves", # Resource type.<br> |
| 82 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 83 | |
| 84 | <dl><dt><a name="Resource-removeVolume"><strong>removeVolume</strong></a> = method(self, **kwargs)</dt><dd><tt>Removes a volume from a bookshelf.<br> |
| 85 | <br> |
| 86 | Args:<br> |
| 87 | body: object, The request body. (required)<br> |
| 88 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 89 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 90 | volumeId: string, Id of volume to remove. (required)<br> |
| 91 | 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] | 92 | |
| 93 | <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> |
| 94 | |
| 95 | <hr> |
| 96 | Data descriptors defined here:<br> |
| 97 | <dl><dt><strong>__dict__</strong></dt> |
| 98 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 99 | </dl> |
| 100 | <dl><dt><strong>__weakref__</strong></dt> |
| 101 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 102 | </dl> |
| 103 | </td></tr></table> |
| 104 | </body></html> |