File: //usr/local/CyberCP/lib/python3.10/site-packages/googleapiclient/__pycache__/model.cpython-310.pyc
o
�h7 � @ s d Z ddlmZ dZddlZddlZddlZddlZddlZddl m
Z ddlm
Z
z
ddlmZ dZW n ey? d ZY nw ejZe�� Ze�e�Zd Zd
d� ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!dd� Z"dS )z�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.
� )�absolute_importz$jcgregorio@google.com (Joe Gregorio)N)�version)� HttpError)�API_VERSION_METADATA_KEYTFc C s t d��)Nz"You need to override this function)�NotImplementedError� r r �H/usr/local/CyberCP/lib/python3.10/site-packages/googleapiclient/model.py� _abstract2 � r c @ s e Zd ZdZdd� Zdd� ZdS )�Modelz�Model base class.
All Model classes should implement this interface.
The Model serializes and de-serializes between a wire
format such as JSON and a Python object representation.
c C �
t � dS )a� Updates outgoing requests with a serialized body.
Args:
headers: dict, request headers
path_params: dict, parameters that appear in the request path
query_params: dict, parameters that appear in the query
body_value: object, the request body as a Python object, which must be
serializable.
Returns:
A tuple of (headers, path_params, query, body)
headers: dict, request headers
path_params: dict, parameters that appear in the request path
query: string, query part of the request URI
body: string, the body serialized in the desired wire format.
N�r )�self�headers�path_params�query_params�
body_valuer r r �request>