rapidata 1.1.0__py3-none-any.whl → 1.2.1__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.
Files changed (82) hide show
  1. rapidata/__init__.py +1 -0
  2. rapidata/api_client/__init__.py +30 -8
  3. rapidata/api_client/api/__init__.py +2 -0
  4. rapidata/api_client/api/campaign_api.py +8 -4
  5. rapidata/api_client/api/coco_api.py +4 -2
  6. rapidata/api_client/api/compare_workflow_api.py +2 -1
  7. rapidata/api_client/api/datapoint_api.py +6 -3
  8. rapidata/api_client/api/dataset_api.py +404 -396
  9. rapidata/api_client/api/identity_api.py +329 -50
  10. rapidata/api_client/api/newsletter_api.py +4 -2
  11. rapidata/api_client/api/order_api.py +40 -20
  12. rapidata/api_client/api/pipeline_api.py +6 -3
  13. rapidata/api_client/api/rapid_api.py +10 -5
  14. rapidata/api_client/api/rapidata_identity_api_api.py +272 -0
  15. rapidata/api_client/api/simple_workflow_api.py +2 -1
  16. rapidata/api_client/api/user_info_api.py +272 -0
  17. rapidata/api_client/api/validation_api.py +14 -7
  18. rapidata/api_client/api/workflow_api.py +30 -1067
  19. rapidata/api_client/models/__init__.py +28 -8
  20. rapidata/api_client/models/classification_metadata_model.py +98 -0
  21. rapidata/api_client/models/compare_workflow_config.py +3 -3
  22. rapidata/api_client/models/compare_workflow_config_model.py +3 -3
  23. rapidata/api_client/models/compare_workflow_model1.py +4 -18
  24. rapidata/api_client/models/compare_workflow_model1_referee.py +154 -0
  25. rapidata/api_client/models/completed_rapid_model.py +3 -3
  26. rapidata/api_client/models/completed_rapid_model_asset.py +170 -0
  27. rapidata/api_client/models/count_metadata_model.py +98 -0
  28. rapidata/api_client/models/demographic_metadata_model.py +100 -0
  29. rapidata/api_client/models/file_asset_model.py +3 -3
  30. rapidata/api_client/models/file_asset_model1.py +108 -0
  31. rapidata/api_client/models/file_asset_model1_metadata_inner.py +252 -0
  32. rapidata/api_client/models/file_asset_model2.py +108 -0
  33. rapidata/api_client/models/file_asset_model_metadata_inner.py +252 -0
  34. rapidata/api_client/models/image_dimension_metadata_model.py +100 -0
  35. rapidata/api_client/models/in_progress_rapid_model.py +3 -3
  36. rapidata/api_client/models/issue_auth_token_result.py +1 -1
  37. rapidata/api_client/models/legacy_issue_client_auth_token_result.py +87 -0
  38. rapidata/api_client/models/legacy_request_password_reset_command.py +98 -0
  39. rapidata/api_client/models/legacy_submit_password_reset_command.py +102 -0
  40. rapidata/api_client/models/location_metadata_model.py +100 -0
  41. rapidata/api_client/models/multi_asset_model.py +3 -3
  42. rapidata/api_client/models/multi_asset_model1.py +118 -0
  43. rapidata/api_client/models/multi_asset_model1_assets_inner.py +170 -0
  44. rapidata/api_client/models/multi_asset_model2.py +118 -0
  45. rapidata/api_client/models/not_started_rapid_model.py +3 -3
  46. rapidata/api_client/models/null_asset_model.py +3 -3
  47. rapidata/api_client/models/null_asset_model1.py +106 -0
  48. rapidata/api_client/models/null_asset_model2.py +106 -0
  49. rapidata/api_client/models/original_filename_metadata_model.py +98 -0
  50. rapidata/api_client/models/prompt_metadata_model.py +98 -0
  51. rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
  52. rapidata/api_client/models/ranked_datapoint_model.py +3 -3
  53. rapidata/api_client/models/simple_workflow_config.py +6 -6
  54. rapidata/api_client/models/simple_workflow_config_model.py +3 -3
  55. rapidata/api_client/models/simple_workflow_model1.py +7 -21
  56. rapidata/api_client/models/simple_workflow_model1_blueprint.py +238 -0
  57. rapidata/api_client/models/text_asset_model.py +3 -3
  58. rapidata/api_client/models/text_asset_model1.py +108 -0
  59. rapidata/api_client/models/text_asset_model2.py +108 -0
  60. rapidata/api_client/models/text_metadata_model.py +98 -0
  61. rapidata/api_client/models/transcription_metadata_model.py +98 -0
  62. rapidata/api_client/models/translated_prompt_metadata_model.py +102 -0
  63. rapidata/api_client/models/translated_string.py +93 -0
  64. rapidata/api_client_README.md +36 -13
  65. rapidata/rapidata_client/__init__.py +13 -2
  66. rapidata/rapidata_client/assets/media_asset.py +1 -1
  67. rapidata/rapidata_client/assets/multi_asset.py +14 -3
  68. rapidata/rapidata_client/dataset/rapidata_dataset.py +59 -21
  69. rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
  70. rapidata/rapidata_client/order/rapidata_order.py +49 -18
  71. rapidata/rapidata_client/order/rapidata_order_builder.py +99 -41
  72. rapidata/rapidata_client/selection/__init__.py +1 -0
  73. rapidata/rapidata_client/selection/capped_selection.py +25 -0
  74. rapidata/rapidata_client/selection/demographic_selection.py +3 -2
  75. rapidata/rapidata_client/simple_builders/__init__.py +0 -0
  76. rapidata/rapidata_client/simple_builders/simple_classification_builders.py +14 -9
  77. rapidata/rapidata_client/simple_builders/simple_compare_builders.py +6 -3
  78. rapidata/service/openapi_service.py +15 -0
  79. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/METADATA +1 -1
  80. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/RECORD +82 -50
  81. {rapidata-1.1.0.dist-info → rapidata-1.2.1.dist-info}/LICENSE +0 -0
  82. {rapidata-1.1.0.dist-info → rapidata-1.2.1.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,287 +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
- ]
310
-
311
- return self.api_client.param_serialize(
312
- method='POST',
313
- resource_path='/Workflow/CreateIndependent',
314
- path_params=_path_params,
315
- query_params=_query_params,
316
- header_params=_header_params,
317
- body=_body_params,
318
- post_params=_form_params,
319
- files=_files,
320
- auth_settings=_auth_settings,
321
- collection_formats=_collection_formats,
322
- _host=_host,
323
- _request_auth=_request_auth
324
- )
325
-
326
-
327
-
328
-
329
46
  @validate_call
330
47
  def workflow_delete_delete(
331
48
  self,
@@ -558,7 +275,8 @@ class WorkflowApi:
558
275
 
559
276
  # authentication setting
560
277
  _auth_settings: List[str] = [
561
- 'bearer'
278
+ 'bearer',
279
+ 'oauth2'
562
280
  ]
563
281
 
564
282
  return self.api_client.param_serialize(
@@ -820,7 +538,8 @@ class WorkflowApi:
820
538
 
821
539
  # authentication setting
822
540
  _auth_settings: List[str] = [
823
- 'bearer'
541
+ 'bearer',
542
+ 'oauth2'
824
543
  ]
825
544
 
826
545
  return self.api_client.param_serialize(
@@ -1082,7 +801,8 @@ class WorkflowApi:
1082
801
 
1083
802
  # authentication setting
1084
803
  _auth_settings: List[str] = [
1085
- 'bearer'
804
+ 'bearer',
805
+ 'oauth2'
1086
806
  ]
1087
807
 
1088
808
  return self.api_client.param_serialize(
@@ -1344,7 +1064,8 @@ class WorkflowApi:
1344
1064
 
1345
1065
  # authentication setting
1346
1066
  _auth_settings: List[str] = [
1347
- 'bearer'
1067
+ 'bearer',
1068
+ 'oauth2'
1348
1069
  ]
1349
1070
 
1350
1071
  return self.api_client.param_serialize(
@@ -1366,9 +1087,9 @@ class WorkflowApi:
1366
1087
 
1367
1088
 
1368
1089
  @validate_call
1369
- def workflow_pause_post(
1090
+ def workflow_query_get(
1370
1091
  self,
1371
- 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,
1372
1093
  _request_timeout: Union[
1373
1094
  None,
1374
1095
  Annotated[StrictFloat, Field(gt=0)],
@@ -1381,12 +1102,12 @@ class WorkflowApi:
1381
1102
  _content_type: Optional[StrictStr] = None,
1382
1103
  _headers: Optional[Dict[StrictStr, Any]] = None,
1383
1104
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1384
- ) -> None:
1385
- """Pauses a running workflow.
1105
+ ) -> IWorkflowModelPagedResult:
1106
+ """Queries workflows based on the provided filter, page, and sort criteria.
1386
1107
 
1387
1108
 
1388
- :param workflow_id: The ID of the workflow to pause.
1389
- :type workflow_id: str
1109
+ :param request: The model containing the filter, page, and sort criteria.
1110
+ :type request: QueryWorkflowsModel
1390
1111
  :param _request_timeout: timeout setting for this request. If one
1391
1112
  number provided, it will be total request
1392
1113
  timeout. It can also be a pair (tuple) of
@@ -1409,8 +1130,8 @@ class WorkflowApi:
1409
1130
  :return: Returns the result object.
1410
1131
  """ # noqa: E501
1411
1132
 
1412
- _param = self._workflow_pause_post_serialize(
1413
- workflow_id=workflow_id,
1133
+ _param = self._workflow_query_get_serialize(
1134
+ request=request,
1414
1135
  _request_auth=_request_auth,
1415
1136
  _content_type=_content_type,
1416
1137
  _headers=_headers,
@@ -1418,7 +1139,7 @@ class WorkflowApi:
1418
1139
  )
1419
1140
 
1420
1141
  _response_types_map: Dict[str, Optional[str]] = {
1421
- '200': None,
1142
+ '200': "IWorkflowModelPagedResult",
1422
1143
  }
1423
1144
  response_data = self.api_client.call_api(
1424
1145
  *_param,
@@ -1432,9 +1153,9 @@ class WorkflowApi:
1432
1153
 
1433
1154
 
1434
1155
  @validate_call
1435
- def workflow_pause_post_with_http_info(
1156
+ def workflow_query_get_with_http_info(
1436
1157
  self,
1437
- 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,
1438
1159
  _request_timeout: Union[
1439
1160
  None,
1440
1161
  Annotated[StrictFloat, Field(gt=0)],
@@ -1447,12 +1168,12 @@ class WorkflowApi:
1447
1168
  _content_type: Optional[StrictStr] = None,
1448
1169
  _headers: Optional[Dict[StrictStr, Any]] = None,
1449
1170
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1450
- ) -> ApiResponse[None]:
1451
- """Pauses a running workflow.
1171
+ ) -> ApiResponse[IWorkflowModelPagedResult]:
1172
+ """Queries workflows based on the provided filter, page, and sort criteria.
1452
1173
 
1453
1174
 
1454
- :param workflow_id: The ID of the workflow to pause.
1455
- :type workflow_id: str
1175
+ :param request: The model containing the filter, page, and sort criteria.
1176
+ :type request: QueryWorkflowsModel
1456
1177
  :param _request_timeout: timeout setting for this request. If one
1457
1178
  number provided, it will be total request
1458
1179
  timeout. It can also be a pair (tuple) of
@@ -1475,8 +1196,8 @@ class WorkflowApi:
1475
1196
  :return: Returns the result object.
1476
1197
  """ # noqa: E501
1477
1198
 
1478
- _param = self._workflow_pause_post_serialize(
1479
- workflow_id=workflow_id,
1199
+ _param = self._workflow_query_get_serialize(
1200
+ request=request,
1480
1201
  _request_auth=_request_auth,
1481
1202
  _content_type=_content_type,
1482
1203
  _headers=_headers,
@@ -1484,7 +1205,7 @@ class WorkflowApi:
1484
1205
  )
1485
1206
 
1486
1207
  _response_types_map: Dict[str, Optional[str]] = {
1487
- '200': None,
1208
+ '200': "IWorkflowModelPagedResult",
1488
1209
  }
1489
1210
  response_data = self.api_client.call_api(
1490
1211
  *_param,
@@ -1498,262 +1219,9 @@ class WorkflowApi:
1498
1219
 
1499
1220
 
1500
1221
  @validate_call
1501
- def workflow_pause_post_without_preload_content(
1222
+ def workflow_query_get_without_preload_content(
1502
1223
  self,
1503
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to pause.")] = None,
1504
- _request_timeout: Union[
1505
- None,
1506
- Annotated[StrictFloat, Field(gt=0)],
1507
- Tuple[
1508
- Annotated[StrictFloat, Field(gt=0)],
1509
- Annotated[StrictFloat, Field(gt=0)]
1510
- ]
1511
- ] = None,
1512
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1513
- _content_type: Optional[StrictStr] = None,
1514
- _headers: Optional[Dict[StrictStr, Any]] = None,
1515
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1516
- ) -> RESTResponseType:
1517
- """Pauses a running workflow.
1518
-
1519
-
1520
- :param workflow_id: The ID of the workflow to pause.
1521
- :type workflow_id: str
1522
- :param _request_timeout: timeout setting for this request. If one
1523
- number provided, it will be total request
1524
- timeout. It can also be a pair (tuple) of
1525
- (connection, read) timeouts.
1526
- :type _request_timeout: int, tuple(int, int), optional
1527
- :param _request_auth: set to override the auth_settings for an a single
1528
- request; this effectively ignores the
1529
- authentication in the spec for a single request.
1530
- :type _request_auth: dict, optional
1531
- :param _content_type: force content-type for the request.
1532
- :type _content_type: str, Optional
1533
- :param _headers: set to override the headers for a single
1534
- request; this effectively ignores the headers
1535
- in the spec for a single request.
1536
- :type _headers: dict, optional
1537
- :param _host_index: set to override the host_index for a single
1538
- request; this effectively ignores the host_index
1539
- in the spec for a single request.
1540
- :type _host_index: int, optional
1541
- :return: Returns the result object.
1542
- """ # noqa: E501
1543
-
1544
- _param = self._workflow_pause_post_serialize(
1545
- workflow_id=workflow_id,
1546
- _request_auth=_request_auth,
1547
- _content_type=_content_type,
1548
- _headers=_headers,
1549
- _host_index=_host_index
1550
- )
1551
-
1552
- _response_types_map: Dict[str, Optional[str]] = {
1553
- '200': None,
1554
- }
1555
- response_data = self.api_client.call_api(
1556
- *_param,
1557
- _request_timeout=_request_timeout
1558
- )
1559
- return response_data.response
1560
-
1561
-
1562
- def _workflow_pause_post_serialize(
1563
- self,
1564
- workflow_id,
1565
- _request_auth,
1566
- _content_type,
1567
- _headers,
1568
- _host_index,
1569
- ) -> RequestSerialized:
1570
-
1571
- _host = None
1572
-
1573
- _collection_formats: Dict[str, str] = {
1574
- }
1575
-
1576
- _path_params: Dict[str, str] = {}
1577
- _query_params: List[Tuple[str, str]] = []
1578
- _header_params: Dict[str, Optional[str]] = _headers or {}
1579
- _form_params: List[Tuple[str, str]] = []
1580
- _files: Dict[
1581
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1582
- ] = {}
1583
- _body_params: Optional[bytes] = None
1584
-
1585
- # process the path parameters
1586
- # process the query parameters
1587
- if workflow_id is not None:
1588
-
1589
- _query_params.append(('workflowId', workflow_id))
1590
-
1591
- # process the header parameters
1592
- # process the form parameters
1593
- # process the body parameter
1594
-
1595
-
1596
-
1597
-
1598
- # authentication setting
1599
- _auth_settings: List[str] = [
1600
- 'bearer'
1601
- ]
1602
-
1603
- return self.api_client.param_serialize(
1604
- method='POST',
1605
- resource_path='/Workflow/Pause',
1606
- path_params=_path_params,
1607
- query_params=_query_params,
1608
- header_params=_header_params,
1609
- body=_body_params,
1610
- post_params=_form_params,
1611
- files=_files,
1612
- auth_settings=_auth_settings,
1613
- collection_formats=_collection_formats,
1614
- _host=_host,
1615
- _request_auth=_request_auth
1616
- )
1617
-
1618
-
1619
-
1620
-
1621
- @validate_call
1622
- def workflow_query_get(
1623
- self,
1624
- request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1625
- _request_timeout: Union[
1626
- None,
1627
- Annotated[StrictFloat, Field(gt=0)],
1628
- Tuple[
1629
- Annotated[StrictFloat, Field(gt=0)],
1630
- Annotated[StrictFloat, Field(gt=0)]
1631
- ]
1632
- ] = None,
1633
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1634
- _content_type: Optional[StrictStr] = None,
1635
- _headers: Optional[Dict[StrictStr, Any]] = None,
1636
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1637
- ) -> IWorkflowModelPagedResult:
1638
- """Queries workflows based on the provided filter, page, and sort criteria.
1639
-
1640
-
1641
- :param request: The model containing the filter, page, and sort criteria.
1642
- :type request: QueryWorkflowsModel
1643
- :param _request_timeout: timeout setting for this request. If one
1644
- number provided, it will be total request
1645
- timeout. It can also be a pair (tuple) of
1646
- (connection, read) timeouts.
1647
- :type _request_timeout: int, tuple(int, int), optional
1648
- :param _request_auth: set to override the auth_settings for an a single
1649
- request; this effectively ignores the
1650
- authentication in the spec for a single request.
1651
- :type _request_auth: dict, optional
1652
- :param _content_type: force content-type for the request.
1653
- :type _content_type: str, Optional
1654
- :param _headers: set to override the headers for a single
1655
- request; this effectively ignores the headers
1656
- in the spec for a single request.
1657
- :type _headers: dict, optional
1658
- :param _host_index: set to override the host_index for a single
1659
- request; this effectively ignores the host_index
1660
- in the spec for a single request.
1661
- :type _host_index: int, optional
1662
- :return: Returns the result object.
1663
- """ # noqa: E501
1664
-
1665
- _param = self._workflow_query_get_serialize(
1666
- request=request,
1667
- _request_auth=_request_auth,
1668
- _content_type=_content_type,
1669
- _headers=_headers,
1670
- _host_index=_host_index
1671
- )
1672
-
1673
- _response_types_map: Dict[str, Optional[str]] = {
1674
- '200': "IWorkflowModelPagedResult",
1675
- }
1676
- response_data = self.api_client.call_api(
1677
- *_param,
1678
- _request_timeout=_request_timeout
1679
- )
1680
- response_data.read()
1681
- return self.api_client.response_deserialize(
1682
- response_data=response_data,
1683
- response_types_map=_response_types_map,
1684
- ).data
1685
-
1686
-
1687
- @validate_call
1688
- def workflow_query_get_with_http_info(
1689
- self,
1690
- request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1691
- _request_timeout: Union[
1692
- None,
1693
- Annotated[StrictFloat, Field(gt=0)],
1694
- Tuple[
1695
- Annotated[StrictFloat, Field(gt=0)],
1696
- Annotated[StrictFloat, Field(gt=0)]
1697
- ]
1698
- ] = None,
1699
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1700
- _content_type: Optional[StrictStr] = None,
1701
- _headers: Optional[Dict[StrictStr, Any]] = None,
1702
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1703
- ) -> ApiResponse[IWorkflowModelPagedResult]:
1704
- """Queries workflows based on the provided filter, page, and sort criteria.
1705
-
1706
-
1707
- :param request: The model containing the filter, page, and sort criteria.
1708
- :type request: QueryWorkflowsModel
1709
- :param _request_timeout: timeout setting for this request. If one
1710
- number provided, it will be total request
1711
- timeout. It can also be a pair (tuple) of
1712
- (connection, read) timeouts.
1713
- :type _request_timeout: int, tuple(int, int), optional
1714
- :param _request_auth: set to override the auth_settings for an a single
1715
- request; this effectively ignores the
1716
- authentication in the spec for a single request.
1717
- :type _request_auth: dict, optional
1718
- :param _content_type: force content-type for the request.
1719
- :type _content_type: str, Optional
1720
- :param _headers: set to override the headers for a single
1721
- request; this effectively ignores the headers
1722
- in the spec for a single request.
1723
- :type _headers: dict, optional
1724
- :param _host_index: set to override the host_index for a single
1725
- request; this effectively ignores the host_index
1726
- in the spec for a single request.
1727
- :type _host_index: int, optional
1728
- :return: Returns the result object.
1729
- """ # noqa: E501
1730
-
1731
- _param = self._workflow_query_get_serialize(
1732
- request=request,
1733
- _request_auth=_request_auth,
1734
- _content_type=_content_type,
1735
- _headers=_headers,
1736
- _host_index=_host_index
1737
- )
1738
-
1739
- _response_types_map: Dict[str, Optional[str]] = {
1740
- '200': "IWorkflowModelPagedResult",
1741
- }
1742
- response_data = self.api_client.call_api(
1743
- *_param,
1744
- _request_timeout=_request_timeout
1745
- )
1746
- response_data.read()
1747
- return self.api_client.response_deserialize(
1748
- response_data=response_data,
1749
- response_types_map=_response_types_map,
1750
- )
1751
-
1752
-
1753
- @validate_call
1754
- def workflow_query_get_without_preload_content(
1755
- self,
1756
- request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1224
+ request: Annotated[Optional[QueryWorkflowsModel], Field(description="The model containing the filter, page, and sort criteria.")] = None,
1757
1225
  _request_timeout: Union[
1758
1226
  None,
1759
1227
  Annotated[StrictFloat, Field(gt=0)],
@@ -1859,7 +1327,8 @@ class WorkflowApi:
1859
1327
 
1860
1328
  # authentication setting
1861
1329
  _auth_settings: List[str] = [
1862
- 'bearer'
1330
+ 'bearer',
1331
+ 'oauth2'
1863
1332
  ]
1864
1333
 
1865
1334
  return self.api_client.param_serialize(
@@ -1878,509 +1347,3 @@ class WorkflowApi:
1878
1347
  )
1879
1348
 
1880
1349
 
1881
-
1882
-
1883
- @validate_call
1884
- def workflow_resume_post(
1885
- self,
1886
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to resume.")] = None,
1887
- _request_timeout: Union[
1888
- None,
1889
- Annotated[StrictFloat, Field(gt=0)],
1890
- Tuple[
1891
- Annotated[StrictFloat, Field(gt=0)],
1892
- Annotated[StrictFloat, Field(gt=0)]
1893
- ]
1894
- ] = None,
1895
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1896
- _content_type: Optional[StrictStr] = None,
1897
- _headers: Optional[Dict[StrictStr, Any]] = None,
1898
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1899
- ) -> None:
1900
- """Resumes a paused workflow.
1901
-
1902
-
1903
- :param workflow_id: The ID of the workflow to resume.
1904
- :type workflow_id: str
1905
- :param _request_timeout: timeout setting for this request. If one
1906
- number provided, it will be total request
1907
- timeout. It can also be a pair (tuple) of
1908
- (connection, read) timeouts.
1909
- :type _request_timeout: int, tuple(int, int), optional
1910
- :param _request_auth: set to override the auth_settings for an a single
1911
- request; this effectively ignores the
1912
- authentication in the spec for a single request.
1913
- :type _request_auth: dict, optional
1914
- :param _content_type: force content-type for the request.
1915
- :type _content_type: str, Optional
1916
- :param _headers: set to override the headers for a single
1917
- request; this effectively ignores the headers
1918
- in the spec for a single request.
1919
- :type _headers: dict, optional
1920
- :param _host_index: set to override the host_index for a single
1921
- request; this effectively ignores the host_index
1922
- in the spec for a single request.
1923
- :type _host_index: int, optional
1924
- :return: Returns the result object.
1925
- """ # noqa: E501
1926
-
1927
- _param = self._workflow_resume_post_serialize(
1928
- workflow_id=workflow_id,
1929
- _request_auth=_request_auth,
1930
- _content_type=_content_type,
1931
- _headers=_headers,
1932
- _host_index=_host_index
1933
- )
1934
-
1935
- _response_types_map: Dict[str, Optional[str]] = {
1936
- '200': None,
1937
- }
1938
- response_data = self.api_client.call_api(
1939
- *_param,
1940
- _request_timeout=_request_timeout
1941
- )
1942
- response_data.read()
1943
- return self.api_client.response_deserialize(
1944
- response_data=response_data,
1945
- response_types_map=_response_types_map,
1946
- ).data
1947
-
1948
-
1949
- @validate_call
1950
- def workflow_resume_post_with_http_info(
1951
- self,
1952
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to resume.")] = None,
1953
- _request_timeout: Union[
1954
- None,
1955
- Annotated[StrictFloat, Field(gt=0)],
1956
- Tuple[
1957
- Annotated[StrictFloat, Field(gt=0)],
1958
- Annotated[StrictFloat, Field(gt=0)]
1959
- ]
1960
- ] = None,
1961
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1962
- _content_type: Optional[StrictStr] = None,
1963
- _headers: Optional[Dict[StrictStr, Any]] = None,
1964
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1965
- ) -> ApiResponse[None]:
1966
- """Resumes a paused workflow.
1967
-
1968
-
1969
- :param workflow_id: The ID of the workflow to resume.
1970
- :type workflow_id: str
1971
- :param _request_timeout: timeout setting for this request. If one
1972
- number provided, it will be total request
1973
- timeout. It can also be a pair (tuple) of
1974
- (connection, read) timeouts.
1975
- :type _request_timeout: int, tuple(int, int), optional
1976
- :param _request_auth: set to override the auth_settings for an a single
1977
- request; this effectively ignores the
1978
- authentication in the spec for a single request.
1979
- :type _request_auth: dict, optional
1980
- :param _content_type: force content-type for the request.
1981
- :type _content_type: str, Optional
1982
- :param _headers: set to override the headers for a single
1983
- request; this effectively ignores the headers
1984
- in the spec for a single request.
1985
- :type _headers: dict, optional
1986
- :param _host_index: set to override the host_index for a single
1987
- request; this effectively ignores the host_index
1988
- in the spec for a single request.
1989
- :type _host_index: int, optional
1990
- :return: Returns the result object.
1991
- """ # noqa: E501
1992
-
1993
- _param = self._workflow_resume_post_serialize(
1994
- workflow_id=workflow_id,
1995
- _request_auth=_request_auth,
1996
- _content_type=_content_type,
1997
- _headers=_headers,
1998
- _host_index=_host_index
1999
- )
2000
-
2001
- _response_types_map: Dict[str, Optional[str]] = {
2002
- '200': None,
2003
- }
2004
- response_data = self.api_client.call_api(
2005
- *_param,
2006
- _request_timeout=_request_timeout
2007
- )
2008
- response_data.read()
2009
- return self.api_client.response_deserialize(
2010
- response_data=response_data,
2011
- response_types_map=_response_types_map,
2012
- )
2013
-
2014
-
2015
- @validate_call
2016
- def workflow_resume_post_without_preload_content(
2017
- self,
2018
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to resume.")] = None,
2019
- _request_timeout: Union[
2020
- None,
2021
- Annotated[StrictFloat, Field(gt=0)],
2022
- Tuple[
2023
- Annotated[StrictFloat, Field(gt=0)],
2024
- Annotated[StrictFloat, Field(gt=0)]
2025
- ]
2026
- ] = None,
2027
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2028
- _content_type: Optional[StrictStr] = None,
2029
- _headers: Optional[Dict[StrictStr, Any]] = None,
2030
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2031
- ) -> RESTResponseType:
2032
- """Resumes a paused workflow.
2033
-
2034
-
2035
- :param workflow_id: The ID of the workflow to resume.
2036
- :type workflow_id: str
2037
- :param _request_timeout: timeout setting for this request. If one
2038
- number provided, it will be total request
2039
- timeout. It can also be a pair (tuple) of
2040
- (connection, read) timeouts.
2041
- :type _request_timeout: int, tuple(int, int), optional
2042
- :param _request_auth: set to override the auth_settings for an a single
2043
- request; this effectively ignores the
2044
- authentication in the spec for a single request.
2045
- :type _request_auth: dict, optional
2046
- :param _content_type: force content-type for the request.
2047
- :type _content_type: str, Optional
2048
- :param _headers: set to override the headers for a single
2049
- request; this effectively ignores the headers
2050
- in the spec for a single request.
2051
- :type _headers: dict, optional
2052
- :param _host_index: set to override the host_index for a single
2053
- request; this effectively ignores the host_index
2054
- in the spec for a single request.
2055
- :type _host_index: int, optional
2056
- :return: Returns the result object.
2057
- """ # noqa: E501
2058
-
2059
- _param = self._workflow_resume_post_serialize(
2060
- workflow_id=workflow_id,
2061
- _request_auth=_request_auth,
2062
- _content_type=_content_type,
2063
- _headers=_headers,
2064
- _host_index=_host_index
2065
- )
2066
-
2067
- _response_types_map: Dict[str, Optional[str]] = {
2068
- '200': None,
2069
- }
2070
- response_data = self.api_client.call_api(
2071
- *_param,
2072
- _request_timeout=_request_timeout
2073
- )
2074
- return response_data.response
2075
-
2076
-
2077
- def _workflow_resume_post_serialize(
2078
- self,
2079
- workflow_id,
2080
- _request_auth,
2081
- _content_type,
2082
- _headers,
2083
- _host_index,
2084
- ) -> RequestSerialized:
2085
-
2086
- _host = None
2087
-
2088
- _collection_formats: Dict[str, str] = {
2089
- }
2090
-
2091
- _path_params: Dict[str, str] = {}
2092
- _query_params: List[Tuple[str, str]] = []
2093
- _header_params: Dict[str, Optional[str]] = _headers or {}
2094
- _form_params: List[Tuple[str, str]] = []
2095
- _files: Dict[
2096
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2097
- ] = {}
2098
- _body_params: Optional[bytes] = None
2099
-
2100
- # process the path parameters
2101
- # process the query parameters
2102
- if workflow_id is not None:
2103
-
2104
- _query_params.append(('workflowId', workflow_id))
2105
-
2106
- # process the header parameters
2107
- # process the form parameters
2108
- # process the body parameter
2109
-
2110
-
2111
-
2112
-
2113
- # authentication setting
2114
- _auth_settings: List[str] = [
2115
- 'bearer'
2116
- ]
2117
-
2118
- return self.api_client.param_serialize(
2119
- method='POST',
2120
- resource_path='/Workflow/Resume',
2121
- path_params=_path_params,
2122
- query_params=_query_params,
2123
- header_params=_header_params,
2124
- body=_body_params,
2125
- post_params=_form_params,
2126
- files=_files,
2127
- auth_settings=_auth_settings,
2128
- collection_formats=_collection_formats,
2129
- _host=_host,
2130
- _request_auth=_request_auth
2131
- )
2132
-
2133
-
2134
-
2135
-
2136
- @validate_call
2137
- def workflow_start_independent_post(
2138
- self,
2139
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the independent workflow to start.")] = None,
2140
- _request_timeout: Union[
2141
- None,
2142
- Annotated[StrictFloat, Field(gt=0)],
2143
- Tuple[
2144
- Annotated[StrictFloat, Field(gt=0)],
2145
- Annotated[StrictFloat, Field(gt=0)]
2146
- ]
2147
- ] = None,
2148
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2149
- _content_type: Optional[StrictStr] = None,
2150
- _headers: Optional[Dict[StrictStr, Any]] = None,
2151
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2152
- ) -> None:
2153
- """Starts an independent workflow.
2154
-
2155
-
2156
- :param workflow_id: The ID of the independent workflow to start.
2157
- :type workflow_id: str
2158
- :param _request_timeout: timeout setting for this request. If one
2159
- number provided, it will be total request
2160
- timeout. It can also be a pair (tuple) of
2161
- (connection, read) timeouts.
2162
- :type _request_timeout: int, tuple(int, int), optional
2163
- :param _request_auth: set to override the auth_settings for an a single
2164
- request; this effectively ignores the
2165
- authentication in the spec for a single request.
2166
- :type _request_auth: dict, optional
2167
- :param _content_type: force content-type for the request.
2168
- :type _content_type: str, Optional
2169
- :param _headers: set to override the headers for a single
2170
- request; this effectively ignores the headers
2171
- in the spec for a single request.
2172
- :type _headers: dict, optional
2173
- :param _host_index: set to override the host_index for a single
2174
- request; this effectively ignores the host_index
2175
- in the spec for a single request.
2176
- :type _host_index: int, optional
2177
- :return: Returns the result object.
2178
- """ # noqa: E501
2179
-
2180
- _param = self._workflow_start_independent_post_serialize(
2181
- workflow_id=workflow_id,
2182
- _request_auth=_request_auth,
2183
- _content_type=_content_type,
2184
- _headers=_headers,
2185
- _host_index=_host_index
2186
- )
2187
-
2188
- _response_types_map: Dict[str, Optional[str]] = {
2189
- '200': None,
2190
- }
2191
- response_data = self.api_client.call_api(
2192
- *_param,
2193
- _request_timeout=_request_timeout
2194
- )
2195
- response_data.read()
2196
- return self.api_client.response_deserialize(
2197
- response_data=response_data,
2198
- response_types_map=_response_types_map,
2199
- ).data
2200
-
2201
-
2202
- @validate_call
2203
- def workflow_start_independent_post_with_http_info(
2204
- self,
2205
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the independent workflow to start.")] = None,
2206
- _request_timeout: Union[
2207
- None,
2208
- Annotated[StrictFloat, Field(gt=0)],
2209
- Tuple[
2210
- Annotated[StrictFloat, Field(gt=0)],
2211
- Annotated[StrictFloat, Field(gt=0)]
2212
- ]
2213
- ] = None,
2214
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2215
- _content_type: Optional[StrictStr] = None,
2216
- _headers: Optional[Dict[StrictStr, Any]] = None,
2217
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2218
- ) -> ApiResponse[None]:
2219
- """Starts an independent workflow.
2220
-
2221
-
2222
- :param workflow_id: The ID of the independent workflow to start.
2223
- :type workflow_id: str
2224
- :param _request_timeout: timeout setting for this request. If one
2225
- number provided, it will be total request
2226
- timeout. It can also be a pair (tuple) of
2227
- (connection, read) timeouts.
2228
- :type _request_timeout: int, tuple(int, int), optional
2229
- :param _request_auth: set to override the auth_settings for an a single
2230
- request; this effectively ignores the
2231
- authentication in the spec for a single request.
2232
- :type _request_auth: dict, optional
2233
- :param _content_type: force content-type for the request.
2234
- :type _content_type: str, Optional
2235
- :param _headers: set to override the headers for a single
2236
- request; this effectively ignores the headers
2237
- in the spec for a single request.
2238
- :type _headers: dict, optional
2239
- :param _host_index: set to override the host_index for a single
2240
- request; this effectively ignores the host_index
2241
- in the spec for a single request.
2242
- :type _host_index: int, optional
2243
- :return: Returns the result object.
2244
- """ # noqa: E501
2245
-
2246
- _param = self._workflow_start_independent_post_serialize(
2247
- workflow_id=workflow_id,
2248
- _request_auth=_request_auth,
2249
- _content_type=_content_type,
2250
- _headers=_headers,
2251
- _host_index=_host_index
2252
- )
2253
-
2254
- _response_types_map: Dict[str, Optional[str]] = {
2255
- '200': None,
2256
- }
2257
- response_data = self.api_client.call_api(
2258
- *_param,
2259
- _request_timeout=_request_timeout
2260
- )
2261
- response_data.read()
2262
- return self.api_client.response_deserialize(
2263
- response_data=response_data,
2264
- response_types_map=_response_types_map,
2265
- )
2266
-
2267
-
2268
- @validate_call
2269
- def workflow_start_independent_post_without_preload_content(
2270
- self,
2271
- workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the independent workflow to start.")] = None,
2272
- _request_timeout: Union[
2273
- None,
2274
- Annotated[StrictFloat, Field(gt=0)],
2275
- Tuple[
2276
- Annotated[StrictFloat, Field(gt=0)],
2277
- Annotated[StrictFloat, Field(gt=0)]
2278
- ]
2279
- ] = None,
2280
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2281
- _content_type: Optional[StrictStr] = None,
2282
- _headers: Optional[Dict[StrictStr, Any]] = None,
2283
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2284
- ) -> RESTResponseType:
2285
- """Starts an independent workflow.
2286
-
2287
-
2288
- :param workflow_id: The ID of the independent workflow to start.
2289
- :type workflow_id: str
2290
- :param _request_timeout: timeout setting for this request. If one
2291
- number provided, it will be total request
2292
- timeout. It can also be a pair (tuple) of
2293
- (connection, read) timeouts.
2294
- :type _request_timeout: int, tuple(int, int), optional
2295
- :param _request_auth: set to override the auth_settings for an a single
2296
- request; this effectively ignores the
2297
- authentication in the spec for a single request.
2298
- :type _request_auth: dict, optional
2299
- :param _content_type: force content-type for the request.
2300
- :type _content_type: str, Optional
2301
- :param _headers: set to override the headers for a single
2302
- request; this effectively ignores the headers
2303
- in the spec for a single request.
2304
- :type _headers: dict, optional
2305
- :param _host_index: set to override the host_index for a single
2306
- request; this effectively ignores the host_index
2307
- in the spec for a single request.
2308
- :type _host_index: int, optional
2309
- :return: Returns the result object.
2310
- """ # noqa: E501
2311
-
2312
- _param = self._workflow_start_independent_post_serialize(
2313
- workflow_id=workflow_id,
2314
- _request_auth=_request_auth,
2315
- _content_type=_content_type,
2316
- _headers=_headers,
2317
- _host_index=_host_index
2318
- )
2319
-
2320
- _response_types_map: Dict[str, Optional[str]] = {
2321
- '200': None,
2322
- }
2323
- response_data = self.api_client.call_api(
2324
- *_param,
2325
- _request_timeout=_request_timeout
2326
- )
2327
- return response_data.response
2328
-
2329
-
2330
- def _workflow_start_independent_post_serialize(
2331
- self,
2332
- workflow_id,
2333
- _request_auth,
2334
- _content_type,
2335
- _headers,
2336
- _host_index,
2337
- ) -> RequestSerialized:
2338
-
2339
- _host = None
2340
-
2341
- _collection_formats: Dict[str, str] = {
2342
- }
2343
-
2344
- _path_params: Dict[str, str] = {}
2345
- _query_params: List[Tuple[str, str]] = []
2346
- _header_params: Dict[str, Optional[str]] = _headers or {}
2347
- _form_params: List[Tuple[str, str]] = []
2348
- _files: Dict[
2349
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2350
- ] = {}
2351
- _body_params: Optional[bytes] = None
2352
-
2353
- # process the path parameters
2354
- # process the query parameters
2355
- if workflow_id is not None:
2356
-
2357
- _query_params.append(('workflowId', workflow_id))
2358
-
2359
- # process the header parameters
2360
- # process the form parameters
2361
- # process the body parameter
2362
-
2363
-
2364
-
2365
-
2366
- # authentication setting
2367
- _auth_settings: List[str] = [
2368
- 'bearer'
2369
- ]
2370
-
2371
- return self.api_client.param_serialize(
2372
- method='POST',
2373
- resource_path='/Workflow/StartIndependent',
2374
- path_params=_path_params,
2375
- query_params=_query_params,
2376
- header_params=_header_params,
2377
- body=_body_params,
2378
- post_params=_form_params,
2379
- files=_files,
2380
- auth_settings=_auth_settings,
2381
- collection_formats=_collection_formats,
2382
- _host=_host,
2383
- _request_auth=_request_auth
2384
- )
2385
-
2386
-