edms-client-api 1.0.1__py2-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 (33) 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/rest.py +258 -0
  30. edms_client_api-1.0.1.dist-info/METADATA +19 -0
  31. edms_client_api-1.0.1.dist-info/RECORD +33 -0
  32. edms_client_api-1.0.1.dist-info/WHEEL +5 -0
  33. edms_client_api-1.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,265 @@
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 UnitNumerator(str, Enum):
22
+ """
23
+
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ W = 'W'
30
+ KW = 'kW'
31
+ MW = 'MW'
32
+ GW = 'GW'
33
+ TW = 'TW'
34
+ WH = 'Wh'
35
+ KWH = 'kWh'
36
+ MWH = 'MWh'
37
+ GWH = 'GWh'
38
+ TWH = 'TWh'
39
+ CELCIUS = 'celcius'
40
+ KELVIN = 'Kelvin'
41
+ FAHRENHEIT = 'Fahrenheit'
42
+ PERCENT = 'percent'
43
+ JOULE = 'Joule'
44
+ MICROGRAM = 'Microgram'
45
+ GRAM = 'Gram'
46
+ KILOGRAM = 'Kilogram'
47
+ TONNE = 'Tonne'
48
+ MILLIMETER = 'Millimeter'
49
+ CENTIMETER = 'Centimeter'
50
+ DECIMETER = 'Decimeter'
51
+ METER = 'Meter'
52
+ KILOMETER = 'Kilometer'
53
+ SQUAREMILLIMETER = 'SquareMillimeter'
54
+ SQUARECENTIMETER = 'SquareCentimeter'
55
+ SQUAREDECIMETER = 'SquareDecimeter'
56
+ SQUAREMETER = 'SquareMeter'
57
+ SQUAREKILOMETER = 'SquareKilometer'
58
+ CUBICMILLIMETER = 'CubicMillimeter'
59
+ CUBICCENTIMETER = 'CubicCentimeter'
60
+ CUBICDECIMETER = 'CubicDecimeter'
61
+ CUBICMETER = 'cubicmeter'
62
+ CUBICKILOMETER = 'CubicKilometer'
63
+ YEAR = 'Year'
64
+ MONTH = 'Month'
65
+ DAY = 'Day'
66
+ HOUR = 'Hour'
67
+ MINUTES = 'Minutes'
68
+ SECOND = 'Second'
69
+ MILLISECOND = 'Millisecond'
70
+ DEGREEDAYS = 'DegreeDays'
71
+ PASCAL = 'Pascal'
72
+ HECTOPASCAL = 'HectoPascal'
73
+ OCTAS = 'Octas'
74
+ UNIT = 'Unit'
75
+ DEGREE = 'Degree'
76
+ BTU = 'BTU'
77
+ THERMS = 'Therms'
78
+ CALORIE = 'Calorie'
79
+ KILOCALORIE = 'Kilocalorie'
80
+ ADA = 'ADA'
81
+ AED = 'AED'
82
+ AFN = 'AFN'
83
+ ALL = 'ALL'
84
+ AMD = 'AMD'
85
+ ANG = 'ANG'
86
+ AOA = 'AOA'
87
+ ARS = 'ARS'
88
+ AUD = 'AUD'
89
+ AVAX = 'AVAX'
90
+ AWG = 'AWG'
91
+ AZN = 'AZN'
92
+ BAM = 'BAM'
93
+ BBD = 'BBD'
94
+ BDT = 'BDT'
95
+ BGN = 'BGN'
96
+ BHD = 'BHD'
97
+ BIF = 'BIF'
98
+ BMD = 'BMD'
99
+ BNB = 'BNB'
100
+ BND = 'BND'
101
+ BOB = 'BOB'
102
+ BRL = 'BRL'
103
+ BSD = 'BSD'
104
+ BTC = 'BTC'
105
+ BTN = 'BTN'
106
+ BWP = 'BWP'
107
+ BYN = 'BYN'
108
+ BYR = 'BYR'
109
+ BZD = 'BZD'
110
+ CAD = 'CAD'
111
+ CDF = 'CDF'
112
+ CHF = 'CHF'
113
+ CLF = 'CLF'
114
+ CLP = 'CLP'
115
+ CNY = 'CNY'
116
+ COP = 'COP'
117
+ CRC = 'CRC'
118
+ CUC = 'CUC'
119
+ CUP = 'CUP'
120
+ CVE = 'CVE'
121
+ CZK = 'CZK'
122
+ DJF = 'DJF'
123
+ DKK = 'DKK'
124
+ DOP = 'DOP'
125
+ DOT = 'DOT'
126
+ DZD = 'DZD'
127
+ EGP = 'EGP'
128
+ ERN = 'ERN'
129
+ ETB = 'ETB'
130
+ ETH = 'ETH'
131
+ EUR = 'EUR'
132
+ FJD = 'FJD'
133
+ FKP = 'FKP'
134
+ GBP = 'GBP'
135
+ GEL = 'GEL'
136
+ GGP = 'GGP'
137
+ GHS = 'GHS'
138
+ GIP = 'GIP'
139
+ GMD = 'GMD'
140
+ GNF = 'GNF'
141
+ GTQ = 'GTQ'
142
+ GYD = 'GYD'
143
+ HKD = 'HKD'
144
+ HNL = 'HNL'
145
+ HRK = 'HRK'
146
+ HTG = 'HTG'
147
+ HUF = 'HUF'
148
+ IDR = 'IDR'
149
+ ILS = 'ILS'
150
+ IMP = 'IMP'
151
+ INR = 'INR'
152
+ IQD = 'IQD'
153
+ IRR = 'IRR'
154
+ ISK = 'ISK'
155
+ JEP = 'JEP'
156
+ JMD = 'JMD'
157
+ JOD = 'JOD'
158
+ JPY = 'JPY'
159
+ KES = 'KES'
160
+ KGS = 'KGS'
161
+ KHR = 'KHR'
162
+ KMF = 'KMF'
163
+ KPW = 'KPW'
164
+ KRW = 'KRW'
165
+ KWD = 'KWD'
166
+ KYD = 'KYD'
167
+ KZT = 'KZT'
168
+ LAK = 'LAK'
169
+ LBP = 'LBP'
170
+ LKR = 'LKR'
171
+ LRD = 'LRD'
172
+ LSL = 'LSL'
173
+ LTC = 'LTC'
174
+ LTL = 'LTL'
175
+ LVL = 'LVL'
176
+ LYD = 'LYD'
177
+ MAD = 'MAD'
178
+ MATIC = 'MATIC'
179
+ MDL = 'MDL'
180
+ MGA = 'MGA'
181
+ MKD = 'MKD'
182
+ MMK = 'MMK'
183
+ MNT = 'MNT'
184
+ MOP = 'MOP'
185
+ MRO = 'MRO'
186
+ MUR = 'MUR'
187
+ MVR = 'MVR'
188
+ MWK = 'MWK'
189
+ MXN = 'MXN'
190
+ MYR = 'MYR'
191
+ MZN = 'MZN'
192
+ NAD = 'NAD'
193
+ NGN = 'NGN'
194
+ NIO = 'NIO'
195
+ NOK = 'NOK'
196
+ NPR = 'NPR'
197
+ NZD = 'NZD'
198
+ OMR = 'OMR'
199
+ PAB = 'PAB'
200
+ PEN = 'PEN'
201
+ PGK = 'PGK'
202
+ PHP = 'PHP'
203
+ PKR = 'PKR'
204
+ PLN = 'PLN'
205
+ PYG = 'PYG'
206
+ QAR = 'QAR'
207
+ RON = 'RON'
208
+ RSD = 'RSD'
209
+ RUB = 'RUB'
210
+ RWF = 'RWF'
211
+ SAR = 'SAR'
212
+ SBD = 'SBD'
213
+ SCR = 'SCR'
214
+ SDG = 'SDG'
215
+ SEK = 'SEK'
216
+ SGD = 'SGD'
217
+ SHP = 'SHP'
218
+ SLL = 'SLL'
219
+ SOL = 'SOL'
220
+ SOS = 'SOS'
221
+ SRD = 'SRD'
222
+ STD = 'STD'
223
+ SVC = 'SVC'
224
+ SYP = 'SYP'
225
+ SZL = 'SZL'
226
+ THB = 'THB'
227
+ TJS = 'TJS'
228
+ TMT = 'TMT'
229
+ TND = 'TND'
230
+ TOP = 'TOP'
231
+ TRY = 'TRY'
232
+ TTD = 'TTD'
233
+ TWD = 'TWD'
234
+ TZS = 'TZS'
235
+ UAH = 'UAH'
236
+ UGX = 'UGX'
237
+ USD = 'USD'
238
+ UYU = 'UYU'
239
+ UZS = 'UZS'
240
+ VEF = 'VEF'
241
+ VND = 'VND'
242
+ VUV = 'VUV'
243
+ WST = 'WST'
244
+ XAF = 'XAF'
245
+ XAG = 'XAG'
246
+ XAU = 'XAU'
247
+ XCD = 'XCD'
248
+ XDR = 'XDR'
249
+ XOF = 'XOF'
250
+ XPD = 'XPD'
251
+ XPF = 'XPF'
252
+ XPT = 'XPT'
253
+ XRP = 'XRP'
254
+ YER = 'YER'
255
+ ZAR = 'ZAR'
256
+ ZMK = 'ZMK'
257
+ ZMW = 'ZMW'
258
+ ZWL = 'ZWL'
259
+
260
+ @classmethod
261
+ def from_json(cls, json_str: str) -> Self:
262
+ """Create an instance of UnitNumerator from a JSON string"""
263
+ return cls(json.loads(json_str))
264
+
265
+
@@ -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 ValidationProblemDetails(BaseModel):
26
+ """
27
+ ValidationProblemDetails
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 ValidationProblemDetails 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 ValidationProblemDetails 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,258 @@
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
+ import io
16
+ import json
17
+ import re
18
+ import ssl
19
+
20
+ import urllib3
21
+
22
+ from edms_client_api.exceptions import ApiException, ApiValueError
23
+
24
+ SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
25
+ RESTResponseType = urllib3.HTTPResponse
26
+
27
+
28
+ def is_socks_proxy_url(url):
29
+ if url is None:
30
+ return False
31
+ split_section = url.split("://")
32
+ if len(split_section) < 2:
33
+ return False
34
+ else:
35
+ return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
36
+
37
+
38
+ class RESTResponse(io.IOBase):
39
+
40
+ def __init__(self, resp) -> None:
41
+ self.response = resp
42
+ self.status = resp.status
43
+ self.reason = resp.reason
44
+ self.data = None
45
+
46
+ def read(self):
47
+ if self.data is None:
48
+ self.data = self.response.data
49
+ return self.data
50
+
51
+ def getheaders(self):
52
+ """Returns a dictionary of the response headers."""
53
+ return self.response.headers
54
+
55
+ def getheader(self, name, default=None):
56
+ """Returns a given response header."""
57
+ return self.response.headers.get(name, default)
58
+
59
+
60
+ class RESTClientObject:
61
+
62
+ def __init__(self, configuration) -> None:
63
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
64
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
65
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
66
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
67
+
68
+ # cert_reqs
69
+ if configuration.verify_ssl:
70
+ cert_reqs = ssl.CERT_REQUIRED
71
+ else:
72
+ cert_reqs = ssl.CERT_NONE
73
+
74
+ pool_args = {
75
+ "cert_reqs": cert_reqs,
76
+ "ca_certs": configuration.ssl_ca_cert,
77
+ "cert_file": configuration.cert_file,
78
+ "key_file": configuration.key_file,
79
+ "ca_cert_data": configuration.ca_cert_data,
80
+ }
81
+ if configuration.assert_hostname is not None:
82
+ pool_args['assert_hostname'] = (
83
+ configuration.assert_hostname
84
+ )
85
+
86
+ if configuration.retries is not None:
87
+ pool_args['retries'] = configuration.retries
88
+
89
+ if configuration.tls_server_name:
90
+ pool_args['server_hostname'] = configuration.tls_server_name
91
+
92
+
93
+ if configuration.socket_options is not None:
94
+ pool_args['socket_options'] = configuration.socket_options
95
+
96
+ if configuration.connection_pool_maxsize is not None:
97
+ pool_args['maxsize'] = configuration.connection_pool_maxsize
98
+
99
+ # https pool manager
100
+ self.pool_manager: urllib3.PoolManager
101
+
102
+ if configuration.proxy:
103
+ if is_socks_proxy_url(configuration.proxy):
104
+ from urllib3.contrib.socks import SOCKSProxyManager
105
+ pool_args["proxy_url"] = configuration.proxy
106
+ pool_args["headers"] = configuration.proxy_headers
107
+ self.pool_manager = SOCKSProxyManager(**pool_args)
108
+ else:
109
+ pool_args["proxy_url"] = configuration.proxy
110
+ pool_args["proxy_headers"] = configuration.proxy_headers
111
+ self.pool_manager = urllib3.ProxyManager(**pool_args)
112
+ else:
113
+ self.pool_manager = urllib3.PoolManager(**pool_args)
114
+
115
+ def request(
116
+ self,
117
+ method,
118
+ url,
119
+ headers=None,
120
+ body=None,
121
+ post_params=None,
122
+ _request_timeout=None
123
+ ):
124
+ """Perform requests.
125
+
126
+ :param method: http request method
127
+ :param url: http request url
128
+ :param headers: http request headers
129
+ :param body: request json body, for `application/json`
130
+ :param post_params: request post parameters,
131
+ `application/x-www-form-urlencoded`
132
+ and `multipart/form-data`
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ """
138
+ method = method.upper()
139
+ assert method in [
140
+ 'GET',
141
+ 'HEAD',
142
+ 'DELETE',
143
+ 'POST',
144
+ 'PUT',
145
+ 'PATCH',
146
+ 'OPTIONS'
147
+ ]
148
+
149
+ if post_params and body:
150
+ raise ApiValueError(
151
+ "body parameter cannot be used with post_params parameter."
152
+ )
153
+
154
+ post_params = post_params or {}
155
+ headers = headers or {}
156
+
157
+ timeout = None
158
+ if _request_timeout:
159
+ if isinstance(_request_timeout, (int, float)):
160
+ timeout = urllib3.Timeout(total=_request_timeout)
161
+ elif (
162
+ isinstance(_request_timeout, tuple)
163
+ and len(_request_timeout) == 2
164
+ ):
165
+ timeout = urllib3.Timeout(
166
+ connect=_request_timeout[0],
167
+ read=_request_timeout[1]
168
+ )
169
+
170
+ try:
171
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
172
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
173
+
174
+ # no content type provided or payload is json
175
+ content_type = headers.get('Content-Type')
176
+ if (
177
+ not content_type
178
+ or re.search('json', content_type, re.IGNORECASE)
179
+ ):
180
+ request_body = None
181
+ if body is not None:
182
+ request_body = json.dumps(body)
183
+ r = self.pool_manager.request(
184
+ method,
185
+ url,
186
+ body=request_body,
187
+ timeout=timeout,
188
+ headers=headers,
189
+ preload_content=False
190
+ )
191
+ elif content_type == 'application/x-www-form-urlencoded':
192
+ r = self.pool_manager.request(
193
+ method,
194
+ url,
195
+ fields=post_params,
196
+ encode_multipart=False,
197
+ timeout=timeout,
198
+ headers=headers,
199
+ preload_content=False
200
+ )
201
+ elif content_type == 'multipart/form-data':
202
+ # must del headers['Content-Type'], or the correct
203
+ # Content-Type which generated by urllib3 will be
204
+ # overwritten.
205
+ del headers['Content-Type']
206
+ # Ensures that dict objects are serialized
207
+ post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
208
+ r = self.pool_manager.request(
209
+ method,
210
+ url,
211
+ fields=post_params,
212
+ encode_multipart=True,
213
+ timeout=timeout,
214
+ headers=headers,
215
+ preload_content=False
216
+ )
217
+ # Pass a `string` parameter directly in the body to support
218
+ # other content types than JSON when `body` argument is
219
+ # provided in serialized form.
220
+ elif isinstance(body, str) or isinstance(body, bytes):
221
+ r = self.pool_manager.request(
222
+ method,
223
+ url,
224
+ body=body,
225
+ timeout=timeout,
226
+ headers=headers,
227
+ preload_content=False
228
+ )
229
+ elif headers['Content-Type'].startswith('text/') and isinstance(body, bool):
230
+ request_body = "true" if body else "false"
231
+ r = self.pool_manager.request(
232
+ method,
233
+ url,
234
+ body=request_body,
235
+ preload_content=False,
236
+ timeout=timeout,
237
+ headers=headers)
238
+ else:
239
+ # Cannot generate the request from given parameters
240
+ msg = """Cannot prepare a request message for provided
241
+ arguments. Please check that your arguments match
242
+ declared content type."""
243
+ raise ApiException(status=0, reason=msg)
244
+ # For `GET`, `HEAD`
245
+ else:
246
+ r = self.pool_manager.request(
247
+ method,
248
+ url,
249
+ fields={},
250
+ timeout=timeout,
251
+ headers=headers,
252
+ preload_content=False
253
+ )
254
+ except urllib3.exceptions.SSLError as e:
255
+ msg = "\n".join([type(e).__name__, str(e)])
256
+ raise ApiException(status=0, reason=msg)
257
+
258
+ return RESTResponse(r)
@@ -0,0 +1,19 @@
1
+ Metadata-Version: 2.1
2
+ Name: edms-client-api
3
+ Version: 1.0.1
4
+ Summary: EDMS Client Api
5
+ Home-page: UNKNOWN
6
+ Author: OpenAPI Generator community
7
+ Author-email: team@openapitools.org
8
+ License: UNKNOWN
9
+ Keywords: OpenAPI,OpenAPI-Generator,EDMS Client Api
10
+ Platform: UNKNOWN
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: urllib3 (<3.0.0,>=2.1.0)
13
+ Requires-Dist: python-dateutil (>=2.8.2)
14
+ Requires-Dist: pydantic (>=2)
15
+ Requires-Dist: typing-extensions (>=4.7.1)
16
+
17
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
18
+
19
+
@@ -0,0 +1,33 @@
1
+ edms_client_api/__init__.py,sha256=ltR0af_HH4h50el9ZkIIuEozJlD546jDgPH41OMcL_E,3655
2
+ edms_client_api/api_client.py,sha256=WEz3e5h1GhkGfDAcvzIC0AQhndBUkUr89XhxKiN1ACU,27728
3
+ edms_client_api/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
+ edms_client_api/configuration.py,sha256=uP-ISUO6gABPv2vAK9cJ8ZeHAQg1M6c_DzWaGTiGG80,18238
5
+ edms_client_api/exceptions.py,sha256=O5IgXO-6p0GwEgrTJgOvLaiFH_RUmQk3JscDAsoAmmI,6485
6
+ edms_client_api/rest.py,sha256=ATyMrz8ESdGkXKIZaxnMGnddsgdRyeikPU7TNxGRxg8,9483
7
+ edms_client_api/api/__init__.py,sha256=kk327zDkni0HFzERGFRym-m9O74YgM14semXbQx0-f4,167
8
+ edms_client_api/api/metadata_api.py,sha256=EeMP4mK_yH0B3zmYl33VDNDOwkiFe3Eeyny3F9ceqVI,32419
9
+ edms_client_api/api/time_series_api.py,sha256=C_eQvzoxS4fs9i2VGIqypvzPLZksEJkpnmUl8anndvE,43359
10
+ edms_client_api/models/__init__.py,sha256=Jh7wxHkahI-DbUrrZgrFoU9HmyiAk5121MR3ucLZggQ,1666
11
+ edms_client_api/models/aggregation_type.py,sha256=VqUf74Xu_rKWesfsXHHD0SeQTWTpoHXlw__dUhZMdMg,785
12
+ edms_client_api/models/commodity_type.py,sha256=ioUdi8BDA-MLs2xMGkY3IDstv5Z-27pT8i5IMofFvEY,775
13
+ edms_client_api/models/data_type.py,sha256=j_BMllbkqipKFqaTq49WOswA1Cw-qZUwdjxsxtSEBK0,813
14
+ edms_client_api/models/data_value_type.py,sha256=XrCQDAdANfnaDWHQASVbv3_gqobhnjd1hf6cJUICdfk,749
15
+ edms_client_api/models/dataset_configuration_dto.py,sha256=wpfOZq7l8nT_KVi2KU9Lu_DTCXHcOi4hGF71iDqMaHs,2754
16
+ edms_client_api/models/dataset_metadata_column_dto.py,sha256=TgbdVDYVc5UygXYzYeS99XZQfu8NIFHvrmB1KWYURO8,4607
17
+ edms_client_api/models/dataset_metadata_dto.py,sha256=8scn1jnNc2byVV50to1knW1vbZ6YfIhpR7q-CPTgdZ4,7516
18
+ edms_client_api/models/gps_point_dto.py,sha256=aGvUVbkFJbaBtXf2nhKgbASU6zK1FKrt3gMup1JhpGw,2679
19
+ edms_client_api/models/granularity_unit.py,sha256=1Q58CSm6NSioWymm03tECWJwdYHyW1GH4__ka21jtUQ,861
20
+ edms_client_api/models/http_validation_problem_details.py,sha256=z9ih_Y1yycsHPbkZIEZil9OTo2xCKpAFZ7jHEDxZad4,4082
21
+ edms_client_api/models/place_category.py,sha256=0u66MB9jSLZsE6TGj7tcJy7waTuf8b7YMgXzvD1nVGU,981
22
+ edms_client_api/models/place_dto.py,sha256=L7JavTp0CVNLs3ZbCHd7OrZwR0lOj7CZMzDjXkRaZ0I,3686
23
+ edms_client_api/models/place_type.py,sha256=fgpBe5Dgj5tekcRrQr8ZWlzHz5oSfJCA7bA6Ws9hDP4,811
24
+ edms_client_api/models/problem_details.py,sha256=kDffTne9n_HUPPmYTjkgtVyRnp-1qVyhv6i2SmTi-Gc,4514
25
+ edms_client_api/models/scope.py,sha256=h7togFM6KQrr8IrRkUCr6e_QNZzuQtKONVO4xghWq_A,741
26
+ edms_client_api/models/time_zone.py,sha256=Ki-tMjzWZvGHNWd1htuyi8QGIikoV8biJUxMgakXnp4,22767
27
+ edms_client_api/models/unit_denominator.py,sha256=Bbu2lxMa5T2YoMQA2rCYL4rH1YWhiwWfM8xd2fs8GEE,1977
28
+ edms_client_api/models/unit_numerator.py,sha256=w2hPUd4hqHzVGxkbvc9k3Y__f9wHIvVa0OHvepMVhfw,4843
29
+ edms_client_api/models/validation_problem_details.py,sha256=YcTua3I27lgIzClm2JRrwWdZsc-xNCfaCD2hmX_5qnY,4066
30
+ edms_client_api-1.0.1.dist-info/METADATA,sha256=h9GVYXUsHJ9YwU2iYQ-G9z9AWCeKwTCauV7B6NcH1V8,585
31
+ edms_client_api-1.0.1.dist-info/WHEEL,sha256=1VPi6hfNQaRRNuEdK_3dv9o8COtLGnHWJghhj4CQ28k,92
32
+ edms_client_api-1.0.1.dist-info/top_level.txt,sha256=9CU9yAYa3txlasmKPUbTI8weg8icza25292xoSOWwSE,16
33
+ edms_client_api-1.0.1.dist-info/RECORD,,