Model class for requests that return Media. Serializes and de-serializes between JSON and the Python object representation of HTTP request, and returns the raw bytes of the response body.
| 332 | |
| 333 | |
| 334 | class MediaModel(JsonModel): |
| 335 | """Model class for requests that return Media. |
| 336 | |
| 337 | Serializes and de-serializes between JSON and the Python |
| 338 | object representation of HTTP request, and returns the raw bytes |
| 339 | of the response body. |
| 340 | """ |
| 341 | |
| 342 | accept = "*/*" |
| 343 | content_type = "application/json" |
| 344 | alt_param = "media" |
| 345 | |
| 346 | def deserialize(self, content): |
| 347 | return content |
| 348 | |
| 349 | @property |
| 350 | def no_content_response(self): |
| 351 | return "" |
| 352 | |
| 353 | |
| 354 | class ProtocolBufferModel(BaseModel): |
no outgoing calls
no test coverage detected
searching dependent graphs…