| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><title>Python: class Resource</title> |
| </head><body bgcolor="#f0f0f8"> |
| <p> |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| <tr bgcolor="#ffc8d8"> |
| <td colspan=3 valign=bottom> <br> |
| <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> |
| |
| <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| <tr><td> </td> |
| <td width="100%">Methods defined here:<br> |
| <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| |
| <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a specific bookshelf for the specified user.<br> |
| <br> |
| Args:<br> |
| source: string, String to identify the originator of this request.<br> |
| country: string, ISO-3166-1 code to override the IP-based location.<br> |
| userId: string, Id of user for whom to retrieve bookshelves. (required)<br> |
| shelf: string, Id of bookshelf to retrieve. (required)<br> |
| <br> |
| Returns:<br> |
| An object of the form<br> |
| <br> |
| {<br> |
| "kind": "books#bookshelf", # Resource type for bookshelf metadata.<br> |
| "description": "A String", # Description of this bookshelf.<br> |
| "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| "volumeCount": 42, # Number of volumes in this bookshelf.<br> |
| "title": "A String", # Title of this bookshelf.<br> |
| "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.<br> |
| "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| "id": 42, # Id of this bookshelf, only unique by user.<br> |
| "selfLink": "A String", # URL to this resource.<br> |
| }</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of public bookshelves for the specified user.<br> |
| <br> |
| Args:<br> |
| source: string, String to identify the originator of this request.<br> |
| country: string, ISO-3166-1 code to override the IP-based location.<br> |
| userId: string, Id of user for whom to retrieve bookshelves. (required)<br> |
| <br> |
| Returns:<br> |
| An object of the form<br> |
| <br> |
| {<br> |
| "items": [ # A list of bookshelves.<br> |
| {<br> |
| "kind": "books#bookshelf", # Resource type for bookshelf metadata.<br> |
| "description": "A String", # Description of this bookshelf.<br> |
| "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| "volumeCount": 42, # Number of volumes in this bookshelf.<br> |
| "title": "A String", # Title of this bookshelf.<br> |
| "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.<br> |
| "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| "id": 42, # Id of this bookshelf, only unique by user.<br> |
| "selfLink": "A String", # URL to this resource.<br> |
| },<br> |
| ],<br> |
| "kind": "books#bookshelves", # Resource type.<br> |
| }</tt></dd></dl> |
| |
| <dl><dt><a name="Resource-volumes"><strong><a href="books.v1.bookshelves.volumes.html">volumes</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| |
| <hr> |
| Data descriptors defined here:<br> |
| <dl><dt><strong>__dict__</strong></dt> |
| <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| </dl> |
| <dl><dt><strong>__weakref__</strong></dt> |
| <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| </dl> |
| </td></tr></table> |
| </body></html> |