pyoaev.apis.document ==================== .. py:module:: pyoaev.apis.document Module Contents --------------- .. py:class:: Document(manager: RESTManager, attrs: Dict[str, Any], *, created_from_list: bool = False) Bases: :py:obj:`pyoaev.base.RESTObject` .. py:attribute:: _id_attr :value: 'document_id' .. py:class:: DocumentManager(openaev: pyoaev.client.OpenAEV, parent: Optional[RESTObject] = None) Bases: :py:obj:`pyoaev.base.RESTManager` Base class for CRUD operations on objects. Derived class must define ``_path`` and ``_obj_cls``. ``_path``: Base URL path on which requests will be sent (e.g. '/projects') ``_obj_cls``: The class of objects that will be created .. py:attribute:: _path :value: '/documents' .. py:attribute:: _obj_cls .. py:method:: download(document_id: str, **kwargs: Any) -> Dict[str, Any] .. py:method:: upsert(document: Dict[str, Any], file: tuple, **kwargs: Any) -> Dict[str, Any]