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