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,183 @@
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, Field, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from edms_client_api.models.commodity_type import CommodityType
23
+ from edms_client_api.models.data_type import DataType
24
+ from edms_client_api.models.dataset_configuration_dto import DatasetConfigurationDto
25
+ from edms_client_api.models.dataset_metadata_column_dto import DatasetMetadataColumnDto
26
+ from edms_client_api.models.place_dto import PlaceDto
27
+ from edms_client_api.models.time_zone import TimeZone
28
+ from typing import Optional, Set
29
+ from typing_extensions import Self
30
+
31
+ class DatasetMetadataDto(BaseModel):
32
+ """
33
+ DatasetMetadataDto
34
+ """ # noqa: E501
35
+ dataset_id: Optional[StrictInt] = Field(default=None, alias="datasetId")
36
+ code: Optional[StrictStr] = None
37
+ friendly_name: Optional[StrictStr] = Field(default=None, alias="friendlyName")
38
+ type: Optional[DataType] = None
39
+ area: Optional[StrictStr] = None
40
+ second_area: Optional[StrictStr] = Field(default=None, alias="secondArea")
41
+ place: Optional[PlaceDto] = None
42
+ tags: Optional[List[StrictStr]] = None
43
+ frequency: Optional[StrictStr] = None
44
+ time_zone: Optional[TimeZone] = Field(default=None, alias="timeZone")
45
+ commodity: Optional[CommodityType] = None
46
+ source: Optional[StrictStr] = None
47
+ gateway: Optional[StrictStr] = None
48
+ columns: Optional[List[DatasetMetadataColumnDto]] = None
49
+ configurations: Optional[List[DatasetConfigurationDto]] = None
50
+ __properties: ClassVar[List[str]] = ["datasetId", "code", "friendlyName", "type", "area", "secondArea", "place", "tags", "frequency", "timeZone", "commodity", "source", "gateway", "columns", "configurations"]
51
+
52
+ model_config = ConfigDict(
53
+ populate_by_name=True,
54
+ validate_assignment=True,
55
+ protected_namespaces=(),
56
+ )
57
+
58
+
59
+ def to_str(self) -> str:
60
+ """Returns the string representation of the model using alias"""
61
+ return pprint.pformat(self.model_dump(by_alias=True))
62
+
63
+ def to_json(self) -> str:
64
+ """Returns the JSON representation of the model using alias"""
65
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
66
+ return json.dumps(self.to_dict())
67
+
68
+ @classmethod
69
+ def from_json(cls, json_str: str) -> Optional[Self]:
70
+ """Create an instance of DatasetMetadataDto from a JSON string"""
71
+ return cls.from_dict(json.loads(json_str))
72
+
73
+ def to_dict(self) -> Dict[str, Any]:
74
+ """Return the dictionary representation of the model using alias.
75
+
76
+ This has the following differences from calling pydantic's
77
+ `self.model_dump(by_alias=True)`:
78
+
79
+ * `None` is only added to the output dict for nullable fields that
80
+ were set at model initialization. Other fields with value `None`
81
+ are ignored.
82
+ """
83
+ excluded_fields: Set[str] = set([
84
+ ])
85
+
86
+ _dict = self.model_dump(
87
+ by_alias=True,
88
+ exclude=excluded_fields,
89
+ exclude_none=True,
90
+ )
91
+ # override the default output from pydantic by calling `to_dict()` of place
92
+ if self.place:
93
+ _dict['place'] = self.place.to_dict()
94
+ # override the default output from pydantic by calling `to_dict()` of each item in columns (list)
95
+ _items = []
96
+ if self.columns:
97
+ for _item_columns in self.columns:
98
+ if _item_columns:
99
+ _items.append(_item_columns.to_dict())
100
+ _dict['columns'] = _items
101
+ # override the default output from pydantic by calling `to_dict()` of each item in configurations (list)
102
+ _items = []
103
+ if self.configurations:
104
+ for _item_configurations in self.configurations:
105
+ if _item_configurations:
106
+ _items.append(_item_configurations.to_dict())
107
+ _dict['configurations'] = _items
108
+ # set to None if code (nullable) is None
109
+ # and model_fields_set contains the field
110
+ if self.code is None and "code" in self.model_fields_set:
111
+ _dict['code'] = None
112
+
113
+ # set to None if area (nullable) is None
114
+ # and model_fields_set contains the field
115
+ if self.area is None and "area" in self.model_fields_set:
116
+ _dict['area'] = None
117
+
118
+ # set to None if second_area (nullable) is None
119
+ # and model_fields_set contains the field
120
+ if self.second_area is None and "second_area" in self.model_fields_set:
121
+ _dict['secondArea'] = None
122
+
123
+ # set to None if place (nullable) is None
124
+ # and model_fields_set contains the field
125
+ if self.place is None and "place" in self.model_fields_set:
126
+ _dict['place'] = None
127
+
128
+ # set to None if frequency (nullable) is None
129
+ # and model_fields_set contains the field
130
+ if self.frequency is None and "frequency" in self.model_fields_set:
131
+ _dict['frequency'] = None
132
+
133
+ # set to None if time_zone (nullable) is None
134
+ # and model_fields_set contains the field
135
+ if self.time_zone is None and "time_zone" in self.model_fields_set:
136
+ _dict['timeZone'] = None
137
+
138
+ # set to None if commodity (nullable) is None
139
+ # and model_fields_set contains the field
140
+ if self.commodity is None and "commodity" in self.model_fields_set:
141
+ _dict['commodity'] = None
142
+
143
+ # set to None if source (nullable) is None
144
+ # and model_fields_set contains the field
145
+ if self.source is None and "source" in self.model_fields_set:
146
+ _dict['source'] = None
147
+
148
+ # set to None if gateway (nullable) is None
149
+ # and model_fields_set contains the field
150
+ if self.gateway is None and "gateway" in self.model_fields_set:
151
+ _dict['gateway'] = None
152
+
153
+ return _dict
154
+
155
+ @classmethod
156
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
157
+ """Create an instance of DatasetMetadataDto from a dict"""
158
+ if obj is None:
159
+ return None
160
+
161
+ if not isinstance(obj, dict):
162
+ return cls.model_validate(obj)
163
+
164
+ _obj = cls.model_validate({
165
+ "datasetId": obj.get("datasetId"),
166
+ "code": obj.get("code"),
167
+ "friendlyName": obj.get("friendlyName"),
168
+ "type": obj.get("type"),
169
+ "area": obj.get("area"),
170
+ "secondArea": obj.get("secondArea"),
171
+ "place": PlaceDto.from_dict(obj["place"]) if obj.get("place") is not None else None,
172
+ "tags": obj.get("tags"),
173
+ "frequency": obj.get("frequency"),
174
+ "timeZone": obj.get("timeZone"),
175
+ "commodity": obj.get("commodity"),
176
+ "source": obj.get("source"),
177
+ "gateway": obj.get("gateway"),
178
+ "columns": [DatasetMetadataColumnDto.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None,
179
+ "configurations": [DatasetConfigurationDto.from_dict(_item) for _item in obj["configurations"]] if obj.get("configurations") is not None else None
180
+ })
181
+ return _obj
182
+
183
+
@@ -0,0 +1,89 @@
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, StrictFloat, StrictInt
21
+ from typing import Any, ClassVar, Dict, List, Optional, Union
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class GpsPointDto(BaseModel):
26
+ """
27
+ GpsPointDto
28
+ """ # noqa: E501
29
+ latitude: Optional[Union[StrictFloat, StrictInt]] = None
30
+ longitude: Optional[Union[StrictFloat, StrictInt]] = None
31
+ __properties: ClassVar[List[str]] = ["latitude", "longitude"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of GpsPointDto from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of GpsPointDto from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "latitude": obj.get("latitude"),
85
+ "longitude": obj.get("longitude")
86
+ })
87
+ return _obj
88
+
89
+
@@ -0,0 +1,42 @@
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 GranularityUnit(str, Enum):
22
+ """
23
+
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ SECONDS = 'seconds'
30
+ MINUTES = 'minutes'
31
+ HOURS = 'hours'
32
+ DAYS = 'days'
33
+ WEEKS = 'weeks'
34
+ MONTHS = 'months'
35
+ YEARS = 'years'
36
+
37
+ @classmethod
38
+ def from_json(cls, json_str: str) -> Self:
39
+ """Create an instance of GranularityUnit from a JSON string"""
40
+ return cls(json.loads(json_str))
41
+
42
+
@@ -0,0 +1,122 @@
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 HttpValidationProblemDetails(BaseModel):
26
+ """
27
+ HttpValidationProblemDetails
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
+ errors: Optional[Dict[str, List[StrictStr]]] = None
35
+ __properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance", "errors"]
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 HttpValidationProblemDetails 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
+ """
68
+ excluded_fields: Set[str] = set([
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ # set to None if type (nullable) is None
77
+ # and model_fields_set contains the field
78
+ if self.type is None and "type" in self.model_fields_set:
79
+ _dict['type'] = None
80
+
81
+ # set to None if title (nullable) is None
82
+ # and model_fields_set contains the field
83
+ if self.title is None and "title" in self.model_fields_set:
84
+ _dict['title'] = None
85
+
86
+ # set to None if status (nullable) is None
87
+ # and model_fields_set contains the field
88
+ if self.status is None and "status" in self.model_fields_set:
89
+ _dict['status'] = None
90
+
91
+ # set to None if detail (nullable) is None
92
+ # and model_fields_set contains the field
93
+ if self.detail is None and "detail" in self.model_fields_set:
94
+ _dict['detail'] = None
95
+
96
+ # set to None if instance (nullable) is None
97
+ # and model_fields_set contains the field
98
+ if self.instance is None and "instance" in self.model_fields_set:
99
+ _dict['instance'] = None
100
+
101
+ return _dict
102
+
103
+ @classmethod
104
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
105
+ """Create an instance of HttpValidationProblemDetails from a dict"""
106
+ if obj is None:
107
+ return None
108
+
109
+ if not isinstance(obj, dict):
110
+ return cls.model_validate(obj)
111
+
112
+ _obj = cls.model_validate({
113
+ "type": obj.get("type"),
114
+ "title": obj.get("title"),
115
+ "status": obj.get("status"),
116
+ "detail": obj.get("detail"),
117
+ "instance": obj.get("instance"),
118
+ "errors": obj.get("errors")
119
+ })
120
+ return _obj
121
+
122
+
@@ -0,0 +1,43 @@
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 PlaceCategory(str, Enum):
22
+ """
23
+
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ CITY = 'city'
30
+ CONSUMER = 'consumer'
31
+ PRODUCER = 'producer'
32
+ WEATHERSTATION = 'weatherstation'
33
+ RIVER = 'river'
34
+ TRANSMISSIONSYSTEMOPERATOR = 'transmissionsystemoperator'
35
+ DISTRIBUTIONSYSTEMOPERATOR = 'distributionsystemoperator'
36
+ OTHER = 'other'
37
+
38
+ @classmethod
39
+ def from_json(cls, json_str: str) -> Self:
40
+ """Create an instance of PlaceCategory from a JSON string"""
41
+ return cls(json.loads(json_str))
42
+
43
+
@@ -0,0 +1,110 @@
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, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from edms_client_api.models.gps_point_dto import GpsPointDto
23
+ from edms_client_api.models.place_category import PlaceCategory
24
+ from edms_client_api.models.place_type import PlaceType
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class PlaceDto(BaseModel):
29
+ """
30
+ PlaceDto
31
+ """ # noqa: E501
32
+ type: Optional[PlaceType] = None
33
+ category: Optional[PlaceCategory] = None
34
+ name: Optional[StrictStr] = None
35
+ production: Optional[StrictStr] = None
36
+ points: Optional[List[GpsPointDto]] = None
37
+ __properties: ClassVar[List[str]] = ["type", "category", "name", "production", "points"]
38
+
39
+ model_config = ConfigDict(
40
+ populate_by_name=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> Optional[Self]:
57
+ """Create an instance of PlaceDto from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self) -> Dict[str, Any]:
61
+ """Return the dictionary representation of the model using alias.
62
+
63
+ This has the following differences from calling pydantic's
64
+ `self.model_dump(by_alias=True)`:
65
+
66
+ * `None` is only added to the output dict for nullable fields that
67
+ were set at model initialization. Other fields with value `None`
68
+ are ignored.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ ])
72
+
73
+ _dict = self.model_dump(
74
+ by_alias=True,
75
+ exclude=excluded_fields,
76
+ exclude_none=True,
77
+ )
78
+ # override the default output from pydantic by calling `to_dict()` of each item in points (list)
79
+ _items = []
80
+ if self.points:
81
+ for _item_points in self.points:
82
+ if _item_points:
83
+ _items.append(_item_points.to_dict())
84
+ _dict['points'] = _items
85
+ # set to None if production (nullable) is None
86
+ # and model_fields_set contains the field
87
+ if self.production is None and "production" in self.model_fields_set:
88
+ _dict['production'] = None
89
+
90
+ return _dict
91
+
92
+ @classmethod
93
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
94
+ """Create an instance of PlaceDto from a dict"""
95
+ if obj is None:
96
+ return None
97
+
98
+ if not isinstance(obj, dict):
99
+ return cls.model_validate(obj)
100
+
101
+ _obj = cls.model_validate({
102
+ "type": obj.get("type"),
103
+ "category": obj.get("category"),
104
+ "name": obj.get("name"),
105
+ "production": obj.get("production"),
106
+ "points": [GpsPointDto.from_dict(_item) for _item in obj["points"]] if obj.get("points") is not None else None
107
+ })
108
+ return _obj
109
+
110
+
@@ -0,0 +1,39 @@
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 PlaceType(str, Enum):
22
+ """
23
+
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ AREAONLY = 'areaonly'
30
+ SINGLEPOINT = 'singlepoint'
31
+ POLYLINE = 'polyline'
32
+ POLYGONE = 'polygone'
33
+
34
+ @classmethod
35
+ def from_json(cls, json_str: str) -> Self:
36
+ """Create an instance of PlaceType from a JSON string"""
37
+ return cls(json.loads(json_str))
38
+
39
+