queueflow 0.1.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.
- queueflow/__init__.py +80 -0
- queueflow/api/__init__.py +11 -0
- queueflow/api/cron_api.py +1808 -0
- queueflow/api/dlq_api.py +996 -0
- queueflow/api/health_api.py +527 -0
- queueflow/api/jobs_api.py +1830 -0
- queueflow/api/system_api.py +523 -0
- queueflow/api/worker_api.py +1229 -0
- queueflow/api/workflows_api.py +1804 -0
- queueflow/api_client.py +797 -0
- queueflow/api_response.py +21 -0
- queueflow/configuration.py +579 -0
- queueflow/exceptions.py +199 -0
- queueflow/facade.py +255 -0
- queueflow/models/__init__.py +57 -0
- queueflow/models/backoff_strategy.py +38 -0
- queueflow/models/complete_job_request.py +89 -0
- queueflow/models/create_batch_jobs_request.py +95 -0
- queueflow/models/create_batch_jobs_response.py +90 -0
- queueflow/models/create_cron_request.py +111 -0
- queueflow/models/create_cron_response.py +87 -0
- queueflow/models/create_job_request.py +108 -0
- queueflow/models/create_job_response.py +87 -0
- queueflow/models/create_workflow_request.py +101 -0
- queueflow/models/create_workflow_response.py +87 -0
- queueflow/models/cron_schedule.py +134 -0
- queueflow/models/dead_letter.py +136 -0
- queueflow/models/error_body.py +90 -0
- queueflow/models/fail_job_request.py +91 -0
- queueflow/models/health_status.py +92 -0
- queueflow/models/heartbeat_request.py +90 -0
- queueflow/models/heartbeat_response.py +88 -0
- queueflow/models/job.py +172 -0
- queueflow/models/job_config.py +106 -0
- queueflow/models/job_config_request.py +143 -0
- queueflow/models/job_status.py +41 -0
- queueflow/models/lease_jobs_request.py +107 -0
- queueflow/models/lease_jobs_response.py +95 -0
- queueflow/models/leased_job.py +93 -0
- queueflow/models/list_crons_response.py +115 -0
- queueflow/models/list_dead_letters_response.py +115 -0
- queueflow/models/list_jobs_response.py +115 -0
- queueflow/models/list_workflows_response.py +115 -0
- queueflow/models/on_failure.py +38 -0
- queueflow/models/on_success.py +36 -0
- queueflow/models/ready_status.py +87 -0
- queueflow/models/replay_dead_letter_response.py +87 -0
- queueflow/models/stats_snapshot.py +102 -0
- queueflow/models/step_status.py +41 -0
- queueflow/models/tasks_response.py +87 -0
- queueflow/models/workflow.py +130 -0
- queueflow/models/workflow_diagram_response.py +89 -0
- queueflow/models/workflow_status.py +41 -0
- queueflow/models/workflow_step.py +112 -0
- queueflow/models/workflow_step_state.py +97 -0
- queueflow/models/workflow_step_states_response.py +95 -0
- queueflow/py.typed +0 -0
- queueflow/rest.py +257 -0
- queueflow-0.1.0.dist-info/METADATA +26 -0
- queueflow-0.1.0.dist-info/RECORD +62 -0
- queueflow-0.1.0.dist-info/WHEEL +5 -0
- queueflow-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1804 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
QueueFlow API
|
|
5
|
+
|
|
6
|
+
REST API for QueueFlow, a PostgreSQL-native distributed job queue and workflow engine.
|
|
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 datetime import datetime
|
|
20
|
+
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
21
|
+
from typing import Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from queueflow.models.create_workflow_request import CreateWorkflowRequest
|
|
24
|
+
from queueflow.models.create_workflow_response import CreateWorkflowResponse
|
|
25
|
+
from queueflow.models.list_workflows_response import ListWorkflowsResponse
|
|
26
|
+
from queueflow.models.workflow import Workflow
|
|
27
|
+
from queueflow.models.workflow_diagram_response import WorkflowDiagramResponse
|
|
28
|
+
from queueflow.models.workflow_step_states_response import WorkflowStepStatesResponse
|
|
29
|
+
|
|
30
|
+
from queueflow.api_client import ApiClient, RequestSerialized
|
|
31
|
+
from queueflow.api_response import ApiResponse
|
|
32
|
+
from queueflow.rest import RESTResponseType
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class WorkflowsApi:
|
|
36
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
37
|
+
Ref: https://openapi-generator.tech
|
|
38
|
+
|
|
39
|
+
Do not edit the class manually.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
def __init__(self, api_client=None) -> None:
|
|
43
|
+
if api_client is None:
|
|
44
|
+
api_client = ApiClient.get_default()
|
|
45
|
+
self.api_client = api_client
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@validate_call
|
|
49
|
+
def cancel_workflow(
|
|
50
|
+
self,
|
|
51
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> None:
|
|
65
|
+
"""cancel_workflow
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:param id: Workflow id (required)
|
|
69
|
+
:type id: str
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._cancel_workflow_serialize(
|
|
93
|
+
id=id,
|
|
94
|
+
_request_auth=_request_auth,
|
|
95
|
+
_content_type=_content_type,
|
|
96
|
+
_headers=_headers,
|
|
97
|
+
_host_index=_host_index
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
+
'204': None,
|
|
102
|
+
'401': "ErrorBody",
|
|
103
|
+
'403': "ErrorBody",
|
|
104
|
+
'404': "ErrorBody",
|
|
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 cancel_workflow_with_http_info(
|
|
119
|
+
self,
|
|
120
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
121
|
+
_request_timeout: Union[
|
|
122
|
+
None,
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
124
|
+
Tuple[
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
127
|
+
]
|
|
128
|
+
] = None,
|
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
133
|
+
) -> ApiResponse[None]:
|
|
134
|
+
"""cancel_workflow
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param id: Workflow id (required)
|
|
138
|
+
:type id: str
|
|
139
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
140
|
+
number provided, it will be total request
|
|
141
|
+
timeout. It can also be a pair (tuple) of
|
|
142
|
+
(connection, read) timeouts.
|
|
143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
145
|
+
request; this effectively ignores the
|
|
146
|
+
authentication in the spec for a single request.
|
|
147
|
+
:type _request_auth: dict, optional
|
|
148
|
+
:param _content_type: force content-type for the request.
|
|
149
|
+
:type _content_type: str, Optional
|
|
150
|
+
:param _headers: set to override the headers for a single
|
|
151
|
+
request; this effectively ignores the headers
|
|
152
|
+
in the spec for a single request.
|
|
153
|
+
:type _headers: dict, optional
|
|
154
|
+
:param _host_index: set to override the host_index for a single
|
|
155
|
+
request; this effectively ignores the host_index
|
|
156
|
+
in the spec for a single request.
|
|
157
|
+
:type _host_index: int, optional
|
|
158
|
+
:return: Returns the result object.
|
|
159
|
+
""" # noqa: E501
|
|
160
|
+
|
|
161
|
+
_param = self._cancel_workflow_serialize(
|
|
162
|
+
id=id,
|
|
163
|
+
_request_auth=_request_auth,
|
|
164
|
+
_content_type=_content_type,
|
|
165
|
+
_headers=_headers,
|
|
166
|
+
_host_index=_host_index
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
+
'204': None,
|
|
171
|
+
'401': "ErrorBody",
|
|
172
|
+
'403': "ErrorBody",
|
|
173
|
+
'404': "ErrorBody",
|
|
174
|
+
}
|
|
175
|
+
response_data = self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
179
|
+
response_data.read()
|
|
180
|
+
return self.api_client.response_deserialize(
|
|
181
|
+
response_data=response_data,
|
|
182
|
+
response_types_map=_response_types_map,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@validate_call
|
|
187
|
+
def cancel_workflow_without_preload_content(
|
|
188
|
+
self,
|
|
189
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""cancel_workflow
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
:param id: Workflow id (required)
|
|
207
|
+
:type id: str
|
|
208
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
209
|
+
number provided, it will be total request
|
|
210
|
+
timeout. It can also be a pair (tuple) of
|
|
211
|
+
(connection, read) timeouts.
|
|
212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
214
|
+
request; this effectively ignores the
|
|
215
|
+
authentication in the spec for a single request.
|
|
216
|
+
:type _request_auth: dict, optional
|
|
217
|
+
:param _content_type: force content-type for the request.
|
|
218
|
+
:type _content_type: str, Optional
|
|
219
|
+
:param _headers: set to override the headers for a single
|
|
220
|
+
request; this effectively ignores the headers
|
|
221
|
+
in the spec for a single request.
|
|
222
|
+
:type _headers: dict, optional
|
|
223
|
+
:param _host_index: set to override the host_index for a single
|
|
224
|
+
request; this effectively ignores the host_index
|
|
225
|
+
in the spec for a single request.
|
|
226
|
+
:type _host_index: int, optional
|
|
227
|
+
:return: Returns the result object.
|
|
228
|
+
""" # noqa: E501
|
|
229
|
+
|
|
230
|
+
_param = self._cancel_workflow_serialize(
|
|
231
|
+
id=id,
|
|
232
|
+
_request_auth=_request_auth,
|
|
233
|
+
_content_type=_content_type,
|
|
234
|
+
_headers=_headers,
|
|
235
|
+
_host_index=_host_index
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
239
|
+
'204': None,
|
|
240
|
+
'401': "ErrorBody",
|
|
241
|
+
'403': "ErrorBody",
|
|
242
|
+
'404': "ErrorBody",
|
|
243
|
+
}
|
|
244
|
+
response_data = self.api_client.call_api(
|
|
245
|
+
*_param,
|
|
246
|
+
_request_timeout=_request_timeout
|
|
247
|
+
)
|
|
248
|
+
return response_data.response
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def _cancel_workflow_serialize(
|
|
252
|
+
self,
|
|
253
|
+
id,
|
|
254
|
+
_request_auth,
|
|
255
|
+
_content_type,
|
|
256
|
+
_headers,
|
|
257
|
+
_host_index,
|
|
258
|
+
) -> RequestSerialized:
|
|
259
|
+
|
|
260
|
+
_host = None
|
|
261
|
+
|
|
262
|
+
_collection_formats: Dict[str, str] = {
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
_path_params: Dict[str, str] = {}
|
|
266
|
+
_query_params: List[Tuple[str, str]] = []
|
|
267
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
268
|
+
_form_params: List[Tuple[str, str]] = []
|
|
269
|
+
_files: Dict[
|
|
270
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
271
|
+
] = {}
|
|
272
|
+
_body_params: Optional[bytes] = None
|
|
273
|
+
|
|
274
|
+
# process the path parameters
|
|
275
|
+
if id is not None:
|
|
276
|
+
_path_params['id'] = id
|
|
277
|
+
# process the query parameters
|
|
278
|
+
# process the header parameters
|
|
279
|
+
# process the form parameters
|
|
280
|
+
# process the body parameter
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# set the HTTP header `Accept`
|
|
284
|
+
if 'Accept' not in _header_params:
|
|
285
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
286
|
+
[
|
|
287
|
+
'application/json'
|
|
288
|
+
]
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
# authentication setting
|
|
293
|
+
_auth_settings: List[str] = [
|
|
294
|
+
'bearerAuth'
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
return self.api_client.param_serialize(
|
|
298
|
+
method='POST',
|
|
299
|
+
resource_path='/api/v1/workflows/{id}/cancel',
|
|
300
|
+
path_params=_path_params,
|
|
301
|
+
query_params=_query_params,
|
|
302
|
+
header_params=_header_params,
|
|
303
|
+
body=_body_params,
|
|
304
|
+
post_params=_form_params,
|
|
305
|
+
files=_files,
|
|
306
|
+
auth_settings=_auth_settings,
|
|
307
|
+
collection_formats=_collection_formats,
|
|
308
|
+
_host=_host,
|
|
309
|
+
_request_auth=_request_auth
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
@validate_call
|
|
316
|
+
def create_workflow(
|
|
317
|
+
self,
|
|
318
|
+
create_workflow_request: CreateWorkflowRequest,
|
|
319
|
+
_request_timeout: Union[
|
|
320
|
+
None,
|
|
321
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
322
|
+
Tuple[
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
325
|
+
]
|
|
326
|
+
] = None,
|
|
327
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
328
|
+
_content_type: Optional[StrictStr] = None,
|
|
329
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
331
|
+
) -> CreateWorkflowResponse:
|
|
332
|
+
"""create_workflow
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param create_workflow_request: (required)
|
|
336
|
+
:type create_workflow_request: CreateWorkflowRequest
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._create_workflow_serialize(
|
|
360
|
+
create_workflow_request=create_workflow_request,
|
|
361
|
+
_request_auth=_request_auth,
|
|
362
|
+
_content_type=_content_type,
|
|
363
|
+
_headers=_headers,
|
|
364
|
+
_host_index=_host_index
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
368
|
+
'201': "CreateWorkflowResponse",
|
|
369
|
+
'400': "ErrorBody",
|
|
370
|
+
'401': "ErrorBody",
|
|
371
|
+
}
|
|
372
|
+
response_data = self.api_client.call_api(
|
|
373
|
+
*_param,
|
|
374
|
+
_request_timeout=_request_timeout
|
|
375
|
+
)
|
|
376
|
+
response_data.read()
|
|
377
|
+
return self.api_client.response_deserialize(
|
|
378
|
+
response_data=response_data,
|
|
379
|
+
response_types_map=_response_types_map,
|
|
380
|
+
).data
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
@validate_call
|
|
384
|
+
def create_workflow_with_http_info(
|
|
385
|
+
self,
|
|
386
|
+
create_workflow_request: CreateWorkflowRequest,
|
|
387
|
+
_request_timeout: Union[
|
|
388
|
+
None,
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
390
|
+
Tuple[
|
|
391
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
392
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
393
|
+
]
|
|
394
|
+
] = None,
|
|
395
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
396
|
+
_content_type: Optional[StrictStr] = None,
|
|
397
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
398
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
399
|
+
) -> ApiResponse[CreateWorkflowResponse]:
|
|
400
|
+
"""create_workflow
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
:param create_workflow_request: (required)
|
|
404
|
+
:type create_workflow_request: CreateWorkflowRequest
|
|
405
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
406
|
+
number provided, it will be total request
|
|
407
|
+
timeout. It can also be a pair (tuple) of
|
|
408
|
+
(connection, read) timeouts.
|
|
409
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
410
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
411
|
+
request; this effectively ignores the
|
|
412
|
+
authentication in the spec for a single request.
|
|
413
|
+
:type _request_auth: dict, optional
|
|
414
|
+
:param _content_type: force content-type for the request.
|
|
415
|
+
:type _content_type: str, Optional
|
|
416
|
+
:param _headers: set to override the headers for a single
|
|
417
|
+
request; this effectively ignores the headers
|
|
418
|
+
in the spec for a single request.
|
|
419
|
+
:type _headers: dict, optional
|
|
420
|
+
:param _host_index: set to override the host_index for a single
|
|
421
|
+
request; this effectively ignores the host_index
|
|
422
|
+
in the spec for a single request.
|
|
423
|
+
:type _host_index: int, optional
|
|
424
|
+
:return: Returns the result object.
|
|
425
|
+
""" # noqa: E501
|
|
426
|
+
|
|
427
|
+
_param = self._create_workflow_serialize(
|
|
428
|
+
create_workflow_request=create_workflow_request,
|
|
429
|
+
_request_auth=_request_auth,
|
|
430
|
+
_content_type=_content_type,
|
|
431
|
+
_headers=_headers,
|
|
432
|
+
_host_index=_host_index
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
436
|
+
'201': "CreateWorkflowResponse",
|
|
437
|
+
'400': "ErrorBody",
|
|
438
|
+
'401': "ErrorBody",
|
|
439
|
+
}
|
|
440
|
+
response_data = self.api_client.call_api(
|
|
441
|
+
*_param,
|
|
442
|
+
_request_timeout=_request_timeout
|
|
443
|
+
)
|
|
444
|
+
response_data.read()
|
|
445
|
+
return self.api_client.response_deserialize(
|
|
446
|
+
response_data=response_data,
|
|
447
|
+
response_types_map=_response_types_map,
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
@validate_call
|
|
452
|
+
def create_workflow_without_preload_content(
|
|
453
|
+
self,
|
|
454
|
+
create_workflow_request: CreateWorkflowRequest,
|
|
455
|
+
_request_timeout: Union[
|
|
456
|
+
None,
|
|
457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
458
|
+
Tuple[
|
|
459
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
461
|
+
]
|
|
462
|
+
] = None,
|
|
463
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
464
|
+
_content_type: Optional[StrictStr] = None,
|
|
465
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
466
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
467
|
+
) -> RESTResponseType:
|
|
468
|
+
"""create_workflow
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
:param create_workflow_request: (required)
|
|
472
|
+
:type create_workflow_request: CreateWorkflowRequest
|
|
473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
474
|
+
number provided, it will be total request
|
|
475
|
+
timeout. It can also be a pair (tuple) of
|
|
476
|
+
(connection, read) timeouts.
|
|
477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
479
|
+
request; this effectively ignores the
|
|
480
|
+
authentication in the spec for a single request.
|
|
481
|
+
:type _request_auth: dict, optional
|
|
482
|
+
:param _content_type: force content-type for the request.
|
|
483
|
+
:type _content_type: str, Optional
|
|
484
|
+
:param _headers: set to override the headers for a single
|
|
485
|
+
request; this effectively ignores the headers
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _headers: dict, optional
|
|
488
|
+
:param _host_index: set to override the host_index for a single
|
|
489
|
+
request; this effectively ignores the host_index
|
|
490
|
+
in the spec for a single request.
|
|
491
|
+
:type _host_index: int, optional
|
|
492
|
+
:return: Returns the result object.
|
|
493
|
+
""" # noqa: E501
|
|
494
|
+
|
|
495
|
+
_param = self._create_workflow_serialize(
|
|
496
|
+
create_workflow_request=create_workflow_request,
|
|
497
|
+
_request_auth=_request_auth,
|
|
498
|
+
_content_type=_content_type,
|
|
499
|
+
_headers=_headers,
|
|
500
|
+
_host_index=_host_index
|
|
501
|
+
)
|
|
502
|
+
|
|
503
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
504
|
+
'201': "CreateWorkflowResponse",
|
|
505
|
+
'400': "ErrorBody",
|
|
506
|
+
'401': "ErrorBody",
|
|
507
|
+
}
|
|
508
|
+
response_data = self.api_client.call_api(
|
|
509
|
+
*_param,
|
|
510
|
+
_request_timeout=_request_timeout
|
|
511
|
+
)
|
|
512
|
+
return response_data.response
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def _create_workflow_serialize(
|
|
516
|
+
self,
|
|
517
|
+
create_workflow_request,
|
|
518
|
+
_request_auth,
|
|
519
|
+
_content_type,
|
|
520
|
+
_headers,
|
|
521
|
+
_host_index,
|
|
522
|
+
) -> RequestSerialized:
|
|
523
|
+
|
|
524
|
+
_host = None
|
|
525
|
+
|
|
526
|
+
_collection_formats: Dict[str, str] = {
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
_path_params: Dict[str, str] = {}
|
|
530
|
+
_query_params: List[Tuple[str, str]] = []
|
|
531
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
532
|
+
_form_params: List[Tuple[str, str]] = []
|
|
533
|
+
_files: Dict[
|
|
534
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
535
|
+
] = {}
|
|
536
|
+
_body_params: Optional[bytes] = None
|
|
537
|
+
|
|
538
|
+
# process the path parameters
|
|
539
|
+
# process the query parameters
|
|
540
|
+
# process the header parameters
|
|
541
|
+
# process the form parameters
|
|
542
|
+
# process the body parameter
|
|
543
|
+
if create_workflow_request is not None:
|
|
544
|
+
_body_params = create_workflow_request
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
# set the HTTP header `Accept`
|
|
548
|
+
if 'Accept' not in _header_params:
|
|
549
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
550
|
+
[
|
|
551
|
+
'application/json'
|
|
552
|
+
]
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
# set the HTTP header `Content-Type`
|
|
556
|
+
if _content_type:
|
|
557
|
+
_header_params['Content-Type'] = _content_type
|
|
558
|
+
else:
|
|
559
|
+
_default_content_type = (
|
|
560
|
+
self.api_client.select_header_content_type(
|
|
561
|
+
[
|
|
562
|
+
'application/json'
|
|
563
|
+
]
|
|
564
|
+
)
|
|
565
|
+
)
|
|
566
|
+
if _default_content_type is not None:
|
|
567
|
+
_header_params['Content-Type'] = _default_content_type
|
|
568
|
+
|
|
569
|
+
# authentication setting
|
|
570
|
+
_auth_settings: List[str] = [
|
|
571
|
+
'bearerAuth'
|
|
572
|
+
]
|
|
573
|
+
|
|
574
|
+
return self.api_client.param_serialize(
|
|
575
|
+
method='POST',
|
|
576
|
+
resource_path='/api/v1/workflows',
|
|
577
|
+
path_params=_path_params,
|
|
578
|
+
query_params=_query_params,
|
|
579
|
+
header_params=_header_params,
|
|
580
|
+
body=_body_params,
|
|
581
|
+
post_params=_form_params,
|
|
582
|
+
files=_files,
|
|
583
|
+
auth_settings=_auth_settings,
|
|
584
|
+
collection_formats=_collection_formats,
|
|
585
|
+
_host=_host,
|
|
586
|
+
_request_auth=_request_auth
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
@validate_call
|
|
593
|
+
def get_workflow(
|
|
594
|
+
self,
|
|
595
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
596
|
+
_request_timeout: Union[
|
|
597
|
+
None,
|
|
598
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
599
|
+
Tuple[
|
|
600
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
601
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
602
|
+
]
|
|
603
|
+
] = None,
|
|
604
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
605
|
+
_content_type: Optional[StrictStr] = None,
|
|
606
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
607
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
608
|
+
) -> Workflow:
|
|
609
|
+
"""get_workflow
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
:param id: Workflow id (required)
|
|
613
|
+
:type id: str
|
|
614
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
615
|
+
number provided, it will be total request
|
|
616
|
+
timeout. It can also be a pair (tuple) of
|
|
617
|
+
(connection, read) timeouts.
|
|
618
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
619
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
620
|
+
request; this effectively ignores the
|
|
621
|
+
authentication in the spec for a single request.
|
|
622
|
+
:type _request_auth: dict, optional
|
|
623
|
+
:param _content_type: force content-type for the request.
|
|
624
|
+
:type _content_type: str, Optional
|
|
625
|
+
:param _headers: set to override the headers for a single
|
|
626
|
+
request; this effectively ignores the headers
|
|
627
|
+
in the spec for a single request.
|
|
628
|
+
:type _headers: dict, optional
|
|
629
|
+
:param _host_index: set to override the host_index for a single
|
|
630
|
+
request; this effectively ignores the host_index
|
|
631
|
+
in the spec for a single request.
|
|
632
|
+
:type _host_index: int, optional
|
|
633
|
+
:return: Returns the result object.
|
|
634
|
+
""" # noqa: E501
|
|
635
|
+
|
|
636
|
+
_param = self._get_workflow_serialize(
|
|
637
|
+
id=id,
|
|
638
|
+
_request_auth=_request_auth,
|
|
639
|
+
_content_type=_content_type,
|
|
640
|
+
_headers=_headers,
|
|
641
|
+
_host_index=_host_index
|
|
642
|
+
)
|
|
643
|
+
|
|
644
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
645
|
+
'200': "Workflow",
|
|
646
|
+
'403': "ErrorBody",
|
|
647
|
+
'404': "ErrorBody",
|
|
648
|
+
}
|
|
649
|
+
response_data = self.api_client.call_api(
|
|
650
|
+
*_param,
|
|
651
|
+
_request_timeout=_request_timeout
|
|
652
|
+
)
|
|
653
|
+
response_data.read()
|
|
654
|
+
return self.api_client.response_deserialize(
|
|
655
|
+
response_data=response_data,
|
|
656
|
+
response_types_map=_response_types_map,
|
|
657
|
+
).data
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
@validate_call
|
|
661
|
+
def get_workflow_with_http_info(
|
|
662
|
+
self,
|
|
663
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
664
|
+
_request_timeout: Union[
|
|
665
|
+
None,
|
|
666
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
667
|
+
Tuple[
|
|
668
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
669
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
670
|
+
]
|
|
671
|
+
] = None,
|
|
672
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
673
|
+
_content_type: Optional[StrictStr] = None,
|
|
674
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
675
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
676
|
+
) -> ApiResponse[Workflow]:
|
|
677
|
+
"""get_workflow
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
:param id: Workflow id (required)
|
|
681
|
+
:type id: str
|
|
682
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
683
|
+
number provided, it will be total request
|
|
684
|
+
timeout. It can also be a pair (tuple) of
|
|
685
|
+
(connection, read) timeouts.
|
|
686
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
687
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
688
|
+
request; this effectively ignores the
|
|
689
|
+
authentication in the spec for a single request.
|
|
690
|
+
:type _request_auth: dict, optional
|
|
691
|
+
:param _content_type: force content-type for the request.
|
|
692
|
+
:type _content_type: str, Optional
|
|
693
|
+
:param _headers: set to override the headers for a single
|
|
694
|
+
request; this effectively ignores the headers
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _headers: dict, optional
|
|
697
|
+
:param _host_index: set to override the host_index for a single
|
|
698
|
+
request; this effectively ignores the host_index
|
|
699
|
+
in the spec for a single request.
|
|
700
|
+
:type _host_index: int, optional
|
|
701
|
+
:return: Returns the result object.
|
|
702
|
+
""" # noqa: E501
|
|
703
|
+
|
|
704
|
+
_param = self._get_workflow_serialize(
|
|
705
|
+
id=id,
|
|
706
|
+
_request_auth=_request_auth,
|
|
707
|
+
_content_type=_content_type,
|
|
708
|
+
_headers=_headers,
|
|
709
|
+
_host_index=_host_index
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
713
|
+
'200': "Workflow",
|
|
714
|
+
'403': "ErrorBody",
|
|
715
|
+
'404': "ErrorBody",
|
|
716
|
+
}
|
|
717
|
+
response_data = self.api_client.call_api(
|
|
718
|
+
*_param,
|
|
719
|
+
_request_timeout=_request_timeout
|
|
720
|
+
)
|
|
721
|
+
response_data.read()
|
|
722
|
+
return self.api_client.response_deserialize(
|
|
723
|
+
response_data=response_data,
|
|
724
|
+
response_types_map=_response_types_map,
|
|
725
|
+
)
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
@validate_call
|
|
729
|
+
def get_workflow_without_preload_content(
|
|
730
|
+
self,
|
|
731
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
732
|
+
_request_timeout: Union[
|
|
733
|
+
None,
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
735
|
+
Tuple[
|
|
736
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
737
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
738
|
+
]
|
|
739
|
+
] = None,
|
|
740
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
741
|
+
_content_type: Optional[StrictStr] = None,
|
|
742
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
743
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
744
|
+
) -> RESTResponseType:
|
|
745
|
+
"""get_workflow
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
:param id: Workflow id (required)
|
|
749
|
+
:type id: str
|
|
750
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
751
|
+
number provided, it will be total request
|
|
752
|
+
timeout. It can also be a pair (tuple) of
|
|
753
|
+
(connection, read) timeouts.
|
|
754
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
755
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
756
|
+
request; this effectively ignores the
|
|
757
|
+
authentication in the spec for a single request.
|
|
758
|
+
:type _request_auth: dict, optional
|
|
759
|
+
:param _content_type: force content-type for the request.
|
|
760
|
+
:type _content_type: str, Optional
|
|
761
|
+
:param _headers: set to override the headers for a single
|
|
762
|
+
request; this effectively ignores the headers
|
|
763
|
+
in the spec for a single request.
|
|
764
|
+
:type _headers: dict, optional
|
|
765
|
+
:param _host_index: set to override the host_index for a single
|
|
766
|
+
request; this effectively ignores the host_index
|
|
767
|
+
in the spec for a single request.
|
|
768
|
+
:type _host_index: int, optional
|
|
769
|
+
:return: Returns the result object.
|
|
770
|
+
""" # noqa: E501
|
|
771
|
+
|
|
772
|
+
_param = self._get_workflow_serialize(
|
|
773
|
+
id=id,
|
|
774
|
+
_request_auth=_request_auth,
|
|
775
|
+
_content_type=_content_type,
|
|
776
|
+
_headers=_headers,
|
|
777
|
+
_host_index=_host_index
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
781
|
+
'200': "Workflow",
|
|
782
|
+
'403': "ErrorBody",
|
|
783
|
+
'404': "ErrorBody",
|
|
784
|
+
}
|
|
785
|
+
response_data = self.api_client.call_api(
|
|
786
|
+
*_param,
|
|
787
|
+
_request_timeout=_request_timeout
|
|
788
|
+
)
|
|
789
|
+
return response_data.response
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
def _get_workflow_serialize(
|
|
793
|
+
self,
|
|
794
|
+
id,
|
|
795
|
+
_request_auth,
|
|
796
|
+
_content_type,
|
|
797
|
+
_headers,
|
|
798
|
+
_host_index,
|
|
799
|
+
) -> RequestSerialized:
|
|
800
|
+
|
|
801
|
+
_host = None
|
|
802
|
+
|
|
803
|
+
_collection_formats: Dict[str, str] = {
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
_path_params: Dict[str, str] = {}
|
|
807
|
+
_query_params: List[Tuple[str, str]] = []
|
|
808
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
809
|
+
_form_params: List[Tuple[str, str]] = []
|
|
810
|
+
_files: Dict[
|
|
811
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
812
|
+
] = {}
|
|
813
|
+
_body_params: Optional[bytes] = None
|
|
814
|
+
|
|
815
|
+
# process the path parameters
|
|
816
|
+
if id is not None:
|
|
817
|
+
_path_params['id'] = id
|
|
818
|
+
# process the query parameters
|
|
819
|
+
# process the header parameters
|
|
820
|
+
# process the form parameters
|
|
821
|
+
# process the body parameter
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
# set the HTTP header `Accept`
|
|
825
|
+
if 'Accept' not in _header_params:
|
|
826
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
827
|
+
[
|
|
828
|
+
'application/json'
|
|
829
|
+
]
|
|
830
|
+
)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
# authentication setting
|
|
834
|
+
_auth_settings: List[str] = [
|
|
835
|
+
'bearerAuth'
|
|
836
|
+
]
|
|
837
|
+
|
|
838
|
+
return self.api_client.param_serialize(
|
|
839
|
+
method='GET',
|
|
840
|
+
resource_path='/api/v1/workflows/{id}',
|
|
841
|
+
path_params=_path_params,
|
|
842
|
+
query_params=_query_params,
|
|
843
|
+
header_params=_header_params,
|
|
844
|
+
body=_body_params,
|
|
845
|
+
post_params=_form_params,
|
|
846
|
+
files=_files,
|
|
847
|
+
auth_settings=_auth_settings,
|
|
848
|
+
collection_formats=_collection_formats,
|
|
849
|
+
_host=_host,
|
|
850
|
+
_request_auth=_request_auth
|
|
851
|
+
)
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
@validate_call
|
|
857
|
+
def get_workflow_diagram(
|
|
858
|
+
self,
|
|
859
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
860
|
+
_request_timeout: Union[
|
|
861
|
+
None,
|
|
862
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
863
|
+
Tuple[
|
|
864
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
865
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
866
|
+
]
|
|
867
|
+
] = None,
|
|
868
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
869
|
+
_content_type: Optional[StrictStr] = None,
|
|
870
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
871
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
872
|
+
) -> WorkflowDiagramResponse:
|
|
873
|
+
"""get_workflow_diagram
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
:param id: Workflow id (required)
|
|
877
|
+
:type id: str
|
|
878
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
879
|
+
number provided, it will be total request
|
|
880
|
+
timeout. It can also be a pair (tuple) of
|
|
881
|
+
(connection, read) timeouts.
|
|
882
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
883
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
884
|
+
request; this effectively ignores the
|
|
885
|
+
authentication in the spec for a single request.
|
|
886
|
+
:type _request_auth: dict, optional
|
|
887
|
+
:param _content_type: force content-type for the request.
|
|
888
|
+
:type _content_type: str, Optional
|
|
889
|
+
:param _headers: set to override the headers for a single
|
|
890
|
+
request; this effectively ignores the headers
|
|
891
|
+
in the spec for a single request.
|
|
892
|
+
:type _headers: dict, optional
|
|
893
|
+
:param _host_index: set to override the host_index for a single
|
|
894
|
+
request; this effectively ignores the host_index
|
|
895
|
+
in the spec for a single request.
|
|
896
|
+
:type _host_index: int, optional
|
|
897
|
+
:return: Returns the result object.
|
|
898
|
+
""" # noqa: E501
|
|
899
|
+
|
|
900
|
+
_param = self._get_workflow_diagram_serialize(
|
|
901
|
+
id=id,
|
|
902
|
+
_request_auth=_request_auth,
|
|
903
|
+
_content_type=_content_type,
|
|
904
|
+
_headers=_headers,
|
|
905
|
+
_host_index=_host_index
|
|
906
|
+
)
|
|
907
|
+
|
|
908
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
909
|
+
'200': "WorkflowDiagramResponse",
|
|
910
|
+
'401': "ErrorBody",
|
|
911
|
+
'403': "ErrorBody",
|
|
912
|
+
'404': "ErrorBody",
|
|
913
|
+
}
|
|
914
|
+
response_data = self.api_client.call_api(
|
|
915
|
+
*_param,
|
|
916
|
+
_request_timeout=_request_timeout
|
|
917
|
+
)
|
|
918
|
+
response_data.read()
|
|
919
|
+
return self.api_client.response_deserialize(
|
|
920
|
+
response_data=response_data,
|
|
921
|
+
response_types_map=_response_types_map,
|
|
922
|
+
).data
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
@validate_call
|
|
926
|
+
def get_workflow_diagram_with_http_info(
|
|
927
|
+
self,
|
|
928
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
929
|
+
_request_timeout: Union[
|
|
930
|
+
None,
|
|
931
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
932
|
+
Tuple[
|
|
933
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
934
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
935
|
+
]
|
|
936
|
+
] = None,
|
|
937
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
938
|
+
_content_type: Optional[StrictStr] = None,
|
|
939
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
940
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
941
|
+
) -> ApiResponse[WorkflowDiagramResponse]:
|
|
942
|
+
"""get_workflow_diagram
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
:param id: Workflow id (required)
|
|
946
|
+
:type id: str
|
|
947
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
948
|
+
number provided, it will be total request
|
|
949
|
+
timeout. It can also be a pair (tuple) of
|
|
950
|
+
(connection, read) timeouts.
|
|
951
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
952
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
953
|
+
request; this effectively ignores the
|
|
954
|
+
authentication in the spec for a single request.
|
|
955
|
+
:type _request_auth: dict, optional
|
|
956
|
+
:param _content_type: force content-type for the request.
|
|
957
|
+
:type _content_type: str, Optional
|
|
958
|
+
:param _headers: set to override the headers for a single
|
|
959
|
+
request; this effectively ignores the headers
|
|
960
|
+
in the spec for a single request.
|
|
961
|
+
:type _headers: dict, optional
|
|
962
|
+
:param _host_index: set to override the host_index for a single
|
|
963
|
+
request; this effectively ignores the host_index
|
|
964
|
+
in the spec for a single request.
|
|
965
|
+
:type _host_index: int, optional
|
|
966
|
+
:return: Returns the result object.
|
|
967
|
+
""" # noqa: E501
|
|
968
|
+
|
|
969
|
+
_param = self._get_workflow_diagram_serialize(
|
|
970
|
+
id=id,
|
|
971
|
+
_request_auth=_request_auth,
|
|
972
|
+
_content_type=_content_type,
|
|
973
|
+
_headers=_headers,
|
|
974
|
+
_host_index=_host_index
|
|
975
|
+
)
|
|
976
|
+
|
|
977
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
978
|
+
'200': "WorkflowDiagramResponse",
|
|
979
|
+
'401': "ErrorBody",
|
|
980
|
+
'403': "ErrorBody",
|
|
981
|
+
'404': "ErrorBody",
|
|
982
|
+
}
|
|
983
|
+
response_data = self.api_client.call_api(
|
|
984
|
+
*_param,
|
|
985
|
+
_request_timeout=_request_timeout
|
|
986
|
+
)
|
|
987
|
+
response_data.read()
|
|
988
|
+
return self.api_client.response_deserialize(
|
|
989
|
+
response_data=response_data,
|
|
990
|
+
response_types_map=_response_types_map,
|
|
991
|
+
)
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
@validate_call
|
|
995
|
+
def get_workflow_diagram_without_preload_content(
|
|
996
|
+
self,
|
|
997
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
998
|
+
_request_timeout: Union[
|
|
999
|
+
None,
|
|
1000
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1001
|
+
Tuple[
|
|
1002
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1003
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1004
|
+
]
|
|
1005
|
+
] = None,
|
|
1006
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
|
+
_content_type: Optional[StrictStr] = None,
|
|
1008
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1009
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1010
|
+
) -> RESTResponseType:
|
|
1011
|
+
"""get_workflow_diagram
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
:param id: Workflow id (required)
|
|
1015
|
+
:type id: str
|
|
1016
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1017
|
+
number provided, it will be total request
|
|
1018
|
+
timeout. It can also be a pair (tuple) of
|
|
1019
|
+
(connection, read) timeouts.
|
|
1020
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1021
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1022
|
+
request; this effectively ignores the
|
|
1023
|
+
authentication in the spec for a single request.
|
|
1024
|
+
:type _request_auth: dict, optional
|
|
1025
|
+
:param _content_type: force content-type for the request.
|
|
1026
|
+
:type _content_type: str, Optional
|
|
1027
|
+
:param _headers: set to override the headers for a single
|
|
1028
|
+
request; this effectively ignores the headers
|
|
1029
|
+
in the spec for a single request.
|
|
1030
|
+
:type _headers: dict, optional
|
|
1031
|
+
:param _host_index: set to override the host_index for a single
|
|
1032
|
+
request; this effectively ignores the host_index
|
|
1033
|
+
in the spec for a single request.
|
|
1034
|
+
:type _host_index: int, optional
|
|
1035
|
+
:return: Returns the result object.
|
|
1036
|
+
""" # noqa: E501
|
|
1037
|
+
|
|
1038
|
+
_param = self._get_workflow_diagram_serialize(
|
|
1039
|
+
id=id,
|
|
1040
|
+
_request_auth=_request_auth,
|
|
1041
|
+
_content_type=_content_type,
|
|
1042
|
+
_headers=_headers,
|
|
1043
|
+
_host_index=_host_index
|
|
1044
|
+
)
|
|
1045
|
+
|
|
1046
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1047
|
+
'200': "WorkflowDiagramResponse",
|
|
1048
|
+
'401': "ErrorBody",
|
|
1049
|
+
'403': "ErrorBody",
|
|
1050
|
+
'404': "ErrorBody",
|
|
1051
|
+
}
|
|
1052
|
+
response_data = self.api_client.call_api(
|
|
1053
|
+
*_param,
|
|
1054
|
+
_request_timeout=_request_timeout
|
|
1055
|
+
)
|
|
1056
|
+
return response_data.response
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
def _get_workflow_diagram_serialize(
|
|
1060
|
+
self,
|
|
1061
|
+
id,
|
|
1062
|
+
_request_auth,
|
|
1063
|
+
_content_type,
|
|
1064
|
+
_headers,
|
|
1065
|
+
_host_index,
|
|
1066
|
+
) -> RequestSerialized:
|
|
1067
|
+
|
|
1068
|
+
_host = None
|
|
1069
|
+
|
|
1070
|
+
_collection_formats: Dict[str, str] = {
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
_path_params: Dict[str, str] = {}
|
|
1074
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1075
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1076
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1077
|
+
_files: Dict[
|
|
1078
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1079
|
+
] = {}
|
|
1080
|
+
_body_params: Optional[bytes] = None
|
|
1081
|
+
|
|
1082
|
+
# process the path parameters
|
|
1083
|
+
if id is not None:
|
|
1084
|
+
_path_params['id'] = id
|
|
1085
|
+
# process the query parameters
|
|
1086
|
+
# process the header parameters
|
|
1087
|
+
# process the form parameters
|
|
1088
|
+
# process the body parameter
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
# set the HTTP header `Accept`
|
|
1092
|
+
if 'Accept' not in _header_params:
|
|
1093
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1094
|
+
[
|
|
1095
|
+
'application/json'
|
|
1096
|
+
]
|
|
1097
|
+
)
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
# authentication setting
|
|
1101
|
+
_auth_settings: List[str] = [
|
|
1102
|
+
'bearerAuth'
|
|
1103
|
+
]
|
|
1104
|
+
|
|
1105
|
+
return self.api_client.param_serialize(
|
|
1106
|
+
method='GET',
|
|
1107
|
+
resource_path='/api/v1/workflows/{id}/diagram',
|
|
1108
|
+
path_params=_path_params,
|
|
1109
|
+
query_params=_query_params,
|
|
1110
|
+
header_params=_header_params,
|
|
1111
|
+
body=_body_params,
|
|
1112
|
+
post_params=_form_params,
|
|
1113
|
+
files=_files,
|
|
1114
|
+
auth_settings=_auth_settings,
|
|
1115
|
+
collection_formats=_collection_formats,
|
|
1116
|
+
_host=_host,
|
|
1117
|
+
_request_auth=_request_auth
|
|
1118
|
+
)
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
@validate_call
|
|
1124
|
+
def get_workflow_step_states(
|
|
1125
|
+
self,
|
|
1126
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
1127
|
+
_request_timeout: Union[
|
|
1128
|
+
None,
|
|
1129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1130
|
+
Tuple[
|
|
1131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1133
|
+
]
|
|
1134
|
+
] = None,
|
|
1135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1136
|
+
_content_type: Optional[StrictStr] = None,
|
|
1137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1139
|
+
) -> WorkflowStepStatesResponse:
|
|
1140
|
+
"""get_workflow_step_states
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
:param id: Workflow id (required)
|
|
1144
|
+
:type id: str
|
|
1145
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1146
|
+
number provided, it will be total request
|
|
1147
|
+
timeout. It can also be a pair (tuple) of
|
|
1148
|
+
(connection, read) timeouts.
|
|
1149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1151
|
+
request; this effectively ignores the
|
|
1152
|
+
authentication in the spec for a single request.
|
|
1153
|
+
:type _request_auth: dict, optional
|
|
1154
|
+
:param _content_type: force content-type for the request.
|
|
1155
|
+
:type _content_type: str, Optional
|
|
1156
|
+
:param _headers: set to override the headers for a single
|
|
1157
|
+
request; this effectively ignores the headers
|
|
1158
|
+
in the spec for a single request.
|
|
1159
|
+
:type _headers: dict, optional
|
|
1160
|
+
:param _host_index: set to override the host_index for a single
|
|
1161
|
+
request; this effectively ignores the host_index
|
|
1162
|
+
in the spec for a single request.
|
|
1163
|
+
:type _host_index: int, optional
|
|
1164
|
+
:return: Returns the result object.
|
|
1165
|
+
""" # noqa: E501
|
|
1166
|
+
|
|
1167
|
+
_param = self._get_workflow_step_states_serialize(
|
|
1168
|
+
id=id,
|
|
1169
|
+
_request_auth=_request_auth,
|
|
1170
|
+
_content_type=_content_type,
|
|
1171
|
+
_headers=_headers,
|
|
1172
|
+
_host_index=_host_index
|
|
1173
|
+
)
|
|
1174
|
+
|
|
1175
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1176
|
+
'200': "WorkflowStepStatesResponse",
|
|
1177
|
+
'401': "ErrorBody",
|
|
1178
|
+
'403': "ErrorBody",
|
|
1179
|
+
'404': "ErrorBody",
|
|
1180
|
+
}
|
|
1181
|
+
response_data = self.api_client.call_api(
|
|
1182
|
+
*_param,
|
|
1183
|
+
_request_timeout=_request_timeout
|
|
1184
|
+
)
|
|
1185
|
+
response_data.read()
|
|
1186
|
+
return self.api_client.response_deserialize(
|
|
1187
|
+
response_data=response_data,
|
|
1188
|
+
response_types_map=_response_types_map,
|
|
1189
|
+
).data
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
@validate_call
|
|
1193
|
+
def get_workflow_step_states_with_http_info(
|
|
1194
|
+
self,
|
|
1195
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
1196
|
+
_request_timeout: Union[
|
|
1197
|
+
None,
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1199
|
+
Tuple[
|
|
1200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1202
|
+
]
|
|
1203
|
+
] = None,
|
|
1204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1205
|
+
_content_type: Optional[StrictStr] = None,
|
|
1206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1208
|
+
) -> ApiResponse[WorkflowStepStatesResponse]:
|
|
1209
|
+
"""get_workflow_step_states
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
:param id: Workflow id (required)
|
|
1213
|
+
:type id: str
|
|
1214
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1215
|
+
number provided, it will be total request
|
|
1216
|
+
timeout. It can also be a pair (tuple) of
|
|
1217
|
+
(connection, read) timeouts.
|
|
1218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1220
|
+
request; this effectively ignores the
|
|
1221
|
+
authentication in the spec for a single request.
|
|
1222
|
+
:type _request_auth: dict, optional
|
|
1223
|
+
:param _content_type: force content-type for the request.
|
|
1224
|
+
:type _content_type: str, Optional
|
|
1225
|
+
:param _headers: set to override the headers for a single
|
|
1226
|
+
request; this effectively ignores the headers
|
|
1227
|
+
in the spec for a single request.
|
|
1228
|
+
:type _headers: dict, optional
|
|
1229
|
+
:param _host_index: set to override the host_index for a single
|
|
1230
|
+
request; this effectively ignores the host_index
|
|
1231
|
+
in the spec for a single request.
|
|
1232
|
+
:type _host_index: int, optional
|
|
1233
|
+
:return: Returns the result object.
|
|
1234
|
+
""" # noqa: E501
|
|
1235
|
+
|
|
1236
|
+
_param = self._get_workflow_step_states_serialize(
|
|
1237
|
+
id=id,
|
|
1238
|
+
_request_auth=_request_auth,
|
|
1239
|
+
_content_type=_content_type,
|
|
1240
|
+
_headers=_headers,
|
|
1241
|
+
_host_index=_host_index
|
|
1242
|
+
)
|
|
1243
|
+
|
|
1244
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1245
|
+
'200': "WorkflowStepStatesResponse",
|
|
1246
|
+
'401': "ErrorBody",
|
|
1247
|
+
'403': "ErrorBody",
|
|
1248
|
+
'404': "ErrorBody",
|
|
1249
|
+
}
|
|
1250
|
+
response_data = self.api_client.call_api(
|
|
1251
|
+
*_param,
|
|
1252
|
+
_request_timeout=_request_timeout
|
|
1253
|
+
)
|
|
1254
|
+
response_data.read()
|
|
1255
|
+
return self.api_client.response_deserialize(
|
|
1256
|
+
response_data=response_data,
|
|
1257
|
+
response_types_map=_response_types_map,
|
|
1258
|
+
)
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
@validate_call
|
|
1262
|
+
def get_workflow_step_states_without_preload_content(
|
|
1263
|
+
self,
|
|
1264
|
+
id: Annotated[StrictStr, Field(description="Workflow id")],
|
|
1265
|
+
_request_timeout: Union[
|
|
1266
|
+
None,
|
|
1267
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1268
|
+
Tuple[
|
|
1269
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1270
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1271
|
+
]
|
|
1272
|
+
] = None,
|
|
1273
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1274
|
+
_content_type: Optional[StrictStr] = None,
|
|
1275
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1276
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1277
|
+
) -> RESTResponseType:
|
|
1278
|
+
"""get_workflow_step_states
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
:param id: Workflow id (required)
|
|
1282
|
+
:type id: str
|
|
1283
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1284
|
+
number provided, it will be total request
|
|
1285
|
+
timeout. It can also be a pair (tuple) of
|
|
1286
|
+
(connection, read) timeouts.
|
|
1287
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1288
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1289
|
+
request; this effectively ignores the
|
|
1290
|
+
authentication in the spec for a single request.
|
|
1291
|
+
:type _request_auth: dict, optional
|
|
1292
|
+
:param _content_type: force content-type for the request.
|
|
1293
|
+
:type _content_type: str, Optional
|
|
1294
|
+
:param _headers: set to override the headers for a single
|
|
1295
|
+
request; this effectively ignores the headers
|
|
1296
|
+
in the spec for a single request.
|
|
1297
|
+
:type _headers: dict, optional
|
|
1298
|
+
:param _host_index: set to override the host_index for a single
|
|
1299
|
+
request; this effectively ignores the host_index
|
|
1300
|
+
in the spec for a single request.
|
|
1301
|
+
:type _host_index: int, optional
|
|
1302
|
+
:return: Returns the result object.
|
|
1303
|
+
""" # noqa: E501
|
|
1304
|
+
|
|
1305
|
+
_param = self._get_workflow_step_states_serialize(
|
|
1306
|
+
id=id,
|
|
1307
|
+
_request_auth=_request_auth,
|
|
1308
|
+
_content_type=_content_type,
|
|
1309
|
+
_headers=_headers,
|
|
1310
|
+
_host_index=_host_index
|
|
1311
|
+
)
|
|
1312
|
+
|
|
1313
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1314
|
+
'200': "WorkflowStepStatesResponse",
|
|
1315
|
+
'401': "ErrorBody",
|
|
1316
|
+
'403': "ErrorBody",
|
|
1317
|
+
'404': "ErrorBody",
|
|
1318
|
+
}
|
|
1319
|
+
response_data = self.api_client.call_api(
|
|
1320
|
+
*_param,
|
|
1321
|
+
_request_timeout=_request_timeout
|
|
1322
|
+
)
|
|
1323
|
+
return response_data.response
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
def _get_workflow_step_states_serialize(
|
|
1327
|
+
self,
|
|
1328
|
+
id,
|
|
1329
|
+
_request_auth,
|
|
1330
|
+
_content_type,
|
|
1331
|
+
_headers,
|
|
1332
|
+
_host_index,
|
|
1333
|
+
) -> RequestSerialized:
|
|
1334
|
+
|
|
1335
|
+
_host = None
|
|
1336
|
+
|
|
1337
|
+
_collection_formats: Dict[str, str] = {
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
_path_params: Dict[str, str] = {}
|
|
1341
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1342
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1343
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1344
|
+
_files: Dict[
|
|
1345
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1346
|
+
] = {}
|
|
1347
|
+
_body_params: Optional[bytes] = None
|
|
1348
|
+
|
|
1349
|
+
# process the path parameters
|
|
1350
|
+
if id is not None:
|
|
1351
|
+
_path_params['id'] = id
|
|
1352
|
+
# process the query parameters
|
|
1353
|
+
# process the header parameters
|
|
1354
|
+
# process the form parameters
|
|
1355
|
+
# process the body parameter
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
# set the HTTP header `Accept`
|
|
1359
|
+
if 'Accept' not in _header_params:
|
|
1360
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1361
|
+
[
|
|
1362
|
+
'application/json'
|
|
1363
|
+
]
|
|
1364
|
+
)
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
# authentication setting
|
|
1368
|
+
_auth_settings: List[str] = [
|
|
1369
|
+
'bearerAuth'
|
|
1370
|
+
]
|
|
1371
|
+
|
|
1372
|
+
return self.api_client.param_serialize(
|
|
1373
|
+
method='GET',
|
|
1374
|
+
resource_path='/api/v1/workflows/{id}/steps',
|
|
1375
|
+
path_params=_path_params,
|
|
1376
|
+
query_params=_query_params,
|
|
1377
|
+
header_params=_header_params,
|
|
1378
|
+
body=_body_params,
|
|
1379
|
+
post_params=_form_params,
|
|
1380
|
+
files=_files,
|
|
1381
|
+
auth_settings=_auth_settings,
|
|
1382
|
+
collection_formats=_collection_formats,
|
|
1383
|
+
_host=_host,
|
|
1384
|
+
_request_auth=_request_auth
|
|
1385
|
+
)
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
@validate_call
|
|
1391
|
+
def list_workflows(
|
|
1392
|
+
self,
|
|
1393
|
+
status: Annotated[Optional[StrictStr], Field(description="Filter by status (e.g. `pending`, `completed`).")] = None,
|
|
1394
|
+
queue: Annotated[Optional[StrictStr], Field(description="Filter by queue name (jobs only).")] = None,
|
|
1395
|
+
limit: Annotated[Optional[StrictInt], Field(description="Page size, 1..=100 (default 50).")] = None,
|
|
1396
|
+
offset: Annotated[Optional[StrictInt], Field(description="Number of records to skip (default 0).")] = None,
|
|
1397
|
+
order_by: Annotated[Optional[StrictStr], Field(description="`created_at ASC` or `created_at DESC` (default DESC).")] = None,
|
|
1398
|
+
include_total: Annotated[Optional[StrictBool], Field(description="Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).")] = None,
|
|
1399
|
+
cursor: Annotated[Optional[StrictStr], Field(description="Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.")] = None,
|
|
1400
|
+
created_after: Annotated[Optional[datetime], Field(description="Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.")] = None,
|
|
1401
|
+
created_before: Annotated[Optional[datetime], Field(description="Only rows created strictly before this instant (RFC 3339, exclusive).")] = None,
|
|
1402
|
+
_request_timeout: Union[
|
|
1403
|
+
None,
|
|
1404
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1405
|
+
Tuple[
|
|
1406
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1407
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1408
|
+
]
|
|
1409
|
+
] = None,
|
|
1410
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1411
|
+
_content_type: Optional[StrictStr] = None,
|
|
1412
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1413
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1414
|
+
) -> ListWorkflowsResponse:
|
|
1415
|
+
"""list_workflows
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
:param status: Filter by status (e.g. `pending`, `completed`).
|
|
1419
|
+
:type status: str
|
|
1420
|
+
:param queue: Filter by queue name (jobs only).
|
|
1421
|
+
:type queue: str
|
|
1422
|
+
:param limit: Page size, 1..=100 (default 50).
|
|
1423
|
+
:type limit: int
|
|
1424
|
+
:param offset: Number of records to skip (default 0).
|
|
1425
|
+
:type offset: int
|
|
1426
|
+
:param order_by: `created_at ASC` or `created_at DESC` (default DESC).
|
|
1427
|
+
:type order_by: str
|
|
1428
|
+
:param include_total: Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).
|
|
1429
|
+
:type include_total: bool
|
|
1430
|
+
:param cursor: Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.
|
|
1431
|
+
:type cursor: str
|
|
1432
|
+
:param created_after: Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.
|
|
1433
|
+
:type created_after: datetime
|
|
1434
|
+
:param created_before: Only rows created strictly before this instant (RFC 3339, exclusive).
|
|
1435
|
+
:type created_before: datetime
|
|
1436
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1437
|
+
number provided, it will be total request
|
|
1438
|
+
timeout. It can also be a pair (tuple) of
|
|
1439
|
+
(connection, read) timeouts.
|
|
1440
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1441
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1442
|
+
request; this effectively ignores the
|
|
1443
|
+
authentication in the spec for a single request.
|
|
1444
|
+
:type _request_auth: dict, optional
|
|
1445
|
+
:param _content_type: force content-type for the request.
|
|
1446
|
+
:type _content_type: str, Optional
|
|
1447
|
+
:param _headers: set to override the headers for a single
|
|
1448
|
+
request; this effectively ignores the headers
|
|
1449
|
+
in the spec for a single request.
|
|
1450
|
+
:type _headers: dict, optional
|
|
1451
|
+
:param _host_index: set to override the host_index for a single
|
|
1452
|
+
request; this effectively ignores the host_index
|
|
1453
|
+
in the spec for a single request.
|
|
1454
|
+
:type _host_index: int, optional
|
|
1455
|
+
:return: Returns the result object.
|
|
1456
|
+
""" # noqa: E501
|
|
1457
|
+
|
|
1458
|
+
_param = self._list_workflows_serialize(
|
|
1459
|
+
status=status,
|
|
1460
|
+
queue=queue,
|
|
1461
|
+
limit=limit,
|
|
1462
|
+
offset=offset,
|
|
1463
|
+
order_by=order_by,
|
|
1464
|
+
include_total=include_total,
|
|
1465
|
+
cursor=cursor,
|
|
1466
|
+
created_after=created_after,
|
|
1467
|
+
created_before=created_before,
|
|
1468
|
+
_request_auth=_request_auth,
|
|
1469
|
+
_content_type=_content_type,
|
|
1470
|
+
_headers=_headers,
|
|
1471
|
+
_host_index=_host_index
|
|
1472
|
+
)
|
|
1473
|
+
|
|
1474
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1475
|
+
'200': "ListWorkflowsResponse",
|
|
1476
|
+
'401': "ErrorBody",
|
|
1477
|
+
}
|
|
1478
|
+
response_data = self.api_client.call_api(
|
|
1479
|
+
*_param,
|
|
1480
|
+
_request_timeout=_request_timeout
|
|
1481
|
+
)
|
|
1482
|
+
response_data.read()
|
|
1483
|
+
return self.api_client.response_deserialize(
|
|
1484
|
+
response_data=response_data,
|
|
1485
|
+
response_types_map=_response_types_map,
|
|
1486
|
+
).data
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
@validate_call
|
|
1490
|
+
def list_workflows_with_http_info(
|
|
1491
|
+
self,
|
|
1492
|
+
status: Annotated[Optional[StrictStr], Field(description="Filter by status (e.g. `pending`, `completed`).")] = None,
|
|
1493
|
+
queue: Annotated[Optional[StrictStr], Field(description="Filter by queue name (jobs only).")] = None,
|
|
1494
|
+
limit: Annotated[Optional[StrictInt], Field(description="Page size, 1..=100 (default 50).")] = None,
|
|
1495
|
+
offset: Annotated[Optional[StrictInt], Field(description="Number of records to skip (default 0).")] = None,
|
|
1496
|
+
order_by: Annotated[Optional[StrictStr], Field(description="`created_at ASC` or `created_at DESC` (default DESC).")] = None,
|
|
1497
|
+
include_total: Annotated[Optional[StrictBool], Field(description="Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).")] = None,
|
|
1498
|
+
cursor: Annotated[Optional[StrictStr], Field(description="Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.")] = None,
|
|
1499
|
+
created_after: Annotated[Optional[datetime], Field(description="Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.")] = None,
|
|
1500
|
+
created_before: Annotated[Optional[datetime], Field(description="Only rows created strictly before this instant (RFC 3339, exclusive).")] = None,
|
|
1501
|
+
_request_timeout: Union[
|
|
1502
|
+
None,
|
|
1503
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1504
|
+
Tuple[
|
|
1505
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1506
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1507
|
+
]
|
|
1508
|
+
] = None,
|
|
1509
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1510
|
+
_content_type: Optional[StrictStr] = None,
|
|
1511
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1512
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1513
|
+
) -> ApiResponse[ListWorkflowsResponse]:
|
|
1514
|
+
"""list_workflows
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
:param status: Filter by status (e.g. `pending`, `completed`).
|
|
1518
|
+
:type status: str
|
|
1519
|
+
:param queue: Filter by queue name (jobs only).
|
|
1520
|
+
:type queue: str
|
|
1521
|
+
:param limit: Page size, 1..=100 (default 50).
|
|
1522
|
+
:type limit: int
|
|
1523
|
+
:param offset: Number of records to skip (default 0).
|
|
1524
|
+
:type offset: int
|
|
1525
|
+
:param order_by: `created_at ASC` or `created_at DESC` (default DESC).
|
|
1526
|
+
:type order_by: str
|
|
1527
|
+
:param include_total: Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).
|
|
1528
|
+
:type include_total: bool
|
|
1529
|
+
:param cursor: Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.
|
|
1530
|
+
:type cursor: str
|
|
1531
|
+
:param created_after: Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.
|
|
1532
|
+
:type created_after: datetime
|
|
1533
|
+
:param created_before: Only rows created strictly before this instant (RFC 3339, exclusive).
|
|
1534
|
+
:type created_before: datetime
|
|
1535
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1536
|
+
number provided, it will be total request
|
|
1537
|
+
timeout. It can also be a pair (tuple) of
|
|
1538
|
+
(connection, read) timeouts.
|
|
1539
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1540
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1541
|
+
request; this effectively ignores the
|
|
1542
|
+
authentication in the spec for a single request.
|
|
1543
|
+
:type _request_auth: dict, optional
|
|
1544
|
+
:param _content_type: force content-type for the request.
|
|
1545
|
+
:type _content_type: str, Optional
|
|
1546
|
+
:param _headers: set to override the headers for a single
|
|
1547
|
+
request; this effectively ignores the headers
|
|
1548
|
+
in the spec for a single request.
|
|
1549
|
+
:type _headers: dict, optional
|
|
1550
|
+
:param _host_index: set to override the host_index for a single
|
|
1551
|
+
request; this effectively ignores the host_index
|
|
1552
|
+
in the spec for a single request.
|
|
1553
|
+
:type _host_index: int, optional
|
|
1554
|
+
:return: Returns the result object.
|
|
1555
|
+
""" # noqa: E501
|
|
1556
|
+
|
|
1557
|
+
_param = self._list_workflows_serialize(
|
|
1558
|
+
status=status,
|
|
1559
|
+
queue=queue,
|
|
1560
|
+
limit=limit,
|
|
1561
|
+
offset=offset,
|
|
1562
|
+
order_by=order_by,
|
|
1563
|
+
include_total=include_total,
|
|
1564
|
+
cursor=cursor,
|
|
1565
|
+
created_after=created_after,
|
|
1566
|
+
created_before=created_before,
|
|
1567
|
+
_request_auth=_request_auth,
|
|
1568
|
+
_content_type=_content_type,
|
|
1569
|
+
_headers=_headers,
|
|
1570
|
+
_host_index=_host_index
|
|
1571
|
+
)
|
|
1572
|
+
|
|
1573
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1574
|
+
'200': "ListWorkflowsResponse",
|
|
1575
|
+
'401': "ErrorBody",
|
|
1576
|
+
}
|
|
1577
|
+
response_data = self.api_client.call_api(
|
|
1578
|
+
*_param,
|
|
1579
|
+
_request_timeout=_request_timeout
|
|
1580
|
+
)
|
|
1581
|
+
response_data.read()
|
|
1582
|
+
return self.api_client.response_deserialize(
|
|
1583
|
+
response_data=response_data,
|
|
1584
|
+
response_types_map=_response_types_map,
|
|
1585
|
+
)
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
@validate_call
|
|
1589
|
+
def list_workflows_without_preload_content(
|
|
1590
|
+
self,
|
|
1591
|
+
status: Annotated[Optional[StrictStr], Field(description="Filter by status (e.g. `pending`, `completed`).")] = None,
|
|
1592
|
+
queue: Annotated[Optional[StrictStr], Field(description="Filter by queue name (jobs only).")] = None,
|
|
1593
|
+
limit: Annotated[Optional[StrictInt], Field(description="Page size, 1..=100 (default 50).")] = None,
|
|
1594
|
+
offset: Annotated[Optional[StrictInt], Field(description="Number of records to skip (default 0).")] = None,
|
|
1595
|
+
order_by: Annotated[Optional[StrictStr], Field(description="`created_at ASC` or `created_at DESC` (default DESC).")] = None,
|
|
1596
|
+
include_total: Annotated[Optional[StrictBool], Field(description="Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).")] = None,
|
|
1597
|
+
cursor: Annotated[Optional[StrictStr], Field(description="Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.")] = None,
|
|
1598
|
+
created_after: Annotated[Optional[datetime], Field(description="Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.")] = None,
|
|
1599
|
+
created_before: Annotated[Optional[datetime], Field(description="Only rows created strictly before this instant (RFC 3339, exclusive).")] = None,
|
|
1600
|
+
_request_timeout: Union[
|
|
1601
|
+
None,
|
|
1602
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1603
|
+
Tuple[
|
|
1604
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1605
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1606
|
+
]
|
|
1607
|
+
] = None,
|
|
1608
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1609
|
+
_content_type: Optional[StrictStr] = None,
|
|
1610
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1611
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1612
|
+
) -> RESTResponseType:
|
|
1613
|
+
"""list_workflows
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
:param status: Filter by status (e.g. `pending`, `completed`).
|
|
1617
|
+
:type status: str
|
|
1618
|
+
:param queue: Filter by queue name (jobs only).
|
|
1619
|
+
:type queue: str
|
|
1620
|
+
:param limit: Page size, 1..=100 (default 50).
|
|
1621
|
+
:type limit: int
|
|
1622
|
+
:param offset: Number of records to skip (default 0).
|
|
1623
|
+
:type offset: int
|
|
1624
|
+
:param order_by: `created_at ASC` or `created_at DESC` (default DESC).
|
|
1625
|
+
:type order_by: str
|
|
1626
|
+
:param include_total: Include the exact `total` count in the response (default false; the count is an extra full scan over the filtered set).
|
|
1627
|
+
:type include_total: bool
|
|
1628
|
+
:param cursor: Opaque keyset cursor from a previous page's `next_cursor`. When set, `offset` is ignored and listing continues where that page ended.
|
|
1629
|
+
:type cursor: str
|
|
1630
|
+
:param created_after: Only rows created at or after this instant (RFC 3339, inclusive). With `created_before` this forms the half-open range `[after, before)` — the natural shape for walking history period by period.
|
|
1631
|
+
:type created_after: datetime
|
|
1632
|
+
:param created_before: Only rows created strictly before this instant (RFC 3339, exclusive).
|
|
1633
|
+
:type created_before: datetime
|
|
1634
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1635
|
+
number provided, it will be total request
|
|
1636
|
+
timeout. It can also be a pair (tuple) of
|
|
1637
|
+
(connection, read) timeouts.
|
|
1638
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1639
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1640
|
+
request; this effectively ignores the
|
|
1641
|
+
authentication in the spec for a single request.
|
|
1642
|
+
:type _request_auth: dict, optional
|
|
1643
|
+
:param _content_type: force content-type for the request.
|
|
1644
|
+
:type _content_type: str, Optional
|
|
1645
|
+
:param _headers: set to override the headers for a single
|
|
1646
|
+
request; this effectively ignores the headers
|
|
1647
|
+
in the spec for a single request.
|
|
1648
|
+
:type _headers: dict, optional
|
|
1649
|
+
:param _host_index: set to override the host_index for a single
|
|
1650
|
+
request; this effectively ignores the host_index
|
|
1651
|
+
in the spec for a single request.
|
|
1652
|
+
:type _host_index: int, optional
|
|
1653
|
+
:return: Returns the result object.
|
|
1654
|
+
""" # noqa: E501
|
|
1655
|
+
|
|
1656
|
+
_param = self._list_workflows_serialize(
|
|
1657
|
+
status=status,
|
|
1658
|
+
queue=queue,
|
|
1659
|
+
limit=limit,
|
|
1660
|
+
offset=offset,
|
|
1661
|
+
order_by=order_by,
|
|
1662
|
+
include_total=include_total,
|
|
1663
|
+
cursor=cursor,
|
|
1664
|
+
created_after=created_after,
|
|
1665
|
+
created_before=created_before,
|
|
1666
|
+
_request_auth=_request_auth,
|
|
1667
|
+
_content_type=_content_type,
|
|
1668
|
+
_headers=_headers,
|
|
1669
|
+
_host_index=_host_index
|
|
1670
|
+
)
|
|
1671
|
+
|
|
1672
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1673
|
+
'200': "ListWorkflowsResponse",
|
|
1674
|
+
'401': "ErrorBody",
|
|
1675
|
+
}
|
|
1676
|
+
response_data = self.api_client.call_api(
|
|
1677
|
+
*_param,
|
|
1678
|
+
_request_timeout=_request_timeout
|
|
1679
|
+
)
|
|
1680
|
+
return response_data.response
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
def _list_workflows_serialize(
|
|
1684
|
+
self,
|
|
1685
|
+
status,
|
|
1686
|
+
queue,
|
|
1687
|
+
limit,
|
|
1688
|
+
offset,
|
|
1689
|
+
order_by,
|
|
1690
|
+
include_total,
|
|
1691
|
+
cursor,
|
|
1692
|
+
created_after,
|
|
1693
|
+
created_before,
|
|
1694
|
+
_request_auth,
|
|
1695
|
+
_content_type,
|
|
1696
|
+
_headers,
|
|
1697
|
+
_host_index,
|
|
1698
|
+
) -> RequestSerialized:
|
|
1699
|
+
|
|
1700
|
+
_host = None
|
|
1701
|
+
|
|
1702
|
+
_collection_formats: Dict[str, str] = {
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
_path_params: Dict[str, str] = {}
|
|
1706
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1707
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1708
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1709
|
+
_files: Dict[
|
|
1710
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1711
|
+
] = {}
|
|
1712
|
+
_body_params: Optional[bytes] = None
|
|
1713
|
+
|
|
1714
|
+
# process the path parameters
|
|
1715
|
+
# process the query parameters
|
|
1716
|
+
if status is not None:
|
|
1717
|
+
|
|
1718
|
+
_query_params.append(('status', status))
|
|
1719
|
+
|
|
1720
|
+
if queue is not None:
|
|
1721
|
+
|
|
1722
|
+
_query_params.append(('queue', queue))
|
|
1723
|
+
|
|
1724
|
+
if limit is not None:
|
|
1725
|
+
|
|
1726
|
+
_query_params.append(('limit', limit))
|
|
1727
|
+
|
|
1728
|
+
if offset is not None:
|
|
1729
|
+
|
|
1730
|
+
_query_params.append(('offset', offset))
|
|
1731
|
+
|
|
1732
|
+
if order_by is not None:
|
|
1733
|
+
|
|
1734
|
+
_query_params.append(('order_by', order_by))
|
|
1735
|
+
|
|
1736
|
+
if include_total is not None:
|
|
1737
|
+
|
|
1738
|
+
_query_params.append(('include_total', include_total))
|
|
1739
|
+
|
|
1740
|
+
if cursor is not None:
|
|
1741
|
+
|
|
1742
|
+
_query_params.append(('cursor', cursor))
|
|
1743
|
+
|
|
1744
|
+
if created_after is not None:
|
|
1745
|
+
if isinstance(created_after, datetime):
|
|
1746
|
+
_query_params.append(
|
|
1747
|
+
(
|
|
1748
|
+
'created_after',
|
|
1749
|
+
created_after.strftime(
|
|
1750
|
+
self.api_client.configuration.datetime_format
|
|
1751
|
+
)
|
|
1752
|
+
)
|
|
1753
|
+
)
|
|
1754
|
+
else:
|
|
1755
|
+
_query_params.append(('created_after', created_after))
|
|
1756
|
+
|
|
1757
|
+
if created_before is not None:
|
|
1758
|
+
if isinstance(created_before, datetime):
|
|
1759
|
+
_query_params.append(
|
|
1760
|
+
(
|
|
1761
|
+
'created_before',
|
|
1762
|
+
created_before.strftime(
|
|
1763
|
+
self.api_client.configuration.datetime_format
|
|
1764
|
+
)
|
|
1765
|
+
)
|
|
1766
|
+
)
|
|
1767
|
+
else:
|
|
1768
|
+
_query_params.append(('created_before', created_before))
|
|
1769
|
+
|
|
1770
|
+
# process the header parameters
|
|
1771
|
+
# process the form parameters
|
|
1772
|
+
# process the body parameter
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
# set the HTTP header `Accept`
|
|
1776
|
+
if 'Accept' not in _header_params:
|
|
1777
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1778
|
+
[
|
|
1779
|
+
'application/json'
|
|
1780
|
+
]
|
|
1781
|
+
)
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
# authentication setting
|
|
1785
|
+
_auth_settings: List[str] = [
|
|
1786
|
+
'bearerAuth'
|
|
1787
|
+
]
|
|
1788
|
+
|
|
1789
|
+
return self.api_client.param_serialize(
|
|
1790
|
+
method='GET',
|
|
1791
|
+
resource_path='/api/v1/workflows',
|
|
1792
|
+
path_params=_path_params,
|
|
1793
|
+
query_params=_query_params,
|
|
1794
|
+
header_params=_header_params,
|
|
1795
|
+
body=_body_params,
|
|
1796
|
+
post_params=_form_params,
|
|
1797
|
+
files=_files,
|
|
1798
|
+
auth_settings=_auth_settings,
|
|
1799
|
+
collection_formats=_collection_formats,
|
|
1800
|
+
_host=_host,
|
|
1801
|
+
_request_auth=_request_auth
|
|
1802
|
+
)
|
|
1803
|
+
|
|
1804
|
+
|