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,1203 @@
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 import Optional
21
+ from typing_extensions import Annotated
22
+ from teaspoons_client.models.async_pipeline_run_response import AsyncPipelineRunResponse
23
+ from teaspoons_client.models.get_pipeline_runs_response import GetPipelineRunsResponse
24
+ from teaspoons_client.models.prepare_pipeline_run_request_body import PreparePipelineRunRequestBody
25
+ from teaspoons_client.models.prepare_pipeline_run_response import PreparePipelineRunResponse
26
+ from teaspoons_client.models.start_pipeline_run_request_body import StartPipelineRunRequestBody
27
+
28
+ from teaspoons_client.api_client import ApiClient, RequestSerialized
29
+ from teaspoons_client.api_response import ApiResponse
30
+ from teaspoons_client.rest import RESTResponseType
31
+
32
+
33
+ class PipelineRunsApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def get_all_pipeline_runs(
48
+ self,
49
+ limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The maximum number of items to return. Default 10")] = None,
50
+ page_token: Annotated[Optional[StrictStr], Field(description="A previously returned page token describing where to resume an enumeration.")] = None,
51
+ _request_timeout: Union[
52
+ None,
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Tuple[
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Annotated[StrictFloat, Field(gt=0)]
57
+ ]
58
+ ] = None,
59
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
60
+ _content_type: Optional[StrictStr] = None,
61
+ _headers: Optional[Dict[StrictStr, Any]] = None,
62
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
+ ) -> GetPipelineRunsResponse:
64
+ """Return a paginated list of all pipeline runs the caller has access to
65
+
66
+
67
+ :param limit: The maximum number of items to return. Default 10
68
+ :type limit: int
69
+ :param page_token: A previously returned page token describing where to resume an enumeration.
70
+ :type page_token: str
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._get_all_pipeline_runs_serialize(
94
+ limit=limit,
95
+ page_token=page_token,
96
+ _request_auth=_request_auth,
97
+ _content_type=_content_type,
98
+ _headers=_headers,
99
+ _host_index=_host_index
100
+ )
101
+
102
+ _response_types_map: Dict[str, Optional[str]] = {
103
+ '200': "GetPipelineRunsResponse",
104
+ '500': "ErrorReport",
105
+ }
106
+ response_data = self.api_client.call_api(
107
+ *_param,
108
+ _request_timeout=_request_timeout
109
+ )
110
+ response_data.read()
111
+ return self.api_client.response_deserialize(
112
+ response_data=response_data,
113
+ response_types_map=_response_types_map,
114
+ ).data
115
+
116
+
117
+ @validate_call
118
+ def get_all_pipeline_runs_with_http_info(
119
+ self,
120
+ limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The maximum number of items to return. Default 10")] = None,
121
+ page_token: Annotated[Optional[StrictStr], Field(description="A previously returned page token describing where to resume an enumeration.")] = None,
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[GetPipelineRunsResponse]:
135
+ """Return a paginated list of all pipeline runs the caller has access to
136
+
137
+
138
+ :param limit: The maximum number of items to return. Default 10
139
+ :type limit: int
140
+ :param page_token: A previously returned page token describing where to resume an enumeration.
141
+ :type page_token: str
142
+ :param _request_timeout: timeout setting for this request. If one
143
+ number provided, it will be total request
144
+ timeout. It can also be a pair (tuple) of
145
+ (connection, read) timeouts.
146
+ :type _request_timeout: int, tuple(int, int), optional
147
+ :param _request_auth: set to override the auth_settings for an a single
148
+ request; this effectively ignores the
149
+ authentication in the spec for a single request.
150
+ :type _request_auth: dict, optional
151
+ :param _content_type: force content-type for the request.
152
+ :type _content_type: str, Optional
153
+ :param _headers: set to override the headers for a single
154
+ request; this effectively ignores the headers
155
+ in the spec for a single request.
156
+ :type _headers: dict, optional
157
+ :param _host_index: set to override the host_index for a single
158
+ request; this effectively ignores the host_index
159
+ in the spec for a single request.
160
+ :type _host_index: int, optional
161
+ :return: Returns the result object.
162
+ """ # noqa: E501
163
+
164
+ _param = self._get_all_pipeline_runs_serialize(
165
+ limit=limit,
166
+ page_token=page_token,
167
+ _request_auth=_request_auth,
168
+ _content_type=_content_type,
169
+ _headers=_headers,
170
+ _host_index=_host_index
171
+ )
172
+
173
+ _response_types_map: Dict[str, Optional[str]] = {
174
+ '200': "GetPipelineRunsResponse",
175
+ '500': "ErrorReport",
176
+ }
177
+ response_data = self.api_client.call_api(
178
+ *_param,
179
+ _request_timeout=_request_timeout
180
+ )
181
+ response_data.read()
182
+ return self.api_client.response_deserialize(
183
+ response_data=response_data,
184
+ response_types_map=_response_types_map,
185
+ )
186
+
187
+
188
+ @validate_call
189
+ def get_all_pipeline_runs_without_preload_content(
190
+ self,
191
+ limit: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The maximum number of items to return. Default 10")] = None,
192
+ page_token: Annotated[Optional[StrictStr], Field(description="A previously returned page token describing where to resume an enumeration.")] = None,
193
+ _request_timeout: Union[
194
+ None,
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Tuple[
197
+ Annotated[StrictFloat, Field(gt=0)],
198
+ Annotated[StrictFloat, Field(gt=0)]
199
+ ]
200
+ ] = None,
201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
202
+ _content_type: Optional[StrictStr] = None,
203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
205
+ ) -> RESTResponseType:
206
+ """Return a paginated list of all pipeline runs the caller has access to
207
+
208
+
209
+ :param limit: The maximum number of items to return. Default 10
210
+ :type limit: int
211
+ :param page_token: A previously returned page token describing where to resume an enumeration.
212
+ :type page_token: str
213
+ :param _request_timeout: timeout setting for this request. If one
214
+ number provided, it will be total request
215
+ timeout. It can also be a pair (tuple) of
216
+ (connection, read) timeouts.
217
+ :type _request_timeout: int, tuple(int, int), optional
218
+ :param _request_auth: set to override the auth_settings for an a single
219
+ request; this effectively ignores the
220
+ authentication in the spec for a single request.
221
+ :type _request_auth: dict, optional
222
+ :param _content_type: force content-type for the request.
223
+ :type _content_type: str, Optional
224
+ :param _headers: set to override the headers for a single
225
+ request; this effectively ignores the headers
226
+ in the spec for a single request.
227
+ :type _headers: dict, optional
228
+ :param _host_index: set to override the host_index for a single
229
+ request; this effectively ignores the host_index
230
+ in the spec for a single request.
231
+ :type _host_index: int, optional
232
+ :return: Returns the result object.
233
+ """ # noqa: E501
234
+
235
+ _param = self._get_all_pipeline_runs_serialize(
236
+ limit=limit,
237
+ page_token=page_token,
238
+ _request_auth=_request_auth,
239
+ _content_type=_content_type,
240
+ _headers=_headers,
241
+ _host_index=_host_index
242
+ )
243
+
244
+ _response_types_map: Dict[str, Optional[str]] = {
245
+ '200': "GetPipelineRunsResponse",
246
+ '500': "ErrorReport",
247
+ }
248
+ response_data = self.api_client.call_api(
249
+ *_param,
250
+ _request_timeout=_request_timeout
251
+ )
252
+ return response_data.response
253
+
254
+
255
+ def _get_all_pipeline_runs_serialize(
256
+ self,
257
+ limit,
258
+ page_token,
259
+ _request_auth,
260
+ _content_type,
261
+ _headers,
262
+ _host_index,
263
+ ) -> RequestSerialized:
264
+
265
+ _host = None
266
+
267
+ _collection_formats: Dict[str, str] = {
268
+ }
269
+
270
+ _path_params: Dict[str, str] = {}
271
+ _query_params: List[Tuple[str, str]] = []
272
+ _header_params: Dict[str, Optional[str]] = _headers or {}
273
+ _form_params: List[Tuple[str, str]] = []
274
+ _files: Dict[str, Union[str, bytes]] = {}
275
+ _body_params: Optional[bytes] = None
276
+
277
+ # process the path parameters
278
+ # process the query parameters
279
+ if limit is not None:
280
+
281
+ _query_params.append(('limit', limit))
282
+
283
+ if page_token is not None:
284
+
285
+ _query_params.append(('pageToken', page_token))
286
+
287
+ # process the header parameters
288
+ # process the form parameters
289
+ # process the body parameter
290
+
291
+
292
+ # set the HTTP header `Accept`
293
+ if 'Accept' not in _header_params:
294
+ _header_params['Accept'] = self.api_client.select_header_accept(
295
+ [
296
+ 'application/json'
297
+ ]
298
+ )
299
+
300
+
301
+ # authentication setting
302
+ _auth_settings: List[str] = [
303
+ 'oidc',
304
+ 'bearerAuth'
305
+ ]
306
+
307
+ return self.api_client.param_serialize(
308
+ method='GET',
309
+ resource_path='/api/pipelineruns/v1/pipelineruns',
310
+ path_params=_path_params,
311
+ query_params=_query_params,
312
+ header_params=_header_params,
313
+ body=_body_params,
314
+ post_params=_form_params,
315
+ files=_files,
316
+ auth_settings=_auth_settings,
317
+ collection_formats=_collection_formats,
318
+ _host=_host,
319
+ _request_auth=_request_auth
320
+ )
321
+
322
+
323
+
324
+
325
+ @validate_call
326
+ def get_pipeline_run_result(
327
+ self,
328
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
329
+ job_id: Annotated[StrictStr, Field(description="A UUID identifier for a pipelines job")],
330
+ _request_timeout: Union[
331
+ None,
332
+ Annotated[StrictFloat, Field(gt=0)],
333
+ Tuple[
334
+ Annotated[StrictFloat, Field(gt=0)],
335
+ Annotated[StrictFloat, Field(gt=0)]
336
+ ]
337
+ ] = None,
338
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
339
+ _content_type: Optional[StrictStr] = None,
340
+ _headers: Optional[Dict[StrictStr, Any]] = None,
341
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
342
+ ) -> AsyncPipelineRunResponse:
343
+ """Retrieve result for a specified pipeline run
344
+
345
+
346
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
347
+ :type pipeline_name: str
348
+ :param job_id: A UUID identifier for a pipelines job (required)
349
+ :type job_id: str
350
+ :param _request_timeout: timeout setting for this request. If one
351
+ number provided, it will be total request
352
+ timeout. It can also be a pair (tuple) of
353
+ (connection, read) timeouts.
354
+ :type _request_timeout: int, tuple(int, int), optional
355
+ :param _request_auth: set to override the auth_settings for an a single
356
+ request; this effectively ignores the
357
+ authentication in the spec for a single request.
358
+ :type _request_auth: dict, optional
359
+ :param _content_type: force content-type for the request.
360
+ :type _content_type: str, Optional
361
+ :param _headers: set to override the headers for a single
362
+ request; this effectively ignores the headers
363
+ in the spec for a single request.
364
+ :type _headers: dict, optional
365
+ :param _host_index: set to override the host_index for a single
366
+ request; this effectively ignores the host_index
367
+ in the spec for a single request.
368
+ :type _host_index: int, optional
369
+ :return: Returns the result object.
370
+ """ # noqa: E501
371
+
372
+ _param = self._get_pipeline_run_result_serialize(
373
+ pipeline_name=pipeline_name,
374
+ job_id=job_id,
375
+ _request_auth=_request_auth,
376
+ _content_type=_content_type,
377
+ _headers=_headers,
378
+ _host_index=_host_index
379
+ )
380
+
381
+ _response_types_map: Dict[str, Optional[str]] = {
382
+ '200': "AsyncPipelineRunResponse",
383
+ '202': "AsyncPipelineRunResponse",
384
+ '400': "ErrorReport",
385
+ '403': "ErrorReport",
386
+ '404': "ErrorReport",
387
+ '500': "ErrorReport",
388
+ }
389
+ response_data = self.api_client.call_api(
390
+ *_param,
391
+ _request_timeout=_request_timeout
392
+ )
393
+ response_data.read()
394
+ return self.api_client.response_deserialize(
395
+ response_data=response_data,
396
+ response_types_map=_response_types_map,
397
+ ).data
398
+
399
+
400
+ @validate_call
401
+ def get_pipeline_run_result_with_http_info(
402
+ self,
403
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
404
+ job_id: Annotated[StrictStr, Field(description="A UUID identifier for a pipelines job")],
405
+ _request_timeout: Union[
406
+ None,
407
+ Annotated[StrictFloat, Field(gt=0)],
408
+ Tuple[
409
+ Annotated[StrictFloat, Field(gt=0)],
410
+ Annotated[StrictFloat, Field(gt=0)]
411
+ ]
412
+ ] = None,
413
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
414
+ _content_type: Optional[StrictStr] = None,
415
+ _headers: Optional[Dict[StrictStr, Any]] = None,
416
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
417
+ ) -> ApiResponse[AsyncPipelineRunResponse]:
418
+ """Retrieve result for a specified pipeline run
419
+
420
+
421
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
422
+ :type pipeline_name: str
423
+ :param job_id: A UUID identifier for a pipelines job (required)
424
+ :type job_id: str
425
+ :param _request_timeout: timeout setting for this request. If one
426
+ number provided, it will be total request
427
+ timeout. It can also be a pair (tuple) of
428
+ (connection, read) timeouts.
429
+ :type _request_timeout: int, tuple(int, int), optional
430
+ :param _request_auth: set to override the auth_settings for an a single
431
+ request; this effectively ignores the
432
+ authentication in the spec for a single request.
433
+ :type _request_auth: dict, optional
434
+ :param _content_type: force content-type for the request.
435
+ :type _content_type: str, Optional
436
+ :param _headers: set to override the headers for a single
437
+ request; this effectively ignores the headers
438
+ in the spec for a single request.
439
+ :type _headers: dict, optional
440
+ :param _host_index: set to override the host_index for a single
441
+ request; this effectively ignores the host_index
442
+ in the spec for a single request.
443
+ :type _host_index: int, optional
444
+ :return: Returns the result object.
445
+ """ # noqa: E501
446
+
447
+ _param = self._get_pipeline_run_result_serialize(
448
+ pipeline_name=pipeline_name,
449
+ job_id=job_id,
450
+ _request_auth=_request_auth,
451
+ _content_type=_content_type,
452
+ _headers=_headers,
453
+ _host_index=_host_index
454
+ )
455
+
456
+ _response_types_map: Dict[str, Optional[str]] = {
457
+ '200': "AsyncPipelineRunResponse",
458
+ '202': "AsyncPipelineRunResponse",
459
+ '400': "ErrorReport",
460
+ '403': "ErrorReport",
461
+ '404': "ErrorReport",
462
+ '500': "ErrorReport",
463
+ }
464
+ response_data = self.api_client.call_api(
465
+ *_param,
466
+ _request_timeout=_request_timeout
467
+ )
468
+ response_data.read()
469
+ return self.api_client.response_deserialize(
470
+ response_data=response_data,
471
+ response_types_map=_response_types_map,
472
+ )
473
+
474
+
475
+ @validate_call
476
+ def get_pipeline_run_result_without_preload_content(
477
+ self,
478
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
479
+ job_id: Annotated[StrictStr, Field(description="A UUID identifier for a pipelines job")],
480
+ _request_timeout: Union[
481
+ None,
482
+ Annotated[StrictFloat, Field(gt=0)],
483
+ Tuple[
484
+ Annotated[StrictFloat, Field(gt=0)],
485
+ Annotated[StrictFloat, Field(gt=0)]
486
+ ]
487
+ ] = None,
488
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
489
+ _content_type: Optional[StrictStr] = None,
490
+ _headers: Optional[Dict[StrictStr, Any]] = None,
491
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
492
+ ) -> RESTResponseType:
493
+ """Retrieve result for a specified pipeline run
494
+
495
+
496
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
497
+ :type pipeline_name: str
498
+ :param job_id: A UUID identifier for a pipelines job (required)
499
+ :type job_id: str
500
+ :param _request_timeout: timeout setting for this request. If one
501
+ number provided, it will be total request
502
+ timeout. It can also be a pair (tuple) of
503
+ (connection, read) timeouts.
504
+ :type _request_timeout: int, tuple(int, int), optional
505
+ :param _request_auth: set to override the auth_settings for an a single
506
+ request; this effectively ignores the
507
+ authentication in the spec for a single request.
508
+ :type _request_auth: dict, optional
509
+ :param _content_type: force content-type for the request.
510
+ :type _content_type: str, Optional
511
+ :param _headers: set to override the headers for a single
512
+ request; this effectively ignores the headers
513
+ in the spec for a single request.
514
+ :type _headers: dict, optional
515
+ :param _host_index: set to override the host_index for a single
516
+ request; this effectively ignores the host_index
517
+ in the spec for a single request.
518
+ :type _host_index: int, optional
519
+ :return: Returns the result object.
520
+ """ # noqa: E501
521
+
522
+ _param = self._get_pipeline_run_result_serialize(
523
+ pipeline_name=pipeline_name,
524
+ job_id=job_id,
525
+ _request_auth=_request_auth,
526
+ _content_type=_content_type,
527
+ _headers=_headers,
528
+ _host_index=_host_index
529
+ )
530
+
531
+ _response_types_map: Dict[str, Optional[str]] = {
532
+ '200': "AsyncPipelineRunResponse",
533
+ '202': "AsyncPipelineRunResponse",
534
+ '400': "ErrorReport",
535
+ '403': "ErrorReport",
536
+ '404': "ErrorReport",
537
+ '500': "ErrorReport",
538
+ }
539
+ response_data = self.api_client.call_api(
540
+ *_param,
541
+ _request_timeout=_request_timeout
542
+ )
543
+ return response_data.response
544
+
545
+
546
+ def _get_pipeline_run_result_serialize(
547
+ self,
548
+ pipeline_name,
549
+ job_id,
550
+ _request_auth,
551
+ _content_type,
552
+ _headers,
553
+ _host_index,
554
+ ) -> RequestSerialized:
555
+
556
+ _host = None
557
+
558
+ _collection_formats: Dict[str, str] = {
559
+ }
560
+
561
+ _path_params: Dict[str, str] = {}
562
+ _query_params: List[Tuple[str, str]] = []
563
+ _header_params: Dict[str, Optional[str]] = _headers or {}
564
+ _form_params: List[Tuple[str, str]] = []
565
+ _files: Dict[str, Union[str, bytes]] = {}
566
+ _body_params: Optional[bytes] = None
567
+
568
+ # process the path parameters
569
+ if pipeline_name is not None:
570
+ _path_params['pipelineName'] = pipeline_name
571
+ if job_id is not None:
572
+ _path_params['jobId'] = job_id
573
+ # process the query parameters
574
+ # process the header parameters
575
+ # process the form parameters
576
+ # process the body parameter
577
+
578
+
579
+ # set the HTTP header `Accept`
580
+ if 'Accept' not in _header_params:
581
+ _header_params['Accept'] = self.api_client.select_header_accept(
582
+ [
583
+ 'application/json'
584
+ ]
585
+ )
586
+
587
+
588
+ # authentication setting
589
+ _auth_settings: List[str] = [
590
+ 'oidc',
591
+ 'bearerAuth'
592
+ ]
593
+
594
+ return self.api_client.param_serialize(
595
+ method='GET',
596
+ resource_path='/api/pipelineruns/v1/{pipelineName}/result/{jobId}',
597
+ path_params=_path_params,
598
+ query_params=_query_params,
599
+ header_params=_header_params,
600
+ body=_body_params,
601
+ post_params=_form_params,
602
+ files=_files,
603
+ auth_settings=_auth_settings,
604
+ collection_formats=_collection_formats,
605
+ _host=_host,
606
+ _request_auth=_request_auth
607
+ )
608
+
609
+
610
+
611
+
612
+ @validate_call
613
+ def prepare_pipeline_run(
614
+ self,
615
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
616
+ prepare_pipeline_run_request_body: PreparePipelineRunRequestBody,
617
+ _request_timeout: Union[
618
+ None,
619
+ Annotated[StrictFloat, Field(gt=0)],
620
+ Tuple[
621
+ Annotated[StrictFloat, Field(gt=0)],
622
+ Annotated[StrictFloat, Field(gt=0)]
623
+ ]
624
+ ] = None,
625
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
626
+ _content_type: Optional[StrictStr] = None,
627
+ _headers: Optional[Dict[StrictStr, Any]] = None,
628
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
629
+ ) -> PreparePipelineRunResponse:
630
+ """Prepare a new pipeline run
631
+
632
+
633
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
634
+ :type pipeline_name: str
635
+ :param prepare_pipeline_run_request_body: (required)
636
+ :type prepare_pipeline_run_request_body: PreparePipelineRunRequestBody
637
+ :param _request_timeout: timeout setting for this request. If one
638
+ number provided, it will be total request
639
+ timeout. It can also be a pair (tuple) of
640
+ (connection, read) timeouts.
641
+ :type _request_timeout: int, tuple(int, int), optional
642
+ :param _request_auth: set to override the auth_settings for an a single
643
+ request; this effectively ignores the
644
+ authentication in the spec for a single request.
645
+ :type _request_auth: dict, optional
646
+ :param _content_type: force content-type for the request.
647
+ :type _content_type: str, Optional
648
+ :param _headers: set to override the headers for a single
649
+ request; this effectively ignores the headers
650
+ in the spec for a single request.
651
+ :type _headers: dict, optional
652
+ :param _host_index: set to override the host_index for a single
653
+ request; this effectively ignores the host_index
654
+ in the spec for a single request.
655
+ :type _host_index: int, optional
656
+ :return: Returns the result object.
657
+ """ # noqa: E501
658
+
659
+ _param = self._prepare_pipeline_run_serialize(
660
+ pipeline_name=pipeline_name,
661
+ prepare_pipeline_run_request_body=prepare_pipeline_run_request_body,
662
+ _request_auth=_request_auth,
663
+ _content_type=_content_type,
664
+ _headers=_headers,
665
+ _host_index=_host_index
666
+ )
667
+
668
+ _response_types_map: Dict[str, Optional[str]] = {
669
+ '200': "PreparePipelineRunResponse",
670
+ '400': "ErrorReport",
671
+ '404': "ErrorReport",
672
+ '500': "ErrorReport",
673
+ }
674
+ response_data = self.api_client.call_api(
675
+ *_param,
676
+ _request_timeout=_request_timeout
677
+ )
678
+ response_data.read()
679
+ return self.api_client.response_deserialize(
680
+ response_data=response_data,
681
+ response_types_map=_response_types_map,
682
+ ).data
683
+
684
+
685
+ @validate_call
686
+ def prepare_pipeline_run_with_http_info(
687
+ self,
688
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
689
+ prepare_pipeline_run_request_body: PreparePipelineRunRequestBody,
690
+ _request_timeout: Union[
691
+ None,
692
+ Annotated[StrictFloat, Field(gt=0)],
693
+ Tuple[
694
+ Annotated[StrictFloat, Field(gt=0)],
695
+ Annotated[StrictFloat, Field(gt=0)]
696
+ ]
697
+ ] = None,
698
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
699
+ _content_type: Optional[StrictStr] = None,
700
+ _headers: Optional[Dict[StrictStr, Any]] = None,
701
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
702
+ ) -> ApiResponse[PreparePipelineRunResponse]:
703
+ """Prepare a new pipeline run
704
+
705
+
706
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
707
+ :type pipeline_name: str
708
+ :param prepare_pipeline_run_request_body: (required)
709
+ :type prepare_pipeline_run_request_body: PreparePipelineRunRequestBody
710
+ :param _request_timeout: timeout setting for this request. If one
711
+ number provided, it will be total request
712
+ timeout. It can also be a pair (tuple) of
713
+ (connection, read) timeouts.
714
+ :type _request_timeout: int, tuple(int, int), optional
715
+ :param _request_auth: set to override the auth_settings for an a single
716
+ request; this effectively ignores the
717
+ authentication in the spec for a single request.
718
+ :type _request_auth: dict, optional
719
+ :param _content_type: force content-type for the request.
720
+ :type _content_type: str, Optional
721
+ :param _headers: set to override the headers for a single
722
+ request; this effectively ignores the headers
723
+ in the spec for a single request.
724
+ :type _headers: dict, optional
725
+ :param _host_index: set to override the host_index for a single
726
+ request; this effectively ignores the host_index
727
+ in the spec for a single request.
728
+ :type _host_index: int, optional
729
+ :return: Returns the result object.
730
+ """ # noqa: E501
731
+
732
+ _param = self._prepare_pipeline_run_serialize(
733
+ pipeline_name=pipeline_name,
734
+ prepare_pipeline_run_request_body=prepare_pipeline_run_request_body,
735
+ _request_auth=_request_auth,
736
+ _content_type=_content_type,
737
+ _headers=_headers,
738
+ _host_index=_host_index
739
+ )
740
+
741
+ _response_types_map: Dict[str, Optional[str]] = {
742
+ '200': "PreparePipelineRunResponse",
743
+ '400': "ErrorReport",
744
+ '404': "ErrorReport",
745
+ '500': "ErrorReport",
746
+ }
747
+ response_data = self.api_client.call_api(
748
+ *_param,
749
+ _request_timeout=_request_timeout
750
+ )
751
+ response_data.read()
752
+ return self.api_client.response_deserialize(
753
+ response_data=response_data,
754
+ response_types_map=_response_types_map,
755
+ )
756
+
757
+
758
+ @validate_call
759
+ def prepare_pipeline_run_without_preload_content(
760
+ self,
761
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
762
+ prepare_pipeline_run_request_body: PreparePipelineRunRequestBody,
763
+ _request_timeout: Union[
764
+ None,
765
+ Annotated[StrictFloat, Field(gt=0)],
766
+ Tuple[
767
+ Annotated[StrictFloat, Field(gt=0)],
768
+ Annotated[StrictFloat, Field(gt=0)]
769
+ ]
770
+ ] = None,
771
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
772
+ _content_type: Optional[StrictStr] = None,
773
+ _headers: Optional[Dict[StrictStr, Any]] = None,
774
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
775
+ ) -> RESTResponseType:
776
+ """Prepare a new pipeline run
777
+
778
+
779
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
780
+ :type pipeline_name: str
781
+ :param prepare_pipeline_run_request_body: (required)
782
+ :type prepare_pipeline_run_request_body: PreparePipelineRunRequestBody
783
+ :param _request_timeout: timeout setting for this request. If one
784
+ number provided, it will be total request
785
+ timeout. It can also be a pair (tuple) of
786
+ (connection, read) timeouts.
787
+ :type _request_timeout: int, tuple(int, int), optional
788
+ :param _request_auth: set to override the auth_settings for an a single
789
+ request; this effectively ignores the
790
+ authentication in the spec for a single request.
791
+ :type _request_auth: dict, optional
792
+ :param _content_type: force content-type for the request.
793
+ :type _content_type: str, Optional
794
+ :param _headers: set to override the headers for a single
795
+ request; this effectively ignores the headers
796
+ in the spec for a single request.
797
+ :type _headers: dict, optional
798
+ :param _host_index: set to override the host_index for a single
799
+ request; this effectively ignores the host_index
800
+ in the spec for a single request.
801
+ :type _host_index: int, optional
802
+ :return: Returns the result object.
803
+ """ # noqa: E501
804
+
805
+ _param = self._prepare_pipeline_run_serialize(
806
+ pipeline_name=pipeline_name,
807
+ prepare_pipeline_run_request_body=prepare_pipeline_run_request_body,
808
+ _request_auth=_request_auth,
809
+ _content_type=_content_type,
810
+ _headers=_headers,
811
+ _host_index=_host_index
812
+ )
813
+
814
+ _response_types_map: Dict[str, Optional[str]] = {
815
+ '200': "PreparePipelineRunResponse",
816
+ '400': "ErrorReport",
817
+ '404': "ErrorReport",
818
+ '500': "ErrorReport",
819
+ }
820
+ response_data = self.api_client.call_api(
821
+ *_param,
822
+ _request_timeout=_request_timeout
823
+ )
824
+ return response_data.response
825
+
826
+
827
+ def _prepare_pipeline_run_serialize(
828
+ self,
829
+ pipeline_name,
830
+ prepare_pipeline_run_request_body,
831
+ _request_auth,
832
+ _content_type,
833
+ _headers,
834
+ _host_index,
835
+ ) -> RequestSerialized:
836
+
837
+ _host = None
838
+
839
+ _collection_formats: Dict[str, str] = {
840
+ }
841
+
842
+ _path_params: Dict[str, str] = {}
843
+ _query_params: List[Tuple[str, str]] = []
844
+ _header_params: Dict[str, Optional[str]] = _headers or {}
845
+ _form_params: List[Tuple[str, str]] = []
846
+ _files: Dict[str, Union[str, bytes]] = {}
847
+ _body_params: Optional[bytes] = None
848
+
849
+ # process the path parameters
850
+ if pipeline_name is not None:
851
+ _path_params['pipelineName'] = pipeline_name
852
+ # process the query parameters
853
+ # process the header parameters
854
+ # process the form parameters
855
+ # process the body parameter
856
+ if prepare_pipeline_run_request_body is not None:
857
+ _body_params = prepare_pipeline_run_request_body
858
+
859
+
860
+ # set the HTTP header `Accept`
861
+ if 'Accept' not in _header_params:
862
+ _header_params['Accept'] = self.api_client.select_header_accept(
863
+ [
864
+ 'application/json'
865
+ ]
866
+ )
867
+
868
+ # set the HTTP header `Content-Type`
869
+ if _content_type:
870
+ _header_params['Content-Type'] = _content_type
871
+ else:
872
+ _default_content_type = (
873
+ self.api_client.select_header_content_type(
874
+ [
875
+ 'application/json'
876
+ ]
877
+ )
878
+ )
879
+ if _default_content_type is not None:
880
+ _header_params['Content-Type'] = _default_content_type
881
+
882
+ # authentication setting
883
+ _auth_settings: List[str] = [
884
+ 'oidc',
885
+ 'bearerAuth'
886
+ ]
887
+
888
+ return self.api_client.param_serialize(
889
+ method='POST',
890
+ resource_path='/api/pipelineruns/v1/{pipelineName}/prepare',
891
+ path_params=_path_params,
892
+ query_params=_query_params,
893
+ header_params=_header_params,
894
+ body=_body_params,
895
+ post_params=_form_params,
896
+ files=_files,
897
+ auth_settings=_auth_settings,
898
+ collection_formats=_collection_formats,
899
+ _host=_host,
900
+ _request_auth=_request_auth
901
+ )
902
+
903
+
904
+
905
+
906
+ @validate_call
907
+ def start_pipeline_run(
908
+ self,
909
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
910
+ start_pipeline_run_request_body: StartPipelineRunRequestBody,
911
+ _request_timeout: Union[
912
+ None,
913
+ Annotated[StrictFloat, Field(gt=0)],
914
+ Tuple[
915
+ Annotated[StrictFloat, Field(gt=0)],
916
+ Annotated[StrictFloat, Field(gt=0)]
917
+ ]
918
+ ] = None,
919
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
920
+ _content_type: Optional[StrictStr] = None,
921
+ _headers: Optional[Dict[StrictStr, Any]] = None,
922
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
923
+ ) -> AsyncPipelineRunResponse:
924
+ """Start a prepared pipeline run
925
+
926
+
927
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
928
+ :type pipeline_name: str
929
+ :param start_pipeline_run_request_body: (required)
930
+ :type start_pipeline_run_request_body: StartPipelineRunRequestBody
931
+ :param _request_timeout: timeout setting for this request. If one
932
+ number provided, it will be total request
933
+ timeout. It can also be a pair (tuple) of
934
+ (connection, read) timeouts.
935
+ :type _request_timeout: int, tuple(int, int), optional
936
+ :param _request_auth: set to override the auth_settings for an a single
937
+ request; this effectively ignores the
938
+ authentication in the spec for a single request.
939
+ :type _request_auth: dict, optional
940
+ :param _content_type: force content-type for the request.
941
+ :type _content_type: str, Optional
942
+ :param _headers: set to override the headers for a single
943
+ request; this effectively ignores the headers
944
+ in the spec for a single request.
945
+ :type _headers: dict, optional
946
+ :param _host_index: set to override the host_index for a single
947
+ request; this effectively ignores the host_index
948
+ in the spec for a single request.
949
+ :type _host_index: int, optional
950
+ :return: Returns the result object.
951
+ """ # noqa: E501
952
+
953
+ _param = self._start_pipeline_run_serialize(
954
+ pipeline_name=pipeline_name,
955
+ start_pipeline_run_request_body=start_pipeline_run_request_body,
956
+ _request_auth=_request_auth,
957
+ _content_type=_content_type,
958
+ _headers=_headers,
959
+ _host_index=_host_index
960
+ )
961
+
962
+ _response_types_map: Dict[str, Optional[str]] = {
963
+ '200': "AsyncPipelineRunResponse",
964
+ '202': "AsyncPipelineRunResponse",
965
+ '400': "ErrorReport",
966
+ '403': "ErrorReport",
967
+ '404': "ErrorReport",
968
+ '500': "ErrorReport",
969
+ }
970
+ response_data = self.api_client.call_api(
971
+ *_param,
972
+ _request_timeout=_request_timeout
973
+ )
974
+ response_data.read()
975
+ return self.api_client.response_deserialize(
976
+ response_data=response_data,
977
+ response_types_map=_response_types_map,
978
+ ).data
979
+
980
+
981
+ @validate_call
982
+ def start_pipeline_run_with_http_info(
983
+ self,
984
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
985
+ start_pipeline_run_request_body: StartPipelineRunRequestBody,
986
+ _request_timeout: Union[
987
+ None,
988
+ Annotated[StrictFloat, Field(gt=0)],
989
+ Tuple[
990
+ Annotated[StrictFloat, Field(gt=0)],
991
+ Annotated[StrictFloat, Field(gt=0)]
992
+ ]
993
+ ] = None,
994
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
995
+ _content_type: Optional[StrictStr] = None,
996
+ _headers: Optional[Dict[StrictStr, Any]] = None,
997
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
998
+ ) -> ApiResponse[AsyncPipelineRunResponse]:
999
+ """Start a prepared pipeline run
1000
+
1001
+
1002
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
1003
+ :type pipeline_name: str
1004
+ :param start_pipeline_run_request_body: (required)
1005
+ :type start_pipeline_run_request_body: StartPipelineRunRequestBody
1006
+ :param _request_timeout: timeout setting for this request. If one
1007
+ number provided, it will be total request
1008
+ timeout. It can also be a pair (tuple) of
1009
+ (connection, read) timeouts.
1010
+ :type _request_timeout: int, tuple(int, int), optional
1011
+ :param _request_auth: set to override the auth_settings for an a single
1012
+ request; this effectively ignores the
1013
+ authentication in the spec for a single request.
1014
+ :type _request_auth: dict, optional
1015
+ :param _content_type: force content-type for the request.
1016
+ :type _content_type: str, Optional
1017
+ :param _headers: set to override the headers for a single
1018
+ request; this effectively ignores the headers
1019
+ in the spec for a single request.
1020
+ :type _headers: dict, optional
1021
+ :param _host_index: set to override the host_index for a single
1022
+ request; this effectively ignores the host_index
1023
+ in the spec for a single request.
1024
+ :type _host_index: int, optional
1025
+ :return: Returns the result object.
1026
+ """ # noqa: E501
1027
+
1028
+ _param = self._start_pipeline_run_serialize(
1029
+ pipeline_name=pipeline_name,
1030
+ start_pipeline_run_request_body=start_pipeline_run_request_body,
1031
+ _request_auth=_request_auth,
1032
+ _content_type=_content_type,
1033
+ _headers=_headers,
1034
+ _host_index=_host_index
1035
+ )
1036
+
1037
+ _response_types_map: Dict[str, Optional[str]] = {
1038
+ '200': "AsyncPipelineRunResponse",
1039
+ '202': "AsyncPipelineRunResponse",
1040
+ '400': "ErrorReport",
1041
+ '403': "ErrorReport",
1042
+ '404': "ErrorReport",
1043
+ '500': "ErrorReport",
1044
+ }
1045
+ response_data = self.api_client.call_api(
1046
+ *_param,
1047
+ _request_timeout=_request_timeout
1048
+ )
1049
+ response_data.read()
1050
+ return self.api_client.response_deserialize(
1051
+ response_data=response_data,
1052
+ response_types_map=_response_types_map,
1053
+ )
1054
+
1055
+
1056
+ @validate_call
1057
+ def start_pipeline_run_without_preload_content(
1058
+ self,
1059
+ pipeline_name: Annotated[StrictStr, Field(description="A string identifier to used to identify a pipeline in the service.")],
1060
+ start_pipeline_run_request_body: StartPipelineRunRequestBody,
1061
+ _request_timeout: Union[
1062
+ None,
1063
+ Annotated[StrictFloat, Field(gt=0)],
1064
+ Tuple[
1065
+ Annotated[StrictFloat, Field(gt=0)],
1066
+ Annotated[StrictFloat, Field(gt=0)]
1067
+ ]
1068
+ ] = None,
1069
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1070
+ _content_type: Optional[StrictStr] = None,
1071
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1072
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1073
+ ) -> RESTResponseType:
1074
+ """Start a prepared pipeline run
1075
+
1076
+
1077
+ :param pipeline_name: A string identifier to used to identify a pipeline in the service. (required)
1078
+ :type pipeline_name: str
1079
+ :param start_pipeline_run_request_body: (required)
1080
+ :type start_pipeline_run_request_body: StartPipelineRunRequestBody
1081
+ :param _request_timeout: timeout setting for this request. If one
1082
+ number provided, it will be total request
1083
+ timeout. It can also be a pair (tuple) of
1084
+ (connection, read) timeouts.
1085
+ :type _request_timeout: int, tuple(int, int), optional
1086
+ :param _request_auth: set to override the auth_settings for an a single
1087
+ request; this effectively ignores the
1088
+ authentication in the spec for a single request.
1089
+ :type _request_auth: dict, optional
1090
+ :param _content_type: force content-type for the request.
1091
+ :type _content_type: str, Optional
1092
+ :param _headers: set to override the headers for a single
1093
+ request; this effectively ignores the headers
1094
+ in the spec for a single request.
1095
+ :type _headers: dict, optional
1096
+ :param _host_index: set to override the host_index for a single
1097
+ request; this effectively ignores the host_index
1098
+ in the spec for a single request.
1099
+ :type _host_index: int, optional
1100
+ :return: Returns the result object.
1101
+ """ # noqa: E501
1102
+
1103
+ _param = self._start_pipeline_run_serialize(
1104
+ pipeline_name=pipeline_name,
1105
+ start_pipeline_run_request_body=start_pipeline_run_request_body,
1106
+ _request_auth=_request_auth,
1107
+ _content_type=_content_type,
1108
+ _headers=_headers,
1109
+ _host_index=_host_index
1110
+ )
1111
+
1112
+ _response_types_map: Dict[str, Optional[str]] = {
1113
+ '200': "AsyncPipelineRunResponse",
1114
+ '202': "AsyncPipelineRunResponse",
1115
+ '400': "ErrorReport",
1116
+ '403': "ErrorReport",
1117
+ '404': "ErrorReport",
1118
+ '500': "ErrorReport",
1119
+ }
1120
+ response_data = self.api_client.call_api(
1121
+ *_param,
1122
+ _request_timeout=_request_timeout
1123
+ )
1124
+ return response_data.response
1125
+
1126
+
1127
+ def _start_pipeline_run_serialize(
1128
+ self,
1129
+ pipeline_name,
1130
+ start_pipeline_run_request_body,
1131
+ _request_auth,
1132
+ _content_type,
1133
+ _headers,
1134
+ _host_index,
1135
+ ) -> RequestSerialized:
1136
+
1137
+ _host = None
1138
+
1139
+ _collection_formats: Dict[str, str] = {
1140
+ }
1141
+
1142
+ _path_params: Dict[str, str] = {}
1143
+ _query_params: List[Tuple[str, str]] = []
1144
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1145
+ _form_params: List[Tuple[str, str]] = []
1146
+ _files: Dict[str, Union[str, bytes]] = {}
1147
+ _body_params: Optional[bytes] = None
1148
+
1149
+ # process the path parameters
1150
+ if pipeline_name is not None:
1151
+ _path_params['pipelineName'] = pipeline_name
1152
+ # process the query parameters
1153
+ # process the header parameters
1154
+ # process the form parameters
1155
+ # process the body parameter
1156
+ if start_pipeline_run_request_body is not None:
1157
+ _body_params = start_pipeline_run_request_body
1158
+
1159
+
1160
+ # set the HTTP header `Accept`
1161
+ if 'Accept' not in _header_params:
1162
+ _header_params['Accept'] = self.api_client.select_header_accept(
1163
+ [
1164
+ 'application/json'
1165
+ ]
1166
+ )
1167
+
1168
+ # set the HTTP header `Content-Type`
1169
+ if _content_type:
1170
+ _header_params['Content-Type'] = _content_type
1171
+ else:
1172
+ _default_content_type = (
1173
+ self.api_client.select_header_content_type(
1174
+ [
1175
+ 'application/json'
1176
+ ]
1177
+ )
1178
+ )
1179
+ if _default_content_type is not None:
1180
+ _header_params['Content-Type'] = _default_content_type
1181
+
1182
+ # authentication setting
1183
+ _auth_settings: List[str] = [
1184
+ 'oidc',
1185
+ 'bearerAuth'
1186
+ ]
1187
+
1188
+ return self.api_client.param_serialize(
1189
+ method='POST',
1190
+ resource_path='/api/pipelineruns/v1/{pipelineName}/start',
1191
+ path_params=_path_params,
1192
+ query_params=_query_params,
1193
+ header_params=_header_params,
1194
+ body=_body_params,
1195
+ post_params=_form_params,
1196
+ files=_files,
1197
+ auth_settings=_auth_settings,
1198
+ collection_formats=_collection_formats,
1199
+ _host=_host,
1200
+ _request_auth=_request_auth
1201
+ )
1202
+
1203
+