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> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 20 | pp: string, A parameter<br> |
| 21 | trace: string, A parameter<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 22 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 23 | shelf: string, ID of bookshelf to which to add a volume. (required)<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 24 | volumeId: string, ID of volume to add. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 25 | strict: string, A parameter<br> |
| 26 | userip: string, A parameter</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 27 | |
| 28 | <dl><dt><a name="Resource-clearVolumes"><strong>clearVolumes</strong></a> = method(self, **kwargs)</dt><dd><tt>Clears all volumes from a bookshelf.<br> |
| 29 | <br> |
| 30 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 31 | pp: string, A parameter<br> |
| 32 | trace: string, A parameter<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 33 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 34 | shelf: string, ID of bookshelf from which to remove a volume. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 35 | strict: string, A parameter<br> |
| 36 | userip: string, A parameter</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 37 | |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 38 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves metadata for a specific bookshelf belonging to the authenticated user.<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 39 | <br> |
| 40 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 41 | pp: string, A parameter<br> |
| 42 | trace: string, A parameter<br> |
Joe Gregorio | 0250385 | 2011-08-31 09:07:55 -0400 | [diff] [blame] | 43 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 44 | shelf: string, ID of bookshelf to retrieve. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 45 | strict: string, A parameter<br> |
| 46 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 47 | <br> |
| 48 | Returns:<br> |
| 49 | An object of the form<br> |
| 50 | <br> |
| 51 | {<br> |
| 52 | "kind": "books#bookshelf", # Resource type for bookshelf metadata.<br> |
| 53 | "description": "A String", # Description of this bookshelf.<br> |
| 54 | "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 55 | "volumeCount": 42, # Number of volumes in this bookshelf.<br> |
| 56 | "title": "A String", # Title of this bookshelf.<br> |
| 57 | "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 58 | "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.<br> |
| 59 | "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 60 | "id": 42, # Id of this bookshelf, only unique by user.<br> |
| 61 | "selfLink": "A String", # URL to this resource.<br> |
| 62 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 63 | |
| 64 | <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> |
| 65 | <br> |
| 66 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 67 | pp: string, A parameter<br> |
| 68 | trace: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 69 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 70 | strict: string, A parameter<br> |
| 71 | userip: string, A parameter<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 72 | <br> |
| 73 | Returns:<br> |
| 74 | An object of the form<br> |
| 75 | <br> |
| 76 | {<br> |
| 77 | "items": [ # A list of bookshelves.<br> |
| 78 | {<br> |
| 79 | "kind": "books#bookshelf", # Resource type for bookshelf metadata.<br> |
| 80 | "description": "A String", # Description of this bookshelf.<br> |
| 81 | "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 82 | "volumeCount": 42, # Number of volumes in this bookshelf.<br> |
| 83 | "title": "A String", # Title of this bookshelf.<br> |
| 84 | "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 85 | "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.<br> |
| 86 | "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).<br> |
| 87 | "id": 42, # Id of this bookshelf, only unique by user.<br> |
| 88 | "selfLink": "A String", # URL to this resource.<br> |
| 89 | },<br> |
| 90 | ],<br> |
| 91 | "kind": "books#bookshelves", # Resource type.<br> |
| 92 | }</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 93 | |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 94 | <dl><dt><a name="Resource-moveVolume"><strong>moveVolume</strong></a> = method(self, **kwargs)</dt><dd><tt>Moves a volume within a bookshelf.<br> |
| 95 | <br> |
| 96 | Args:<br> |
| 97 | volumePosition: integer, Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.) (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 98 | pp: string, A parameter<br> |
| 99 | trace: string, A parameter<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 100 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 101 | shelf: string, ID of bookshelf with the volume. (required)<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 102 | volumeId: string, ID of volume to move. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 103 | strict: string, A parameter<br> |
| 104 | userip: string, A parameter</tt></dd></dl> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 105 | |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 106 | <dl><dt><a name="Resource-removeVolume"><strong>removeVolume</strong></a> = method(self, **kwargs)</dt><dd><tt>Removes a volume from a bookshelf.<br> |
| 107 | <br> |
| 108 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 109 | pp: string, A parameter<br> |
| 110 | trace: string, A parameter<br> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 111 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 112 | shelf: string, ID of bookshelf from which to remove a volume. (required)<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 113 | volumeId: string, ID of volume to remove. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 114 | strict: string, A parameter<br> |
| 115 | userip: string, A parameter</tt></dd></dl> |
Joe Gregorio | b9e63ff | 2011-06-30 12:38:10 -0400 | [diff] [blame] | 116 | |
| 117 | <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> |
| 118 | |
| 119 | <hr> |
| 120 | Data descriptors defined here:<br> |
| 121 | <dl><dt><strong>__dict__</strong></dt> |
| 122 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 123 | </dl> |
| 124 | <dl><dt><strong>__weakref__</strong></dt> |
| 125 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 126 | </dl> |
| 127 | </td></tr></table> |
| 128 | </body></html> |