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-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets the volume annotation.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | source: string, String to identify the originator of this request.<br> |
| 21 | locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.<br> |
| 22 | layerId: string, The ID for the layer to get the annotations. (required)<br> |
| 23 | annotationId: string, The ID of the volume annotation to retrieve. (required)<br> |
| 24 | volumeId: string, The volume to retrieve annotations for. (required)<br> |
| 25 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 26 | <br> |
| 27 | Returns:<br> |
| 28 | An object of the form<br> |
| 29 | <br> |
| 30 | {<br> |
| 31 | "annotationType": "A String", # The type of annotation this is.<br> |
| 32 | "kind": "books#volumeannotation", # Resource Type<br> |
| 33 | "updated": "A String", # Timestamp for the last time this anntoation was updated. (<a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> UTC date-time format).<br> |
| 34 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
| 35 | "contentRanges": { # The content ranges to identify the selected text.<br> |
| 36 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 37 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 38 | "startPosition": "A String", # The starting position for the range.<br> |
| 39 | "endPosition": "A String", # The ending position for the range.<br> |
| 40 | "startOffset": "A String", # The offset from the starting position.<br> |
| 41 | "endOffset": "A String", # The offset from the ending position.<br> |
| 42 | },<br> |
| 43 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 44 | "startPosition": "A String", # The starting position for the range.<br> |
| 45 | "endPosition": "A String", # The ending position for the range.<br> |
| 46 | "startOffset": "A String", # The offset from the starting position.<br> |
| 47 | "endOffset": "A String", # The offset from the ending position.<br> |
| 48 | },<br> |
| 49 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 50 | "startPosition": "A String", # The starting position for the range.<br> |
| 51 | "endPosition": "A String", # The ending position for the range.<br> |
| 52 | "startOffset": "A String", # The offset from the starting position.<br> |
| 53 | "endOffset": "A String", # The offset from the ending position.<br> |
| 54 | },<br> |
| 55 | },<br> |
| 56 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 57 | "volumeId": "A String", # The Volume this annotation is for.<br> |
| 58 | "annotationDataLink": "A String", # Link to get data for this annotation.<br> |
| 59 | "pageIds": [ # Pages the annotation spans.<br> |
| 60 | "A String",<br> |
| 61 | ],<br> |
| 62 | "layerId": "A String", # The Layer this annotation is for.<br> |
| 63 | "data": "A String", # Data for this annotation.<br> |
| 64 | "id": "A String", # Unique id of this volume annotation.<br> |
| 65 | "selfLink": "A String", # URL to this resource.<br> |
| 66 | }</tt></dd></dl> |
| 67 | |
| 68 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets the volume annotations for a volume and layer.<br> |
| 69 | <br> |
| 70 | Args:<br> |
| 71 | pageToken: string, The value of the nextToken from the previous page.<br> |
| 72 | updatedMax: string, <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp to restrict to items updated prior to this timestamp (exclusive).<br> |
| 73 | locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.<br> |
| 74 | layerId: string, The ID for the layer to get the annotations. (required)<br> |
| 75 | volumeId: string, The volume to retrieve annotations for. (required)<br> |
| 76 | maxResults: integer, Maximum number of results to return<br> |
| 77 | showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.<br> |
| 78 | contentVersion: string, The content version for the requested volume. (required)<br> |
| 79 | source: string, String to identify the originator of this request.<br> |
| 80 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 81 | updatedMin: string, <a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> timestamp to restrict to items updated since this timestamp (inclusive).<br> |
| 82 | <br> |
| 83 | Returns:<br> |
| 84 | An object of the form<br> |
| 85 | <br> |
| 86 | {<br> |
| 87 | "totalItems": 42, # The total number of volume annotations found.<br> |
| 88 | "items": [ # A list of volume annotations.<br> |
| 89 | {<br> |
| 90 | "annotationType": "A String", # The type of annotation this is.<br> |
| 91 | "kind": "books#volumeannotation", # Resource Type<br> |
| 92 | "updated": "A String", # Timestamp for the last time this anntoation was updated. (<a href="http://www.rfc-editor.org/rfc/rfc3339.txt">RFC 3339</a> UTC date-time format).<br> |
| 93 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
| 94 | "contentRanges": { # The content ranges to identify the selected text.<br> |
| 95 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 96 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 97 | "startPosition": "A String", # The starting position for the range.<br> |
| 98 | "endPosition": "A String", # The ending position for the range.<br> |
| 99 | "startOffset": "A String", # The offset from the starting position.<br> |
| 100 | "endOffset": "A String", # The offset from the ending position.<br> |
| 101 | },<br> |
| 102 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 103 | "startPosition": "A String", # The starting position for the range.<br> |
| 104 | "endPosition": "A String", # The ending position for the range.<br> |
| 105 | "startOffset": "A String", # The offset from the starting position.<br> |
| 106 | "endOffset": "A String", # The offset from the ending position.<br> |
| 107 | },<br> |
| 108 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 109 | "startPosition": "A String", # The starting position for the range.<br> |
| 110 | "endPosition": "A String", # The ending position for the range.<br> |
| 111 | "startOffset": "A String", # The offset from the starting position.<br> |
| 112 | "endOffset": "A String", # The offset from the ending position.<br> |
| 113 | },<br> |
| 114 | },<br> |
| 115 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 116 | "volumeId": "A String", # The Volume this annotation is for.<br> |
| 117 | "annotationDataLink": "A String", # Link to get data for this annotation.<br> |
| 118 | "pageIds": [ # Pages the annotation spans.<br> |
| 119 | "A String",<br> |
| 120 | ],<br> |
| 121 | "layerId": "A String", # The Layer this annotation is for.<br> |
| 122 | "data": "A String", # Data for this annotation.<br> |
| 123 | "id": "A String", # Unique id of this volume annotation.<br> |
| 124 | "selfLink": "A String", # URL to this resource.<br> |
| 125 | },<br> |
| 126 | ],<br> |
| 127 | "kind": "books#volumeannotations", # Resource type<br> |
| 128 | }</tt></dd></dl> |
| 129 | |
| 130 | <hr> |
| 131 | Data descriptors defined here:<br> |
| 132 | <dl><dt><strong>__dict__</strong></dt> |
| 133 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 134 | </dl> |
| 135 | <dl><dt><strong>__weakref__</strong></dt> |
| 136 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 137 | </dl> |
| 138 | </td></tr></table> |
| 139 | </body></html> |