Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -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-annotationData"><strong><a href="books.v1.layers.annotationData.html">annotationData</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 18 | |
| 19 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets the layer summary for a volume.<br> |
| 20 | <br> |
| 21 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 22 | pp: string, A parameter<br> |
| 23 | trace: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 24 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 25 | volumeId: string, The volume to retrieve layers for. (required)<br> |
| 26 | strict: string, A parameter<br> |
| 27 | contentVersion: string, The content version for the requested volume.<br> |
| 28 | userip: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 29 | summaryId: string, The ID for the layer to get the summary for. (required)<br> |
| 30 | <br> |
| 31 | Returns:<br> |
| 32 | An object of the form<br> |
| 33 | <br> |
| 34 | {<br> |
| 35 | "kind": "books#layersummary", # Resource Type<br> |
| 36 | "annotationCount": 42, # The number of annotations for this layer.<br> |
| 37 | "dataCount": 42, # The number of data items for this layer.<br> |
| 38 | "annotationsLink": "A String", # The link to get the annotations for this layer.<br> |
| 39 | "updated": "A String", # Timestamp for the last time an item in this layer was updated. (<a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> UTC date-time format).<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 40 | "volumeId": "A String", # The volume id this resource is for.<br> |
| 41 | "id": "A String", # Unique id of this layer summary.<br> |
| 42 | "annotationTypes": [ # The list of annotation types contained for this layer.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 43 | "A String",<br> |
| 44 | ],<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 45 | "contentVersion": "A String", # The content version this resource is for.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 46 | "layerId": "A String", # The layer id for this summary.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 47 | "annotationsDataLink": "A String", # Link to get data for this annotation.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 48 | "selfLink": "A String", # URL to this resource.<br> |
| 49 | }</tt></dd></dl> |
| 50 | |
| 51 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>List the layer summaries for a volume.<br> |
| 52 | <br> |
| 53 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 54 | pp: string, A parameter<br> |
| 55 | trace: string, A parameter<br> |
| 56 | pageToken: string, The value of the nextToken from the previous page.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 57 | volumeId: string, The volume to retrieve layers for. (required)<br> |
| 58 | maxResults: integer, Maximum number of results to return<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 59 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 60 | contentVersion: string, The content version for the requested volume.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 61 | userip: string, A parameter<br> |
| 62 | strict: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 63 | <br> |
| 64 | Returns:<br> |
| 65 | An object of the form<br> |
| 66 | <br> |
| 67 | {<br> |
| 68 | "totalItems": 42, # The total number of layer summaries found.<br> |
| 69 | "items": [ # A list of layer summary items.<br> |
| 70 | {<br> |
| 71 | "kind": "books#layersummary", # Resource Type<br> |
| 72 | "annotationCount": 42, # The number of annotations for this layer.<br> |
| 73 | "dataCount": 42, # The number of data items for this layer.<br> |
| 74 | "annotationsLink": "A String", # The link to get the annotations for this layer.<br> |
| 75 | "updated": "A String", # Timestamp for the last time an item in this layer was updated. (<a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> UTC date-time format).<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 76 | "volumeId": "A String", # The volume id this resource is for.<br> |
| 77 | "id": "A String", # Unique id of this layer summary.<br> |
| 78 | "annotationTypes": [ # The list of annotation types contained for this layer.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 79 | "A String",<br> |
| 80 | ],<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 81 | "contentVersion": "A String", # The content version this resource is for.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 82 | "layerId": "A String", # The layer id for this summary.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 83 | "annotationsDataLink": "A String", # Link to get data for this annotation.<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 84 | "selfLink": "A String", # URL to this resource.<br> |
| 85 | },<br> |
| 86 | ],<br> |
| 87 | "kind": "books#layersummaries", # Resource type.<br> |
| 88 | }</tt></dd></dl> |
| 89 | |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 90 | <dl><dt><a name="Resource-volumeAnnotations"><strong><a href="books.v1.layers.volumeAnnotations.html">volumeAnnotations</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 91 | |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 92 | <hr> |
| 93 | Data descriptors defined here:<br> |
| 94 | <dl><dt><strong>__dict__</strong></dt> |
| 95 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 96 | </dl> |
| 97 | <dl><dt><strong>__weakref__</strong></dt> |
| 98 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 99 | </dl> |
| 100 | </td></tr></table> |
| 101 | </body></html> |