Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module apiclient.model</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 | <tr bgcolor="#7799ee"> |
| 8 | <td valign=bottom> <br> |
| 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="apiclient.html"><font color="#ffffff">apiclient</font></a>.model</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/google-api-python-client/apiclient/model.py">/home/jcgregorio/projects/google-api-python-client/apiclient/model.py</a></font></td></tr></table> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 12 | <p><tt><a href="#Model">Model</a> objects for requests and responses.<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 13 | <br> |
| 14 | Each API may support one or more serializations, such<br> |
| 15 | as JSON, Atom, etc. The model classes are responsible<br> |
| 16 | for converting between the wire format and the Python<br> |
| 17 | <a href="__builtin__.html#object">object</a> representation.</tt></p> |
| 18 | <p> |
| 19 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 20 | <tr bgcolor="#aa55cc"> |
| 21 | <td colspan=3 valign=bottom> <br> |
| 22 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 23 | |
| 24 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
Joe Gregorio | 4939655 | 2011-03-08 10:39:00 -0500 | [diff] [blame] | 25 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="gflags.html">gflags</a><br> |
| 26 | </td><td width="25%" valign=top><a href="logging.html">logging</a><br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 27 | </td><td width="25%" valign=top><a href="simplejson.html">simplejson</a><br> |
| 28 | </td><td width="25%" valign=top><a href="urllib.html">urllib</a><br> |
Joe Gregorio | 4939655 | 2011-03-08 10:39:00 -0500 | [diff] [blame] | 29 | </td></tr></table></td></tr></table><p> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 30 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 31 | <tr bgcolor="#ee77aa"> |
| 32 | <td colspan=3 valign=bottom> <br> |
| 33 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 34 | |
| 35 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 36 | <td width="100%"><dl> |
| 37 | <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> |
| 38 | </font></dt><dd> |
| 39 | <dl> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 40 | <dt><font face="helvetica, arial"><a href="apiclient.model.html#Model">Model</a> |
| 41 | </font></dt><dd> |
| 42 | <dl> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 43 | <dt><font face="helvetica, arial"><a href="apiclient.model.html#BaseModel">BaseModel</a> |
Joe Gregorio | 4939655 | 2011-03-08 10:39:00 -0500 | [diff] [blame] | 44 | </font></dt><dd> |
| 45 | <dl> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 46 | <dt><font face="helvetica, arial"><a href="apiclient.model.html#JsonModel">JsonModel</a> |
| 47 | </font></dt><dt><font face="helvetica, arial"><a href="apiclient.model.html#ProtocolBufferModel">ProtocolBufferModel</a> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 48 | </font></dt></dl> |
| 49 | </dd> |
| 50 | </dl> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 51 | </dd> |
| 52 | </dl> |
Joe Gregorio | 4939655 | 2011-03-08 10:39:00 -0500 | [diff] [blame] | 53 | </dd> |
| 54 | </dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 55 | <p> |
| 56 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 57 | <tr bgcolor="#ffc8d8"> |
| 58 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 59 | <font color="#000000" face="helvetica, arial"><a name="BaseModel">class <strong>BaseModel</strong></a>(<a href="apiclient.model.html#Model">Model</a>)</font></td></tr> |
| 60 | |
| 61 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 62 | <td colspan=2><tt>Base model class.<br> |
| 63 | <br> |
| 64 | Subclasses should provide implementations for the "serialize" and<br> |
| 65 | "deserialize" methods, as well as values for the following class attributes.<br> |
| 66 | <br> |
| 67 | Attributes:<br> |
| 68 | accept: The value to use for the HTTP Accept header.<br> |
| 69 | content_type: The value to use for the HTTP Content-type header.<br> |
| 70 | no_content_response: The value to return when deserializing a 204 "No<br> |
| 71 | Content" response.<br> |
| 72 | alt_param: The value to supply as the "alt" query parameter for requests.<br> </tt></td></tr> |
| 73 | <tr><td> </td> |
| 74 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 75 | <dd><a href="apiclient.model.html#BaseModel">BaseModel</a></dd> |
| 76 | <dd><a href="apiclient.model.html#Model">Model</a></dd> |
| 77 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 78 | </dl> |
| 79 | <hr> |
| 80 | Methods defined here:<br> |
| 81 | <dl><dt><a name="BaseModel-deserialize"><strong>deserialize</strong></a>(self, content)</dt><dd><tt>Perform the actual deserialization from response string to Python <a href="__builtin__.html#object">object</a>.<br> |
| 82 | <br> |
| 83 | Args:<br> |
| 84 | content: string, the body of the HTTP response<br> |
| 85 | <br> |
| 86 | Returns:<br> |
| 87 | The body de-serialized as a Python <a href="__builtin__.html#object">object</a>.</tt></dd></dl> |
| 88 | |
| 89 | <dl><dt><a name="BaseModel-request"><strong>request</strong></a>(self, headers, path_params, query_params, body_value)</dt><dd><tt>Updates outgoing requests with a serialized body.<br> |
| 90 | <br> |
| 91 | Args:<br> |
| 92 | headers: dict, request headers<br> |
| 93 | path_params: dict, parameters that appear in the request path<br> |
| 94 | query_params: dict, parameters that appear in the query<br> |
| 95 | body_value: <a href="__builtin__.html#object">object</a>, the request body as a Python <a href="__builtin__.html#object">object</a>, which must be<br> |
| 96 | serializable by simplejson.<br> |
| 97 | Returns:<br> |
| 98 | A tuple of (headers, path_params, query, body)<br> |
| 99 | <br> |
| 100 | headers: dict, request headers<br> |
| 101 | path_params: dict, parameters that appear in the request path<br> |
| 102 | query: string, query part of the request URI<br> |
| 103 | body: string, the body serialized as JSON</tt></dd></dl> |
| 104 | |
| 105 | <dl><dt><a name="BaseModel-response"><strong>response</strong></a>(self, resp, content)</dt><dd><tt>Convert the response wire format into a Python <a href="__builtin__.html#object">object</a>.<br> |
| 106 | <br> |
| 107 | Args:<br> |
| 108 | resp: httplib2.Response, the HTTP response headers and status<br> |
| 109 | content: string, the body of the HTTP response<br> |
| 110 | <br> |
| 111 | Returns:<br> |
| 112 | The body de-serialized as a Python <a href="__builtin__.html#object">object</a>.<br> |
| 113 | <br> |
| 114 | Raises:<br> |
| 115 | apiclient.errors.HttpError if a non 2xx response is received.</tt></dd></dl> |
| 116 | |
| 117 | <dl><dt><a name="BaseModel-serialize"><strong>serialize</strong></a>(self, body_value)</dt><dd><tt>Perform the actual Python <a href="__builtin__.html#object">object</a> serialization.<br> |
| 118 | <br> |
| 119 | Args:<br> |
| 120 | body_value: <a href="__builtin__.html#object">object</a>, the request body as a Python <a href="__builtin__.html#object">object</a>.<br> |
| 121 | <br> |
| 122 | Returns:<br> |
| 123 | string, the body in serialized form.</tt></dd></dl> |
| 124 | |
| 125 | <hr> |
| 126 | Data and other attributes defined here:<br> |
| 127 | <dl><dt><strong>accept</strong> = None</dl> |
| 128 | |
| 129 | <dl><dt><strong>alt_param</strong> = None</dl> |
| 130 | |
| 131 | <dl><dt><strong>content_type</strong> = None</dl> |
| 132 | |
| 133 | <dl><dt><strong>no_content_response</strong> = None</dl> |
| 134 | |
| 135 | <hr> |
| 136 | Data descriptors inherited from <a href="apiclient.model.html#Model">Model</a>:<br> |
| 137 | <dl><dt><strong>__dict__</strong></dt> |
| 138 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 139 | </dl> |
| 140 | <dl><dt><strong>__weakref__</strong></dt> |
| 141 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 142 | </dl> |
| 143 | </td></tr></table> <p> |
| 144 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 145 | <tr bgcolor="#ffc8d8"> |
| 146 | <td colspan=3 valign=bottom> <br> |
| 147 | <font color="#000000" face="helvetica, arial"><a name="JsonModel">class <strong>JsonModel</strong></a>(<a href="apiclient.model.html#BaseModel">BaseModel</a>)</font></td></tr> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 148 | |
| 149 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 150 | <td colspan=2><tt><a href="#Model">Model</a> class for JSON.<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 151 | <br> |
| 152 | Serializes and de-serializes between JSON and the Python<br> |
| 153 | <a href="__builtin__.html#object">object</a> representation of HTTP request and response bodies.<br> </tt></td></tr> |
| 154 | <tr><td> </td> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 155 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 156 | <dd><a href="apiclient.model.html#JsonModel">JsonModel</a></dd> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 157 | <dd><a href="apiclient.model.html#BaseModel">BaseModel</a></dd> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 158 | <dd><a href="apiclient.model.html#Model">Model</a></dd> |
| 159 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 160 | </dl> |
| 161 | <hr> |
| 162 | Methods defined here:<br> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 163 | <dl><dt><a name="JsonModel-__init__"><strong>__init__</strong></a>(self, data_wrapper<font color="#909090">=False</font>)</dt><dd><tt>Construct a <a href="#JsonModel">JsonModel</a>.<br> |
Joe Gregorio | ad258e2 | 2011-02-22 22:53:30 -0500 | [diff] [blame] | 164 | <br> |
| 165 | Args:<br> |
| 166 | data_wrapper: boolean, wrap requests and responses in a data wrapper</tt></dd></dl> |
| 167 | |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 168 | <dl><dt><a name="JsonModel-deserialize"><strong>deserialize</strong></a>(self, content)</dt></dl> |
| 169 | |
| 170 | <dl><dt><a name="JsonModel-serialize"><strong>serialize</strong></a>(self, body_value)</dt></dl> |
| 171 | |
| 172 | <hr> |
| 173 | Data descriptors defined here:<br> |
| 174 | <dl><dt><strong>no_content_response</strong></dt> |
| 175 | </dl> |
| 176 | <hr> |
| 177 | Data and other attributes defined here:<br> |
| 178 | <dl><dt><strong>accept</strong> = 'application/json'</dl> |
| 179 | |
| 180 | <dl><dt><strong>alt_param</strong> = 'json'</dl> |
| 181 | |
| 182 | <dl><dt><strong>content_type</strong> = 'application/json'</dl> |
| 183 | |
| 184 | <hr> |
| 185 | Methods inherited from <a href="apiclient.model.html#BaseModel">BaseModel</a>:<br> |
| 186 | <dl><dt><a name="JsonModel-request"><strong>request</strong></a>(self, headers, path_params, query_params, body_value)</dt><dd><tt>Updates outgoing requests with a serialized body.<br> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 187 | <br> |
| 188 | Args:<br> |
| 189 | headers: dict, request headers<br> |
| 190 | path_params: dict, parameters that appear in the request path<br> |
| 191 | query_params: dict, parameters that appear in the query<br> |
| 192 | body_value: <a href="__builtin__.html#object">object</a>, the request body as a Python <a href="__builtin__.html#object">object</a>, which must be<br> |
| 193 | serializable by simplejson.<br> |
| 194 | Returns:<br> |
| 195 | A tuple of (headers, path_params, query, body)<br> |
| 196 | <br> |
| 197 | headers: dict, request headers<br> |
| 198 | path_params: dict, parameters that appear in the request path<br> |
| 199 | query: string, query part of the request URI<br> |
| 200 | body: string, the body serialized as JSON</tt></dd></dl> |
| 201 | |
| 202 | <dl><dt><a name="JsonModel-response"><strong>response</strong></a>(self, resp, content)</dt><dd><tt>Convert the response wire format into a Python <a href="__builtin__.html#object">object</a>.<br> |
| 203 | <br> |
| 204 | Args:<br> |
| 205 | resp: httplib2.Response, the HTTP response headers and status<br> |
| 206 | content: string, the body of the HTTP response<br> |
| 207 | <br> |
| 208 | Returns:<br> |
| 209 | The body de-serialized as a Python <a href="__builtin__.html#object">object</a>.<br> |
| 210 | <br> |
| 211 | Raises:<br> |
| 212 | apiclient.errors.HttpError if a non 2xx response is received.</tt></dd></dl> |
| 213 | |
| 214 | <hr> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 215 | Data descriptors inherited from <a href="apiclient.model.html#Model">Model</a>:<br> |
| 216 | <dl><dt><strong>__dict__</strong></dt> |
| 217 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 218 | </dl> |
| 219 | <dl><dt><strong>__weakref__</strong></dt> |
| 220 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 221 | </dl> |
| 222 | </td></tr></table> <p> |
| 223 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 224 | <tr bgcolor="#ffc8d8"> |
| 225 | <td colspan=3 valign=bottom> <br> |
| 226 | <font color="#000000" face="helvetica, arial"><a name="Model">class <strong>Model</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 227 | |
| 228 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 229 | <td colspan=2><tt><a href="#Model">Model</a> base class.<br> |
| 230 | <br> |
| 231 | All <a href="#Model">Model</a> classes should implement this interface.<br> |
| 232 | The <a href="#Model">Model</a> serializes and de-serializes between a wire<br> |
| 233 | format such as JSON and a Python <a href="__builtin__.html#object">object</a> representation.<br> </tt></td></tr> |
| 234 | <tr><td> </td> |
| 235 | <td width="100%">Methods defined here:<br> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 236 | <dl><dt><a name="Model-request"><strong>request</strong></a>(self, headers, path_params, query_params, body_value)</dt><dd><tt>Updates outgoing requests with a serialized body.<br> |
Joe Gregorio | abda96f | 2011-02-11 20:19:33 -0500 | [diff] [blame] | 237 | <br> |
| 238 | Args:<br> |
| 239 | headers: dict, request headers<br> |
| 240 | path_params: dict, parameters that appear in the request path<br> |
| 241 | query_params: dict, parameters that appear in the query<br> |
| 242 | body_value: <a href="__builtin__.html#object">object</a>, the request body as a Python <a href="__builtin__.html#object">object</a>, which must be<br> |
| 243 | serializable.<br> |
| 244 | Returns:<br> |
| 245 | A tuple of (headers, path_params, query, body)<br> |
| 246 | <br> |
| 247 | headers: dict, request headers<br> |
| 248 | path_params: dict, parameters that appear in the request path<br> |
| 249 | query: string, query part of the request URI<br> |
| 250 | body: string, the body serialized in the desired wire format.</tt></dd></dl> |
| 251 | |
| 252 | <dl><dt><a name="Model-response"><strong>response</strong></a>(self, resp, content)</dt><dd><tt>Convert the response wire format into a Python <a href="__builtin__.html#object">object</a>.<br> |
| 253 | <br> |
| 254 | Args:<br> |
| 255 | resp: httplib2.Response, the HTTP response headers and status<br> |
| 256 | content: string, the body of the HTTP response<br> |
| 257 | <br> |
| 258 | Returns:<br> |
| 259 | The body de-serialized as a Python <a href="__builtin__.html#object">object</a>.<br> |
| 260 | <br> |
| 261 | Raises:<br> |
| 262 | apiclient.errors.HttpError if a non 2xx response is received.</tt></dd></dl> |
| 263 | |
| 264 | <hr> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 265 | Data descriptors defined here:<br> |
| 266 | <dl><dt><strong>__dict__</strong></dt> |
| 267 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 268 | </dl> |
| 269 | <dl><dt><strong>__weakref__</strong></dt> |
| 270 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 271 | </dl> |
Joe Gregorio | 351b149 | 2011-05-08 23:32:46 -0700 | [diff] [blame^] | 272 | </td></tr></table> <p> |
| 273 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 274 | <tr bgcolor="#ffc8d8"> |
| 275 | <td colspan=3 valign=bottom> <br> |
| 276 | <font color="#000000" face="helvetica, arial"><a name="ProtocolBufferModel">class <strong>ProtocolBufferModel</strong></a>(<a href="apiclient.model.html#BaseModel">BaseModel</a>)</font></td></tr> |
| 277 | |
| 278 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 279 | <td colspan=2><tt><a href="#Model">Model</a> class for protocol buffers.<br> |
| 280 | <br> |
| 281 | Serializes and de-serializes the binary protocol buffer sent in the HTTP<br> |
| 282 | request and response bodies.<br> </tt></td></tr> |
| 283 | <tr><td> </td> |
| 284 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 285 | <dd><a href="apiclient.model.html#ProtocolBufferModel">ProtocolBufferModel</a></dd> |
| 286 | <dd><a href="apiclient.model.html#BaseModel">BaseModel</a></dd> |
| 287 | <dd><a href="apiclient.model.html#Model">Model</a></dd> |
| 288 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 289 | </dl> |
| 290 | <hr> |
| 291 | Methods defined here:<br> |
| 292 | <dl><dt><a name="ProtocolBufferModel-__init__"><strong>__init__</strong></a>(self, protocol_buffer)</dt><dd><tt>Constructs a <a href="#ProtocolBufferModel">ProtocolBufferModel</a>.<br> |
| 293 | <br> |
| 294 | The serialzed protocol buffer returned in an HTTP response will be<br> |
| 295 | de-serialized using the given protocol buffer class.<br> |
| 296 | <br> |
| 297 | Args:<br> |
| 298 | protocol_buffer: The protocol buffer class used to de-serialize a response<br> |
| 299 | from the API.</tt></dd></dl> |
| 300 | |
| 301 | <dl><dt><a name="ProtocolBufferModel-deserialize"><strong>deserialize</strong></a>(self, content)</dt></dl> |
| 302 | |
| 303 | <dl><dt><a name="ProtocolBufferModel-serialize"><strong>serialize</strong></a>(self, body_value)</dt></dl> |
| 304 | |
| 305 | <hr> |
| 306 | Data descriptors defined here:<br> |
| 307 | <dl><dt><strong>no_content_response</strong></dt> |
| 308 | </dl> |
| 309 | <hr> |
| 310 | Data and other attributes defined here:<br> |
| 311 | <dl><dt><strong>accept</strong> = 'application/x-protobuf'</dl> |
| 312 | |
| 313 | <dl><dt><strong>alt_param</strong> = 'proto'</dl> |
| 314 | |
| 315 | <dl><dt><strong>content_type</strong> = 'application/x-protobuf'</dl> |
| 316 | |
| 317 | <hr> |
| 318 | Methods inherited from <a href="apiclient.model.html#BaseModel">BaseModel</a>:<br> |
| 319 | <dl><dt><a name="ProtocolBufferModel-request"><strong>request</strong></a>(self, headers, path_params, query_params, body_value)</dt><dd><tt>Updates outgoing requests with a serialized body.<br> |
| 320 | <br> |
| 321 | Args:<br> |
| 322 | headers: dict, request headers<br> |
| 323 | path_params: dict, parameters that appear in the request path<br> |
| 324 | query_params: dict, parameters that appear in the query<br> |
| 325 | body_value: <a href="__builtin__.html#object">object</a>, the request body as a Python <a href="__builtin__.html#object">object</a>, which must be<br> |
| 326 | serializable by simplejson.<br> |
| 327 | Returns:<br> |
| 328 | A tuple of (headers, path_params, query, body)<br> |
| 329 | <br> |
| 330 | headers: dict, request headers<br> |
| 331 | path_params: dict, parameters that appear in the request path<br> |
| 332 | query: string, query part of the request URI<br> |
| 333 | body: string, the body serialized as JSON</tt></dd></dl> |
| 334 | |
| 335 | <dl><dt><a name="ProtocolBufferModel-response"><strong>response</strong></a>(self, resp, content)</dt><dd><tt>Convert the response wire format into a Python <a href="__builtin__.html#object">object</a>.<br> |
| 336 | <br> |
| 337 | Args:<br> |
| 338 | resp: httplib2.Response, the HTTP response headers and status<br> |
| 339 | content: string, the body of the HTTP response<br> |
| 340 | <br> |
| 341 | Returns:<br> |
| 342 | The body de-serialized as a Python <a href="__builtin__.html#object">object</a>.<br> |
| 343 | <br> |
| 344 | Raises:<br> |
| 345 | apiclient.errors.HttpError if a non 2xx response is received.</tt></dd></dl> |
| 346 | |
| 347 | <hr> |
| 348 | Data descriptors inherited from <a href="apiclient.model.html#Model">Model</a>:<br> |
| 349 | <dl><dt><strong>__dict__</strong></dt> |
| 350 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 351 | </dl> |
| 352 | <dl><dt><strong>__weakref__</strong></dt> |
| 353 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 354 | </dl> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 355 | </td></tr></table></td></tr></table><p> |
| 356 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 357 | <tr bgcolor="#55aa55"> |
| 358 | <td colspan=3 valign=bottom> <br> |
| 359 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 360 | |
| 361 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
Joe Gregorio | 4939655 | 2011-03-08 10:39:00 -0500 | [diff] [blame] | 362 | <td width="100%"><strong>FLAGS</strong> = <gflags.FlagValues instance><br> |
| 363 | <strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> |
Joe Gregorio | 30dfdc3 | 2010-12-09 16:34:22 -0500 | [diff] [blame] | 364 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 365 | <tr bgcolor="#7799ee"> |
| 366 | <td colspan=3 valign=bottom> <br> |
| 367 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 368 | |
| 369 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 370 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
| 371 | </body></html> |