Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [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-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes an annotation.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | source: string, String to identify the originator of this request.<br> |
| 21 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 22 | annotationId: string, The ID for the annotation to delete. (required)</tt></dd></dl> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 23 | |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 24 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets an annotation by its ID.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 25 | <br> |
| 26 | Args:<br> |
| 27 | source: string, String to identify the originator of this request.<br> |
| 28 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 29 | annotationId: string, The ID for the annotation to retrieve. (required)<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 30 | <br> |
| 31 | Returns:<br> |
| 32 | An object of the form<br> |
| 33 | <br> |
| 34 | {<br> |
| 35 | "kind": "books#annotation", # Resource type.<br> |
| 36 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 37 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 38 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 39 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 40 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 41 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 42 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 43 | "startPosition": "A String", # The starting position for the range.<br> |
| 44 | "endPosition": "A String", # The ending position for the range.<br> |
| 45 | "startOffset": "A String", # The offset from the starting position.<br> |
| 46 | "endOffset": "A String", # The offset from the ending position.<br> |
| 47 | },<br> |
| 48 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 49 | "startPosition": "A String", # The starting position for the range.<br> |
| 50 | "endPosition": "A String", # The ending position for the range.<br> |
| 51 | "startOffset": "A String", # The offset from the starting position.<br> |
| 52 | "endOffset": "A String", # The offset from the ending position.<br> |
| 53 | },<br> |
| 54 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 55 | "startPosition": "A String", # The starting position for the range.<br> |
| 56 | "endPosition": "A String", # The ending position for the range.<br> |
| 57 | "startOffset": "A String", # The offset from the starting position.<br> |
| 58 | "endOffset": "A String", # The offset from the ending position.<br> |
| 59 | },<br> |
| 60 | },<br> |
| 61 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 62 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 63 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 64 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 65 | "startPosition": "A String", # The starting position for the range.<br> |
| 66 | "endPosition": "A String", # The ending position for the range.<br> |
| 67 | "startOffset": "A String", # The offset from the starting position.<br> |
| 68 | "endOffset": "A String", # The offset from the ending position.<br> |
| 69 | },<br> |
| 70 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 71 | "startPosition": "A String", # The starting position for the range.<br> |
| 72 | "endPosition": "A String", # The ending position for the range.<br> |
| 73 | "startOffset": "A String", # The offset from the starting position.<br> |
| 74 | "endOffset": "A String", # The offset from the ending position.<br> |
| 75 | },<br> |
| 76 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 77 | "startPosition": "A String", # The starting position for the range.<br> |
| 78 | "endPosition": "A String", # The ending position for the range.<br> |
| 79 | "startOffset": "A String", # The offset from the starting position.<br> |
| 80 | "endOffset": "A String", # The offset from the ending position.<br> |
| 81 | },<br> |
| 82 | },<br> |
| 83 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 84 | "pageIds": [ # Pages that this annotation spans.<br> |
| 85 | "A String",<br> |
| 86 | ],<br> |
| 87 | "layerId": "A String", # The layer this annotation is for.<br> |
| 88 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 89 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 90 | "data": "A String", # User-created data for this annotation.<br> |
| 91 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 92 | "selfLink": "A String", # URL to this resource.<br> |
| 93 | }</tt></dd></dl> |
| 94 | |
| 95 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts a new annotation.<br> |
| 96 | <br> |
| 97 | Args:<br> |
| 98 | body: object, The request body. (required)<br> |
| 99 | The object takes the form of:<br> |
| 100 | <br> |
| 101 | {<br> |
| 102 | "kind": "books#annotation", # Resource type.<br> |
| 103 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 104 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 105 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 106 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 107 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 108 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 109 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 110 | "startPosition": "A String", # The starting position for the range.<br> |
| 111 | "endPosition": "A String", # The ending position for the range.<br> |
| 112 | "startOffset": "A String", # The offset from the starting position.<br> |
| 113 | "endOffset": "A String", # The offset from the ending position.<br> |
| 114 | },<br> |
| 115 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 116 | "startPosition": "A String", # The starting position for the range.<br> |
| 117 | "endPosition": "A String", # The ending position for the range.<br> |
| 118 | "startOffset": "A String", # The offset from the starting position.<br> |
| 119 | "endOffset": "A String", # The offset from the ending position.<br> |
| 120 | },<br> |
| 121 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 122 | "startPosition": "A String", # The starting position for the range.<br> |
| 123 | "endPosition": "A String", # The ending position for the range.<br> |
| 124 | "startOffset": "A String", # The offset from the starting position.<br> |
| 125 | "endOffset": "A String", # The offset from the ending position.<br> |
| 126 | },<br> |
| 127 | },<br> |
| 128 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 129 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 130 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 131 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 132 | "startPosition": "A String", # The starting position for the range.<br> |
| 133 | "endPosition": "A String", # The ending position for the range.<br> |
| 134 | "startOffset": "A String", # The offset from the starting position.<br> |
| 135 | "endOffset": "A String", # The offset from the ending position.<br> |
| 136 | },<br> |
| 137 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 138 | "startPosition": "A String", # The starting position for the range.<br> |
| 139 | "endPosition": "A String", # The ending position for the range.<br> |
| 140 | "startOffset": "A String", # The offset from the starting position.<br> |
| 141 | "endOffset": "A String", # The offset from the ending position.<br> |
| 142 | },<br> |
| 143 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 144 | "startPosition": "A String", # The starting position for the range.<br> |
| 145 | "endPosition": "A String", # The ending position for the range.<br> |
| 146 | "startOffset": "A String", # The offset from the starting position.<br> |
| 147 | "endOffset": "A String", # The offset from the ending position.<br> |
| 148 | },<br> |
| 149 | },<br> |
| 150 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 151 | "pageIds": [ # Pages that this annotation spans.<br> |
| 152 | "A String",<br> |
| 153 | ],<br> |
| 154 | "layerId": "A String", # The layer this annotation is for.<br> |
| 155 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 156 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 157 | "data": "A String", # User-created data for this annotation.<br> |
| 158 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 159 | "selfLink": "A String", # URL to this resource.<br> |
| 160 | }<br> |
| 161 | <br> |
| 162 | source: string, String to identify the originator of this request.<br> |
| 163 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
| 164 | <br> |
| 165 | Returns:<br> |
| 166 | An object of the form<br> |
| 167 | <br> |
| 168 | {<br> |
| 169 | "kind": "books#annotation", # Resource type.<br> |
| 170 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 171 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 172 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 173 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 174 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 175 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 176 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 177 | "startPosition": "A String", # The starting position for the range.<br> |
| 178 | "endPosition": "A String", # The ending position for the range.<br> |
| 179 | "startOffset": "A String", # The offset from the starting position.<br> |
| 180 | "endOffset": "A String", # The offset from the ending position.<br> |
| 181 | },<br> |
| 182 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 183 | "startPosition": "A String", # The starting position for the range.<br> |
| 184 | "endPosition": "A String", # The ending position for the range.<br> |
| 185 | "startOffset": "A String", # The offset from the starting position.<br> |
| 186 | "endOffset": "A String", # The offset from the ending position.<br> |
| 187 | },<br> |
| 188 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 189 | "startPosition": "A String", # The starting position for the range.<br> |
| 190 | "endPosition": "A String", # The ending position for the range.<br> |
| 191 | "startOffset": "A String", # The offset from the starting position.<br> |
| 192 | "endOffset": "A String", # The offset from the ending position.<br> |
| 193 | },<br> |
| 194 | },<br> |
| 195 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 196 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 197 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 198 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 199 | "startPosition": "A String", # The starting position for the range.<br> |
| 200 | "endPosition": "A String", # The ending position for the range.<br> |
| 201 | "startOffset": "A String", # The offset from the starting position.<br> |
| 202 | "endOffset": "A String", # The offset from the ending position.<br> |
| 203 | },<br> |
| 204 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 205 | "startPosition": "A String", # The starting position for the range.<br> |
| 206 | "endPosition": "A String", # The ending position for the range.<br> |
| 207 | "startOffset": "A String", # The offset from the starting position.<br> |
| 208 | "endOffset": "A String", # The offset from the ending position.<br> |
| 209 | },<br> |
| 210 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 211 | "startPosition": "A String", # The starting position for the range.<br> |
| 212 | "endPosition": "A String", # The ending position for the range.<br> |
| 213 | "startOffset": "A String", # The offset from the starting position.<br> |
| 214 | "endOffset": "A String", # The offset from the ending position.<br> |
| 215 | },<br> |
| 216 | },<br> |
| 217 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 218 | "pageIds": [ # Pages that this annotation spans.<br> |
| 219 | "A String",<br> |
| 220 | ],<br> |
| 221 | "layerId": "A String", # The layer this annotation is for.<br> |
| 222 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 223 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 224 | "data": "A String", # User-created data for this annotation.<br> |
| 225 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 226 | "selfLink": "A String", # URL to this resource.<br> |
| 227 | }</tt></dd></dl> |
| 228 | |
| 229 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of annotations, possibly filtered.<br> |
| 230 | <br> |
| 231 | Args:<br> |
| 232 | pageToken: string, The value of the nextToken from the previous page.<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 233 | 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> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 234 | layerId: string, The layer ID to limit annotation by.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 235 | volumeId: string, The volume to restrict annotations to.<br> |
| 236 | maxResults: integer, Maximum number of results to return<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 237 | showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 238 | pageIds: string, The page ID(s) for the volume that is being queried. (repeated)<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 239 | contentVersion: string, The content version for the requested volume.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 240 | source: string, String to identify the originator of this request.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 241 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | 3d55ac5 | 2012-02-21 10:11:19 -0500 | [diff] [blame] | 242 | 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> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 243 | <br> |
| 244 | Returns:<br> |
| 245 | An object of the form<br> |
| 246 | <br> |
| 247 | {<br> |
| 248 | "nextPageToken": "A String", # Token to pass in for pagination for the next page. This will not be present if this request does not have more results.<br> |
| 249 | "items": [ # A list of annotations.<br> |
| 250 | {<br> |
| 251 | "kind": "books#annotation", # Resource type.<br> |
| 252 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 253 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 254 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 255 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 256 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 257 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 258 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 259 | "startPosition": "A String", # The starting position for the range.<br> |
| 260 | "endPosition": "A String", # The ending position for the range.<br> |
| 261 | "startOffset": "A String", # The offset from the starting position.<br> |
| 262 | "endOffset": "A String", # The offset from the ending position.<br> |
| 263 | },<br> |
| 264 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 265 | "startPosition": "A String", # The starting position for the range.<br> |
| 266 | "endPosition": "A String", # The ending position for the range.<br> |
| 267 | "startOffset": "A String", # The offset from the starting position.<br> |
| 268 | "endOffset": "A String", # The offset from the ending position.<br> |
| 269 | },<br> |
| 270 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 271 | "startPosition": "A String", # The starting position for the range.<br> |
| 272 | "endPosition": "A String", # The ending position for the range.<br> |
| 273 | "startOffset": "A String", # The offset from the starting position.<br> |
| 274 | "endOffset": "A String", # The offset from the ending position.<br> |
| 275 | },<br> |
| 276 | },<br> |
| 277 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 278 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 279 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 280 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 281 | "startPosition": "A String", # The starting position for the range.<br> |
| 282 | "endPosition": "A String", # The ending position for the range.<br> |
| 283 | "startOffset": "A String", # The offset from the starting position.<br> |
| 284 | "endOffset": "A String", # The offset from the ending position.<br> |
| 285 | },<br> |
| 286 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 287 | "startPosition": "A String", # The starting position for the range.<br> |
| 288 | "endPosition": "A String", # The ending position for the range.<br> |
| 289 | "startOffset": "A String", # The offset from the starting position.<br> |
| 290 | "endOffset": "A String", # The offset from the ending position.<br> |
| 291 | },<br> |
| 292 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 293 | "startPosition": "A String", # The starting position for the range.<br> |
| 294 | "endPosition": "A String", # The ending position for the range.<br> |
| 295 | "startOffset": "A String", # The offset from the starting position.<br> |
| 296 | "endOffset": "A String", # The offset from the ending position.<br> |
| 297 | },<br> |
| 298 | },<br> |
| 299 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 300 | "pageIds": [ # Pages that this annotation spans.<br> |
| 301 | "A String",<br> |
| 302 | ],<br> |
| 303 | "layerId": "A String", # The layer this annotation is for.<br> |
| 304 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 305 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 306 | "data": "A String", # User-created data for this annotation.<br> |
| 307 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 308 | "selfLink": "A String", # URL to this resource.<br> |
| 309 | },<br> |
| 310 | ],<br> |
| 311 | "kind": "books#annotations", # Resource type.<br> |
| 312 | "totalItems": 42, # Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated.<br> |
| 313 | }</tt></dd></dl> |
| 314 | |
| 315 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 316 | <br> |
| 317 | Args:<br> |
| 318 | previous_request: The request for the previous page.<br> |
| 319 | previous_response: The response from the request for the previous page.<br> |
| 320 | <br> |
| 321 | Returns:<br> |
| 322 | A request object that you can call 'execute()' on to request the next<br> |
| 323 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 324 | |
| 325 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an existing annotation.<br> |
| 326 | <br> |
| 327 | Args:<br> |
| 328 | body: object, The request body. (required)<br> |
| 329 | The object takes the form of:<br> |
| 330 | <br> |
| 331 | {<br> |
| 332 | "kind": "books#annotation", # Resource type.<br> |
| 333 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 334 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 335 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 336 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 337 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 338 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 339 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 340 | "startPosition": "A String", # The starting position for the range.<br> |
| 341 | "endPosition": "A String", # The ending position for the range.<br> |
| 342 | "startOffset": "A String", # The offset from the starting position.<br> |
| 343 | "endOffset": "A String", # The offset from the ending position.<br> |
| 344 | },<br> |
| 345 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 346 | "startPosition": "A String", # The starting position for the range.<br> |
| 347 | "endPosition": "A String", # The ending position for the range.<br> |
| 348 | "startOffset": "A String", # The offset from the starting position.<br> |
| 349 | "endOffset": "A String", # The offset from the ending position.<br> |
| 350 | },<br> |
| 351 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 352 | "startPosition": "A String", # The starting position for the range.<br> |
| 353 | "endPosition": "A String", # The ending position for the range.<br> |
| 354 | "startOffset": "A String", # The offset from the starting position.<br> |
| 355 | "endOffset": "A String", # The offset from the ending position.<br> |
| 356 | },<br> |
| 357 | },<br> |
| 358 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 359 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 360 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 361 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 362 | "startPosition": "A String", # The starting position for the range.<br> |
| 363 | "endPosition": "A String", # The ending position for the range.<br> |
| 364 | "startOffset": "A String", # The offset from the starting position.<br> |
| 365 | "endOffset": "A String", # The offset from the ending position.<br> |
| 366 | },<br> |
| 367 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 368 | "startPosition": "A String", # The starting position for the range.<br> |
| 369 | "endPosition": "A String", # The ending position for the range.<br> |
| 370 | "startOffset": "A String", # The offset from the starting position.<br> |
| 371 | "endOffset": "A String", # The offset from the ending position.<br> |
| 372 | },<br> |
| 373 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 374 | "startPosition": "A String", # The starting position for the range.<br> |
| 375 | "endPosition": "A String", # The ending position for the range.<br> |
| 376 | "startOffset": "A String", # The offset from the starting position.<br> |
| 377 | "endOffset": "A String", # The offset from the ending position.<br> |
| 378 | },<br> |
| 379 | },<br> |
| 380 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 381 | "pageIds": [ # Pages that this annotation spans.<br> |
| 382 | "A String",<br> |
| 383 | ],<br> |
| 384 | "layerId": "A String", # The layer this annotation is for.<br> |
| 385 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 386 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 387 | "data": "A String", # User-created data for this annotation.<br> |
| 388 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 389 | "selfLink": "A String", # URL to this resource.<br> |
| 390 | }<br> |
| 391 | <br> |
| 392 | source: string, String to identify the originator of this request.<br> |
| 393 | country: string, ISO-3166-1 code to override the IP-based location.<br> |
Joe Gregorio | 6121dd9 | 2012-04-13 07:50:04 -0400 | [diff] [blame] | 394 | annotationId: string, The ID for the annotation to update. (required)<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 395 | <br> |
| 396 | Returns:<br> |
| 397 | An object of the form<br> |
| 398 | <br> |
| 399 | {<br> |
| 400 | "kind": "books#annotation", # Resource type.<br> |
| 401 | "updated": "A String", # Timestamp for the last time this annotation was modified.<br> |
| 402 | "created": "A String", # Timestamp for the created time of this annotation.<br> |
Joe Gregorio | d02bf5e | 2012-03-02 13:21:32 -0800 | [diff] [blame] | 403 | "deleted": True or False, # Indicates that this annotation is deleted.<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 404 | "beforeSelectedText": "A String", # Anchor text before excerpt.<br> |
| 405 | "currentVersionRanges": { # Selection ranges for the most recent content version.<br> |
| 406 | "contentVersion": "A String", # Content version applicable to ranges below.<br> |
| 407 | "gbTextRange": { # Range in GB text format for this annotation for version above.<br> |
| 408 | "startPosition": "A String", # The starting position for the range.<br> |
| 409 | "endPosition": "A String", # The ending position for the range.<br> |
| 410 | "startOffset": "A String", # The offset from the starting position.<br> |
| 411 | "endOffset": "A String", # The offset from the ending position.<br> |
| 412 | },<br> |
| 413 | "cfiRange": { # Range in CFI format for this annotation for version above.<br> |
| 414 | "startPosition": "A String", # The starting position for the range.<br> |
| 415 | "endPosition": "A String", # The ending position for the range.<br> |
| 416 | "startOffset": "A String", # The offset from the starting position.<br> |
| 417 | "endOffset": "A String", # The offset from the ending position.<br> |
| 418 | },<br> |
| 419 | "gbImageRange": { # Range in GB image format for this annotation for version above.<br> |
| 420 | "startPosition": "A String", # The starting position for the range.<br> |
| 421 | "endPosition": "A String", # The ending position for the range.<br> |
| 422 | "startOffset": "A String", # The offset from the starting position.<br> |
| 423 | "endOffset": "A String", # The offset from the ending position.<br> |
| 424 | },<br> |
| 425 | },<br> |
| 426 | "afterSelectedText": "A String", # Anchor text after excerpt.<br> |
| 427 | "clientVersionRanges": { # Selection ranges sent from the client.<br> |
| 428 | "contentVersion": "A String", # Content version the client sent in.<br> |
| 429 | "gbTextRange": { # Range in GB text format for this annotation sent by client.<br> |
| 430 | "startPosition": "A String", # The starting position for the range.<br> |
| 431 | "endPosition": "A String", # The ending position for the range.<br> |
| 432 | "startOffset": "A String", # The offset from the starting position.<br> |
| 433 | "endOffset": "A String", # The offset from the ending position.<br> |
| 434 | },<br> |
| 435 | "cfiRange": { # Range in CFI format for this annotation sent by client.<br> |
| 436 | "startPosition": "A String", # The starting position for the range.<br> |
| 437 | "endPosition": "A String", # The ending position for the range.<br> |
| 438 | "startOffset": "A String", # The offset from the starting position.<br> |
| 439 | "endOffset": "A String", # The offset from the ending position.<br> |
| 440 | },<br> |
| 441 | "gbImageRange": { # Range in GB image format for this annotation sent by client.<br> |
| 442 | "startPosition": "A String", # The starting position for the range.<br> |
| 443 | "endPosition": "A String", # The ending position for the range.<br> |
| 444 | "startOffset": "A String", # The offset from the starting position.<br> |
| 445 | "endOffset": "A String", # The offset from the ending position.<br> |
| 446 | },<br> |
| 447 | },<br> |
| 448 | "volumeId": "A String", # The volume that this annotation belongs to.<br> |
| 449 | "pageIds": [ # Pages that this annotation spans.<br> |
| 450 | "A String",<br> |
| 451 | ],<br> |
| 452 | "layerId": "A String", # The layer this annotation is for.<br> |
| 453 | "selectedText": "A String", # Excerpt from the volume.<br> |
| 454 | "highlightStyle": "A String", # The highlight style for this annotation.<br> |
| 455 | "data": "A String", # User-created data for this annotation.<br> |
| 456 | "id": "A String", # Id of this annotation, in the form of a GUID.<br> |
| 457 | "selfLink": "A String", # URL to this resource.<br> |
| 458 | }</tt></dd></dl> |
| 459 | |
| 460 | <hr> |
| 461 | Data descriptors defined here:<br> |
| 462 | <dl><dt><strong>__dict__</strong></dt> |
| 463 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 464 | </dl> |
| 465 | <dl><dt><strong>__weakref__</strong></dt> |
| 466 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 467 | </dl> |
| 468 | </td></tr></table> |
| 469 | </body></html> |