neops_workflow_engine_client 0.0.0__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.
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Neops Workflow Engine
7
+
8
+ Neops workflow engine API documentation
9
+
10
+ The version of the OpenAPI document: 1.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "0.0.0"
18
+
19
+ # import apis into sdk package
20
+ from neops_workflow_engine_client.api.default_api import DefaultApi
21
+
22
+ # import ApiClient
23
+ from neops_workflow_engine_client.api_response import ApiResponse
24
+ from neops_workflow_engine_client.api_client import ApiClient
25
+ from neops_workflow_engine_client.configuration import Configuration
26
+ from neops_workflow_engine_client.exceptions import OpenApiException
27
+ from neops_workflow_engine_client.exceptions import ApiTypeError
28
+ from neops_workflow_engine_client.exceptions import ApiValueError
29
+ from neops_workflow_engine_client.exceptions import ApiKeyError
30
+ from neops_workflow_engine_client.exceptions import ApiAttributeError
31
+ from neops_workflow_engine_client.exceptions import ApiException
32
+
33
+ # import models into sdk package
@@ -0,0 +1,5 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from neops_workflow_engine_client.api.default_api import DefaultApi
5
+
@@ -0,0 +1,505 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Neops Workflow Engine
5
+
6
+ Neops workflow engine API documentation
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+
20
+ from neops_workflow_engine_client.api_client import ApiClient, RequestSerialized
21
+ from neops_workflow_engine_client.api_response import ApiResponse
22
+ from neops_workflow_engine_client.rest import RESTResponseType
23
+
24
+
25
+ class DefaultApi:
26
+ """NOTE: This class is auto generated by OpenAPI Generator
27
+ Ref: https://openapi-generator.tech
28
+
29
+ Do not edit the class manually.
30
+ """
31
+
32
+ def __init__(self, api_client=None) -> None:
33
+ if api_client is None:
34
+ api_client = ApiClient.get_default()
35
+ self.api_client = api_client
36
+
37
+
38
+ @validate_call
39
+ def app_controller_get_hello(
40
+ self,
41
+ _request_timeout: Union[
42
+ None,
43
+ Annotated[StrictFloat, Field(gt=0)],
44
+ Tuple[
45
+ Annotated[StrictFloat, Field(gt=0)],
46
+ Annotated[StrictFloat, Field(gt=0)]
47
+ ]
48
+ ] = None,
49
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
50
+ _content_type: Optional[StrictStr] = None,
51
+ _headers: Optional[Dict[StrictStr, Any]] = None,
52
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
53
+ ) -> None:
54
+ """app_controller_get_hello
55
+
56
+
57
+ :param _request_timeout: timeout setting for this request. If one
58
+ number provided, it will be total request
59
+ timeout. It can also be a pair (tuple) of
60
+ (connection, read) timeouts.
61
+ :type _request_timeout: int, tuple(int, int), optional
62
+ :param _request_auth: set to override the auth_settings for an a single
63
+ request; this effectively ignores the
64
+ authentication in the spec for a single request.
65
+ :type _request_auth: dict, optional
66
+ :param _content_type: force content-type for the request.
67
+ :type _content_type: str, Optional
68
+ :param _headers: set to override the headers for a single
69
+ request; this effectively ignores the headers
70
+ in the spec for a single request.
71
+ :type _headers: dict, optional
72
+ :param _host_index: set to override the host_index for a single
73
+ request; this effectively ignores the host_index
74
+ in the spec for a single request.
75
+ :type _host_index: int, optional
76
+ :return: Returns the result object.
77
+ """ # noqa: E501
78
+
79
+ _param = self._app_controller_get_hello_serialize(
80
+ _request_auth=_request_auth,
81
+ _content_type=_content_type,
82
+ _headers=_headers,
83
+ _host_index=_host_index
84
+ )
85
+
86
+ _response_types_map: Dict[str, Optional[str]] = {
87
+ '200': None,
88
+ }
89
+ response_data = self.api_client.call_api(
90
+ *_param,
91
+ _request_timeout=_request_timeout
92
+ )
93
+ response_data.read()
94
+ return self.api_client.response_deserialize(
95
+ response_data=response_data,
96
+ response_types_map=_response_types_map,
97
+ ).data
98
+
99
+
100
+ @validate_call
101
+ def app_controller_get_hello_with_http_info(
102
+ self,
103
+ _request_timeout: Union[
104
+ None,
105
+ Annotated[StrictFloat, Field(gt=0)],
106
+ Tuple[
107
+ Annotated[StrictFloat, Field(gt=0)],
108
+ Annotated[StrictFloat, Field(gt=0)]
109
+ ]
110
+ ] = None,
111
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
112
+ _content_type: Optional[StrictStr] = None,
113
+ _headers: Optional[Dict[StrictStr, Any]] = None,
114
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
115
+ ) -> ApiResponse[None]:
116
+ """app_controller_get_hello
117
+
118
+
119
+ :param _request_timeout: timeout setting for this request. If one
120
+ number provided, it will be total request
121
+ timeout. It can also be a pair (tuple) of
122
+ (connection, read) timeouts.
123
+ :type _request_timeout: int, tuple(int, int), optional
124
+ :param _request_auth: set to override the auth_settings for an a single
125
+ request; this effectively ignores the
126
+ authentication in the spec for a single request.
127
+ :type _request_auth: dict, optional
128
+ :param _content_type: force content-type for the request.
129
+ :type _content_type: str, Optional
130
+ :param _headers: set to override the headers for a single
131
+ request; this effectively ignores the headers
132
+ in the spec for a single request.
133
+ :type _headers: dict, optional
134
+ :param _host_index: set to override the host_index for a single
135
+ request; this effectively ignores the host_index
136
+ in the spec for a single request.
137
+ :type _host_index: int, optional
138
+ :return: Returns the result object.
139
+ """ # noqa: E501
140
+
141
+ _param = self._app_controller_get_hello_serialize(
142
+ _request_auth=_request_auth,
143
+ _content_type=_content_type,
144
+ _headers=_headers,
145
+ _host_index=_host_index
146
+ )
147
+
148
+ _response_types_map: Dict[str, Optional[str]] = {
149
+ '200': None,
150
+ }
151
+ response_data = self.api_client.call_api(
152
+ *_param,
153
+ _request_timeout=_request_timeout
154
+ )
155
+ response_data.read()
156
+ return self.api_client.response_deserialize(
157
+ response_data=response_data,
158
+ response_types_map=_response_types_map,
159
+ )
160
+
161
+
162
+ @validate_call
163
+ def app_controller_get_hello_without_preload_content(
164
+ self,
165
+ _request_timeout: Union[
166
+ None,
167
+ Annotated[StrictFloat, Field(gt=0)],
168
+ Tuple[
169
+ Annotated[StrictFloat, Field(gt=0)],
170
+ Annotated[StrictFloat, Field(gt=0)]
171
+ ]
172
+ ] = None,
173
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
174
+ _content_type: Optional[StrictStr] = None,
175
+ _headers: Optional[Dict[StrictStr, Any]] = None,
176
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
177
+ ) -> RESTResponseType:
178
+ """app_controller_get_hello
179
+
180
+
181
+ :param _request_timeout: timeout setting for this request. If one
182
+ number provided, it will be total request
183
+ timeout. It can also be a pair (tuple) of
184
+ (connection, read) timeouts.
185
+ :type _request_timeout: int, tuple(int, int), optional
186
+ :param _request_auth: set to override the auth_settings for an a single
187
+ request; this effectively ignores the
188
+ authentication in the spec for a single request.
189
+ :type _request_auth: dict, optional
190
+ :param _content_type: force content-type for the request.
191
+ :type _content_type: str, Optional
192
+ :param _headers: set to override the headers for a single
193
+ request; this effectively ignores the headers
194
+ in the spec for a single request.
195
+ :type _headers: dict, optional
196
+ :param _host_index: set to override the host_index for a single
197
+ request; this effectively ignores the host_index
198
+ in the spec for a single request.
199
+ :type _host_index: int, optional
200
+ :return: Returns the result object.
201
+ """ # noqa: E501
202
+
203
+ _param = self._app_controller_get_hello_serialize(
204
+ _request_auth=_request_auth,
205
+ _content_type=_content_type,
206
+ _headers=_headers,
207
+ _host_index=_host_index
208
+ )
209
+
210
+ _response_types_map: Dict[str, Optional[str]] = {
211
+ '200': None,
212
+ }
213
+ response_data = self.api_client.call_api(
214
+ *_param,
215
+ _request_timeout=_request_timeout
216
+ )
217
+ return response_data.response
218
+
219
+
220
+ def _app_controller_get_hello_serialize(
221
+ self,
222
+ _request_auth,
223
+ _content_type,
224
+ _headers,
225
+ _host_index,
226
+ ) -> RequestSerialized:
227
+
228
+ _host = None
229
+
230
+ _collection_formats: Dict[str, str] = {
231
+ }
232
+
233
+ _path_params: Dict[str, str] = {}
234
+ _query_params: List[Tuple[str, str]] = []
235
+ _header_params: Dict[str, Optional[str]] = _headers or {}
236
+ _form_params: List[Tuple[str, str]] = []
237
+ _files: Dict[
238
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
239
+ ] = {}
240
+ _body_params: Optional[bytes] = None
241
+
242
+ # process the path parameters
243
+ # process the query parameters
244
+ # process the header parameters
245
+ # process the form parameters
246
+ # process the body parameter
247
+
248
+
249
+
250
+
251
+ # authentication setting
252
+ _auth_settings: List[str] = [
253
+ ]
254
+
255
+ return self.api_client.param_serialize(
256
+ method='GET',
257
+ resource_path='/',
258
+ path_params=_path_params,
259
+ query_params=_query_params,
260
+ header_params=_header_params,
261
+ body=_body_params,
262
+ post_params=_form_params,
263
+ files=_files,
264
+ auth_settings=_auth_settings,
265
+ collection_formats=_collection_formats,
266
+ _host=_host,
267
+ _request_auth=_request_auth
268
+ )
269
+
270
+
271
+
272
+
273
+ @validate_call
274
+ def health_controller_healthy(
275
+ self,
276
+ _request_timeout: Union[
277
+ None,
278
+ Annotated[StrictFloat, Field(gt=0)],
279
+ Tuple[
280
+ Annotated[StrictFloat, Field(gt=0)],
281
+ Annotated[StrictFloat, Field(gt=0)]
282
+ ]
283
+ ] = None,
284
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
285
+ _content_type: Optional[StrictStr] = None,
286
+ _headers: Optional[Dict[StrictStr, Any]] = None,
287
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
288
+ ) -> None:
289
+ """health_controller_healthy
290
+
291
+
292
+ :param _request_timeout: timeout setting for this request. If one
293
+ number provided, it will be total request
294
+ timeout. It can also be a pair (tuple) of
295
+ (connection, read) timeouts.
296
+ :type _request_timeout: int, tuple(int, int), optional
297
+ :param _request_auth: set to override the auth_settings for an a single
298
+ request; this effectively ignores the
299
+ authentication in the spec for a single request.
300
+ :type _request_auth: dict, optional
301
+ :param _content_type: force content-type for the request.
302
+ :type _content_type: str, Optional
303
+ :param _headers: set to override the headers for a single
304
+ request; this effectively ignores the headers
305
+ in the spec for a single request.
306
+ :type _headers: dict, optional
307
+ :param _host_index: set to override the host_index for a single
308
+ request; this effectively ignores the host_index
309
+ in the spec for a single request.
310
+ :type _host_index: int, optional
311
+ :return: Returns the result object.
312
+ """ # noqa: E501
313
+
314
+ _param = self._health_controller_healthy_serialize(
315
+ _request_auth=_request_auth,
316
+ _content_type=_content_type,
317
+ _headers=_headers,
318
+ _host_index=_host_index
319
+ )
320
+
321
+ _response_types_map: Dict[str, Optional[str]] = {
322
+ '200': None,
323
+ }
324
+ response_data = self.api_client.call_api(
325
+ *_param,
326
+ _request_timeout=_request_timeout
327
+ )
328
+ response_data.read()
329
+ return self.api_client.response_deserialize(
330
+ response_data=response_data,
331
+ response_types_map=_response_types_map,
332
+ ).data
333
+
334
+
335
+ @validate_call
336
+ def health_controller_healthy_with_http_info(
337
+ self,
338
+ _request_timeout: Union[
339
+ None,
340
+ Annotated[StrictFloat, Field(gt=0)],
341
+ Tuple[
342
+ Annotated[StrictFloat, Field(gt=0)],
343
+ Annotated[StrictFloat, Field(gt=0)]
344
+ ]
345
+ ] = None,
346
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
347
+ _content_type: Optional[StrictStr] = None,
348
+ _headers: Optional[Dict[StrictStr, Any]] = None,
349
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
350
+ ) -> ApiResponse[None]:
351
+ """health_controller_healthy
352
+
353
+
354
+ :param _request_timeout: timeout setting for this request. If one
355
+ number provided, it will be total request
356
+ timeout. It can also be a pair (tuple) of
357
+ (connection, read) timeouts.
358
+ :type _request_timeout: int, tuple(int, int), optional
359
+ :param _request_auth: set to override the auth_settings for an a single
360
+ request; this effectively ignores the
361
+ authentication in the spec for a single request.
362
+ :type _request_auth: dict, optional
363
+ :param _content_type: force content-type for the request.
364
+ :type _content_type: str, Optional
365
+ :param _headers: set to override the headers for a single
366
+ request; this effectively ignores the headers
367
+ in the spec for a single request.
368
+ :type _headers: dict, optional
369
+ :param _host_index: set to override the host_index for a single
370
+ request; this effectively ignores the host_index
371
+ in the spec for a single request.
372
+ :type _host_index: int, optional
373
+ :return: Returns the result object.
374
+ """ # noqa: E501
375
+
376
+ _param = self._health_controller_healthy_serialize(
377
+ _request_auth=_request_auth,
378
+ _content_type=_content_type,
379
+ _headers=_headers,
380
+ _host_index=_host_index
381
+ )
382
+
383
+ _response_types_map: Dict[str, Optional[str]] = {
384
+ '200': None,
385
+ }
386
+ response_data = self.api_client.call_api(
387
+ *_param,
388
+ _request_timeout=_request_timeout
389
+ )
390
+ response_data.read()
391
+ return self.api_client.response_deserialize(
392
+ response_data=response_data,
393
+ response_types_map=_response_types_map,
394
+ )
395
+
396
+
397
+ @validate_call
398
+ def health_controller_healthy_without_preload_content(
399
+ self,
400
+ _request_timeout: Union[
401
+ None,
402
+ Annotated[StrictFloat, Field(gt=0)],
403
+ Tuple[
404
+ Annotated[StrictFloat, Field(gt=0)],
405
+ Annotated[StrictFloat, Field(gt=0)]
406
+ ]
407
+ ] = None,
408
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
409
+ _content_type: Optional[StrictStr] = None,
410
+ _headers: Optional[Dict[StrictStr, Any]] = None,
411
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
412
+ ) -> RESTResponseType:
413
+ """health_controller_healthy
414
+
415
+
416
+ :param _request_timeout: timeout setting for this request. If one
417
+ number provided, it will be total request
418
+ timeout. It can also be a pair (tuple) of
419
+ (connection, read) timeouts.
420
+ :type _request_timeout: int, tuple(int, int), optional
421
+ :param _request_auth: set to override the auth_settings for an a single
422
+ request; this effectively ignores the
423
+ authentication in the spec for a single request.
424
+ :type _request_auth: dict, optional
425
+ :param _content_type: force content-type for the request.
426
+ :type _content_type: str, Optional
427
+ :param _headers: set to override the headers for a single
428
+ request; this effectively ignores the headers
429
+ in the spec for a single request.
430
+ :type _headers: dict, optional
431
+ :param _host_index: set to override the host_index for a single
432
+ request; this effectively ignores the host_index
433
+ in the spec for a single request.
434
+ :type _host_index: int, optional
435
+ :return: Returns the result object.
436
+ """ # noqa: E501
437
+
438
+ _param = self._health_controller_healthy_serialize(
439
+ _request_auth=_request_auth,
440
+ _content_type=_content_type,
441
+ _headers=_headers,
442
+ _host_index=_host_index
443
+ )
444
+
445
+ _response_types_map: Dict[str, Optional[str]] = {
446
+ '200': None,
447
+ }
448
+ response_data = self.api_client.call_api(
449
+ *_param,
450
+ _request_timeout=_request_timeout
451
+ )
452
+ return response_data.response
453
+
454
+
455
+ def _health_controller_healthy_serialize(
456
+ self,
457
+ _request_auth,
458
+ _content_type,
459
+ _headers,
460
+ _host_index,
461
+ ) -> RequestSerialized:
462
+
463
+ _host = None
464
+
465
+ _collection_formats: Dict[str, str] = {
466
+ }
467
+
468
+ _path_params: Dict[str, str] = {}
469
+ _query_params: List[Tuple[str, str]] = []
470
+ _header_params: Dict[str, Optional[str]] = _headers or {}
471
+ _form_params: List[Tuple[str, str]] = []
472
+ _files: Dict[
473
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
474
+ ] = {}
475
+ _body_params: Optional[bytes] = None
476
+
477
+ # process the path parameters
478
+ # process the query parameters
479
+ # process the header parameters
480
+ # process the form parameters
481
+ # process the body parameter
482
+
483
+
484
+
485
+
486
+ # authentication setting
487
+ _auth_settings: List[str] = [
488
+ ]
489
+
490
+ return self.api_client.param_serialize(
491
+ method='GET',
492
+ resource_path='/health',
493
+ path_params=_path_params,
494
+ query_params=_query_params,
495
+ header_params=_header_params,
496
+ body=_body_params,
497
+ post_params=_form_params,
498
+ files=_files,
499
+ auth_settings=_auth_settings,
500
+ collection_formats=_collection_formats,
501
+ _host=_host,
502
+ _request_auth=_request_auth
503
+ )
504
+
505
+