| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Model --+
|
BaseModel --+
|
ProtocolBufferModel
Model class for protocol buffers.
Serializes and de-serializes the binary protocol buffer sent in the HTTP request and response bodies.
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
accept =
|
|||
content_type =
|
|||
alt_param =
|
|||
|
|||
| no_content_response | |||
|
Inherited from |
|||
|
|||
Constructs a ProtocolBufferModel. The serialized protocol buffer returned in an HTTP response will be de-serialized using the given protocol buffer class. Args: protocol_buffer: The protocol buffer class used to de-serialize a response from the API.
|
Perform the actual Python object serialization. Args: body_value: object, the request body as a Python object. Returns: string, the body in serialized form.
|
Perform the actual deserialization from response string to Python object. Args: content: string, the body of the HTTP response Returns: The body de-serialized as a Python object.
|
|
|||
no_content_response
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Oct 2 20:46:22 2020 | http://epydoc.sourceforge.net |