rapidata 1.2.0__py3-none-any.whl → 1.2.2__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 rapidata might be problematic. Click here for more details.

Files changed (67) hide show
  1. rapidata/__init__.py +4 -0
  2. rapidata/api_client/__init__.py +25 -5
  3. rapidata/api_client/api/dataset_api.py +388 -388
  4. rapidata/api_client/api/workflow_api.py +18 -1064
  5. rapidata/api_client/models/__init__.py +25 -5
  6. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  7. rapidata/api_client/models/classification_metadata_model.py +98 -0
  8. rapidata/api_client/models/compare_workflow_config.py +3 -3
  9. rapidata/api_client/models/compare_workflow_config_model.py +3 -3
  10. rapidata/api_client/models/compare_workflow_model1.py +4 -18
  11. rapidata/api_client/models/compare_workflow_model1_referee.py +154 -0
  12. rapidata/api_client/models/completed_rapid_model.py +3 -3
  13. rapidata/api_client/models/completed_rapid_model_asset.py +170 -0
  14. rapidata/api_client/models/count_metadata_model.py +98 -0
  15. rapidata/api_client/models/demographic_metadata_model.py +100 -0
  16. rapidata/api_client/models/file_asset_model.py +3 -3
  17. rapidata/api_client/models/file_asset_model1.py +108 -0
  18. rapidata/api_client/models/file_asset_model1_metadata_inner.py +252 -0
  19. rapidata/api_client/models/file_asset_model2.py +108 -0
  20. rapidata/api_client/models/file_asset_model_metadata_inner.py +252 -0
  21. rapidata/api_client/models/image_dimension_metadata_model.py +100 -0
  22. rapidata/api_client/models/in_progress_rapid_model.py +3 -3
  23. rapidata/api_client/models/location_metadata_model.py +100 -0
  24. rapidata/api_client/models/multi_asset_model.py +3 -3
  25. rapidata/api_client/models/multi_asset_model1.py +118 -0
  26. rapidata/api_client/models/multi_asset_model1_assets_inner.py +170 -0
  27. rapidata/api_client/models/multi_asset_model2.py +118 -0
  28. rapidata/api_client/models/not_started_rapid_model.py +3 -3
  29. rapidata/api_client/models/null_asset_model.py +3 -3
  30. rapidata/api_client/models/null_asset_model1.py +106 -0
  31. rapidata/api_client/models/null_asset_model2.py +106 -0
  32. rapidata/api_client/models/original_filename_metadata_model.py +98 -0
  33. rapidata/api_client/models/prompt_metadata_model.py +98 -0
  34. rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
  35. rapidata/api_client/models/ranked_datapoint_model.py +3 -3
  36. rapidata/api_client/models/simple_workflow_config.py +6 -6
  37. rapidata/api_client/models/simple_workflow_config_model.py +3 -3
  38. rapidata/api_client/models/simple_workflow_model1.py +7 -21
  39. rapidata/api_client/models/simple_workflow_model1_blueprint.py +238 -0
  40. rapidata/api_client/models/text_asset_model.py +3 -3
  41. rapidata/api_client/models/text_asset_model1.py +108 -0
  42. rapidata/api_client/models/text_asset_model2.py +108 -0
  43. rapidata/api_client/models/text_metadata_model.py +98 -0
  44. rapidata/api_client/models/transcription_metadata_model.py +98 -0
  45. rapidata/api_client/models/translated_prompt_metadata_model.py +102 -0
  46. rapidata/api_client/models/translated_string.py +93 -0
  47. rapidata/api_client_README.md +26 -10
  48. rapidata/rapidata_client/__init__.py +10 -0
  49. rapidata/rapidata_client/assets/media_asset.py +1 -1
  50. rapidata/rapidata_client/assets/multi_asset.py +12 -3
  51. rapidata/rapidata_client/dataset/rapidata_dataset.py +43 -9
  52. rapidata/rapidata_client/dataset/rapidata_validation_set.py +26 -6
  53. rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
  54. rapidata/rapidata_client/filter/__init__.py +7 -0
  55. rapidata/rapidata_client/filter/age_filter.py +16 -0
  56. rapidata/rapidata_client/filter/base_filter.py +9 -0
  57. rapidata/rapidata_client/filter/campaign_filter.py +17 -0
  58. rapidata/rapidata_client/filter/country_filter.py +16 -0
  59. rapidata/rapidata_client/filter/gender_filter.py +16 -0
  60. rapidata/rapidata_client/filter/language_filter.py +18 -0
  61. rapidata/rapidata_client/filter/user_score_filter.py +19 -0
  62. rapidata/rapidata_client/order/rapidata_order_builder.py +141 -44
  63. rapidata/rapidata_client/selection/demographic_selection.py +3 -2
  64. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/METADATA +1 -1
  65. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/RECORD +67 -34
  66. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/LICENSE +0 -0
  67. {rapidata-1.2.0.dist-info → rapidata-1.2.2.dist-info}/WHEEL +0 -0
@@ -19,8 +19,6 @@ from typing_extensions import Annotated
19
19
  from pydantic import Field, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
- from rapidata.api_client.models.create_independent_workflow_model import CreateIndependentWorkflowModel
23
- from rapidata.api_client.models.create_independent_workflow_result import CreateIndependentWorkflowResult
24
22
  from rapidata.api_client.models.get_workflow_by_id_result import GetWorkflowByIdResult
25
23
  from rapidata.api_client.models.get_workflow_progress_result import GetWorkflowProgressResult
26
24
  from rapidata.api_client.models.get_workflow_result_overview_result import GetWorkflowResultOverviewResult
@@ -45,288 +43,6 @@ class WorkflowApi:
45
43
  self.api_client = api_client
46
44
 
47
45
 
48
- @validate_call
49
- def workflow_create_independent_post(
50
- self,
51
- create_independent_workflow_model: Annotated[Optional[CreateIndependentWorkflowModel], Field(description="The model for the request.")] = None,
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
- ) -> CreateIndependentWorkflowResult:
65
- """(Deprecated) Creates an independent workflow.
66
-
67
- An independent workflow can be run without being part of a pipeline.
68
-
69
- :param create_independent_workflow_model: The model for the request.
70
- :type create_independent_workflow_model: CreateIndependentWorkflowModel
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
- warnings.warn("POST /Workflow/CreateIndependent is deprecated.", DeprecationWarning)
93
-
94
- _param = self._workflow_create_independent_post_serialize(
95
- create_independent_workflow_model=create_independent_workflow_model,
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': "CreateIndependentWorkflowResult",
104
- }
105
- response_data = self.api_client.call_api(
106
- *_param,
107
- _request_timeout=_request_timeout
108
- )
109
- response_data.read()
110
- return self.api_client.response_deserialize(
111
- response_data=response_data,
112
- response_types_map=_response_types_map,
113
- ).data
114
-
115
-
116
- @validate_call
117
- def workflow_create_independent_post_with_http_info(
118
- self,
119
- create_independent_workflow_model: Annotated[Optional[CreateIndependentWorkflowModel], Field(description="The model for the request.")] = None,
120
- _request_timeout: Union[
121
- None,
122
- Annotated[StrictFloat, Field(gt=0)],
123
- Tuple[
124
- Annotated[StrictFloat, Field(gt=0)],
125
- Annotated[StrictFloat, Field(gt=0)]
126
- ]
127
- ] = None,
128
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
129
- _content_type: Optional[StrictStr] = None,
130
- _headers: Optional[Dict[StrictStr, Any]] = None,
131
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
132
- ) -> ApiResponse[CreateIndependentWorkflowResult]:
133
- """(Deprecated) Creates an independent workflow.
134
-
135
- An independent workflow can be run without being part of a pipeline.
136
-
137
- :param create_independent_workflow_model: The model for the request.
138
- :type create_independent_workflow_model: CreateIndependentWorkflowModel
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
- warnings.warn("POST /Workflow/CreateIndependent is deprecated.", DeprecationWarning)
161
-
162
- _param = self._workflow_create_independent_post_serialize(
163
- create_independent_workflow_model=create_independent_workflow_model,
164
- _request_auth=_request_auth,
165
- _content_type=_content_type,
166
- _headers=_headers,
167
- _host_index=_host_index
168
- )
169
-
170
- _response_types_map: Dict[str, Optional[str]] = {
171
- '200': "CreateIndependentWorkflowResult",
172
- }
173
- response_data = self.api_client.call_api(
174
- *_param,
175
- _request_timeout=_request_timeout
176
- )
177
- response_data.read()
178
- return self.api_client.response_deserialize(
179
- response_data=response_data,
180
- response_types_map=_response_types_map,
181
- )
182
-
183
-
184
- @validate_call
185
- def workflow_create_independent_post_without_preload_content(
186
- self,
187
- create_independent_workflow_model: Annotated[Optional[CreateIndependentWorkflowModel], Field(description="The model for the request.")] = None,
188
- _request_timeout: Union[
189
- None,
190
- Annotated[StrictFloat, Field(gt=0)],
191
- Tuple[
192
- Annotated[StrictFloat, Field(gt=0)],
193
- Annotated[StrictFloat, Field(gt=0)]
194
- ]
195
- ] = None,
196
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
- _content_type: Optional[StrictStr] = None,
198
- _headers: Optional[Dict[StrictStr, Any]] = None,
199
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
- ) -> RESTResponseType:
201
- """(Deprecated) Creates an independent workflow.
202
-
203
- An independent workflow can be run without being part of a pipeline.
204
-
205
- :param create_independent_workflow_model: The model for the request.
206
- :type create_independent_workflow_model: CreateIndependentWorkflowModel
207
- :param _request_timeout: timeout setting for this request. If one
208
- number provided, it will be total request
209
- timeout. It can also be a pair (tuple) of
210
- (connection, read) timeouts.
211
- :type _request_timeout: int, tuple(int, int), optional
212
- :param _request_auth: set to override the auth_settings for an a single
213
- request; this effectively ignores the
214
- authentication in the spec for a single request.
215
- :type _request_auth: dict, optional
216
- :param _content_type: force content-type for the request.
217
- :type _content_type: str, Optional
218
- :param _headers: set to override the headers for a single
219
- request; this effectively ignores the headers
220
- in the spec for a single request.
221
- :type _headers: dict, optional
222
- :param _host_index: set to override the host_index for a single
223
- request; this effectively ignores the host_index
224
- in the spec for a single request.
225
- :type _host_index: int, optional
226
- :return: Returns the result object.
227
- """ # noqa: E501
228
- warnings.warn("POST /Workflow/CreateIndependent is deprecated.", DeprecationWarning)
229
-
230
- _param = self._workflow_create_independent_post_serialize(
231
- create_independent_workflow_model=create_independent_workflow_model,
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
- '200': "CreateIndependentWorkflowResult",
240
- }
241
- response_data = self.api_client.call_api(
242
- *_param,
243
- _request_timeout=_request_timeout
244
- )
245
- return response_data.response
246
-
247
-
248
- def _workflow_create_independent_post_serialize(
249
- self,
250
- create_independent_workflow_model,
251
- _request_auth,
252
- _content_type,
253
- _headers,
254
- _host_index,
255
- ) -> RequestSerialized:
256
-
257
- _host = None
258
-
259
- _collection_formats: Dict[str, str] = {
260
- }
261
-
262
- _path_params: Dict[str, str] = {}
263
- _query_params: List[Tuple[str, str]] = []
264
- _header_params: Dict[str, Optional[str]] = _headers or {}
265
- _form_params: List[Tuple[str, str]] = []
266
- _files: Dict[
267
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
268
- ] = {}
269
- _body_params: Optional[bytes] = None
270
-
271
- # process the path parameters
272
- # process the query parameters
273
- # process the header parameters
274
- # process the form parameters
275
- # process the body parameter
276
- if create_independent_workflow_model is not None:
277
- _body_params = create_independent_workflow_model
278
-
279
-
280
- # set the HTTP header `Accept`
281
- if 'Accept' not in _header_params:
282
- _header_params['Accept'] = self.api_client.select_header_accept(
283
- [
284
- 'text/plain',
285
- 'application/json',
286
- 'text/json'
287
- ]
288
- )
289
-
290
- # set the HTTP header `Content-Type`
291
- if _content_type:
292
- _header_params['Content-Type'] = _content_type
293
- else:
294
- _default_content_type = (
295
- self.api_client.select_header_content_type(
296
- [
297
- 'application/json',
298
- 'text/json',
299
- 'application/*+json'
300
- ]
301
- )
302
- )
303
- if _default_content_type is not None:
304
- _header_params['Content-Type'] = _default_content_type
305
-
306
- # authentication setting
307
- _auth_settings: List[str] = [
308
- 'bearer',
309
- 'oauth2'
310
- ]
311
-
312
- return self.api_client.param_serialize(
313
- method='POST',
314
- resource_path='/Workflow/CreateIndependent',
315
- path_params=_path_params,
316
- query_params=_query_params,
317
- header_params=_header_params,
318
- body=_body_params,
319
- post_params=_form_params,
320
- files=_files,
321
- auth_settings=_auth_settings,
322
- collection_formats=_collection_formats,
323
- _host=_host,
324
- _request_auth=_request_auth
325
- )
326
-
327
-
328
-
329
-
330
46
  @validate_call
331
47
  def workflow_delete_delete(
332
48
  self,
@@ -1371,9 +1087,9 @@ class WorkflowApi:
1371
1087
 
1372
1088
 
1373
1089
  @validate_call
1374
- def workflow_pause_post(
1090
+ def workflow_query_get(
1375
1091
  self,
1376
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to pause.")] = None,
1092
+ request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1377
1093
  _request_timeout: Union[
1378
1094
  None,
1379
1095
  Annotated[StrictFloat, Field(gt=0)],
@@ -1386,12 +1102,12 @@ class WorkflowApi:
1386
1102
  _content_type: Optional[StrictStr] = None,
1387
1103
  _headers: Optional[Dict[StrictStr, Any]] = None,
1388
1104
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1389
- ) -> None:
1390
- """Pauses a running workflow.
1105
+ ) -> IWorkflowModelPagedResult:
1106
+ """Queries workflows based on the provided filter, page, and sort criteria.
1391
1107
 
1392
1108
 
1393
- :param workflow_id: The ID of the workflow to pause.
1394
- :type workflow_id: str
1109
+ :param request: The model containing the filter, page, and sort criteria.
1110
+ :type request: QueryWorkflowsModel
1395
1111
  :param _request_timeout: timeout setting for this request. If one
1396
1112
  number provided, it will be total request
1397
1113
  timeout. It can also be a pair (tuple) of
@@ -1414,8 +1130,8 @@ class WorkflowApi:
1414
1130
  :return: Returns the result object.
1415
1131
  """ # noqa: E501
1416
1132
 
1417
- _param = self._workflow_pause_post_serialize(
1418
- workflow_id=workflow_id,
1133
+ _param = self._workflow_query_get_serialize(
1134
+ request=request,
1419
1135
  _request_auth=_request_auth,
1420
1136
  _content_type=_content_type,
1421
1137
  _headers=_headers,
@@ -1423,7 +1139,7 @@ class WorkflowApi:
1423
1139
  )
1424
1140
 
1425
1141
  _response_types_map: Dict[str, Optional[str]] = {
1426
- '200': None,
1142
+ '200': "IWorkflowModelPagedResult",
1427
1143
  }
1428
1144
  response_data = self.api_client.call_api(
1429
1145
  *_param,
@@ -1437,9 +1153,9 @@ class WorkflowApi:
1437
1153
 
1438
1154
 
1439
1155
  @validate_call
1440
- def workflow_pause_post_with_http_info(
1156
+ def workflow_query_get_with_http_info(
1441
1157
  self,
1442
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to pause.")] = None,
1158
+ request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1443
1159
  _request_timeout: Union[
1444
1160
  None,
1445
1161
  Annotated[StrictFloat, Field(gt=0)],
@@ -1452,12 +1168,12 @@ class WorkflowApi:
1452
1168
  _content_type: Optional[StrictStr] = None,
1453
1169
  _headers: Optional[Dict[StrictStr, Any]] = None,
1454
1170
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1455
- ) -> ApiResponse[None]:
1456
- """Pauses a running workflow.
1171
+ ) -> ApiResponse[IWorkflowModelPagedResult]:
1172
+ """Queries workflows based on the provided filter, page, and sort criteria.
1457
1173
 
1458
1174
 
1459
- :param workflow_id: The ID of the workflow to pause.
1460
- :type workflow_id: str
1175
+ :param request: The model containing the filter, page, and sort criteria.
1176
+ :type request: QueryWorkflowsModel
1461
1177
  :param _request_timeout: timeout setting for this request. If one
1462
1178
  number provided, it will be total request
1463
1179
  timeout. It can also be a pair (tuple) of
@@ -1480,8 +1196,8 @@ class WorkflowApi:
1480
1196
  :return: Returns the result object.
1481
1197
  """ # noqa: E501
1482
1198
 
1483
- _param = self._workflow_pause_post_serialize(
1484
- workflow_id=workflow_id,
1199
+ _param = self._workflow_query_get_serialize(
1200
+ request=request,
1485
1201
  _request_auth=_request_auth,
1486
1202
  _content_type=_content_type,
1487
1203
  _headers=_headers,
@@ -1489,261 +1205,7 @@ class WorkflowApi:
1489
1205
  )
1490
1206
 
1491
1207
  _response_types_map: Dict[str, Optional[str]] = {
1492
- '200': None,
1493
- }
1494
- response_data = self.api_client.call_api(
1495
- *_param,
1496
- _request_timeout=_request_timeout
1497
- )
1498
- response_data.read()
1499
- return self.api_client.response_deserialize(
1500
- response_data=response_data,
1501
- response_types_map=_response_types_map,
1502
- )
1503
-
1504
-
1505
- @validate_call
1506
- def workflow_pause_post_without_preload_content(
1507
- self,
1508
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to pause.")] = None,
1509
- _request_timeout: Union[
1510
- None,
1511
- Annotated[StrictFloat, Field(gt=0)],
1512
- Tuple[
1513
- Annotated[StrictFloat, Field(gt=0)],
1514
- Annotated[StrictFloat, Field(gt=0)]
1515
- ]
1516
- ] = None,
1517
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1518
- _content_type: Optional[StrictStr] = None,
1519
- _headers: Optional[Dict[StrictStr, Any]] = None,
1520
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1521
- ) -> RESTResponseType:
1522
- """Pauses a running workflow.
1523
-
1524
-
1525
- :param workflow_id: The ID of the workflow to pause.
1526
- :type workflow_id: str
1527
- :param _request_timeout: timeout setting for this request. If one
1528
- number provided, it will be total request
1529
- timeout. It can also be a pair (tuple) of
1530
- (connection, read) timeouts.
1531
- :type _request_timeout: int, tuple(int, int), optional
1532
- :param _request_auth: set to override the auth_settings for an a single
1533
- request; this effectively ignores the
1534
- authentication in the spec for a single request.
1535
- :type _request_auth: dict, optional
1536
- :param _content_type: force content-type for the request.
1537
- :type _content_type: str, Optional
1538
- :param _headers: set to override the headers for a single
1539
- request; this effectively ignores the headers
1540
- in the spec for a single request.
1541
- :type _headers: dict, optional
1542
- :param _host_index: set to override the host_index for a single
1543
- request; this effectively ignores the host_index
1544
- in the spec for a single request.
1545
- :type _host_index: int, optional
1546
- :return: Returns the result object.
1547
- """ # noqa: E501
1548
-
1549
- _param = self._workflow_pause_post_serialize(
1550
- workflow_id=workflow_id,
1551
- _request_auth=_request_auth,
1552
- _content_type=_content_type,
1553
- _headers=_headers,
1554
- _host_index=_host_index
1555
- )
1556
-
1557
- _response_types_map: Dict[str, Optional[str]] = {
1558
- '200': None,
1559
- }
1560
- response_data = self.api_client.call_api(
1561
- *_param,
1562
- _request_timeout=_request_timeout
1563
- )
1564
- return response_data.response
1565
-
1566
-
1567
- def _workflow_pause_post_serialize(
1568
- self,
1569
- workflow_id,
1570
- _request_auth,
1571
- _content_type,
1572
- _headers,
1573
- _host_index,
1574
- ) -> RequestSerialized:
1575
-
1576
- _host = None
1577
-
1578
- _collection_formats: Dict[str, str] = {
1579
- }
1580
-
1581
- _path_params: Dict[str, str] = {}
1582
- _query_params: List[Tuple[str, str]] = []
1583
- _header_params: Dict[str, Optional[str]] = _headers or {}
1584
- _form_params: List[Tuple[str, str]] = []
1585
- _files: Dict[
1586
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1587
- ] = {}
1588
- _body_params: Optional[bytes] = None
1589
-
1590
- # process the path parameters
1591
- # process the query parameters
1592
- if workflow_id is not None:
1593
-
1594
- _query_params.append(('workflowId', workflow_id))
1595
-
1596
- # process the header parameters
1597
- # process the form parameters
1598
- # process the body parameter
1599
-
1600
-
1601
-
1602
-
1603
- # authentication setting
1604
- _auth_settings: List[str] = [
1605
- 'bearer',
1606
- 'oauth2'
1607
- ]
1608
-
1609
- return self.api_client.param_serialize(
1610
- method='POST',
1611
- resource_path='/Workflow/Pause',
1612
- path_params=_path_params,
1613
- query_params=_query_params,
1614
- header_params=_header_params,
1615
- body=_body_params,
1616
- post_params=_form_params,
1617
- files=_files,
1618
- auth_settings=_auth_settings,
1619
- collection_formats=_collection_formats,
1620
- _host=_host,
1621
- _request_auth=_request_auth
1622
- )
1623
-
1624
-
1625
-
1626
-
1627
- @validate_call
1628
- def workflow_query_get(
1629
- self,
1630
- request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1631
- _request_timeout: Union[
1632
- None,
1633
- Annotated[StrictFloat, Field(gt=0)],
1634
- Tuple[
1635
- Annotated[StrictFloat, Field(gt=0)],
1636
- Annotated[StrictFloat, Field(gt=0)]
1637
- ]
1638
- ] = None,
1639
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1640
- _content_type: Optional[StrictStr] = None,
1641
- _headers: Optional[Dict[StrictStr, Any]] = None,
1642
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1643
- ) -> IWorkflowModelPagedResult:
1644
- """Queries workflows based on the provided filter, page, and sort criteria.
1645
-
1646
-
1647
- :param request: The model containing the filter, page, and sort criteria.
1648
- :type request: QueryWorkflowsModel
1649
- :param _request_timeout: timeout setting for this request. If one
1650
- number provided, it will be total request
1651
- timeout. It can also be a pair (tuple) of
1652
- (connection, read) timeouts.
1653
- :type _request_timeout: int, tuple(int, int), optional
1654
- :param _request_auth: set to override the auth_settings for an a single
1655
- request; this effectively ignores the
1656
- authentication in the spec for a single request.
1657
- :type _request_auth: dict, optional
1658
- :param _content_type: force content-type for the request.
1659
- :type _content_type: str, Optional
1660
- :param _headers: set to override the headers for a single
1661
- request; this effectively ignores the headers
1662
- in the spec for a single request.
1663
- :type _headers: dict, optional
1664
- :param _host_index: set to override the host_index for a single
1665
- request; this effectively ignores the host_index
1666
- in the spec for a single request.
1667
- :type _host_index: int, optional
1668
- :return: Returns the result object.
1669
- """ # noqa: E501
1670
-
1671
- _param = self._workflow_query_get_serialize(
1672
- request=request,
1673
- _request_auth=_request_auth,
1674
- _content_type=_content_type,
1675
- _headers=_headers,
1676
- _host_index=_host_index
1677
- )
1678
-
1679
- _response_types_map: Dict[str, Optional[str]] = {
1680
- '200': "IWorkflowModelPagedResult",
1681
- }
1682
- response_data = self.api_client.call_api(
1683
- *_param,
1684
- _request_timeout=_request_timeout
1685
- )
1686
- response_data.read()
1687
- return self.api_client.response_deserialize(
1688
- response_data=response_data,
1689
- response_types_map=_response_types_map,
1690
- ).data
1691
-
1692
-
1693
- @validate_call
1694
- def workflow_query_get_with_http_info(
1695
- self,
1696
- request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1697
- _request_timeout: Union[
1698
- None,
1699
- Annotated[StrictFloat, Field(gt=0)],
1700
- Tuple[
1701
- Annotated[StrictFloat, Field(gt=0)],
1702
- Annotated[StrictFloat, Field(gt=0)]
1703
- ]
1704
- ] = None,
1705
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1706
- _content_type: Optional[StrictStr] = None,
1707
- _headers: Optional[Dict[StrictStr, Any]] = None,
1708
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1709
- ) -> ApiResponse[IWorkflowModelPagedResult]:
1710
- """Queries workflows based on the provided filter, page, and sort criteria.
1711
-
1712
-
1713
- :param request: The model containing the filter, page, and sort criteria.
1714
- :type request: QueryWorkflowsModel
1715
- :param _request_timeout: timeout setting for this request. If one
1716
- number provided, it will be total request
1717
- timeout. It can also be a pair (tuple) of
1718
- (connection, read) timeouts.
1719
- :type _request_timeout: int, tuple(int, int), optional
1720
- :param _request_auth: set to override the auth_settings for an a single
1721
- request; this effectively ignores the
1722
- authentication in the spec for a single request.
1723
- :type _request_auth: dict, optional
1724
- :param _content_type: force content-type for the request.
1725
- :type _content_type: str, Optional
1726
- :param _headers: set to override the headers for a single
1727
- request; this effectively ignores the headers
1728
- in the spec for a single request.
1729
- :type _headers: dict, optional
1730
- :param _host_index: set to override the host_index for a single
1731
- request; this effectively ignores the host_index
1732
- in the spec for a single request.
1733
- :type _host_index: int, optional
1734
- :return: Returns the result object.
1735
- """ # noqa: E501
1736
-
1737
- _param = self._workflow_query_get_serialize(
1738
- request=request,
1739
- _request_auth=_request_auth,
1740
- _content_type=_content_type,
1741
- _headers=_headers,
1742
- _host_index=_host_index
1743
- )
1744
-
1745
- _response_types_map: Dict[str, Optional[str]] = {
1746
- '200': "IWorkflowModelPagedResult",
1208
+ '200': "IWorkflowModelPagedResult",
1747
1209
  }
1748
1210
  response_data = self.api_client.call_api(
1749
1211
  *_param,
@@ -1885,511 +1347,3 @@ class WorkflowApi:
1885
1347
  )
1886
1348
 
1887
1349
 
1888
-
1889
-
1890
- @validate_call
1891
- def workflow_resume_post(
1892
- self,
1893
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to resume.")] = None,
1894
- _request_timeout: Union[
1895
- None,
1896
- Annotated[StrictFloat, Field(gt=0)],
1897
- Tuple[
1898
- Annotated[StrictFloat, Field(gt=0)],
1899
- Annotated[StrictFloat, Field(gt=0)]
1900
- ]
1901
- ] = None,
1902
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1903
- _content_type: Optional[StrictStr] = None,
1904
- _headers: Optional[Dict[StrictStr, Any]] = None,
1905
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1906
- ) -> None:
1907
- """Resumes a paused workflow.
1908
-
1909
-
1910
- :param workflow_id: The ID of the workflow to resume.
1911
- :type workflow_id: str
1912
- :param _request_timeout: timeout setting for this request. If one
1913
- number provided, it will be total request
1914
- timeout. It can also be a pair (tuple) of
1915
- (connection, read) timeouts.
1916
- :type _request_timeout: int, tuple(int, int), optional
1917
- :param _request_auth: set to override the auth_settings for an a single
1918
- request; this effectively ignores the
1919
- authentication in the spec for a single request.
1920
- :type _request_auth: dict, optional
1921
- :param _content_type: force content-type for the request.
1922
- :type _content_type: str, Optional
1923
- :param _headers: set to override the headers for a single
1924
- request; this effectively ignores the headers
1925
- in the spec for a single request.
1926
- :type _headers: dict, optional
1927
- :param _host_index: set to override the host_index for a single
1928
- request; this effectively ignores the host_index
1929
- in the spec for a single request.
1930
- :type _host_index: int, optional
1931
- :return: Returns the result object.
1932
- """ # noqa: E501
1933
-
1934
- _param = self._workflow_resume_post_serialize(
1935
- workflow_id=workflow_id,
1936
- _request_auth=_request_auth,
1937
- _content_type=_content_type,
1938
- _headers=_headers,
1939
- _host_index=_host_index
1940
- )
1941
-
1942
- _response_types_map: Dict[str, Optional[str]] = {
1943
- '200': None,
1944
- }
1945
- response_data = self.api_client.call_api(
1946
- *_param,
1947
- _request_timeout=_request_timeout
1948
- )
1949
- response_data.read()
1950
- return self.api_client.response_deserialize(
1951
- response_data=response_data,
1952
- response_types_map=_response_types_map,
1953
- ).data
1954
-
1955
-
1956
- @validate_call
1957
- def workflow_resume_post_with_http_info(
1958
- self,
1959
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to resume.")] = None,
1960
- _request_timeout: Union[
1961
- None,
1962
- Annotated[StrictFloat, Field(gt=0)],
1963
- Tuple[
1964
- Annotated[StrictFloat, Field(gt=0)],
1965
- Annotated[StrictFloat, Field(gt=0)]
1966
- ]
1967
- ] = None,
1968
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1969
- _content_type: Optional[StrictStr] = None,
1970
- _headers: Optional[Dict[StrictStr, Any]] = None,
1971
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1972
- ) -> ApiResponse[None]:
1973
- """Resumes a paused workflow.
1974
-
1975
-
1976
- :param workflow_id: The ID of the workflow to resume.
1977
- :type workflow_id: str
1978
- :param _request_timeout: timeout setting for this request. If one
1979
- number provided, it will be total request
1980
- timeout. It can also be a pair (tuple) of
1981
- (connection, read) timeouts.
1982
- :type _request_timeout: int, tuple(int, int), optional
1983
- :param _request_auth: set to override the auth_settings for an a single
1984
- request; this effectively ignores the
1985
- authentication in the spec for a single request.
1986
- :type _request_auth: dict, optional
1987
- :param _content_type: force content-type for the request.
1988
- :type _content_type: str, Optional
1989
- :param _headers: set to override the headers for a single
1990
- request; this effectively ignores the headers
1991
- in the spec for a single request.
1992
- :type _headers: dict, optional
1993
- :param _host_index: set to override the host_index for a single
1994
- request; this effectively ignores the host_index
1995
- in the spec for a single request.
1996
- :type _host_index: int, optional
1997
- :return: Returns the result object.
1998
- """ # noqa: E501
1999
-
2000
- _param = self._workflow_resume_post_serialize(
2001
- workflow_id=workflow_id,
2002
- _request_auth=_request_auth,
2003
- _content_type=_content_type,
2004
- _headers=_headers,
2005
- _host_index=_host_index
2006
- )
2007
-
2008
- _response_types_map: Dict[str, Optional[str]] = {
2009
- '200': None,
2010
- }
2011
- response_data = self.api_client.call_api(
2012
- *_param,
2013
- _request_timeout=_request_timeout
2014
- )
2015
- response_data.read()
2016
- return self.api_client.response_deserialize(
2017
- response_data=response_data,
2018
- response_types_map=_response_types_map,
2019
- )
2020
-
2021
-
2022
- @validate_call
2023
- def workflow_resume_post_without_preload_content(
2024
- self,
2025
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to resume.")] = None,
2026
- _request_timeout: Union[
2027
- None,
2028
- Annotated[StrictFloat, Field(gt=0)],
2029
- Tuple[
2030
- Annotated[StrictFloat, Field(gt=0)],
2031
- Annotated[StrictFloat, Field(gt=0)]
2032
- ]
2033
- ] = None,
2034
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2035
- _content_type: Optional[StrictStr] = None,
2036
- _headers: Optional[Dict[StrictStr, Any]] = None,
2037
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2038
- ) -> RESTResponseType:
2039
- """Resumes a paused workflow.
2040
-
2041
-
2042
- :param workflow_id: The ID of the workflow to resume.
2043
- :type workflow_id: str
2044
- :param _request_timeout: timeout setting for this request. If one
2045
- number provided, it will be total request
2046
- timeout. It can also be a pair (tuple) of
2047
- (connection, read) timeouts.
2048
- :type _request_timeout: int, tuple(int, int), optional
2049
- :param _request_auth: set to override the auth_settings for an a single
2050
- request; this effectively ignores the
2051
- authentication in the spec for a single request.
2052
- :type _request_auth: dict, optional
2053
- :param _content_type: force content-type for the request.
2054
- :type _content_type: str, Optional
2055
- :param _headers: set to override the headers for a single
2056
- request; this effectively ignores the headers
2057
- in the spec for a single request.
2058
- :type _headers: dict, optional
2059
- :param _host_index: set to override the host_index for a single
2060
- request; this effectively ignores the host_index
2061
- in the spec for a single request.
2062
- :type _host_index: int, optional
2063
- :return: Returns the result object.
2064
- """ # noqa: E501
2065
-
2066
- _param = self._workflow_resume_post_serialize(
2067
- workflow_id=workflow_id,
2068
- _request_auth=_request_auth,
2069
- _content_type=_content_type,
2070
- _headers=_headers,
2071
- _host_index=_host_index
2072
- )
2073
-
2074
- _response_types_map: Dict[str, Optional[str]] = {
2075
- '200': None,
2076
- }
2077
- response_data = self.api_client.call_api(
2078
- *_param,
2079
- _request_timeout=_request_timeout
2080
- )
2081
- return response_data.response
2082
-
2083
-
2084
- def _workflow_resume_post_serialize(
2085
- self,
2086
- workflow_id,
2087
- _request_auth,
2088
- _content_type,
2089
- _headers,
2090
- _host_index,
2091
- ) -> RequestSerialized:
2092
-
2093
- _host = None
2094
-
2095
- _collection_formats: Dict[str, str] = {
2096
- }
2097
-
2098
- _path_params: Dict[str, str] = {}
2099
- _query_params: List[Tuple[str, str]] = []
2100
- _header_params: Dict[str, Optional[str]] = _headers or {}
2101
- _form_params: List[Tuple[str, str]] = []
2102
- _files: Dict[
2103
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2104
- ] = {}
2105
- _body_params: Optional[bytes] = None
2106
-
2107
- # process the path parameters
2108
- # process the query parameters
2109
- if workflow_id is not None:
2110
-
2111
- _query_params.append(('workflowId', workflow_id))
2112
-
2113
- # process the header parameters
2114
- # process the form parameters
2115
- # process the body parameter
2116
-
2117
-
2118
-
2119
-
2120
- # authentication setting
2121
- _auth_settings: List[str] = [
2122
- 'bearer',
2123
- 'oauth2'
2124
- ]
2125
-
2126
- return self.api_client.param_serialize(
2127
- method='POST',
2128
- resource_path='/Workflow/Resume',
2129
- path_params=_path_params,
2130
- query_params=_query_params,
2131
- header_params=_header_params,
2132
- body=_body_params,
2133
- post_params=_form_params,
2134
- files=_files,
2135
- auth_settings=_auth_settings,
2136
- collection_formats=_collection_formats,
2137
- _host=_host,
2138
- _request_auth=_request_auth
2139
- )
2140
-
2141
-
2142
-
2143
-
2144
- @validate_call
2145
- def workflow_start_independent_post(
2146
- self,
2147
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the independent workflow to start.")] = None,
2148
- _request_timeout: Union[
2149
- None,
2150
- Annotated[StrictFloat, Field(gt=0)],
2151
- Tuple[
2152
- Annotated[StrictFloat, Field(gt=0)],
2153
- Annotated[StrictFloat, Field(gt=0)]
2154
- ]
2155
- ] = None,
2156
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2157
- _content_type: Optional[StrictStr] = None,
2158
- _headers: Optional[Dict[StrictStr, Any]] = None,
2159
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2160
- ) -> None:
2161
- """Starts an independent workflow.
2162
-
2163
-
2164
- :param workflow_id: The ID of the independent workflow to start.
2165
- :type workflow_id: str
2166
- :param _request_timeout: timeout setting for this request. If one
2167
- number provided, it will be total request
2168
- timeout. It can also be a pair (tuple) of
2169
- (connection, read) timeouts.
2170
- :type _request_timeout: int, tuple(int, int), optional
2171
- :param _request_auth: set to override the auth_settings for an a single
2172
- request; this effectively ignores the
2173
- authentication in the spec for a single request.
2174
- :type _request_auth: dict, optional
2175
- :param _content_type: force content-type for the request.
2176
- :type _content_type: str, Optional
2177
- :param _headers: set to override the headers for a single
2178
- request; this effectively ignores the headers
2179
- in the spec for a single request.
2180
- :type _headers: dict, optional
2181
- :param _host_index: set to override the host_index for a single
2182
- request; this effectively ignores the host_index
2183
- in the spec for a single request.
2184
- :type _host_index: int, optional
2185
- :return: Returns the result object.
2186
- """ # noqa: E501
2187
-
2188
- _param = self._workflow_start_independent_post_serialize(
2189
- workflow_id=workflow_id,
2190
- _request_auth=_request_auth,
2191
- _content_type=_content_type,
2192
- _headers=_headers,
2193
- _host_index=_host_index
2194
- )
2195
-
2196
- _response_types_map: Dict[str, Optional[str]] = {
2197
- '200': None,
2198
- }
2199
- response_data = self.api_client.call_api(
2200
- *_param,
2201
- _request_timeout=_request_timeout
2202
- )
2203
- response_data.read()
2204
- return self.api_client.response_deserialize(
2205
- response_data=response_data,
2206
- response_types_map=_response_types_map,
2207
- ).data
2208
-
2209
-
2210
- @validate_call
2211
- def workflow_start_independent_post_with_http_info(
2212
- self,
2213
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the independent workflow to start.")] = None,
2214
- _request_timeout: Union[
2215
- None,
2216
- Annotated[StrictFloat, Field(gt=0)],
2217
- Tuple[
2218
- Annotated[StrictFloat, Field(gt=0)],
2219
- Annotated[StrictFloat, Field(gt=0)]
2220
- ]
2221
- ] = None,
2222
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2223
- _content_type: Optional[StrictStr] = None,
2224
- _headers: Optional[Dict[StrictStr, Any]] = None,
2225
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2226
- ) -> ApiResponse[None]:
2227
- """Starts an independent workflow.
2228
-
2229
-
2230
- :param workflow_id: The ID of the independent workflow to start.
2231
- :type workflow_id: str
2232
- :param _request_timeout: timeout setting for this request. If one
2233
- number provided, it will be total request
2234
- timeout. It can also be a pair (tuple) of
2235
- (connection, read) timeouts.
2236
- :type _request_timeout: int, tuple(int, int), optional
2237
- :param _request_auth: set to override the auth_settings for an a single
2238
- request; this effectively ignores the
2239
- authentication in the spec for a single request.
2240
- :type _request_auth: dict, optional
2241
- :param _content_type: force content-type for the request.
2242
- :type _content_type: str, Optional
2243
- :param _headers: set to override the headers for a single
2244
- request; this effectively ignores the headers
2245
- in the spec for a single request.
2246
- :type _headers: dict, optional
2247
- :param _host_index: set to override the host_index for a single
2248
- request; this effectively ignores the host_index
2249
- in the spec for a single request.
2250
- :type _host_index: int, optional
2251
- :return: Returns the result object.
2252
- """ # noqa: E501
2253
-
2254
- _param = self._workflow_start_independent_post_serialize(
2255
- workflow_id=workflow_id,
2256
- _request_auth=_request_auth,
2257
- _content_type=_content_type,
2258
- _headers=_headers,
2259
- _host_index=_host_index
2260
- )
2261
-
2262
- _response_types_map: Dict[str, Optional[str]] = {
2263
- '200': None,
2264
- }
2265
- response_data = self.api_client.call_api(
2266
- *_param,
2267
- _request_timeout=_request_timeout
2268
- )
2269
- response_data.read()
2270
- return self.api_client.response_deserialize(
2271
- response_data=response_data,
2272
- response_types_map=_response_types_map,
2273
- )
2274
-
2275
-
2276
- @validate_call
2277
- def workflow_start_independent_post_without_preload_content(
2278
- self,
2279
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the independent workflow to start.")] = None,
2280
- _request_timeout: Union[
2281
- None,
2282
- Annotated[StrictFloat, Field(gt=0)],
2283
- Tuple[
2284
- Annotated[StrictFloat, Field(gt=0)],
2285
- Annotated[StrictFloat, Field(gt=0)]
2286
- ]
2287
- ] = None,
2288
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2289
- _content_type: Optional[StrictStr] = None,
2290
- _headers: Optional[Dict[StrictStr, Any]] = None,
2291
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2292
- ) -> RESTResponseType:
2293
- """Starts an independent workflow.
2294
-
2295
-
2296
- :param workflow_id: The ID of the independent workflow to start.
2297
- :type workflow_id: str
2298
- :param _request_timeout: timeout setting for this request. If one
2299
- number provided, it will be total request
2300
- timeout. It can also be a pair (tuple) of
2301
- (connection, read) timeouts.
2302
- :type _request_timeout: int, tuple(int, int), optional
2303
- :param _request_auth: set to override the auth_settings for an a single
2304
- request; this effectively ignores the
2305
- authentication in the spec for a single request.
2306
- :type _request_auth: dict, optional
2307
- :param _content_type: force content-type for the request.
2308
- :type _content_type: str, Optional
2309
- :param _headers: set to override the headers for a single
2310
- request; this effectively ignores the headers
2311
- in the spec for a single request.
2312
- :type _headers: dict, optional
2313
- :param _host_index: set to override the host_index for a single
2314
- request; this effectively ignores the host_index
2315
- in the spec for a single request.
2316
- :type _host_index: int, optional
2317
- :return: Returns the result object.
2318
- """ # noqa: E501
2319
-
2320
- _param = self._workflow_start_independent_post_serialize(
2321
- workflow_id=workflow_id,
2322
- _request_auth=_request_auth,
2323
- _content_type=_content_type,
2324
- _headers=_headers,
2325
- _host_index=_host_index
2326
- )
2327
-
2328
- _response_types_map: Dict[str, Optional[str]] = {
2329
- '200': None,
2330
- }
2331
- response_data = self.api_client.call_api(
2332
- *_param,
2333
- _request_timeout=_request_timeout
2334
- )
2335
- return response_data.response
2336
-
2337
-
2338
- def _workflow_start_independent_post_serialize(
2339
- self,
2340
- workflow_id,
2341
- _request_auth,
2342
- _content_type,
2343
- _headers,
2344
- _host_index,
2345
- ) -> RequestSerialized:
2346
-
2347
- _host = None
2348
-
2349
- _collection_formats: Dict[str, str] = {
2350
- }
2351
-
2352
- _path_params: Dict[str, str] = {}
2353
- _query_params: List[Tuple[str, str]] = []
2354
- _header_params: Dict[str, Optional[str]] = _headers or {}
2355
- _form_params: List[Tuple[str, str]] = []
2356
- _files: Dict[
2357
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2358
- ] = {}
2359
- _body_params: Optional[bytes] = None
2360
-
2361
- # process the path parameters
2362
- # process the query parameters
2363
- if workflow_id is not None:
2364
-
2365
- _query_params.append(('workflowId', workflow_id))
2366
-
2367
- # process the header parameters
2368
- # process the form parameters
2369
- # process the body parameter
2370
-
2371
-
2372
-
2373
-
2374
- # authentication setting
2375
- _auth_settings: List[str] = [
2376
- 'bearer',
2377
- 'oauth2'
2378
- ]
2379
-
2380
- return self.api_client.param_serialize(
2381
- method='POST',
2382
- resource_path='/Workflow/StartIndependent',
2383
- path_params=_path_params,
2384
- query_params=_query_params,
2385
- header_params=_header_params,
2386
- body=_body_params,
2387
- post_params=_form_params,
2388
- files=_files,
2389
- auth_settings=_auth_settings,
2390
- collection_formats=_collection_formats,
2391
- _host=_host,
2392
- _request_auth=_request_auth
2393
- )
2394
-
2395
-