rapidata 0.4.0__py3-none-any.whl → 0.4.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 (63) hide show
  1. rapidata/api_client/__init__.py +29 -3
  2. rapidata/api_client/api/__init__.py +3 -0
  3. rapidata/api_client/api/compare_workflow_api.py +316 -0
  4. rapidata/api_client/api/dataset_api.py +24 -24
  5. rapidata/api_client/api/order_api.py +515 -289
  6. rapidata/api_client/api/rapid_api.py +6 -6
  7. rapidata/api_client/api/simple_workflow_api.py +350 -0
  8. rapidata/api_client/api/validation_api.py +6 -6
  9. rapidata/api_client/api/workflow_api.py +2386 -0
  10. rapidata/api_client/api_client.py +2 -2
  11. rapidata/api_client/models/__init__.py +26 -3
  12. rapidata/api_client/models/admin_order_model.py +8 -1
  13. rapidata/api_client/models/age_group.py +1 -1
  14. rapidata/api_client/models/age_user_filter_model.py +2 -2
  15. rapidata/api_client/models/campaign_user_filter_model.py +2 -2
  16. rapidata/api_client/models/compare_workflow_get_result_overview_get200_response.py +137 -0
  17. rapidata/api_client/models/compare_workflow_model1.py +146 -0
  18. rapidata/api_client/models/completed_rapid_model.py +103 -0
  19. rapidata/api_client/models/country_user_filter_model.py +2 -2
  20. rapidata/api_client/models/create_demographic_rapid_model.py +3 -3
  21. rapidata/api_client/models/create_independent_workflow_model.py +93 -0
  22. rapidata/api_client/models/create_independent_workflow_model_workflow_config.py +140 -0
  23. rapidata/api_client/models/create_independent_workflow_result.py +89 -0
  24. rapidata/api_client/models/create_order_model.py +40 -31
  25. rapidata/api_client/models/create_order_model_selections_inner.py +24 -10
  26. rapidata/api_client/models/create_order_model_user_filters_inner.py +35 -35
  27. rapidata/api_client/models/customer_order_model.py +8 -1
  28. rapidata/api_client/models/demographic_rapid_selection_config.py +3 -3
  29. rapidata/api_client/models/demographic_selection.py +4 -4
  30. rapidata/api_client/models/feedback_model.py +1 -1
  31. rapidata/api_client/models/gender.py +1 -1
  32. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  33. rapidata/api_client/models/get_attach_category_workflow_result_overview_result.py +144 -0
  34. rapidata/api_client/models/get_compare_workflow_result_overview_result.py +125 -0
  35. rapidata/api_client/models/get_compare_workflow_result_overview_small_result.py +114 -0
  36. rapidata/api_client/models/get_simple_workflow_result_overview_result.py +142 -0
  37. rapidata/api_client/models/get_workflow_by_id_result.py +91 -0
  38. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +140 -0
  39. rapidata/api_client/models/get_workflow_progress_result.py +100 -0
  40. rapidata/api_client/models/get_workflow_result_overview_result.py +104 -0
  41. rapidata/api_client/models/i_workflow_model_paged_result.py +105 -0
  42. rapidata/api_client/models/in_progress_rapid_model.py +103 -0
  43. rapidata/api_client/models/labeling_selection.py +2 -2
  44. rapidata/api_client/models/language_user_filter_model.py +2 -2
  45. rapidata/api_client/models/not_started_rapid_model.py +93 -0
  46. rapidata/api_client/models/order_state.py +43 -0
  47. rapidata/api_client/models/query_workflows_model.py +112 -0
  48. rapidata/api_client/models/ranked_datapoint_model.py +95 -0
  49. rapidata/api_client/models/rapid_answer.py +97 -0
  50. rapidata/api_client/models/rapid_answer_result.py +252 -0
  51. rapidata/api_client/models/simple_workflow_get_result_overview_get200_response.py +137 -0
  52. rapidata/api_client/models/simple_workflow_model1.py +140 -0
  53. rapidata/api_client/models/static_selection.py +96 -0
  54. rapidata/api_client/models/user_score_user_filter_model.py +3 -3
  55. rapidata/api_client/models/validation_selection.py +3 -3
  56. rapidata/api_client/models/workflow_state.py +41 -0
  57. rapidata/api_client/rest.py +1 -1
  58. rapidata/api_client_README.md +44 -8
  59. rapidata/rapidata_client/order/rapidata_order_builder.py +2 -1
  60. {rapidata-0.4.0.dist-info → rapidata-0.4.1.dist-info}/METADATA +1 -1
  61. {rapidata-0.4.0.dist-info → rapidata-0.4.1.dist-info}/RECORD +63 -34
  62. {rapidata-0.4.0.dist-info → rapidata-0.4.1.dist-info}/LICENSE +0 -0
  63. {rapidata-0.4.0.dist-info → rapidata-0.4.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,2386 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata.Dataset
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.create_independent_workflow_model import CreateIndependentWorkflowModel
23
+ from rapidata.api_client.models.create_independent_workflow_result import CreateIndependentWorkflowResult
24
+ from rapidata.api_client.models.get_workflow_by_id_result import GetWorkflowByIdResult
25
+ from rapidata.api_client.models.get_workflow_progress_result import GetWorkflowProgressResult
26
+ from rapidata.api_client.models.get_workflow_result_overview_result import GetWorkflowResultOverviewResult
27
+ from rapidata.api_client.models.i_workflow_model_paged_result import IWorkflowModelPagedResult
28
+ from rapidata.api_client.models.query_workflows_model import QueryWorkflowsModel
29
+
30
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
31
+ from rapidata.api_client.api_response import ApiResponse
32
+ from rapidata.api_client.rest import RESTResponseType
33
+
34
+
35
+ class WorkflowApi:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+
48
+ @validate_call
49
+ def 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
+ @validate_call
330
+ def workflow_delete_delete(
331
+ self,
332
+ id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to delete.")] = None,
333
+ _request_timeout: Union[
334
+ None,
335
+ Annotated[StrictFloat, Field(gt=0)],
336
+ Tuple[
337
+ Annotated[StrictFloat, Field(gt=0)],
338
+ Annotated[StrictFloat, Field(gt=0)]
339
+ ]
340
+ ] = None,
341
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
342
+ _content_type: Optional[StrictStr] = None,
343
+ _headers: Optional[Dict[StrictStr, Any]] = None,
344
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
345
+ ) -> None:
346
+ """Deletes a workflow.
347
+
348
+
349
+ :param id: The ID of the workflow to delete.
350
+ :type id: str
351
+ :param _request_timeout: timeout setting for this request. If one
352
+ number provided, it will be total request
353
+ timeout. It can also be a pair (tuple) of
354
+ (connection, read) timeouts.
355
+ :type _request_timeout: int, tuple(int, int), optional
356
+ :param _request_auth: set to override the auth_settings for an a single
357
+ request; this effectively ignores the
358
+ authentication in the spec for a single request.
359
+ :type _request_auth: dict, optional
360
+ :param _content_type: force content-type for the request.
361
+ :type _content_type: str, Optional
362
+ :param _headers: set to override the headers for a single
363
+ request; this effectively ignores the headers
364
+ in the spec for a single request.
365
+ :type _headers: dict, optional
366
+ :param _host_index: set to override the host_index for a single
367
+ request; this effectively ignores the host_index
368
+ in the spec for a single request.
369
+ :type _host_index: int, optional
370
+ :return: Returns the result object.
371
+ """ # noqa: E501
372
+
373
+ _param = self._workflow_delete_delete_serialize(
374
+ id=id,
375
+ _request_auth=_request_auth,
376
+ _content_type=_content_type,
377
+ _headers=_headers,
378
+ _host_index=_host_index
379
+ )
380
+
381
+ _response_types_map: Dict[str, Optional[str]] = {
382
+ '200': None,
383
+ }
384
+ response_data = self.api_client.call_api(
385
+ *_param,
386
+ _request_timeout=_request_timeout
387
+ )
388
+ response_data.read()
389
+ return self.api_client.response_deserialize(
390
+ response_data=response_data,
391
+ response_types_map=_response_types_map,
392
+ ).data
393
+
394
+
395
+ @validate_call
396
+ def workflow_delete_delete_with_http_info(
397
+ self,
398
+ id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to delete.")] = None,
399
+ _request_timeout: Union[
400
+ None,
401
+ Annotated[StrictFloat, Field(gt=0)],
402
+ Tuple[
403
+ Annotated[StrictFloat, Field(gt=0)],
404
+ Annotated[StrictFloat, Field(gt=0)]
405
+ ]
406
+ ] = None,
407
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
408
+ _content_type: Optional[StrictStr] = None,
409
+ _headers: Optional[Dict[StrictStr, Any]] = None,
410
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
411
+ ) -> ApiResponse[None]:
412
+ """Deletes a workflow.
413
+
414
+
415
+ :param id: The ID of the workflow to delete.
416
+ :type id: str
417
+ :param _request_timeout: timeout setting for this request. If one
418
+ number provided, it will be total request
419
+ timeout. It can also be a pair (tuple) of
420
+ (connection, read) timeouts.
421
+ :type _request_timeout: int, tuple(int, int), optional
422
+ :param _request_auth: set to override the auth_settings for an a single
423
+ request; this effectively ignores the
424
+ authentication in the spec for a single request.
425
+ :type _request_auth: dict, optional
426
+ :param _content_type: force content-type for the request.
427
+ :type _content_type: str, Optional
428
+ :param _headers: set to override the headers for a single
429
+ request; this effectively ignores the headers
430
+ in the spec for a single request.
431
+ :type _headers: dict, optional
432
+ :param _host_index: set to override the host_index for a single
433
+ request; this effectively ignores the host_index
434
+ in the spec for a single request.
435
+ :type _host_index: int, optional
436
+ :return: Returns the result object.
437
+ """ # noqa: E501
438
+
439
+ _param = self._workflow_delete_delete_serialize(
440
+ id=id,
441
+ _request_auth=_request_auth,
442
+ _content_type=_content_type,
443
+ _headers=_headers,
444
+ _host_index=_host_index
445
+ )
446
+
447
+ _response_types_map: Dict[str, Optional[str]] = {
448
+ '200': None,
449
+ }
450
+ response_data = self.api_client.call_api(
451
+ *_param,
452
+ _request_timeout=_request_timeout
453
+ )
454
+ response_data.read()
455
+ return self.api_client.response_deserialize(
456
+ response_data=response_data,
457
+ response_types_map=_response_types_map,
458
+ )
459
+
460
+
461
+ @validate_call
462
+ def workflow_delete_delete_without_preload_content(
463
+ self,
464
+ id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to delete.")] = None,
465
+ _request_timeout: Union[
466
+ None,
467
+ Annotated[StrictFloat, Field(gt=0)],
468
+ Tuple[
469
+ Annotated[StrictFloat, Field(gt=0)],
470
+ Annotated[StrictFloat, Field(gt=0)]
471
+ ]
472
+ ] = None,
473
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
474
+ _content_type: Optional[StrictStr] = None,
475
+ _headers: Optional[Dict[StrictStr, Any]] = None,
476
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
477
+ ) -> RESTResponseType:
478
+ """Deletes a workflow.
479
+
480
+
481
+ :param id: The ID of the workflow to delete.
482
+ :type id: str
483
+ :param _request_timeout: timeout setting for this request. If one
484
+ number provided, it will be total request
485
+ timeout. It can also be a pair (tuple) of
486
+ (connection, read) timeouts.
487
+ :type _request_timeout: int, tuple(int, int), optional
488
+ :param _request_auth: set to override the auth_settings for an a single
489
+ request; this effectively ignores the
490
+ authentication in the spec for a single request.
491
+ :type _request_auth: dict, optional
492
+ :param _content_type: force content-type for the request.
493
+ :type _content_type: str, Optional
494
+ :param _headers: set to override the headers for a single
495
+ request; this effectively ignores the headers
496
+ in the spec for a single request.
497
+ :type _headers: dict, optional
498
+ :param _host_index: set to override the host_index for a single
499
+ request; this effectively ignores the host_index
500
+ in the spec for a single request.
501
+ :type _host_index: int, optional
502
+ :return: Returns the result object.
503
+ """ # noqa: E501
504
+
505
+ _param = self._workflow_delete_delete_serialize(
506
+ id=id,
507
+ _request_auth=_request_auth,
508
+ _content_type=_content_type,
509
+ _headers=_headers,
510
+ _host_index=_host_index
511
+ )
512
+
513
+ _response_types_map: Dict[str, Optional[str]] = {
514
+ '200': None,
515
+ }
516
+ response_data = self.api_client.call_api(
517
+ *_param,
518
+ _request_timeout=_request_timeout
519
+ )
520
+ return response_data.response
521
+
522
+
523
+ def _workflow_delete_delete_serialize(
524
+ self,
525
+ id,
526
+ _request_auth,
527
+ _content_type,
528
+ _headers,
529
+ _host_index,
530
+ ) -> RequestSerialized:
531
+
532
+ _host = None
533
+
534
+ _collection_formats: Dict[str, str] = {
535
+ }
536
+
537
+ _path_params: Dict[str, str] = {}
538
+ _query_params: List[Tuple[str, str]] = []
539
+ _header_params: Dict[str, Optional[str]] = _headers or {}
540
+ _form_params: List[Tuple[str, str]] = []
541
+ _files: Dict[
542
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
543
+ ] = {}
544
+ _body_params: Optional[bytes] = None
545
+
546
+ # process the path parameters
547
+ # process the query parameters
548
+ if id is not None:
549
+
550
+ _query_params.append(('id', id))
551
+
552
+ # process the header parameters
553
+ # process the form parameters
554
+ # process the body parameter
555
+
556
+
557
+
558
+
559
+ # authentication setting
560
+ _auth_settings: List[str] = [
561
+ 'bearer'
562
+ ]
563
+
564
+ return self.api_client.param_serialize(
565
+ method='DELETE',
566
+ resource_path='/Workflow/Delete',
567
+ path_params=_path_params,
568
+ query_params=_query_params,
569
+ header_params=_header_params,
570
+ body=_body_params,
571
+ post_params=_form_params,
572
+ files=_files,
573
+ auth_settings=_auth_settings,
574
+ collection_formats=_collection_formats,
575
+ _host=_host,
576
+ _request_auth=_request_auth
577
+ )
578
+
579
+
580
+
581
+
582
+ @validate_call
583
+ def workflow_get_by_id_get(
584
+ self,
585
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get.")] = None,
586
+ _request_timeout: Union[
587
+ None,
588
+ Annotated[StrictFloat, Field(gt=0)],
589
+ Tuple[
590
+ Annotated[StrictFloat, Field(gt=0)],
591
+ Annotated[StrictFloat, Field(gt=0)]
592
+ ]
593
+ ] = None,
594
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
595
+ _content_type: Optional[StrictStr] = None,
596
+ _headers: Optional[Dict[StrictStr, Any]] = None,
597
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
598
+ ) -> GetWorkflowByIdResult:
599
+ """Get a workflow by its ID.
600
+
601
+
602
+ :param workflow_id: The ID of the workflow to get.
603
+ :type workflow_id: str
604
+ :param _request_timeout: timeout setting for this request. If one
605
+ number provided, it will be total request
606
+ timeout. It can also be a pair (tuple) of
607
+ (connection, read) timeouts.
608
+ :type _request_timeout: int, tuple(int, int), optional
609
+ :param _request_auth: set to override the auth_settings for an a single
610
+ request; this effectively ignores the
611
+ authentication in the spec for a single request.
612
+ :type _request_auth: dict, optional
613
+ :param _content_type: force content-type for the request.
614
+ :type _content_type: str, Optional
615
+ :param _headers: set to override the headers for a single
616
+ request; this effectively ignores the headers
617
+ in the spec for a single request.
618
+ :type _headers: dict, optional
619
+ :param _host_index: set to override the host_index for a single
620
+ request; this effectively ignores the host_index
621
+ in the spec for a single request.
622
+ :type _host_index: int, optional
623
+ :return: Returns the result object.
624
+ """ # noqa: E501
625
+
626
+ _param = self._workflow_get_by_id_get_serialize(
627
+ workflow_id=workflow_id,
628
+ _request_auth=_request_auth,
629
+ _content_type=_content_type,
630
+ _headers=_headers,
631
+ _host_index=_host_index
632
+ )
633
+
634
+ _response_types_map: Dict[str, Optional[str]] = {
635
+ '200': "GetWorkflowByIdResult",
636
+ }
637
+ response_data = self.api_client.call_api(
638
+ *_param,
639
+ _request_timeout=_request_timeout
640
+ )
641
+ response_data.read()
642
+ return self.api_client.response_deserialize(
643
+ response_data=response_data,
644
+ response_types_map=_response_types_map,
645
+ ).data
646
+
647
+
648
+ @validate_call
649
+ def workflow_get_by_id_get_with_http_info(
650
+ self,
651
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get.")] = None,
652
+ _request_timeout: Union[
653
+ None,
654
+ Annotated[StrictFloat, Field(gt=0)],
655
+ Tuple[
656
+ Annotated[StrictFloat, Field(gt=0)],
657
+ Annotated[StrictFloat, Field(gt=0)]
658
+ ]
659
+ ] = None,
660
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
661
+ _content_type: Optional[StrictStr] = None,
662
+ _headers: Optional[Dict[StrictStr, Any]] = None,
663
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
664
+ ) -> ApiResponse[GetWorkflowByIdResult]:
665
+ """Get a workflow by its ID.
666
+
667
+
668
+ :param workflow_id: The ID of the workflow to get.
669
+ :type workflow_id: str
670
+ :param _request_timeout: timeout setting for this request. If one
671
+ number provided, it will be total request
672
+ timeout. It can also be a pair (tuple) of
673
+ (connection, read) timeouts.
674
+ :type _request_timeout: int, tuple(int, int), optional
675
+ :param _request_auth: set to override the auth_settings for an a single
676
+ request; this effectively ignores the
677
+ authentication in the spec for a single request.
678
+ :type _request_auth: dict, optional
679
+ :param _content_type: force content-type for the request.
680
+ :type _content_type: str, Optional
681
+ :param _headers: set to override the headers for a single
682
+ request; this effectively ignores the headers
683
+ in the spec for a single request.
684
+ :type _headers: dict, optional
685
+ :param _host_index: set to override the host_index for a single
686
+ request; this effectively ignores the host_index
687
+ in the spec for a single request.
688
+ :type _host_index: int, optional
689
+ :return: Returns the result object.
690
+ """ # noqa: E501
691
+
692
+ _param = self._workflow_get_by_id_get_serialize(
693
+ workflow_id=workflow_id,
694
+ _request_auth=_request_auth,
695
+ _content_type=_content_type,
696
+ _headers=_headers,
697
+ _host_index=_host_index
698
+ )
699
+
700
+ _response_types_map: Dict[str, Optional[str]] = {
701
+ '200': "GetWorkflowByIdResult",
702
+ }
703
+ response_data = self.api_client.call_api(
704
+ *_param,
705
+ _request_timeout=_request_timeout
706
+ )
707
+ response_data.read()
708
+ return self.api_client.response_deserialize(
709
+ response_data=response_data,
710
+ response_types_map=_response_types_map,
711
+ )
712
+
713
+
714
+ @validate_call
715
+ def workflow_get_by_id_get_without_preload_content(
716
+ self,
717
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get.")] = None,
718
+ _request_timeout: Union[
719
+ None,
720
+ Annotated[StrictFloat, Field(gt=0)],
721
+ Tuple[
722
+ Annotated[StrictFloat, Field(gt=0)],
723
+ Annotated[StrictFloat, Field(gt=0)]
724
+ ]
725
+ ] = None,
726
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
727
+ _content_type: Optional[StrictStr] = None,
728
+ _headers: Optional[Dict[StrictStr, Any]] = None,
729
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
730
+ ) -> RESTResponseType:
731
+ """Get a workflow by its ID.
732
+
733
+
734
+ :param workflow_id: The ID of the workflow to get.
735
+ :type workflow_id: str
736
+ :param _request_timeout: timeout setting for this request. If one
737
+ number provided, it will be total request
738
+ timeout. It can also be a pair (tuple) of
739
+ (connection, read) timeouts.
740
+ :type _request_timeout: int, tuple(int, int), optional
741
+ :param _request_auth: set to override the auth_settings for an a single
742
+ request; this effectively ignores the
743
+ authentication in the spec for a single request.
744
+ :type _request_auth: dict, optional
745
+ :param _content_type: force content-type for the request.
746
+ :type _content_type: str, Optional
747
+ :param _headers: set to override the headers for a single
748
+ request; this effectively ignores the headers
749
+ in the spec for a single request.
750
+ :type _headers: dict, optional
751
+ :param _host_index: set to override the host_index for a single
752
+ request; this effectively ignores the host_index
753
+ in the spec for a single request.
754
+ :type _host_index: int, optional
755
+ :return: Returns the result object.
756
+ """ # noqa: E501
757
+
758
+ _param = self._workflow_get_by_id_get_serialize(
759
+ workflow_id=workflow_id,
760
+ _request_auth=_request_auth,
761
+ _content_type=_content_type,
762
+ _headers=_headers,
763
+ _host_index=_host_index
764
+ )
765
+
766
+ _response_types_map: Dict[str, Optional[str]] = {
767
+ '200': "GetWorkflowByIdResult",
768
+ }
769
+ response_data = self.api_client.call_api(
770
+ *_param,
771
+ _request_timeout=_request_timeout
772
+ )
773
+ return response_data.response
774
+
775
+
776
+ def _workflow_get_by_id_get_serialize(
777
+ self,
778
+ workflow_id,
779
+ _request_auth,
780
+ _content_type,
781
+ _headers,
782
+ _host_index,
783
+ ) -> RequestSerialized:
784
+
785
+ _host = None
786
+
787
+ _collection_formats: Dict[str, str] = {
788
+ }
789
+
790
+ _path_params: Dict[str, str] = {}
791
+ _query_params: List[Tuple[str, str]] = []
792
+ _header_params: Dict[str, Optional[str]] = _headers or {}
793
+ _form_params: List[Tuple[str, str]] = []
794
+ _files: Dict[
795
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
796
+ ] = {}
797
+ _body_params: Optional[bytes] = None
798
+
799
+ # process the path parameters
800
+ # process the query parameters
801
+ if workflow_id is not None:
802
+
803
+ _query_params.append(('workflowId', workflow_id))
804
+
805
+ # process the header parameters
806
+ # process the form parameters
807
+ # process the body parameter
808
+
809
+
810
+ # set the HTTP header `Accept`
811
+ if 'Accept' not in _header_params:
812
+ _header_params['Accept'] = self.api_client.select_header_accept(
813
+ [
814
+ 'text/plain',
815
+ 'application/json',
816
+ 'text/json'
817
+ ]
818
+ )
819
+
820
+
821
+ # authentication setting
822
+ _auth_settings: List[str] = [
823
+ 'bearer'
824
+ ]
825
+
826
+ return self.api_client.param_serialize(
827
+ method='GET',
828
+ resource_path='/Workflow/GetById',
829
+ path_params=_path_params,
830
+ query_params=_query_params,
831
+ header_params=_header_params,
832
+ body=_body_params,
833
+ post_params=_form_params,
834
+ files=_files,
835
+ auth_settings=_auth_settings,
836
+ collection_formats=_collection_formats,
837
+ _host=_host,
838
+ _request_auth=_request_auth
839
+ )
840
+
841
+
842
+
843
+
844
+ @validate_call
845
+ def workflow_get_progress_get(
846
+ self,
847
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the progress for.")] = None,
848
+ _request_timeout: Union[
849
+ None,
850
+ Annotated[StrictFloat, Field(gt=0)],
851
+ Tuple[
852
+ Annotated[StrictFloat, Field(gt=0)],
853
+ Annotated[StrictFloat, Field(gt=0)]
854
+ ]
855
+ ] = None,
856
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
857
+ _content_type: Optional[StrictStr] = None,
858
+ _headers: Optional[Dict[StrictStr, Any]] = None,
859
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
860
+ ) -> GetWorkflowProgressResult:
861
+ """Get the progress of a workflow.
862
+
863
+
864
+ :param workflow_id: The ID of the workflow to get the progress for.
865
+ :type workflow_id: str
866
+ :param _request_timeout: timeout setting for this request. If one
867
+ number provided, it will be total request
868
+ timeout. It can also be a pair (tuple) of
869
+ (connection, read) timeouts.
870
+ :type _request_timeout: int, tuple(int, int), optional
871
+ :param _request_auth: set to override the auth_settings for an a single
872
+ request; this effectively ignores the
873
+ authentication in the spec for a single request.
874
+ :type _request_auth: dict, optional
875
+ :param _content_type: force content-type for the request.
876
+ :type _content_type: str, Optional
877
+ :param _headers: set to override the headers for a single
878
+ request; this effectively ignores the headers
879
+ in the spec for a single request.
880
+ :type _headers: dict, optional
881
+ :param _host_index: set to override the host_index for a single
882
+ request; this effectively ignores the host_index
883
+ in the spec for a single request.
884
+ :type _host_index: int, optional
885
+ :return: Returns the result object.
886
+ """ # noqa: E501
887
+
888
+ _param = self._workflow_get_progress_get_serialize(
889
+ workflow_id=workflow_id,
890
+ _request_auth=_request_auth,
891
+ _content_type=_content_type,
892
+ _headers=_headers,
893
+ _host_index=_host_index
894
+ )
895
+
896
+ _response_types_map: Dict[str, Optional[str]] = {
897
+ '200': "GetWorkflowProgressResult",
898
+ }
899
+ response_data = self.api_client.call_api(
900
+ *_param,
901
+ _request_timeout=_request_timeout
902
+ )
903
+ response_data.read()
904
+ return self.api_client.response_deserialize(
905
+ response_data=response_data,
906
+ response_types_map=_response_types_map,
907
+ ).data
908
+
909
+
910
+ @validate_call
911
+ def workflow_get_progress_get_with_http_info(
912
+ self,
913
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the progress for.")] = None,
914
+ _request_timeout: Union[
915
+ None,
916
+ Annotated[StrictFloat, Field(gt=0)],
917
+ Tuple[
918
+ Annotated[StrictFloat, Field(gt=0)],
919
+ Annotated[StrictFloat, Field(gt=0)]
920
+ ]
921
+ ] = None,
922
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
923
+ _content_type: Optional[StrictStr] = None,
924
+ _headers: Optional[Dict[StrictStr, Any]] = None,
925
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
926
+ ) -> ApiResponse[GetWorkflowProgressResult]:
927
+ """Get the progress of a workflow.
928
+
929
+
930
+ :param workflow_id: The ID of the workflow to get the progress for.
931
+ :type workflow_id: str
932
+ :param _request_timeout: timeout setting for this request. If one
933
+ number provided, it will be total request
934
+ timeout. It can also be a pair (tuple) of
935
+ (connection, read) timeouts.
936
+ :type _request_timeout: int, tuple(int, int), optional
937
+ :param _request_auth: set to override the auth_settings for an a single
938
+ request; this effectively ignores the
939
+ authentication in the spec for a single request.
940
+ :type _request_auth: dict, optional
941
+ :param _content_type: force content-type for the request.
942
+ :type _content_type: str, Optional
943
+ :param _headers: set to override the headers for a single
944
+ request; this effectively ignores the headers
945
+ in the spec for a single request.
946
+ :type _headers: dict, optional
947
+ :param _host_index: set to override the host_index for a single
948
+ request; this effectively ignores the host_index
949
+ in the spec for a single request.
950
+ :type _host_index: int, optional
951
+ :return: Returns the result object.
952
+ """ # noqa: E501
953
+
954
+ _param = self._workflow_get_progress_get_serialize(
955
+ workflow_id=workflow_id,
956
+ _request_auth=_request_auth,
957
+ _content_type=_content_type,
958
+ _headers=_headers,
959
+ _host_index=_host_index
960
+ )
961
+
962
+ _response_types_map: Dict[str, Optional[str]] = {
963
+ '200': "GetWorkflowProgressResult",
964
+ }
965
+ response_data = self.api_client.call_api(
966
+ *_param,
967
+ _request_timeout=_request_timeout
968
+ )
969
+ response_data.read()
970
+ return self.api_client.response_deserialize(
971
+ response_data=response_data,
972
+ response_types_map=_response_types_map,
973
+ )
974
+
975
+
976
+ @validate_call
977
+ def workflow_get_progress_get_without_preload_content(
978
+ self,
979
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the progress for.")] = None,
980
+ _request_timeout: Union[
981
+ None,
982
+ Annotated[StrictFloat, Field(gt=0)],
983
+ Tuple[
984
+ Annotated[StrictFloat, Field(gt=0)],
985
+ Annotated[StrictFloat, Field(gt=0)]
986
+ ]
987
+ ] = None,
988
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
989
+ _content_type: Optional[StrictStr] = None,
990
+ _headers: Optional[Dict[StrictStr, Any]] = None,
991
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
992
+ ) -> RESTResponseType:
993
+ """Get the progress of a workflow.
994
+
995
+
996
+ :param workflow_id: The ID of the workflow to get the progress for.
997
+ :type workflow_id: str
998
+ :param _request_timeout: timeout setting for this request. If one
999
+ number provided, it will be total request
1000
+ timeout. It can also be a pair (tuple) of
1001
+ (connection, read) timeouts.
1002
+ :type _request_timeout: int, tuple(int, int), optional
1003
+ :param _request_auth: set to override the auth_settings for an a single
1004
+ request; this effectively ignores the
1005
+ authentication in the spec for a single request.
1006
+ :type _request_auth: dict, optional
1007
+ :param _content_type: force content-type for the request.
1008
+ :type _content_type: str, Optional
1009
+ :param _headers: set to override the headers for a single
1010
+ request; this effectively ignores the headers
1011
+ in the spec for a single request.
1012
+ :type _headers: dict, optional
1013
+ :param _host_index: set to override the host_index for a single
1014
+ request; this effectively ignores the host_index
1015
+ in the spec for a single request.
1016
+ :type _host_index: int, optional
1017
+ :return: Returns the result object.
1018
+ """ # noqa: E501
1019
+
1020
+ _param = self._workflow_get_progress_get_serialize(
1021
+ workflow_id=workflow_id,
1022
+ _request_auth=_request_auth,
1023
+ _content_type=_content_type,
1024
+ _headers=_headers,
1025
+ _host_index=_host_index
1026
+ )
1027
+
1028
+ _response_types_map: Dict[str, Optional[str]] = {
1029
+ '200': "GetWorkflowProgressResult",
1030
+ }
1031
+ response_data = self.api_client.call_api(
1032
+ *_param,
1033
+ _request_timeout=_request_timeout
1034
+ )
1035
+ return response_data.response
1036
+
1037
+
1038
+ def _workflow_get_progress_get_serialize(
1039
+ self,
1040
+ workflow_id,
1041
+ _request_auth,
1042
+ _content_type,
1043
+ _headers,
1044
+ _host_index,
1045
+ ) -> RequestSerialized:
1046
+
1047
+ _host = None
1048
+
1049
+ _collection_formats: Dict[str, str] = {
1050
+ }
1051
+
1052
+ _path_params: Dict[str, str] = {}
1053
+ _query_params: List[Tuple[str, str]] = []
1054
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1055
+ _form_params: List[Tuple[str, str]] = []
1056
+ _files: Dict[
1057
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1058
+ ] = {}
1059
+ _body_params: Optional[bytes] = None
1060
+
1061
+ # process the path parameters
1062
+ # process the query parameters
1063
+ if workflow_id is not None:
1064
+
1065
+ _query_params.append(('workflowId', workflow_id))
1066
+
1067
+ # process the header parameters
1068
+ # process the form parameters
1069
+ # process the body parameter
1070
+
1071
+
1072
+ # set the HTTP header `Accept`
1073
+ if 'Accept' not in _header_params:
1074
+ _header_params['Accept'] = self.api_client.select_header_accept(
1075
+ [
1076
+ 'text/plain',
1077
+ 'application/json',
1078
+ 'text/json'
1079
+ ]
1080
+ )
1081
+
1082
+
1083
+ # authentication setting
1084
+ _auth_settings: List[str] = [
1085
+ 'bearer'
1086
+ ]
1087
+
1088
+ return self.api_client.param_serialize(
1089
+ method='GET',
1090
+ resource_path='/Workflow/GetProgress',
1091
+ path_params=_path_params,
1092
+ query_params=_query_params,
1093
+ header_params=_header_params,
1094
+ body=_body_params,
1095
+ post_params=_form_params,
1096
+ files=_files,
1097
+ auth_settings=_auth_settings,
1098
+ collection_formats=_collection_formats,
1099
+ _host=_host,
1100
+ _request_auth=_request_auth
1101
+ )
1102
+
1103
+
1104
+
1105
+
1106
+ @validate_call
1107
+ def workflow_get_result_overview_get(
1108
+ self,
1109
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the result overview for.")] = None,
1110
+ _request_timeout: Union[
1111
+ None,
1112
+ Annotated[StrictFloat, Field(gt=0)],
1113
+ Tuple[
1114
+ Annotated[StrictFloat, Field(gt=0)],
1115
+ Annotated[StrictFloat, Field(gt=0)]
1116
+ ]
1117
+ ] = None,
1118
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1119
+ _content_type: Optional[StrictStr] = None,
1120
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1121
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1122
+ ) -> GetWorkflowResultOverviewResult:
1123
+ """Get the result overview for a workflow.
1124
+
1125
+
1126
+ :param workflow_id: The ID of the workflow to get the result overview for.
1127
+ :type workflow_id: str
1128
+ :param _request_timeout: timeout setting for this request. If one
1129
+ number provided, it will be total request
1130
+ timeout. It can also be a pair (tuple) of
1131
+ (connection, read) timeouts.
1132
+ :type _request_timeout: int, tuple(int, int), optional
1133
+ :param _request_auth: set to override the auth_settings for an a single
1134
+ request; this effectively ignores the
1135
+ authentication in the spec for a single request.
1136
+ :type _request_auth: dict, optional
1137
+ :param _content_type: force content-type for the request.
1138
+ :type _content_type: str, Optional
1139
+ :param _headers: set to override the headers for a single
1140
+ request; this effectively ignores the headers
1141
+ in the spec for a single request.
1142
+ :type _headers: dict, optional
1143
+ :param _host_index: set to override the host_index for a single
1144
+ request; this effectively ignores the host_index
1145
+ in the spec for a single request.
1146
+ :type _host_index: int, optional
1147
+ :return: Returns the result object.
1148
+ """ # noqa: E501
1149
+
1150
+ _param = self._workflow_get_result_overview_get_serialize(
1151
+ workflow_id=workflow_id,
1152
+ _request_auth=_request_auth,
1153
+ _content_type=_content_type,
1154
+ _headers=_headers,
1155
+ _host_index=_host_index
1156
+ )
1157
+
1158
+ _response_types_map: Dict[str, Optional[str]] = {
1159
+ '200': "GetWorkflowResultOverviewResult",
1160
+ }
1161
+ response_data = self.api_client.call_api(
1162
+ *_param,
1163
+ _request_timeout=_request_timeout
1164
+ )
1165
+ response_data.read()
1166
+ return self.api_client.response_deserialize(
1167
+ response_data=response_data,
1168
+ response_types_map=_response_types_map,
1169
+ ).data
1170
+
1171
+
1172
+ @validate_call
1173
+ def workflow_get_result_overview_get_with_http_info(
1174
+ self,
1175
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the result overview for.")] = None,
1176
+ _request_timeout: Union[
1177
+ None,
1178
+ Annotated[StrictFloat, Field(gt=0)],
1179
+ Tuple[
1180
+ Annotated[StrictFloat, Field(gt=0)],
1181
+ Annotated[StrictFloat, Field(gt=0)]
1182
+ ]
1183
+ ] = None,
1184
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1185
+ _content_type: Optional[StrictStr] = None,
1186
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1187
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1188
+ ) -> ApiResponse[GetWorkflowResultOverviewResult]:
1189
+ """Get the result overview for a workflow.
1190
+
1191
+
1192
+ :param workflow_id: The ID of the workflow to get the result overview for.
1193
+ :type workflow_id: str
1194
+ :param _request_timeout: timeout setting for this request. If one
1195
+ number provided, it will be total request
1196
+ timeout. It can also be a pair (tuple) of
1197
+ (connection, read) timeouts.
1198
+ :type _request_timeout: int, tuple(int, int), optional
1199
+ :param _request_auth: set to override the auth_settings for an a single
1200
+ request; this effectively ignores the
1201
+ authentication in the spec for a single request.
1202
+ :type _request_auth: dict, optional
1203
+ :param _content_type: force content-type for the request.
1204
+ :type _content_type: str, Optional
1205
+ :param _headers: set to override the headers for a single
1206
+ request; this effectively ignores the headers
1207
+ in the spec for a single request.
1208
+ :type _headers: dict, optional
1209
+ :param _host_index: set to override the host_index for a single
1210
+ request; this effectively ignores the host_index
1211
+ in the spec for a single request.
1212
+ :type _host_index: int, optional
1213
+ :return: Returns the result object.
1214
+ """ # noqa: E501
1215
+
1216
+ _param = self._workflow_get_result_overview_get_serialize(
1217
+ workflow_id=workflow_id,
1218
+ _request_auth=_request_auth,
1219
+ _content_type=_content_type,
1220
+ _headers=_headers,
1221
+ _host_index=_host_index
1222
+ )
1223
+
1224
+ _response_types_map: Dict[str, Optional[str]] = {
1225
+ '200': "GetWorkflowResultOverviewResult",
1226
+ }
1227
+ response_data = self.api_client.call_api(
1228
+ *_param,
1229
+ _request_timeout=_request_timeout
1230
+ )
1231
+ response_data.read()
1232
+ return self.api_client.response_deserialize(
1233
+ response_data=response_data,
1234
+ response_types_map=_response_types_map,
1235
+ )
1236
+
1237
+
1238
+ @validate_call
1239
+ def workflow_get_result_overview_get_without_preload_content(
1240
+ self,
1241
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to get the result overview for.")] = None,
1242
+ _request_timeout: Union[
1243
+ None,
1244
+ Annotated[StrictFloat, Field(gt=0)],
1245
+ Tuple[
1246
+ Annotated[StrictFloat, Field(gt=0)],
1247
+ Annotated[StrictFloat, Field(gt=0)]
1248
+ ]
1249
+ ] = None,
1250
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1251
+ _content_type: Optional[StrictStr] = None,
1252
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1253
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1254
+ ) -> RESTResponseType:
1255
+ """Get the result overview for a workflow.
1256
+
1257
+
1258
+ :param workflow_id: The ID of the workflow to get the result overview for.
1259
+ :type workflow_id: str
1260
+ :param _request_timeout: timeout setting for this request. If one
1261
+ number provided, it will be total request
1262
+ timeout. It can also be a pair (tuple) of
1263
+ (connection, read) timeouts.
1264
+ :type _request_timeout: int, tuple(int, int), optional
1265
+ :param _request_auth: set to override the auth_settings for an a single
1266
+ request; this effectively ignores the
1267
+ authentication in the spec for a single request.
1268
+ :type _request_auth: dict, optional
1269
+ :param _content_type: force content-type for the request.
1270
+ :type _content_type: str, Optional
1271
+ :param _headers: set to override the headers for a single
1272
+ request; this effectively ignores the headers
1273
+ in the spec for a single request.
1274
+ :type _headers: dict, optional
1275
+ :param _host_index: set to override the host_index for a single
1276
+ request; this effectively ignores the host_index
1277
+ in the spec for a single request.
1278
+ :type _host_index: int, optional
1279
+ :return: Returns the result object.
1280
+ """ # noqa: E501
1281
+
1282
+ _param = self._workflow_get_result_overview_get_serialize(
1283
+ workflow_id=workflow_id,
1284
+ _request_auth=_request_auth,
1285
+ _content_type=_content_type,
1286
+ _headers=_headers,
1287
+ _host_index=_host_index
1288
+ )
1289
+
1290
+ _response_types_map: Dict[str, Optional[str]] = {
1291
+ '200': "GetWorkflowResultOverviewResult",
1292
+ }
1293
+ response_data = self.api_client.call_api(
1294
+ *_param,
1295
+ _request_timeout=_request_timeout
1296
+ )
1297
+ return response_data.response
1298
+
1299
+
1300
+ def _workflow_get_result_overview_get_serialize(
1301
+ self,
1302
+ workflow_id,
1303
+ _request_auth,
1304
+ _content_type,
1305
+ _headers,
1306
+ _host_index,
1307
+ ) -> RequestSerialized:
1308
+
1309
+ _host = None
1310
+
1311
+ _collection_formats: Dict[str, str] = {
1312
+ }
1313
+
1314
+ _path_params: Dict[str, str] = {}
1315
+ _query_params: List[Tuple[str, str]] = []
1316
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1317
+ _form_params: List[Tuple[str, str]] = []
1318
+ _files: Dict[
1319
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1320
+ ] = {}
1321
+ _body_params: Optional[bytes] = None
1322
+
1323
+ # process the path parameters
1324
+ # process the query parameters
1325
+ if workflow_id is not None:
1326
+
1327
+ _query_params.append(('workflowId', workflow_id))
1328
+
1329
+ # process the header parameters
1330
+ # process the form parameters
1331
+ # process the body parameter
1332
+
1333
+
1334
+ # set the HTTP header `Accept`
1335
+ if 'Accept' not in _header_params:
1336
+ _header_params['Accept'] = self.api_client.select_header_accept(
1337
+ [
1338
+ 'text/plain',
1339
+ 'application/json',
1340
+ 'text/json'
1341
+ ]
1342
+ )
1343
+
1344
+
1345
+ # authentication setting
1346
+ _auth_settings: List[str] = [
1347
+ 'bearer'
1348
+ ]
1349
+
1350
+ return self.api_client.param_serialize(
1351
+ method='GET',
1352
+ resource_path='/Workflow/GetResultOverview',
1353
+ path_params=_path_params,
1354
+ query_params=_query_params,
1355
+ header_params=_header_params,
1356
+ body=_body_params,
1357
+ post_params=_form_params,
1358
+ files=_files,
1359
+ auth_settings=_auth_settings,
1360
+ collection_formats=_collection_formats,
1361
+ _host=_host,
1362
+ _request_auth=_request_auth
1363
+ )
1364
+
1365
+
1366
+
1367
+
1368
+ @validate_call
1369
+ def workflow_pause_post(
1370
+ self,
1371
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to pause.")] = None,
1372
+ _request_timeout: Union[
1373
+ None,
1374
+ Annotated[StrictFloat, Field(gt=0)],
1375
+ Tuple[
1376
+ Annotated[StrictFloat, Field(gt=0)],
1377
+ Annotated[StrictFloat, Field(gt=0)]
1378
+ ]
1379
+ ] = None,
1380
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1381
+ _content_type: Optional[StrictStr] = None,
1382
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1383
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1384
+ ) -> None:
1385
+ """Pauses a running workflow.
1386
+
1387
+
1388
+ :param workflow_id: The ID of the workflow to pause.
1389
+ :type workflow_id: str
1390
+ :param _request_timeout: timeout setting for this request. If one
1391
+ number provided, it will be total request
1392
+ timeout. It can also be a pair (tuple) of
1393
+ (connection, read) timeouts.
1394
+ :type _request_timeout: int, tuple(int, int), optional
1395
+ :param _request_auth: set to override the auth_settings for an a single
1396
+ request; this effectively ignores the
1397
+ authentication in the spec for a single request.
1398
+ :type _request_auth: dict, optional
1399
+ :param _content_type: force content-type for the request.
1400
+ :type _content_type: str, Optional
1401
+ :param _headers: set to override the headers for a single
1402
+ request; this effectively ignores the headers
1403
+ in the spec for a single request.
1404
+ :type _headers: dict, optional
1405
+ :param _host_index: set to override the host_index for a single
1406
+ request; this effectively ignores the host_index
1407
+ in the spec for a single request.
1408
+ :type _host_index: int, optional
1409
+ :return: Returns the result object.
1410
+ """ # noqa: E501
1411
+
1412
+ _param = self._workflow_pause_post_serialize(
1413
+ workflow_id=workflow_id,
1414
+ _request_auth=_request_auth,
1415
+ _content_type=_content_type,
1416
+ _headers=_headers,
1417
+ _host_index=_host_index
1418
+ )
1419
+
1420
+ _response_types_map: Dict[str, Optional[str]] = {
1421
+ '200': None,
1422
+ }
1423
+ response_data = self.api_client.call_api(
1424
+ *_param,
1425
+ _request_timeout=_request_timeout
1426
+ )
1427
+ response_data.read()
1428
+ return self.api_client.response_deserialize(
1429
+ response_data=response_data,
1430
+ response_types_map=_response_types_map,
1431
+ ).data
1432
+
1433
+
1434
+ @validate_call
1435
+ def workflow_pause_post_with_http_info(
1436
+ self,
1437
+ workflow_id: Annotated[Optional[StrictStr], Field(description="The ID of the workflow to pause.")] = None,
1438
+ _request_timeout: Union[
1439
+ None,
1440
+ Annotated[StrictFloat, Field(gt=0)],
1441
+ Tuple[
1442
+ Annotated[StrictFloat, Field(gt=0)],
1443
+ Annotated[StrictFloat, Field(gt=0)]
1444
+ ]
1445
+ ] = None,
1446
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1447
+ _content_type: Optional[StrictStr] = None,
1448
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1449
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1450
+ ) -> ApiResponse[None]:
1451
+ """Pauses a running workflow.
1452
+
1453
+
1454
+ :param workflow_id: The ID of the workflow to pause.
1455
+ :type workflow_id: str
1456
+ :param _request_timeout: timeout setting for this request. If one
1457
+ number provided, it will be total request
1458
+ timeout. It can also be a pair (tuple) of
1459
+ (connection, read) timeouts.
1460
+ :type _request_timeout: int, tuple(int, int), optional
1461
+ :param _request_auth: set to override the auth_settings for an a single
1462
+ request; this effectively ignores the
1463
+ authentication in the spec for a single request.
1464
+ :type _request_auth: dict, optional
1465
+ :param _content_type: force content-type for the request.
1466
+ :type _content_type: str, Optional
1467
+ :param _headers: set to override the headers for a single
1468
+ request; this effectively ignores the headers
1469
+ in the spec for a single request.
1470
+ :type _headers: dict, optional
1471
+ :param _host_index: set to override the host_index for a single
1472
+ request; this effectively ignores the host_index
1473
+ in the spec for a single request.
1474
+ :type _host_index: int, optional
1475
+ :return: Returns the result object.
1476
+ """ # noqa: E501
1477
+
1478
+ _param = self._workflow_pause_post_serialize(
1479
+ workflow_id=workflow_id,
1480
+ _request_auth=_request_auth,
1481
+ _content_type=_content_type,
1482
+ _headers=_headers,
1483
+ _host_index=_host_index
1484
+ )
1485
+
1486
+ _response_types_map: Dict[str, Optional[str]] = {
1487
+ '200': None,
1488
+ }
1489
+ response_data = self.api_client.call_api(
1490
+ *_param,
1491
+ _request_timeout=_request_timeout
1492
+ )
1493
+ response_data.read()
1494
+ return self.api_client.response_deserialize(
1495
+ response_data=response_data,
1496
+ response_types_map=_response_types_map,
1497
+ )
1498
+
1499
+
1500
+ @validate_call
1501
+ def workflow_pause_post_without_preload_content(
1502
+ 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,
1757
+ _request_timeout: Union[
1758
+ None,
1759
+ Annotated[StrictFloat, Field(gt=0)],
1760
+ Tuple[
1761
+ Annotated[StrictFloat, Field(gt=0)],
1762
+ Annotated[StrictFloat, Field(gt=0)]
1763
+ ]
1764
+ ] = None,
1765
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1766
+ _content_type: Optional[StrictStr] = None,
1767
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1768
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1769
+ ) -> RESTResponseType:
1770
+ """Queries workflows based on the provided filter, page, and sort criteria.
1771
+
1772
+
1773
+ :param request: The model containing the filter, page, and sort criteria.
1774
+ :type request: QueryWorkflowsModel
1775
+ :param _request_timeout: timeout setting for this request. If one
1776
+ number provided, it will be total request
1777
+ timeout. It can also be a pair (tuple) of
1778
+ (connection, read) timeouts.
1779
+ :type _request_timeout: int, tuple(int, int), optional
1780
+ :param _request_auth: set to override the auth_settings for an a single
1781
+ request; this effectively ignores the
1782
+ authentication in the spec for a single request.
1783
+ :type _request_auth: dict, optional
1784
+ :param _content_type: force content-type for the request.
1785
+ :type _content_type: str, Optional
1786
+ :param _headers: set to override the headers for a single
1787
+ request; this effectively ignores the headers
1788
+ in the spec for a single request.
1789
+ :type _headers: dict, optional
1790
+ :param _host_index: set to override the host_index for a single
1791
+ request; this effectively ignores the host_index
1792
+ in the spec for a single request.
1793
+ :type _host_index: int, optional
1794
+ :return: Returns the result object.
1795
+ """ # noqa: E501
1796
+
1797
+ _param = self._workflow_query_get_serialize(
1798
+ request=request,
1799
+ _request_auth=_request_auth,
1800
+ _content_type=_content_type,
1801
+ _headers=_headers,
1802
+ _host_index=_host_index
1803
+ )
1804
+
1805
+ _response_types_map: Dict[str, Optional[str]] = {
1806
+ '200': "IWorkflowModelPagedResult",
1807
+ }
1808
+ response_data = self.api_client.call_api(
1809
+ *_param,
1810
+ _request_timeout=_request_timeout
1811
+ )
1812
+ return response_data.response
1813
+
1814
+
1815
+ def _workflow_query_get_serialize(
1816
+ self,
1817
+ request,
1818
+ _request_auth,
1819
+ _content_type,
1820
+ _headers,
1821
+ _host_index,
1822
+ ) -> RequestSerialized:
1823
+
1824
+ _host = None
1825
+
1826
+ _collection_formats: Dict[str, str] = {
1827
+ }
1828
+
1829
+ _path_params: Dict[str, str] = {}
1830
+ _query_params: List[Tuple[str, str]] = []
1831
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1832
+ _form_params: List[Tuple[str, str]] = []
1833
+ _files: Dict[
1834
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1835
+ ] = {}
1836
+ _body_params: Optional[bytes] = None
1837
+
1838
+ # process the path parameters
1839
+ # process the query parameters
1840
+ if request is not None:
1841
+
1842
+ _query_params.append(('request', request))
1843
+
1844
+ # process the header parameters
1845
+ # process the form parameters
1846
+ # process the body parameter
1847
+
1848
+
1849
+ # set the HTTP header `Accept`
1850
+ if 'Accept' not in _header_params:
1851
+ _header_params['Accept'] = self.api_client.select_header_accept(
1852
+ [
1853
+ 'text/plain',
1854
+ 'application/json',
1855
+ 'text/json'
1856
+ ]
1857
+ )
1858
+
1859
+
1860
+ # authentication setting
1861
+ _auth_settings: List[str] = [
1862
+ 'bearer'
1863
+ ]
1864
+
1865
+ return self.api_client.param_serialize(
1866
+ method='GET',
1867
+ resource_path='/Workflow/Query',
1868
+ path_params=_path_params,
1869
+ query_params=_query_params,
1870
+ header_params=_header_params,
1871
+ body=_body_params,
1872
+ post_params=_form_params,
1873
+ files=_files,
1874
+ auth_settings=_auth_settings,
1875
+ collection_formats=_collection_formats,
1876
+ _host=_host,
1877
+ _request_auth=_request_auth
1878
+ )
1879
+
1880
+
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
+