terra-scientific-pipelines-service-api-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.

Potentially problematic release.


This version of terra-scientific-pipelines-service-api-client might be problematic. Click here for more details.

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