pyoaev.mixins ============= .. py:module:: pyoaev.mixins Module Contents --------------- .. py:class:: GetMixin(openaev: pyoaev.client.OpenAEV, parent: Optional[RESTObject] = None) Bases: :py:obj:`HeadMixin`, :py:obj:`_RestManagerBase` 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:: _computed_path :type: Optional[str] .. py:attribute:: _from_parent_attrs :type: Dict[str, Any] .. py:attribute:: _obj_cls :type: Optional[Type[pyoaev.base.RESTObject]] .. py:attribute:: _optional_get_attrs :type: Tuple[str, Ellipsis] :value: () .. py:attribute:: _parent :type: Optional[pyoaev.base.RESTObject] .. py:attribute:: _parent_attrs :type: Dict[str, Any] .. py:attribute:: _path :type: Optional[str] .. py:attribute:: openaev :type: pyoaev.OpenAEV .. py:method:: get(id: Union[str, int], **kwargs: Any) -> pyoaev.base.RESTObject .. py:class:: GetWithoutIdMixin(openaev: pyoaev.client.OpenAEV, parent: Optional[RESTObject] = None) Bases: :py:obj:`HeadMixin`, :py:obj:`_RestManagerBase` 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:: _computed_path :type: Optional[str] .. py:attribute:: _from_parent_attrs :type: Dict[str, Any] .. py:attribute:: _obj_cls :type: Optional[Type[pyoaev.base.RESTObject]] .. py:attribute:: _optional_get_attrs :type: Tuple[str, Ellipsis] :value: () .. py:attribute:: _parent :type: Optional[pyoaev.base.RESTObject] .. py:attribute:: _parent_attrs :type: Dict[str, Any] .. py:attribute:: _path :type: Optional[str] .. py:attribute:: openaev :type: pyoaev.OpenAEV .. py:method:: get(**kwargs: Any) -> pyoaev.base.RESTObject