module documentation

Model objects for requests and responses.

Each API may support one or more serializations, such as JSON, Atom, etc. The model classes are responsible for converting between the wire format and the Python object representation.

Class BaseModel Base model class.
Class JsonModel Model class for JSON.
Class MediaModel Model class for requests that return Media.
Class Model Model base class.
Class ProtocolBufferModel Model class for protocol buffers.
Class RawModel Model class for requests that don't return JSON.
Function makepatch Create a patch object.
Constant LOGGER Undocumented
Variable __author__ Undocumented
Variable dump_request_response Undocumented
Function _abstract Undocumented
Constant _PY_VERSION Undocumented
def makepatch(original, modified):

Create a patch object.

Some methods support PATCH, an efficient way to send updates to a resource. This method allows the easy construction of patch bodies by looking at the differences between a resource before and after it was modified.

Example usage:

item = service.activities().get(postid=postid, userid=userid).execute() original = copy.deepcopy(item) item['object']['content'] = 'This is updated.' service.activities.patch(postid=postid, userid=userid,

body=makepatch(original, item)).execute()
Parameters
originalobject, the original deserialized resource
modifiedobject, the modified deserialized resource
Returns
An object that contains only the changes from original to modified, in a form suitable to pass to a PATCH method.
LOGGER =

Undocumented

Value
logging.getLogger(__name__)
__author__: str =

Undocumented

dump_request_response: bool =

Undocumented

def _abstract():

Undocumented

_PY_VERSION =

Undocumented

Value
platform.python_version()