lucius-mcp 0.1.0__py3-none-any.whl → 0.2.2__py3-none-any.whl

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