terra-scientific-pipelines-service-api-client 0.1.14__py3-none-any.whl → 0.1.16__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.
- teaspoons_client/__init__.py +2 -1
- teaspoons_client/api/admin_api.py +33 -3
- teaspoons_client/api/pipelines_api.py +31 -1
- teaspoons_client/api_client.py +1 -1
- teaspoons_client/configuration.py +1 -1
- teaspoons_client/models/__init__.py +1 -0
- teaspoons_client/models/admin_pipeline.py +5 -3
- teaspoons_client/models/get_pipeline_details_request_body.py +87 -0
- teaspoons_client/models/pipeline.py +4 -2
- teaspoons_client/models/pipeline_with_details.py +4 -2
- teaspoons_client/models/prepare_pipeline_run_request_body.py +2 -2
- {terra_scientific_pipelines_service_api_client-0.1.14.dist-info → terra_scientific_pipelines_service_api_client-0.1.16.dist-info}/METADATA +1 -1
- {terra_scientific_pipelines_service_api_client-0.1.14.dist-info → terra_scientific_pipelines_service_api_client-0.1.16.dist-info}/RECORD +15 -14
- {terra_scientific_pipelines_service_api_client-0.1.14.dist-info → terra_scientific_pipelines_service_api_client-0.1.16.dist-info}/WHEEL +0 -0
- {terra_scientific_pipelines_service_api_client-0.1.14.dist-info → terra_scientific_pipelines_service_api_client-0.1.16.dist-info}/top_level.txt +0 -0
teaspoons_client/__init__.py
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "0.1.
|
|
17
|
+
__version__ = "0.1.16"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from teaspoons_client.api.admin_api import AdminApi
|
|
@@ -41,6 +41,7 @@ from teaspoons_client.models.admin_quota import AdminQuota
|
|
|
41
41
|
from teaspoons_client.models.async_pipeline_run_response import AsyncPipelineRunResponse
|
|
42
42
|
from teaspoons_client.models.error_report import ErrorReport
|
|
43
43
|
from teaspoons_client.models.get_jobs_response import GetJobsResponse
|
|
44
|
+
from teaspoons_client.models.get_pipeline_details_request_body import GetPipelineDetailsRequestBody
|
|
44
45
|
from teaspoons_client.models.get_pipeline_runs_response import GetPipelineRunsResponse
|
|
45
46
|
from teaspoons_client.models.get_pipelines_result import GetPipelinesResult
|
|
46
47
|
from teaspoons_client.models.job_control import JobControl
|
|
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictStr
|
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
21
|
from teaspoons_client.models.admin_pipeline import AdminPipeline
|
|
22
22
|
from teaspoons_client.models.admin_quota import AdminQuota
|
|
@@ -45,6 +45,7 @@ class AdminApi:
|
|
|
45
45
|
def get_pipeline(
|
|
46
46
|
self,
|
|
47
47
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
48
|
+
pipeline_version: Annotated[StrictInt, Field(description="The integer version of the pipeline.")],
|
|
48
49
|
_request_timeout: Union[
|
|
49
50
|
None,
|
|
50
51
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -63,6 +64,8 @@ class AdminApi:
|
|
|
63
64
|
|
|
64
65
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
65
66
|
:type pipeline_name: str
|
|
67
|
+
:param pipeline_version: The integer version of the pipeline. (required)
|
|
68
|
+
:type pipeline_version: int
|
|
66
69
|
:param _request_timeout: timeout setting for this request. If one
|
|
67
70
|
number provided, it will be total request
|
|
68
71
|
timeout. It can also be a pair (tuple) of
|
|
@@ -87,6 +90,7 @@ class AdminApi:
|
|
|
87
90
|
|
|
88
91
|
_param = self._get_pipeline_serialize(
|
|
89
92
|
pipeline_name=pipeline_name,
|
|
93
|
+
pipeline_version=pipeline_version,
|
|
90
94
|
_request_auth=_request_auth,
|
|
91
95
|
_content_type=_content_type,
|
|
92
96
|
_headers=_headers,
|
|
@@ -114,6 +118,7 @@ class AdminApi:
|
|
|
114
118
|
def get_pipeline_with_http_info(
|
|
115
119
|
self,
|
|
116
120
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
121
|
+
pipeline_version: Annotated[StrictInt, Field(description="The integer version of the pipeline.")],
|
|
117
122
|
_request_timeout: Union[
|
|
118
123
|
None,
|
|
119
124
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -132,6 +137,8 @@ class AdminApi:
|
|
|
132
137
|
|
|
133
138
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
134
139
|
:type pipeline_name: str
|
|
140
|
+
:param pipeline_version: The integer version of the pipeline. (required)
|
|
141
|
+
:type pipeline_version: int
|
|
135
142
|
:param _request_timeout: timeout setting for this request. If one
|
|
136
143
|
number provided, it will be total request
|
|
137
144
|
timeout. It can also be a pair (tuple) of
|
|
@@ -156,6 +163,7 @@ class AdminApi:
|
|
|
156
163
|
|
|
157
164
|
_param = self._get_pipeline_serialize(
|
|
158
165
|
pipeline_name=pipeline_name,
|
|
166
|
+
pipeline_version=pipeline_version,
|
|
159
167
|
_request_auth=_request_auth,
|
|
160
168
|
_content_type=_content_type,
|
|
161
169
|
_headers=_headers,
|
|
@@ -183,6 +191,7 @@ class AdminApi:
|
|
|
183
191
|
def get_pipeline_without_preload_content(
|
|
184
192
|
self,
|
|
185
193
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
194
|
+
pipeline_version: Annotated[StrictInt, Field(description="The integer version of the pipeline.")],
|
|
186
195
|
_request_timeout: Union[
|
|
187
196
|
None,
|
|
188
197
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -201,6 +210,8 @@ class AdminApi:
|
|
|
201
210
|
|
|
202
211
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
203
212
|
:type pipeline_name: str
|
|
213
|
+
:param pipeline_version: The integer version of the pipeline. (required)
|
|
214
|
+
:type pipeline_version: int
|
|
204
215
|
:param _request_timeout: timeout setting for this request. If one
|
|
205
216
|
number provided, it will be total request
|
|
206
217
|
timeout. It can also be a pair (tuple) of
|
|
@@ -225,6 +236,7 @@ class AdminApi:
|
|
|
225
236
|
|
|
226
237
|
_param = self._get_pipeline_serialize(
|
|
227
238
|
pipeline_name=pipeline_name,
|
|
239
|
+
pipeline_version=pipeline_version,
|
|
228
240
|
_request_auth=_request_auth,
|
|
229
241
|
_content_type=_content_type,
|
|
230
242
|
_headers=_headers,
|
|
@@ -247,6 +259,7 @@ class AdminApi:
|
|
|
247
259
|
def _get_pipeline_serialize(
|
|
248
260
|
self,
|
|
249
261
|
pipeline_name,
|
|
262
|
+
pipeline_version,
|
|
250
263
|
_request_auth,
|
|
251
264
|
_content_type,
|
|
252
265
|
_headers,
|
|
@@ -270,6 +283,8 @@ class AdminApi:
|
|
|
270
283
|
# process the path parameters
|
|
271
284
|
if pipeline_name is not None:
|
|
272
285
|
_path_params['pipelineName'] = pipeline_name
|
|
286
|
+
if pipeline_version is not None:
|
|
287
|
+
_path_params['pipelineVersion'] = pipeline_version
|
|
273
288
|
# process the query parameters
|
|
274
289
|
# process the header parameters
|
|
275
290
|
# process the form parameters
|
|
@@ -293,7 +308,7 @@ class AdminApi:
|
|
|
293
308
|
|
|
294
309
|
return self.api_client.param_serialize(
|
|
295
310
|
method='GET',
|
|
296
|
-
resource_path='/api/admin/v1/pipelines/{pipelineName}',
|
|
311
|
+
resource_path='/api/admin/v1/pipelines/{pipelineName}/{pipelineVersion}',
|
|
297
312
|
path_params=_path_params,
|
|
298
313
|
query_params=_query_params,
|
|
299
314
|
header_params=_header_params,
|
|
@@ -596,6 +611,7 @@ class AdminApi:
|
|
|
596
611
|
def update_pipeline(
|
|
597
612
|
self,
|
|
598
613
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
614
|
+
pipeline_version: Annotated[StrictInt, Field(description="The integer version of the pipeline.")],
|
|
599
615
|
update_pipeline_request_body: UpdatePipelineRequestBody,
|
|
600
616
|
_request_timeout: Union[
|
|
601
617
|
None,
|
|
@@ -615,6 +631,8 @@ class AdminApi:
|
|
|
615
631
|
|
|
616
632
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
617
633
|
:type pipeline_name: str
|
|
634
|
+
:param pipeline_version: The integer version of the pipeline. (required)
|
|
635
|
+
:type pipeline_version: int
|
|
618
636
|
:param update_pipeline_request_body: (required)
|
|
619
637
|
:type update_pipeline_request_body: UpdatePipelineRequestBody
|
|
620
638
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -641,6 +659,7 @@ class AdminApi:
|
|
|
641
659
|
|
|
642
660
|
_param = self._update_pipeline_serialize(
|
|
643
661
|
pipeline_name=pipeline_name,
|
|
662
|
+
pipeline_version=pipeline_version,
|
|
644
663
|
update_pipeline_request_body=update_pipeline_request_body,
|
|
645
664
|
_request_auth=_request_auth,
|
|
646
665
|
_content_type=_content_type,
|
|
@@ -669,6 +688,7 @@ class AdminApi:
|
|
|
669
688
|
def update_pipeline_with_http_info(
|
|
670
689
|
self,
|
|
671
690
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
691
|
+
pipeline_version: Annotated[StrictInt, Field(description="The integer version of the pipeline.")],
|
|
672
692
|
update_pipeline_request_body: UpdatePipelineRequestBody,
|
|
673
693
|
_request_timeout: Union[
|
|
674
694
|
None,
|
|
@@ -688,6 +708,8 @@ class AdminApi:
|
|
|
688
708
|
|
|
689
709
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
690
710
|
:type pipeline_name: str
|
|
711
|
+
:param pipeline_version: The integer version of the pipeline. (required)
|
|
712
|
+
:type pipeline_version: int
|
|
691
713
|
:param update_pipeline_request_body: (required)
|
|
692
714
|
:type update_pipeline_request_body: UpdatePipelineRequestBody
|
|
693
715
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -714,6 +736,7 @@ class AdminApi:
|
|
|
714
736
|
|
|
715
737
|
_param = self._update_pipeline_serialize(
|
|
716
738
|
pipeline_name=pipeline_name,
|
|
739
|
+
pipeline_version=pipeline_version,
|
|
717
740
|
update_pipeline_request_body=update_pipeline_request_body,
|
|
718
741
|
_request_auth=_request_auth,
|
|
719
742
|
_content_type=_content_type,
|
|
@@ -742,6 +765,7 @@ class AdminApi:
|
|
|
742
765
|
def update_pipeline_without_preload_content(
|
|
743
766
|
self,
|
|
744
767
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
768
|
+
pipeline_version: Annotated[StrictInt, Field(description="The integer version of the pipeline.")],
|
|
745
769
|
update_pipeline_request_body: UpdatePipelineRequestBody,
|
|
746
770
|
_request_timeout: Union[
|
|
747
771
|
None,
|
|
@@ -761,6 +785,8 @@ class AdminApi:
|
|
|
761
785
|
|
|
762
786
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
763
787
|
:type pipeline_name: str
|
|
788
|
+
:param pipeline_version: The integer version of the pipeline. (required)
|
|
789
|
+
:type pipeline_version: int
|
|
764
790
|
:param update_pipeline_request_body: (required)
|
|
765
791
|
:type update_pipeline_request_body: UpdatePipelineRequestBody
|
|
766
792
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -787,6 +813,7 @@ class AdminApi:
|
|
|
787
813
|
|
|
788
814
|
_param = self._update_pipeline_serialize(
|
|
789
815
|
pipeline_name=pipeline_name,
|
|
816
|
+
pipeline_version=pipeline_version,
|
|
790
817
|
update_pipeline_request_body=update_pipeline_request_body,
|
|
791
818
|
_request_auth=_request_auth,
|
|
792
819
|
_content_type=_content_type,
|
|
@@ -810,6 +837,7 @@ class AdminApi:
|
|
|
810
837
|
def _update_pipeline_serialize(
|
|
811
838
|
self,
|
|
812
839
|
pipeline_name,
|
|
840
|
+
pipeline_version,
|
|
813
841
|
update_pipeline_request_body,
|
|
814
842
|
_request_auth,
|
|
815
843
|
_content_type,
|
|
@@ -834,6 +862,8 @@ class AdminApi:
|
|
|
834
862
|
# process the path parameters
|
|
835
863
|
if pipeline_name is not None:
|
|
836
864
|
_path_params['pipelineName'] = pipeline_name
|
|
865
|
+
if pipeline_version is not None:
|
|
866
|
+
_path_params['pipelineVersion'] = pipeline_version
|
|
837
867
|
# process the query parameters
|
|
838
868
|
# process the header parameters
|
|
839
869
|
# process the form parameters
|
|
@@ -872,7 +902,7 @@ class AdminApi:
|
|
|
872
902
|
|
|
873
903
|
return self.api_client.param_serialize(
|
|
874
904
|
method='PATCH',
|
|
875
|
-
resource_path='/api/admin/v1/pipelines/{pipelineName}',
|
|
905
|
+
resource_path='/api/admin/v1/pipelines/{pipelineName}/{pipelineVersion}',
|
|
876
906
|
path_params=_path_params,
|
|
877
907
|
query_params=_query_params,
|
|
878
908
|
header_params=_header_params,
|
|
@@ -17,7 +17,9 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
20
21
|
from typing_extensions import Annotated
|
|
22
|
+
from teaspoons_client.models.get_pipeline_details_request_body import GetPipelineDetailsRequestBody
|
|
21
23
|
from teaspoons_client.models.get_pipelines_result import GetPipelinesResult
|
|
22
24
|
from teaspoons_client.models.pipeline_with_details import PipelineWithDetails
|
|
23
25
|
|
|
@@ -43,6 +45,7 @@ class PipelinesApi:
|
|
|
43
45
|
def get_pipeline_details(
|
|
44
46
|
self,
|
|
45
47
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
48
|
+
get_pipeline_details_request_body: Optional[GetPipelineDetailsRequestBody] = None,
|
|
46
49
|
_request_timeout: Union[
|
|
47
50
|
None,
|
|
48
51
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -61,6 +64,8 @@ class PipelinesApi:
|
|
|
61
64
|
|
|
62
65
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
63
66
|
:type pipeline_name: str
|
|
67
|
+
:param get_pipeline_details_request_body:
|
|
68
|
+
:type get_pipeline_details_request_body: GetPipelineDetailsRequestBody
|
|
64
69
|
:param _request_timeout: timeout setting for this request. If one
|
|
65
70
|
number provided, it will be total request
|
|
66
71
|
timeout. It can also be a pair (tuple) of
|
|
@@ -85,6 +90,7 @@ class PipelinesApi:
|
|
|
85
90
|
|
|
86
91
|
_param = self._get_pipeline_details_serialize(
|
|
87
92
|
pipeline_name=pipeline_name,
|
|
93
|
+
get_pipeline_details_request_body=get_pipeline_details_request_body,
|
|
88
94
|
_request_auth=_request_auth,
|
|
89
95
|
_content_type=_content_type,
|
|
90
96
|
_headers=_headers,
|
|
@@ -111,6 +117,7 @@ class PipelinesApi:
|
|
|
111
117
|
def get_pipeline_details_with_http_info(
|
|
112
118
|
self,
|
|
113
119
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
120
|
+
get_pipeline_details_request_body: Optional[GetPipelineDetailsRequestBody] = None,
|
|
114
121
|
_request_timeout: Union[
|
|
115
122
|
None,
|
|
116
123
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -129,6 +136,8 @@ class PipelinesApi:
|
|
|
129
136
|
|
|
130
137
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
131
138
|
:type pipeline_name: str
|
|
139
|
+
:param get_pipeline_details_request_body:
|
|
140
|
+
:type get_pipeline_details_request_body: GetPipelineDetailsRequestBody
|
|
132
141
|
:param _request_timeout: timeout setting for this request. If one
|
|
133
142
|
number provided, it will be total request
|
|
134
143
|
timeout. It can also be a pair (tuple) of
|
|
@@ -153,6 +162,7 @@ class PipelinesApi:
|
|
|
153
162
|
|
|
154
163
|
_param = self._get_pipeline_details_serialize(
|
|
155
164
|
pipeline_name=pipeline_name,
|
|
165
|
+
get_pipeline_details_request_body=get_pipeline_details_request_body,
|
|
156
166
|
_request_auth=_request_auth,
|
|
157
167
|
_content_type=_content_type,
|
|
158
168
|
_headers=_headers,
|
|
@@ -179,6 +189,7 @@ class PipelinesApi:
|
|
|
179
189
|
def get_pipeline_details_without_preload_content(
|
|
180
190
|
self,
|
|
181
191
|
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
192
|
+
get_pipeline_details_request_body: Optional[GetPipelineDetailsRequestBody] = None,
|
|
182
193
|
_request_timeout: Union[
|
|
183
194
|
None,
|
|
184
195
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -197,6 +208,8 @@ class PipelinesApi:
|
|
|
197
208
|
|
|
198
209
|
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
199
210
|
:type pipeline_name: str
|
|
211
|
+
:param get_pipeline_details_request_body:
|
|
212
|
+
:type get_pipeline_details_request_body: GetPipelineDetailsRequestBody
|
|
200
213
|
:param _request_timeout: timeout setting for this request. If one
|
|
201
214
|
number provided, it will be total request
|
|
202
215
|
timeout. It can also be a pair (tuple) of
|
|
@@ -221,6 +234,7 @@ class PipelinesApi:
|
|
|
221
234
|
|
|
222
235
|
_param = self._get_pipeline_details_serialize(
|
|
223
236
|
pipeline_name=pipeline_name,
|
|
237
|
+
get_pipeline_details_request_body=get_pipeline_details_request_body,
|
|
224
238
|
_request_auth=_request_auth,
|
|
225
239
|
_content_type=_content_type,
|
|
226
240
|
_headers=_headers,
|
|
@@ -242,6 +256,7 @@ class PipelinesApi:
|
|
|
242
256
|
def _get_pipeline_details_serialize(
|
|
243
257
|
self,
|
|
244
258
|
pipeline_name,
|
|
259
|
+
get_pipeline_details_request_body,
|
|
245
260
|
_request_auth,
|
|
246
261
|
_content_type,
|
|
247
262
|
_headers,
|
|
@@ -269,6 +284,8 @@ class PipelinesApi:
|
|
|
269
284
|
# process the header parameters
|
|
270
285
|
# process the form parameters
|
|
271
286
|
# process the body parameter
|
|
287
|
+
if get_pipeline_details_request_body is not None:
|
|
288
|
+
_body_params = get_pipeline_details_request_body
|
|
272
289
|
|
|
273
290
|
|
|
274
291
|
# set the HTTP header `Accept`
|
|
@@ -279,6 +296,19 @@ class PipelinesApi:
|
|
|
279
296
|
]
|
|
280
297
|
)
|
|
281
298
|
|
|
299
|
+
# set the HTTP header `Content-Type`
|
|
300
|
+
if _content_type:
|
|
301
|
+
_header_params['Content-Type'] = _content_type
|
|
302
|
+
else:
|
|
303
|
+
_default_content_type = (
|
|
304
|
+
self.api_client.select_header_content_type(
|
|
305
|
+
[
|
|
306
|
+
'application/json'
|
|
307
|
+
]
|
|
308
|
+
)
|
|
309
|
+
)
|
|
310
|
+
if _default_content_type is not None:
|
|
311
|
+
_header_params['Content-Type'] = _default_content_type
|
|
282
312
|
|
|
283
313
|
# authentication setting
|
|
284
314
|
_auth_settings: List[str] = [
|
|
@@ -287,7 +317,7 @@ class PipelinesApi:
|
|
|
287
317
|
]
|
|
288
318
|
|
|
289
319
|
return self.api_client.param_serialize(
|
|
290
|
-
method='
|
|
320
|
+
method='POST',
|
|
291
321
|
resource_path='/api/pipelines/v1/{pipelineName}',
|
|
292
322
|
path_params=_path_params,
|
|
293
323
|
query_params=_query_params,
|
teaspoons_client/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'terra-scientific-pipelines-service-api-client/0.1.
|
|
93
|
+
self.user_agent = 'terra-scientific-pipelines-service-api-client/0.1.16/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -399,7 +399,7 @@ class Configuration:
|
|
|
399
399
|
"OS: {env}\n"\
|
|
400
400
|
"Python Version: {pyversion}\n"\
|
|
401
401
|
"Version of the API: 1.0.0\n"\
|
|
402
|
-
"SDK Package Version: 0.1.
|
|
402
|
+
"SDK Package Version: 0.1.16".\
|
|
403
403
|
format(env=sys.platform, pyversion=sys.version)
|
|
404
404
|
|
|
405
405
|
def get_host_settings(self):
|
|
@@ -19,6 +19,7 @@ from teaspoons_client.models.admin_quota import AdminQuota
|
|
|
19
19
|
from teaspoons_client.models.async_pipeline_run_response import AsyncPipelineRunResponse
|
|
20
20
|
from teaspoons_client.models.error_report import ErrorReport
|
|
21
21
|
from teaspoons_client.models.get_jobs_response import GetJobsResponse
|
|
22
|
+
from teaspoons_client.models.get_pipeline_details_request_body import GetPipelineDetailsRequestBody
|
|
22
23
|
from teaspoons_client.models.get_pipeline_runs_response import GetPipelineRunsResponse
|
|
23
24
|
from teaspoons_client.models.get_pipelines_result import GetPipelinesResult
|
|
24
25
|
from teaspoons_client.models.job_control import JobControl
|
|
@@ -17,16 +17,17 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
25
|
class AdminPipeline(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
Object containing the pipeline identifier, display name, description, and control workspace information for a Pipeline.
|
|
27
|
+
Object containing the pipeline identifier, version, display name, description, and control workspace information for a Pipeline.
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
pipeline_name: StrictStr = Field(description="The identifier string for the Pipeline. ", alias="pipelineName")
|
|
30
|
+
pipeline_version: StrictInt = Field(description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
|
|
30
31
|
display_name: StrictStr = Field(description="The display name for the Pipeline. ", alias="displayName")
|
|
31
32
|
description: StrictStr = Field(description="The description for the Pipeline. ")
|
|
32
33
|
wdl_method_version: StrictStr = Field(description="An identifier string for the Pipeline Wdl Version i.e. github repo tag/branch/release ", alias="wdlMethodVersion")
|
|
@@ -34,7 +35,7 @@ class AdminPipeline(BaseModel):
|
|
|
34
35
|
workspace_name: StrictStr = Field(description="The name of the workspace to run the pipeline in. ", alias="workspaceName")
|
|
35
36
|
workspace_storage_container_name: StrictStr = Field(description="The name of the workspace storage container (e.g. google bucket name, without gs:// prefix). ", alias="workspaceStorageContainerName")
|
|
36
37
|
workspace_google_project: StrictStr = Field(description="The google project of the workspace to run the pipeline in. ", alias="workspaceGoogleProject")
|
|
37
|
-
__properties: ClassVar[List[str]] = ["pipelineName", "displayName", "description", "wdlMethodVersion", "workspaceBillingProject", "workspaceName", "workspaceStorageContainerName", "workspaceGoogleProject"]
|
|
38
|
+
__properties: ClassVar[List[str]] = ["pipelineName", "pipelineVersion", "displayName", "description", "wdlMethodVersion", "workspaceBillingProject", "workspaceName", "workspaceStorageContainerName", "workspaceGoogleProject"]
|
|
38
39
|
|
|
39
40
|
model_config = ConfigDict(
|
|
40
41
|
populate_by_name=True,
|
|
@@ -88,6 +89,7 @@ class AdminPipeline(BaseModel):
|
|
|
88
89
|
|
|
89
90
|
_obj = cls.model_validate({
|
|
90
91
|
"pipelineName": obj.get("pipelineName"),
|
|
92
|
+
"pipelineVersion": obj.get("pipelineVersion"),
|
|
91
93
|
"displayName": obj.get("displayName"),
|
|
92
94
|
"description": obj.get("description"),
|
|
93
95
|
"wdlMethodVersion": obj.get("wdlMethodVersion"),
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
|
|
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
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class GetPipelineDetailsRequestBody(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
Object containing the user-provided information defining a pipeline details request
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
pipeline_version: Optional[StrictInt] = Field(default=None, description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
|
|
30
|
+
__properties: ClassVar[List[str]] = ["pipelineVersion"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of GetPipelineDetailsRequestBody from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of GetPipelineDetailsRequestBody from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"pipelineVersion": obj.get("pipelineVersion")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -28,8 +28,9 @@ class Pipeline(BaseModel):
|
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
pipeline_name: StrictStr = Field(description="The identifier string for the Pipeline. ", alias="pipelineName")
|
|
30
30
|
display_name: StrictStr = Field(description="The display name for the Pipeline. ", alias="displayName")
|
|
31
|
+
pipeline_version: StrictInt = Field(description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
|
|
31
32
|
description: StrictStr = Field(description="The description for the Pipeline. ")
|
|
32
|
-
__properties: ClassVar[List[str]] = ["pipelineName", "displayName", "description"]
|
|
33
|
+
__properties: ClassVar[List[str]] = ["pipelineName", "displayName", "pipelineVersion", "description"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
36
|
populate_by_name=True,
|
|
@@ -84,6 +85,7 @@ class Pipeline(BaseModel):
|
|
|
84
85
|
_obj = cls.model_validate({
|
|
85
86
|
"pipelineName": obj.get("pipelineName"),
|
|
86
87
|
"displayName": obj.get("displayName"),
|
|
88
|
+
"pipelineVersion": obj.get("pipelineVersion"),
|
|
87
89
|
"description": obj.get("description")
|
|
88
90
|
})
|
|
89
91
|
return _obj
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from teaspoons_client.models.pipeline_user_provided_input_definition import PipelineUserProvidedInputDefinition
|
|
23
23
|
from typing import Optional, Set
|
|
@@ -29,10 +29,11 @@ class PipelineWithDetails(BaseModel):
|
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
pipeline_name: StrictStr = Field(description="The identifier string for the Pipeline. ", alias="pipelineName")
|
|
31
31
|
display_name: StrictStr = Field(description="The display name for the Pipeline. ", alias="displayName")
|
|
32
|
+
pipeline_version: StrictInt = Field(description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
|
|
32
33
|
description: StrictStr = Field(description="The description for the Pipeline. ")
|
|
33
34
|
type: StrictStr = Field(description="The general type of the Pipeline. ")
|
|
34
35
|
inputs: List[PipelineUserProvidedInputDefinition] = Field(description="A list of user-provided input fields and specifications for the Pipeline. ")
|
|
35
|
-
__properties: ClassVar[List[str]] = ["pipelineName", "displayName", "description", "type", "inputs"]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["pipelineName", "displayName", "pipelineVersion", "description", "type", "inputs"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
39
|
populate_by_name=True,
|
|
@@ -94,6 +95,7 @@ class PipelineWithDetails(BaseModel):
|
|
|
94
95
|
_obj = cls.model_validate({
|
|
95
96
|
"pipelineName": obj.get("pipelineName"),
|
|
96
97
|
"displayName": obj.get("displayName"),
|
|
98
|
+
"pipelineVersion": obj.get("pipelineVersion"),
|
|
97
99
|
"description": obj.get("description"),
|
|
98
100
|
"type": obj.get("type"),
|
|
99
101
|
"inputs": [PipelineUserProvidedInputDefinition.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ class PreparePipelineRunRequestBody(BaseModel):
|
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
job_id: StrictStr = Field(description="Required unique identifier (UUID) for a job. ", alias="jobId")
|
|
30
30
|
pipeline_name: StrictStr = Field(description="The identifier string for the Pipeline. ", alias="pipelineName")
|
|
31
|
-
pipeline_version: StrictInt = Field(description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
|
|
31
|
+
pipeline_version: Optional[StrictInt] = Field(default=None, description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
|
|
32
32
|
pipeline_inputs: Dict[str, Any] = Field(description="A map(string:object) of user-provided inputs for the Pipeline. ", alias="pipelineInputs")
|
|
33
33
|
__properties: ClassVar[List[str]] = ["jobId", "pipelineName", "pipelineVersion", "pipelineInputs"]
|
|
34
34
|
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
teaspoons_client/__init__.py,sha256=
|
|
2
|
-
teaspoons_client/api_client.py,sha256=
|
|
1
|
+
teaspoons_client/__init__.py,sha256=3Key7tzOR-tzjRt3IGX-jvUn346bCKRsMftL_0ZlckY,3227
|
|
2
|
+
teaspoons_client/api_client.py,sha256=NmpRQ-MhZKVl1XGDXpDRaUoq-ehJfClqO8ZYiGboVPE,27535
|
|
3
3
|
teaspoons_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
teaspoons_client/configuration.py,sha256=
|
|
4
|
+
teaspoons_client/configuration.py,sha256=CXyveqWBYBtddMP19Nfn4UlYen86G0Bs_td4dfucIu8,15585
|
|
5
5
|
teaspoons_client/exceptions.py,sha256=54himL4zduna12UfdUqGb8LEVunPChzEvjvPw0DjWjk,5999
|
|
6
6
|
teaspoons_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
teaspoons_client/rest.py,sha256=wRFTSvE7v-UjFP1_9oozGWnt8ERYW-PReLkFJZHiWYI,9441
|
|
8
8
|
teaspoons_client/api/__init__.py,sha256=j4nfxEv5WV8rGkUs8vl0-ZGilqzKUPZfFV_FGq0cg_c,385
|
|
9
|
-
teaspoons_client/api/admin_api.py,sha256=
|
|
9
|
+
teaspoons_client/api/admin_api.py,sha256=pt0mjcEAAnAqtgJpOuKa8LwYWX9I_l2Iv6Un3Y2goIE,50794
|
|
10
10
|
teaspoons_client/api/jobs_api.py,sha256=mjRoBLpaluOW3lEaUT9mJNOs2HGTWG1kaVBZ3Al9r4I,23054
|
|
11
11
|
teaspoons_client/api/pipeline_runs_api.py,sha256=rCtcJWw5Jen1uJva-ZltgVFhvMzY0wzfCVNRXc3zCS8,46448
|
|
12
|
-
teaspoons_client/api/pipelines_api.py,sha256=
|
|
12
|
+
teaspoons_client/api/pipelines_api.py,sha256=9PZ_qSMnZK4bbO-oCxLub73KJ7kLxanjkMtjXMjUOGA,22868
|
|
13
13
|
teaspoons_client/api/public_api.py,sha256=cYrfhy7epadJPWvXO7xvjhyNRH72bKVXtUmjefezbl0,19743
|
|
14
14
|
teaspoons_client/api/quotas_api.py,sha256=fU2ZE0B-5ELvkNdXHTWCw0asfLDNK4WetlKVvpWETmI,11862
|
|
15
|
-
teaspoons_client/models/__init__.py,sha256=
|
|
16
|
-
teaspoons_client/models/admin_pipeline.py,sha256=
|
|
15
|
+
teaspoons_client/models/__init__.py,sha256=RkuzKPGkKpqd0tn-M5JMnedpVKv2cNnkFt36Dd9mfug,2327
|
|
16
|
+
teaspoons_client/models/admin_pipeline.py,sha256=MRyFpoOJrd0UyAOTigeg2qOBzvdtKoGxAbHTVgsk2eA,4576
|
|
17
17
|
teaspoons_client/models/admin_quota.py,sha256=X0Pll_9JWs1VmmElic8m7-pN6PCIRnxc1nyYyWjlK0w,3245
|
|
18
18
|
teaspoons_client/models/async_pipeline_run_response.py,sha256=c_Nj3tC41y2G0pqvVwzKn_bVE6mgA2h_Aisp6315zSE,3899
|
|
19
19
|
teaspoons_client/models/error_report.py,sha256=3IsEF07EPxdcMSPCMW4yE1pXydE8EHmlIBYVScvXyXs,2714
|
|
20
20
|
teaspoons_client/models/get_jobs_response.py,sha256=Vdz0yG4q4TjbkLuyI13xaabR6Qn_nF3LNxn04qjRPl8,3388
|
|
21
|
+
teaspoons_client/models/get_pipeline_details_request_body.py,sha256=WzO6Ws8ypES4thkALyO0wGiOCwnWvidZCAcqxEfi0Zc,2797
|
|
21
22
|
teaspoons_client/models/get_pipeline_runs_response.py,sha256=xX4XMQZazwYRrFtx-PWo54JtfCYG1UhbDU9D9wyQ9Vc,3252
|
|
22
23
|
teaspoons_client/models/get_pipelines_result.py,sha256=U2UFW1tSbiShA5j9a_1Gk4SjU2eYpSIP8NGd6xdixxk,3091
|
|
23
24
|
teaspoons_client/models/job_control.py,sha256=PkTmAKmm6JXxu7EUfa02UNdBaxoZvo0v0TRsHVdRTM0,2551
|
|
24
25
|
teaspoons_client/models/job_report.py,sha256=q5ijrPgVmGqXjrTZKzEyOswUlWKsMD6v-oTFDUUdMRg,3974
|
|
25
26
|
teaspoons_client/models/job_result.py,sha256=WWZRoqmTuh5ZP9ugMENGZUx5zrzADHx9O0m2Bhh--yg,3337
|
|
26
|
-
teaspoons_client/models/pipeline.py,sha256=
|
|
27
|
+
teaspoons_client/models/pipeline.py,sha256=KiEoZb6w9MMTAr1-Scr70XBNDr7eox69g9ZLa8ORRLE,3224
|
|
27
28
|
teaspoons_client/models/pipeline_run.py,sha256=g2ZyCAa9FYFAybyGtiGZQXSgW_EBoIbykC8q6or4MTU,3622
|
|
28
29
|
teaspoons_client/models/pipeline_run_report.py,sha256=tNKVjeeIj3pAT_7tIE73znY4ddW8QsvA6q9mOoQHCaE,3404
|
|
29
30
|
teaspoons_client/models/pipeline_user_provided_input_definition.py,sha256=jEC7yUCrcMKtu01EAdRhIRBmrdCjBbhPeOef7loyick,3056
|
|
30
|
-
teaspoons_client/models/pipeline_with_details.py,sha256=
|
|
31
|
-
teaspoons_client/models/prepare_pipeline_run_request_body.py,sha256=
|
|
31
|
+
teaspoons_client/models/pipeline_with_details.py,sha256=YcihzByz3nk6z7pnPDHYSN7Qm2iuT98Yrit_b37qdao,4147
|
|
32
|
+
teaspoons_client/models/prepare_pipeline_run_request_body.py,sha256=nm7AfQQlk0eXgPvXQlyld-N_gc5BCco5bmmMxzemfCw,3365
|
|
32
33
|
teaspoons_client/models/prepare_pipeline_run_response.py,sha256=5Y-NTPjxR13brTHbCWU-1YBXERUWRsg7ShNRK1bcyJM,2948
|
|
33
34
|
teaspoons_client/models/quota_with_details.py,sha256=9f7y_SL5NQ17Jbi9PFAAMphXEc718AjQE1O3P8dRsq0,3066
|
|
34
35
|
teaspoons_client/models/start_pipeline_run_request_body.py,sha256=Et4zcC9UVnINscI4OVtmHlhe1MvPgMq0819sNqyLLOw,3167
|
|
@@ -37,7 +38,7 @@ teaspoons_client/models/system_status_systems_value.py,sha256=lKuq0aDpRne858ta4g
|
|
|
37
38
|
teaspoons_client/models/update_pipeline_request_body.py,sha256=OYjf_6SVBg00GjGzq9aftbeLJkUHikm80sqFQQSWvUQ,3257
|
|
38
39
|
teaspoons_client/models/update_quota_limit_request_body.py,sha256=sOCNcTbsdTJisAn9YxHMIWUvm_UrxV1HZ5EziIUOgIk,2731
|
|
39
40
|
teaspoons_client/models/version_properties.py,sha256=pnx1pduz4vnw-wx_sdASU_-zRqE1wf3JdNm4OLDJ2i8,2888
|
|
40
|
-
terra_scientific_pipelines_service_api_client-0.1.
|
|
41
|
-
terra_scientific_pipelines_service_api_client-0.1.
|
|
42
|
-
terra_scientific_pipelines_service_api_client-0.1.
|
|
43
|
-
terra_scientific_pipelines_service_api_client-0.1.
|
|
41
|
+
terra_scientific_pipelines_service_api_client-0.1.16.dist-info/METADATA,sha256=qe1RnEjX6l3120-jQePUwCVSPKTIsDEI-ftFRoMpBkA,589
|
|
42
|
+
terra_scientific_pipelines_service_api_client-0.1.16.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
43
|
+
terra_scientific_pipelines_service_api_client-0.1.16.dist-info/top_level.txt,sha256=DZYs7jBZ-_bWvnXrtK1TbtfhltgkuPWTRo1Ei7Uv9Jc,17
|
|
44
|
+
terra_scientific_pipelines_service_api_client-0.1.16.dist-info/RECORD,,
|
|
File without changes
|