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.
- teaspoons_client/__init__.py +58 -0
- teaspoons_client/api/__init__.py +9 -0
- teaspoons_client/api/admin_api.py +599 -0
- teaspoons_client/api/jobs_api.py +588 -0
- teaspoons_client/api/pipeline_runs_api.py +1203 -0
- teaspoons_client/api/pipelines_api.py +547 -0
- teaspoons_client/api/public_api.py +528 -0
- teaspoons_client/api_client.py +788 -0
- teaspoons_client/api_response.py +21 -0
- teaspoons_client/configuration.py +465 -0
- teaspoons_client/exceptions.py +199 -0
- teaspoons_client/models/__init__.py +37 -0
- teaspoons_client/models/admin_pipeline.py +101 -0
- teaspoons_client/models/async_pipeline_run_response.py +103 -0
- teaspoons_client/models/error_report.py +91 -0
- teaspoons_client/models/get_jobs_response.py +99 -0
- teaspoons_client/models/get_pipeline_runs_response.py +97 -0
- teaspoons_client/models/get_pipelines_result.py +95 -0
- teaspoons_client/models/job_control.py +87 -0
- teaspoons_client/models/job_report.py +106 -0
- teaspoons_client/models/job_result.py +97 -0
- teaspoons_client/models/pipeline.py +91 -0
- teaspoons_client/models/pipeline_run.py +91 -0
- teaspoons_client/models/pipeline_run_report.py +93 -0
- teaspoons_client/models/pipeline_user_provided_input_definition.py +91 -0
- teaspoons_client/models/pipeline_with_details.py +103 -0
- teaspoons_client/models/prepare_pipeline_run_request_body.py +91 -0
- teaspoons_client/models/prepare_pipeline_run_response.py +89 -0
- teaspoons_client/models/start_pipeline_run_request_body.py +93 -0
- teaspoons_client/models/system_status.py +102 -0
- teaspoons_client/models/system_status_systems_value.py +89 -0
- teaspoons_client/models/update_pipeline_request_body.py +91 -0
- teaspoons_client/models/version_properties.py +93 -0
- teaspoons_client/py.typed +0 -0
- teaspoons_client/rest.py +257 -0
- terra_scientific_pipelines_service_api_client-0.0.0.dist-info/METADATA +16 -0
- terra_scientific_pipelines_service_api_client-0.0.0.dist-info/RECORD +39 -0
- terra_scientific_pipelines_service_api_client-0.0.0.dist-info/WHEEL +5 -0
- terra_scientific_pipelines_service_api_client-0.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Terra Scientific Pipelines Service
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0.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 teaspoons_client.api.admin_api import AdminApi
|
|
21
|
+
from teaspoons_client.api.jobs_api import JobsApi
|
|
22
|
+
from teaspoons_client.api.pipeline_runs_api import PipelineRunsApi
|
|
23
|
+
from teaspoons_client.api.pipelines_api import PipelinesApi
|
|
24
|
+
from teaspoons_client.api.public_api import PublicApi
|
|
25
|
+
|
|
26
|
+
# import ApiClient
|
|
27
|
+
from teaspoons_client.api_response import ApiResponse
|
|
28
|
+
from teaspoons_client.api_client import ApiClient
|
|
29
|
+
from teaspoons_client.configuration import Configuration
|
|
30
|
+
from teaspoons_client.exceptions import OpenApiException
|
|
31
|
+
from teaspoons_client.exceptions import ApiTypeError
|
|
32
|
+
from teaspoons_client.exceptions import ApiValueError
|
|
33
|
+
from teaspoons_client.exceptions import ApiKeyError
|
|
34
|
+
from teaspoons_client.exceptions import ApiAttributeError
|
|
35
|
+
from teaspoons_client.exceptions import ApiException
|
|
36
|
+
|
|
37
|
+
# import models into sdk package
|
|
38
|
+
from teaspoons_client.models.admin_pipeline import AdminPipeline
|
|
39
|
+
from teaspoons_client.models.async_pipeline_run_response import AsyncPipelineRunResponse
|
|
40
|
+
from teaspoons_client.models.error_report import ErrorReport
|
|
41
|
+
from teaspoons_client.models.get_jobs_response import GetJobsResponse
|
|
42
|
+
from teaspoons_client.models.get_pipeline_runs_response import GetPipelineRunsResponse
|
|
43
|
+
from teaspoons_client.models.get_pipelines_result import GetPipelinesResult
|
|
44
|
+
from teaspoons_client.models.job_control import JobControl
|
|
45
|
+
from teaspoons_client.models.job_report import JobReport
|
|
46
|
+
from teaspoons_client.models.job_result import JobResult
|
|
47
|
+
from teaspoons_client.models.pipeline import Pipeline
|
|
48
|
+
from teaspoons_client.models.pipeline_run import PipelineRun
|
|
49
|
+
from teaspoons_client.models.pipeline_run_report import PipelineRunReport
|
|
50
|
+
from teaspoons_client.models.pipeline_user_provided_input_definition import PipelineUserProvidedInputDefinition
|
|
51
|
+
from teaspoons_client.models.pipeline_with_details import PipelineWithDetails
|
|
52
|
+
from teaspoons_client.models.prepare_pipeline_run_request_body import PreparePipelineRunRequestBody
|
|
53
|
+
from teaspoons_client.models.prepare_pipeline_run_response import PreparePipelineRunResponse
|
|
54
|
+
from teaspoons_client.models.start_pipeline_run_request_body import StartPipelineRunRequestBody
|
|
55
|
+
from teaspoons_client.models.system_status import SystemStatus
|
|
56
|
+
from teaspoons_client.models.system_status_systems_value import SystemStatusSystemsValue
|
|
57
|
+
from teaspoons_client.models.update_pipeline_request_body import UpdatePipelineRequestBody
|
|
58
|
+
from teaspoons_client.models.version_properties import VersionProperties
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from teaspoons_client.api.admin_api import AdminApi
|
|
5
|
+
from teaspoons_client.api.jobs_api import JobsApi
|
|
6
|
+
from teaspoons_client.api.pipeline_runs_api import PipelineRunsApi
|
|
7
|
+
from teaspoons_client.api.pipelines_api import PipelinesApi
|
|
8
|
+
from teaspoons_client.api.public_api import PublicApi
|
|
9
|
+
|
|
@@ -0,0 +1,599 @@
|
|
|
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.admin_pipeline import AdminPipeline
|
|
22
|
+
from teaspoons_client.models.update_pipeline_request_body import UpdatePipelineRequestBody
|
|
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 AdminApi:
|
|
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(
|
|
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
|
+
) -> AdminPipeline:
|
|
59
|
+
"""Get description for a given 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_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': "AdminPipeline",
|
|
96
|
+
'400': "ErrorReport",
|
|
97
|
+
'403': "ErrorReport",
|
|
98
|
+
'500': "ErrorReport",
|
|
99
|
+
}
|
|
100
|
+
response_data = self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
def get_pipeline_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[AdminPipeline]:
|
|
128
|
+
"""Get description for a given pipeline.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
132
|
+
:type pipeline_name: str
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._get_pipeline_serialize(
|
|
156
|
+
pipeline_name=pipeline_name,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': "AdminPipeline",
|
|
165
|
+
'400': "ErrorReport",
|
|
166
|
+
'403': "ErrorReport",
|
|
167
|
+
'500': "ErrorReport",
|
|
168
|
+
}
|
|
169
|
+
response_data = self.api_client.call_api(
|
|
170
|
+
*_param,
|
|
171
|
+
_request_timeout=_request_timeout
|
|
172
|
+
)
|
|
173
|
+
response_data.read()
|
|
174
|
+
return self.api_client.response_deserialize(
|
|
175
|
+
response_data=response_data,
|
|
176
|
+
response_types_map=_response_types_map,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
def get_pipeline_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
190
|
+
]
|
|
191
|
+
] = None,
|
|
192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_content_type: Optional[StrictStr] = None,
|
|
194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
196
|
+
) -> RESTResponseType:
|
|
197
|
+
"""Get description for a given pipeline.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
201
|
+
:type pipeline_name: str
|
|
202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
203
|
+
number provided, it will be total request
|
|
204
|
+
timeout. It can also be a pair (tuple) of
|
|
205
|
+
(connection, read) timeouts.
|
|
206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
208
|
+
request; this effectively ignores the
|
|
209
|
+
authentication in the spec for a single request.
|
|
210
|
+
:type _request_auth: dict, optional
|
|
211
|
+
:param _content_type: force content-type for the request.
|
|
212
|
+
:type _content_type: str, Optional
|
|
213
|
+
:param _headers: set to override the headers for a single
|
|
214
|
+
request; this effectively ignores the headers
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _headers: dict, optional
|
|
217
|
+
:param _host_index: set to override the host_index for a single
|
|
218
|
+
request; this effectively ignores the host_index
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _host_index: int, optional
|
|
221
|
+
:return: Returns the result object.
|
|
222
|
+
""" # noqa: E501
|
|
223
|
+
|
|
224
|
+
_param = self._get_pipeline_serialize(
|
|
225
|
+
pipeline_name=pipeline_name,
|
|
226
|
+
_request_auth=_request_auth,
|
|
227
|
+
_content_type=_content_type,
|
|
228
|
+
_headers=_headers,
|
|
229
|
+
_host_index=_host_index
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
233
|
+
'200': "AdminPipeline",
|
|
234
|
+
'400': "ErrorReport",
|
|
235
|
+
'403': "ErrorReport",
|
|
236
|
+
'500': "ErrorReport",
|
|
237
|
+
}
|
|
238
|
+
response_data = self.api_client.call_api(
|
|
239
|
+
*_param,
|
|
240
|
+
_request_timeout=_request_timeout
|
|
241
|
+
)
|
|
242
|
+
return response_data.response
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def _get_pipeline_serialize(
|
|
246
|
+
self,
|
|
247
|
+
pipeline_name,
|
|
248
|
+
_request_auth,
|
|
249
|
+
_content_type,
|
|
250
|
+
_headers,
|
|
251
|
+
_host_index,
|
|
252
|
+
) -> RequestSerialized:
|
|
253
|
+
|
|
254
|
+
_host = None
|
|
255
|
+
|
|
256
|
+
_collection_formats: Dict[str, str] = {
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
_path_params: Dict[str, str] = {}
|
|
260
|
+
_query_params: List[Tuple[str, str]] = []
|
|
261
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
262
|
+
_form_params: List[Tuple[str, str]] = []
|
|
263
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
264
|
+
_body_params: Optional[bytes] = None
|
|
265
|
+
|
|
266
|
+
# process the path parameters
|
|
267
|
+
if pipeline_name is not None:
|
|
268
|
+
_path_params['pipelineName'] = pipeline_name
|
|
269
|
+
# process the query parameters
|
|
270
|
+
# process the header parameters
|
|
271
|
+
# process the form parameters
|
|
272
|
+
# process the body parameter
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
# set the HTTP header `Accept`
|
|
276
|
+
if 'Accept' not in _header_params:
|
|
277
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
278
|
+
[
|
|
279
|
+
'application/json'
|
|
280
|
+
]
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
# authentication setting
|
|
285
|
+
_auth_settings: List[str] = [
|
|
286
|
+
'oidc',
|
|
287
|
+
'bearerAuth'
|
|
288
|
+
]
|
|
289
|
+
|
|
290
|
+
return self.api_client.param_serialize(
|
|
291
|
+
method='GET',
|
|
292
|
+
resource_path='/api/admin/v1/pipeline/{pipelineName}',
|
|
293
|
+
path_params=_path_params,
|
|
294
|
+
query_params=_query_params,
|
|
295
|
+
header_params=_header_params,
|
|
296
|
+
body=_body_params,
|
|
297
|
+
post_params=_form_params,
|
|
298
|
+
files=_files,
|
|
299
|
+
auth_settings=_auth_settings,
|
|
300
|
+
collection_formats=_collection_formats,
|
|
301
|
+
_host=_host,
|
|
302
|
+
_request_auth=_request_auth
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
@validate_call
|
|
309
|
+
def update_pipeline(
|
|
310
|
+
self,
|
|
311
|
+
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
312
|
+
update_pipeline_request_body: UpdatePipelineRequestBody,
|
|
313
|
+
_request_timeout: Union[
|
|
314
|
+
None,
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
316
|
+
Tuple[
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
319
|
+
]
|
|
320
|
+
] = None,
|
|
321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
322
|
+
_content_type: Optional[StrictStr] = None,
|
|
323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
325
|
+
) -> AdminPipeline:
|
|
326
|
+
"""Update attributes for a given pipeline.
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
330
|
+
:type pipeline_name: str
|
|
331
|
+
:param update_pipeline_request_body: (required)
|
|
332
|
+
:type update_pipeline_request_body: UpdatePipelineRequestBody
|
|
333
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
334
|
+
number provided, it will be total request
|
|
335
|
+
timeout. It can also be a pair (tuple) of
|
|
336
|
+
(connection, read) timeouts.
|
|
337
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
338
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
339
|
+
request; this effectively ignores the
|
|
340
|
+
authentication in the spec for a single request.
|
|
341
|
+
:type _request_auth: dict, optional
|
|
342
|
+
:param _content_type: force content-type for the request.
|
|
343
|
+
:type _content_type: str, Optional
|
|
344
|
+
:param _headers: set to override the headers for a single
|
|
345
|
+
request; this effectively ignores the headers
|
|
346
|
+
in the spec for a single request.
|
|
347
|
+
:type _headers: dict, optional
|
|
348
|
+
:param _host_index: set to override the host_index for a single
|
|
349
|
+
request; this effectively ignores the host_index
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _host_index: int, optional
|
|
352
|
+
:return: Returns the result object.
|
|
353
|
+
""" # noqa: E501
|
|
354
|
+
|
|
355
|
+
_param = self._update_pipeline_serialize(
|
|
356
|
+
pipeline_name=pipeline_name,
|
|
357
|
+
update_pipeline_request_body=update_pipeline_request_body,
|
|
358
|
+
_request_auth=_request_auth,
|
|
359
|
+
_content_type=_content_type,
|
|
360
|
+
_headers=_headers,
|
|
361
|
+
_host_index=_host_index
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
365
|
+
'200': "AdminPipeline",
|
|
366
|
+
'400': "ErrorReport",
|
|
367
|
+
'403': "ErrorReport",
|
|
368
|
+
'500': "ErrorReport",
|
|
369
|
+
}
|
|
370
|
+
response_data = self.api_client.call_api(
|
|
371
|
+
*_param,
|
|
372
|
+
_request_timeout=_request_timeout
|
|
373
|
+
)
|
|
374
|
+
response_data.read()
|
|
375
|
+
return self.api_client.response_deserialize(
|
|
376
|
+
response_data=response_data,
|
|
377
|
+
response_types_map=_response_types_map,
|
|
378
|
+
).data
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
@validate_call
|
|
382
|
+
def update_pipeline_with_http_info(
|
|
383
|
+
self,
|
|
384
|
+
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
385
|
+
update_pipeline_request_body: UpdatePipelineRequestBody,
|
|
386
|
+
_request_timeout: Union[
|
|
387
|
+
None,
|
|
388
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
389
|
+
Tuple[
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
391
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
392
|
+
]
|
|
393
|
+
] = None,
|
|
394
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
395
|
+
_content_type: Optional[StrictStr] = None,
|
|
396
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
397
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
398
|
+
) -> ApiResponse[AdminPipeline]:
|
|
399
|
+
"""Update attributes for a given pipeline.
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
403
|
+
:type pipeline_name: str
|
|
404
|
+
:param update_pipeline_request_body: (required)
|
|
405
|
+
:type update_pipeline_request_body: UpdatePipelineRequestBody
|
|
406
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
407
|
+
number provided, it will be total request
|
|
408
|
+
timeout. It can also be a pair (tuple) of
|
|
409
|
+
(connection, read) timeouts.
|
|
410
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
411
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
412
|
+
request; this effectively ignores the
|
|
413
|
+
authentication in the spec for a single request.
|
|
414
|
+
:type _request_auth: dict, optional
|
|
415
|
+
:param _content_type: force content-type for the request.
|
|
416
|
+
:type _content_type: str, Optional
|
|
417
|
+
:param _headers: set to override the headers for a single
|
|
418
|
+
request; this effectively ignores the headers
|
|
419
|
+
in the spec for a single request.
|
|
420
|
+
:type _headers: dict, optional
|
|
421
|
+
:param _host_index: set to override the host_index for a single
|
|
422
|
+
request; this effectively ignores the host_index
|
|
423
|
+
in the spec for a single request.
|
|
424
|
+
:type _host_index: int, optional
|
|
425
|
+
:return: Returns the result object.
|
|
426
|
+
""" # noqa: E501
|
|
427
|
+
|
|
428
|
+
_param = self._update_pipeline_serialize(
|
|
429
|
+
pipeline_name=pipeline_name,
|
|
430
|
+
update_pipeline_request_body=update_pipeline_request_body,
|
|
431
|
+
_request_auth=_request_auth,
|
|
432
|
+
_content_type=_content_type,
|
|
433
|
+
_headers=_headers,
|
|
434
|
+
_host_index=_host_index
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
438
|
+
'200': "AdminPipeline",
|
|
439
|
+
'400': "ErrorReport",
|
|
440
|
+
'403': "ErrorReport",
|
|
441
|
+
'500': "ErrorReport",
|
|
442
|
+
}
|
|
443
|
+
response_data = self.api_client.call_api(
|
|
444
|
+
*_param,
|
|
445
|
+
_request_timeout=_request_timeout
|
|
446
|
+
)
|
|
447
|
+
response_data.read()
|
|
448
|
+
return self.api_client.response_deserialize(
|
|
449
|
+
response_data=response_data,
|
|
450
|
+
response_types_map=_response_types_map,
|
|
451
|
+
)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
@validate_call
|
|
455
|
+
def update_pipeline_without_preload_content(
|
|
456
|
+
self,
|
|
457
|
+
pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
|
|
458
|
+
update_pipeline_request_body: UpdatePipelineRequestBody,
|
|
459
|
+
_request_timeout: Union[
|
|
460
|
+
None,
|
|
461
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
462
|
+
Tuple[
|
|
463
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
464
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
465
|
+
]
|
|
466
|
+
] = None,
|
|
467
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
468
|
+
_content_type: Optional[StrictStr] = None,
|
|
469
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
470
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
471
|
+
) -> RESTResponseType:
|
|
472
|
+
"""Update attributes for a given pipeline.
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
:param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
|
|
476
|
+
:type pipeline_name: str
|
|
477
|
+
:param update_pipeline_request_body: (required)
|
|
478
|
+
:type update_pipeline_request_body: UpdatePipelineRequestBody
|
|
479
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
480
|
+
number provided, it will be total request
|
|
481
|
+
timeout. It can also be a pair (tuple) of
|
|
482
|
+
(connection, read) timeouts.
|
|
483
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
484
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
485
|
+
request; this effectively ignores the
|
|
486
|
+
authentication in the spec for a single request.
|
|
487
|
+
:type _request_auth: dict, optional
|
|
488
|
+
:param _content_type: force content-type for the request.
|
|
489
|
+
:type _content_type: str, Optional
|
|
490
|
+
:param _headers: set to override the headers for a single
|
|
491
|
+
request; this effectively ignores the headers
|
|
492
|
+
in the spec for a single request.
|
|
493
|
+
:type _headers: dict, optional
|
|
494
|
+
:param _host_index: set to override the host_index for a single
|
|
495
|
+
request; this effectively ignores the host_index
|
|
496
|
+
in the spec for a single request.
|
|
497
|
+
:type _host_index: int, optional
|
|
498
|
+
:return: Returns the result object.
|
|
499
|
+
""" # noqa: E501
|
|
500
|
+
|
|
501
|
+
_param = self._update_pipeline_serialize(
|
|
502
|
+
pipeline_name=pipeline_name,
|
|
503
|
+
update_pipeline_request_body=update_pipeline_request_body,
|
|
504
|
+
_request_auth=_request_auth,
|
|
505
|
+
_content_type=_content_type,
|
|
506
|
+
_headers=_headers,
|
|
507
|
+
_host_index=_host_index
|
|
508
|
+
)
|
|
509
|
+
|
|
510
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
511
|
+
'200': "AdminPipeline",
|
|
512
|
+
'400': "ErrorReport",
|
|
513
|
+
'403': "ErrorReport",
|
|
514
|
+
'500': "ErrorReport",
|
|
515
|
+
}
|
|
516
|
+
response_data = self.api_client.call_api(
|
|
517
|
+
*_param,
|
|
518
|
+
_request_timeout=_request_timeout
|
|
519
|
+
)
|
|
520
|
+
return response_data.response
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
def _update_pipeline_serialize(
|
|
524
|
+
self,
|
|
525
|
+
pipeline_name,
|
|
526
|
+
update_pipeline_request_body,
|
|
527
|
+
_request_auth,
|
|
528
|
+
_content_type,
|
|
529
|
+
_headers,
|
|
530
|
+
_host_index,
|
|
531
|
+
) -> RequestSerialized:
|
|
532
|
+
|
|
533
|
+
_host = None
|
|
534
|
+
|
|
535
|
+
_collection_formats: Dict[str, str] = {
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
_path_params: Dict[str, str] = {}
|
|
539
|
+
_query_params: List[Tuple[str, str]] = []
|
|
540
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
541
|
+
_form_params: List[Tuple[str, str]] = []
|
|
542
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
543
|
+
_body_params: Optional[bytes] = None
|
|
544
|
+
|
|
545
|
+
# process the path parameters
|
|
546
|
+
if pipeline_name is not None:
|
|
547
|
+
_path_params['pipelineName'] = pipeline_name
|
|
548
|
+
# process the query parameters
|
|
549
|
+
# process the header parameters
|
|
550
|
+
# process the form parameters
|
|
551
|
+
# process the body parameter
|
|
552
|
+
if update_pipeline_request_body is not None:
|
|
553
|
+
_body_params = update_pipeline_request_body
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
# set the HTTP header `Accept`
|
|
557
|
+
if 'Accept' not in _header_params:
|
|
558
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
559
|
+
[
|
|
560
|
+
'application/json'
|
|
561
|
+
]
|
|
562
|
+
)
|
|
563
|
+
|
|
564
|
+
# set the HTTP header `Content-Type`
|
|
565
|
+
if _content_type:
|
|
566
|
+
_header_params['Content-Type'] = _content_type
|
|
567
|
+
else:
|
|
568
|
+
_default_content_type = (
|
|
569
|
+
self.api_client.select_header_content_type(
|
|
570
|
+
[
|
|
571
|
+
'application/json'
|
|
572
|
+
]
|
|
573
|
+
)
|
|
574
|
+
)
|
|
575
|
+
if _default_content_type is not None:
|
|
576
|
+
_header_params['Content-Type'] = _default_content_type
|
|
577
|
+
|
|
578
|
+
# authentication setting
|
|
579
|
+
_auth_settings: List[str] = [
|
|
580
|
+
'oidc',
|
|
581
|
+
'bearerAuth'
|
|
582
|
+
]
|
|
583
|
+
|
|
584
|
+
return self.api_client.param_serialize(
|
|
585
|
+
method='PATCH',
|
|
586
|
+
resource_path='/api/admin/v1/pipeline/{pipelineName}',
|
|
587
|
+
path_params=_path_params,
|
|
588
|
+
query_params=_query_params,
|
|
589
|
+
header_params=_header_params,
|
|
590
|
+
body=_body_params,
|
|
591
|
+
post_params=_form_params,
|
|
592
|
+
files=_files,
|
|
593
|
+
auth_settings=_auth_settings,
|
|
594
|
+
collection_formats=_collection_formats,
|
|
595
|
+
_host=_host,
|
|
596
|
+
_request_auth=_request_auth
|
|
597
|
+
)
|
|
598
|
+
|
|
599
|
+
|