regula.documentreader.webclient 9.1.3.dev0__py3-none-any.whl → 9.1.623.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. regula/documentreader/webclient/gen/__init__.py +0 -45
  2. regula/documentreader/webclient/gen/models/__init__.py +0 -30
  3. regula/documentreader/webclient/gen/models/container_list_list_inner.py +8 -36
  4. regula/documentreader/webclient/gen/models/result.py +0 -6
  5. regula/documentreader/webclient/gen/models/result_item.py +3 -9
  6. regula/documentreader/webclient/gen/models/status.py +2 -12
  7. regula/documentreader/webclient/gen/models/text_field_type.py +0 -3
  8. regula/documentreader/webclient/gen/models/trf_ft_string.py +1 -1
  9. {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/METADATA +1 -1
  10. {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/RECORD +12 -27
  11. regula/documentreader/webclient/gen/models/details_age.py +0 -93
  12. regula/documentreader/webclient/gen/models/doc_feature.py +0 -88
  13. regula/documentreader/webclient/gen/models/mdl_device_engagement.py +0 -29
  14. regula/documentreader/webclient/gen/models/mdl_device_retrieval.py +0 -30
  15. regula/documentreader/webclient/gen/models/mdl_server_retrieval.py +0 -29
  16. regula/documentreader/webclient/gen/models/message.py +0 -98
  17. regula/documentreader/webclient/gen/models/pid.py +0 -88
  18. regula/documentreader/webclient/gen/models/vd_item.py +0 -90
  19. regula/documentreader/webclient/gen/models/vds_data.py +0 -126
  20. regula/documentreader/webclient/gen/models/vds_data_item.py +0 -86
  21. regula/documentreader/webclient/gen/models/vds_data_result.py +0 -93
  22. regula/documentreader/webclient/gen/models/vdsnc_data.py +0 -117
  23. regula/documentreader/webclient/gen/models/vdsnc_data_item.py +0 -86
  24. regula/documentreader/webclient/gen/models/vdsnc_data_result.py +0 -93
  25. regula/documentreader/webclient/gen/models/ve_item.py +0 -96
  26. {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/WHEEL +0 -0
  27. {regula_documentreader_webclient-9.1.3.dev0.dist-info → regula_documentreader_webclient-9.1.623.dev0.dist-info}/top_level.txt +0 -0
@@ -1,96 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Generated by: https://openapi-generator.tech
5
- """
6
-
7
- from __future__ import annotations
8
- import pprint
9
- import re # noqa: F401
10
- import json
11
-
12
- from pydantic import BaseModel, ConfigDict, StrictStr
13
- from typing import Any, ClassVar, Dict, List, Optional
14
- from regula.documentreader.webclient.gen.models.vd_item import VDItem
15
- from typing import Optional, Set
16
- from typing_extensions import Self
17
- from pydantic import SkipValidation, Field
18
-
19
- class VEItem(BaseModel):
20
- """
21
- VEItem
22
- """ # noqa: E501
23
- des: SkipValidation[Optional[str]] = Field(alias="des", default=None)
24
- dis: SkipValidation[Optional[str]] = Field(alias="dis", default=None)
25
- nam: SkipValidation[Optional[str]] = Field(alias="nam", default=None)
26
- vd: SkipValidation[Optional[List[VDItem]]] = Field(alias="vd", default=None)
27
- __properties: ClassVar[List[str]] = ["des", "dis", "nam", "vd"]
28
-
29
- model_config = ConfigDict(
30
- populate_by_name=True,
31
- validate_assignment=True,
32
- protected_namespaces=(),
33
- arbitrary_types_allowed=True,
34
- use_enum_values=True
35
- )
36
-
37
-
38
- def to_str(self) -> str:
39
- """Returns the string representation of the model using alias"""
40
- return pprint.pformat(self.model_dump(by_alias=True))
41
-
42
- def to_json(self) -> str:
43
- """Returns the JSON representation of the model using alias"""
44
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
45
- return json.dumps(self.to_dict())
46
-
47
- @classmethod
48
- def from_json(cls, json_str: str) -> Optional[Self]:
49
- """Create an instance of VEItem from a JSON string"""
50
- return cls.from_dict(json.loads(json_str))
51
-
52
- def to_dict(self) -> Dict[str, Any]:
53
- """Return the dictionary representation of the model using alias.
54
-
55
- This has the following differences from calling pydantic's
56
- `self.model_dump(by_alias=True)`:
57
-
58
- * `None` is only added to the output dict for nullable fields that
59
- were set at model initialization. Other fields with value `None`
60
- are ignored.
61
- """
62
- excluded_fields: Set[str] = set([
63
- ])
64
-
65
- _dict = self.model_dump(
66
- by_alias=True,
67
- exclude=excluded_fields,
68
- exclude_none=True,
69
- )
70
- # override the default output from pydantic by calling `to_dict()` of each item in vd (list)
71
- _items = []
72
- if self.vd:
73
- for _item_vd in self.vd:
74
- if _item_vd:
75
- _items.append(_item_vd.to_dict())
76
- _dict['vd'] = _items
77
- return _dict
78
-
79
- @classmethod
80
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
- """Create an instance of VEItem from a dict"""
82
- if obj is None:
83
- return None
84
-
85
- if not isinstance(obj, dict):
86
- return cls.model_validate(obj)
87
-
88
- _obj = cls.model_validate({
89
- "des": obj.get("des"),
90
- "dis": obj.get("dis"),
91
- "nam": obj.get("nam"),
92
- "vd": [VDItem.from_dict(_item) for _item in obj.get("vd", []) if VDItem.from_dict(_item) is not None]
93
- })
94
- return _obj
95
-
96
-