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