edms-client-api 1.0.1__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.

Potentially problematic release.


This version of edms-client-api might be problematic. Click here for more details.

Files changed (34) hide show
  1. edms_client_api/__init__.py +87 -0
  2. edms_client_api/api/__init__.py +6 -0
  3. edms_client_api/api/metadata_api.py +824 -0
  4. edms_client_api/api/time_series_api.py +988 -0
  5. edms_client_api/api_client.py +801 -0
  6. edms_client_api/api_response.py +21 -0
  7. edms_client_api/configuration.py +581 -0
  8. edms_client_api/exceptions.py +216 -0
  9. edms_client_api/models/__init__.py +35 -0
  10. edms_client_api/models/aggregation_type.py +39 -0
  11. edms_client_api/models/commodity_type.py +38 -0
  12. edms_client_api/models/data_type.py +39 -0
  13. edms_client_api/models/data_value_type.py +37 -0
  14. edms_client_api/models/dataset_configuration_dto.py +89 -0
  15. edms_client_api/models/dataset_metadata_column_dto.py +123 -0
  16. edms_client_api/models/dataset_metadata_dto.py +183 -0
  17. edms_client_api/models/gps_point_dto.py +89 -0
  18. edms_client_api/models/granularity_unit.py +42 -0
  19. edms_client_api/models/http_validation_problem_details.py +122 -0
  20. edms_client_api/models/place_category.py +43 -0
  21. edms_client_api/models/place_dto.py +110 -0
  22. edms_client_api/models/place_type.py +39 -0
  23. edms_client_api/models/problem_details.py +133 -0
  24. edms_client_api/models/scope.py +37 -0
  25. edms_client_api/models/time_zone.py +600 -0
  26. edms_client_api/models/unit_denominator.py +86 -0
  27. edms_client_api/models/unit_numerator.py +265 -0
  28. edms_client_api/models/validation_problem_details.py +122 -0
  29. edms_client_api/py.typed +0 -0
  30. edms_client_api/rest.py +258 -0
  31. edms_client_api-1.0.1.dist-info/METADATA +19 -0
  32. edms_client_api-1.0.1.dist-info/RECORD +34 -0
  33. edms_client_api-1.0.1.dist-info/WHEEL +5 -0
  34. edms_client_api-1.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,133 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ EDMS Client Api
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: development
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class ProblemDetails(BaseModel):
26
+ """
27
+ ProblemDetails
28
+ """ # noqa: E501
29
+ type: Optional[StrictStr] = None
30
+ title: Optional[StrictStr] = None
31
+ status: Optional[StrictInt] = None
32
+ detail: Optional[StrictStr] = None
33
+ instance: Optional[StrictStr] = None
34
+ additional_properties: Dict[str, Any] = {}
35
+ __properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance"]
36
+
37
+ model_config = ConfigDict(
38
+ populate_by_name=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.model_dump(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
+ return json.dumps(self.to_dict())
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of ProblemDetails from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ * Fields in `self.additional_properties` are added to the output dict.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ "additional_properties",
71
+ ])
72
+
73
+ _dict = self.model_dump(
74
+ by_alias=True,
75
+ exclude=excluded_fields,
76
+ exclude_none=True,
77
+ )
78
+ # puts key-value pairs in additional_properties in the top level
79
+ if self.additional_properties is not None:
80
+ for _key, _value in self.additional_properties.items():
81
+ _dict[_key] = _value
82
+
83
+ # set to None if type (nullable) is None
84
+ # and model_fields_set contains the field
85
+ if self.type is None and "type" in self.model_fields_set:
86
+ _dict['type'] = None
87
+
88
+ # set to None if title (nullable) is None
89
+ # and model_fields_set contains the field
90
+ if self.title is None and "title" in self.model_fields_set:
91
+ _dict['title'] = None
92
+
93
+ # set to None if status (nullable) is None
94
+ # and model_fields_set contains the field
95
+ if self.status is None and "status" in self.model_fields_set:
96
+ _dict['status'] = None
97
+
98
+ # set to None if detail (nullable) is None
99
+ # and model_fields_set contains the field
100
+ if self.detail is None and "detail" in self.model_fields_set:
101
+ _dict['detail'] = None
102
+
103
+ # set to None if instance (nullable) is None
104
+ # and model_fields_set contains the field
105
+ if self.instance is None and "instance" in self.model_fields_set:
106
+ _dict['instance'] = None
107
+
108
+ return _dict
109
+
110
+ @classmethod
111
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
112
+ """Create an instance of ProblemDetails from a dict"""
113
+ if obj is None:
114
+ return None
115
+
116
+ if not isinstance(obj, dict):
117
+ return cls.model_validate(obj)
118
+
119
+ _obj = cls.model_validate({
120
+ "type": obj.get("type"),
121
+ "title": obj.get("title"),
122
+ "status": obj.get("status"),
123
+ "detail": obj.get("detail"),
124
+ "instance": obj.get("instance")
125
+ })
126
+ # store additional fields in additional_properties
127
+ for _key in obj.keys():
128
+ if _key not in cls.__properties:
129
+ _obj.additional_properties[_key] = obj.get(_key)
130
+
131
+ return _obj
132
+
133
+
@@ -0,0 +1,37 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ EDMS Client Api
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: development
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class Scope(str, Enum):
22
+ """
23
+
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ ACTUAL = 'actual'
30
+ FORECAST = 'forecast'
31
+
32
+ @classmethod
33
+ def from_json(cls, json_str: str) -> Self:
34
+ """Create an instance of Scope from a JSON string"""
35
+ return cls(json.loads(json_str))
36
+
37
+