class documentation
class JsonModel(BaseModel):
Known subclasses: googleapiclient.model.MediaModel, googleapiclient.model.RawModel
Constructor: JsonModel(data_wrapper)
Model class for JSON.
Serializes and de-serializes between JSON and the Python object representation of HTTP request and response bodies.
| Method | __init__ |
Construct a JsonModel. |
| Method | deserialize |
Perform the actual deserialization from response string to Python object. |
| Method | serialize |
Perform the actual Python object serialization. |
| Instance Variable | accept |
Undocumented |
| Instance Variable | alt |
Undocumented |
| Instance Variable | content |
Undocumented |
| Property | no |
Undocumented |
| Instance Variable | _data |
Undocumented |
Inherited from BaseModel:
| Method | request |
Updates outgoing requests with a serialized body. |
| Method | response |
Convert the response wire format into a Python object. |
| Method | _build |
Builds a query string. |
| Method | _log |
Logs debugging information about the request if requested. |
| Method | _log |
Logs debugging information about the response if requested. |
overridden in
googleapiclient.model.MediaModel, googleapiclient.model.RawModelPerform the actual deserialization from response string to Python object.
| Parameters | |
| content | string, the body of the HTTP response |
| Returns | |
| The body de-serialized as a Python object. | |
Perform the actual Python object serialization.
| Parameters | |
| body | object, the request body as a Python object. |
| Returns | |
| string, the body in serialized form. | |
overrides
googleapiclient.model.BaseModel.acceptoverridden in
googleapiclient.model.MediaModel, googleapiclient.model.RawModelUndocumented