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.
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/METADATA +23 -2
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/RECORD +29 -14
- src/client/client.py +105 -0
- src/client/generated/README.md +65 -7
- src/client/generated/__init__.py +16 -0
- src/client/generated/api/__init__.py +8 -0
- src/client/generated/api/custom_field_controller_api.py +2617 -0
- src/client/generated/api/custom_field_project_controller_api.py +2337 -0
- src/client/generated/api/custom_field_project_controller_v2_api.py +659 -0
- src/client/generated/api/custom_field_schema_controller_api.py +1710 -0
- src/client/generated/api/custom_field_value_controller_api.py +3106 -0
- src/client/generated/api/custom_field_value_project_controller_api.py +1835 -0
- src/client/generated/api/project_controller_api.py +2986 -0
- src/client/generated/api/status_controller_api.py +1780 -0
- src/client/generated/docs/CustomFieldControllerApi.md +616 -0
- src/client/generated/docs/CustomFieldProjectControllerApi.md +554 -0
- src/client/generated/docs/CustomFieldProjectControllerV2Api.md +149 -0
- src/client/generated/docs/CustomFieldSchemaControllerApi.md +421 -0
- src/client/generated/docs/CustomFieldValueControllerApi.md +723 -0
- src/client/generated/docs/CustomFieldValueProjectControllerApi.md +430 -0
- src/client/generated/docs/LaunchControllerApi.md +2 -2
- src/client/generated/docs/ProjectControllerApi.md +717 -0
- src/client/generated/docs/StatusControllerApi.md +429 -0
- src/services/test_case_service.py +92 -33
- src/tools/__init__.py +3 -0
- src/tools/get_custom_fields.py +48 -0
- src/client/refactor-hotspots.md +0 -53
- src/client/refactor-plan.md +0 -78
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/WHEEL +0 -0
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/entry_points.txt +0 -0
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,2617 @@
|
|
|
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, StrictBool, StrictInt, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from src.client.generated.models.custom_field_create_dto import CustomFieldCreateDto
|
|
23
|
+
from src.client.generated.models.custom_field_dto import CustomFieldDto
|
|
24
|
+
from src.client.generated.models.custom_field_merge_dto import CustomFieldMergeDto
|
|
25
|
+
from src.client.generated.models.custom_field_patch_dto import CustomFieldPatchDto
|
|
26
|
+
from src.client.generated.models.custom_field_project_count_dto import CustomFieldProjectCountDto
|
|
27
|
+
from src.client.generated.models.page_custom_field_project_dto import PageCustomFieldProjectDto
|
|
28
|
+
from src.client.generated.models.page_id_and_name_only_dto import PageIdAndNameOnlyDto
|
|
29
|
+
|
|
30
|
+
from src.client.generated.api_client import ApiClient, RequestSerialized
|
|
31
|
+
from src.client.generated.api_response import ApiResponse
|
|
32
|
+
from src.client.generated.rest import RESTResponseType
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class CustomFieldControllerApi:
|
|
36
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
37
|
+
Ref: https://openapi-generator.tech
|
|
38
|
+
|
|
39
|
+
Do not edit the class manually.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
def __init__(self, api_client=None) -> None:
|
|
43
|
+
if api_client is None:
|
|
44
|
+
api_client = ApiClient.get_default()
|
|
45
|
+
self.api_client = api_client
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@validate_call
|
|
49
|
+
async def count_usage(
|
|
50
|
+
self,
|
|
51
|
+
id: List[StrictInt],
|
|
52
|
+
_request_timeout: Union[
|
|
53
|
+
None,
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
55
|
+
Tuple[
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
58
|
+
]
|
|
59
|
+
] = None,
|
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
64
|
+
) -> List[CustomFieldProjectCountDto]:
|
|
65
|
+
"""Count custom fields usage in projects
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:param id: (required)
|
|
69
|
+
:type id: List[int]
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._count_usage_serialize(
|
|
93
|
+
id=id,
|
|
94
|
+
_request_auth=_request_auth,
|
|
95
|
+
_content_type=_content_type,
|
|
96
|
+
_headers=_headers,
|
|
97
|
+
_host_index=_host_index
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
101
|
+
'200': "List[CustomFieldProjectCountDto]",
|
|
102
|
+
}
|
|
103
|
+
response_data = await self.api_client.call_api(
|
|
104
|
+
*_param,
|
|
105
|
+
_request_timeout=_request_timeout
|
|
106
|
+
)
|
|
107
|
+
await response_data.read()
|
|
108
|
+
return self.api_client.response_deserialize(
|
|
109
|
+
response_data=response_data,
|
|
110
|
+
response_types_map=_response_types_map,
|
|
111
|
+
).data
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@validate_call
|
|
115
|
+
async def count_usage_with_http_info(
|
|
116
|
+
self,
|
|
117
|
+
id: List[StrictInt],
|
|
118
|
+
_request_timeout: Union[
|
|
119
|
+
None,
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
+
Tuple[
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
+
]
|
|
125
|
+
] = None,
|
|
126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
+
_content_type: Optional[StrictStr] = None,
|
|
128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
+
) -> ApiResponse[List[CustomFieldProjectCountDto]]:
|
|
131
|
+
"""Count custom fields usage in projects
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:param id: (required)
|
|
135
|
+
:type id: List[int]
|
|
136
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
137
|
+
number provided, it will be total request
|
|
138
|
+
timeout. It can also be a pair (tuple) of
|
|
139
|
+
(connection, read) timeouts.
|
|
140
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
141
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
142
|
+
request; this effectively ignores the
|
|
143
|
+
authentication in the spec for a single request.
|
|
144
|
+
:type _request_auth: dict, optional
|
|
145
|
+
:param _content_type: force content-type for the request.
|
|
146
|
+
:type _content_type: str, Optional
|
|
147
|
+
:param _headers: set to override the headers for a single
|
|
148
|
+
request; this effectively ignores the headers
|
|
149
|
+
in the spec for a single request.
|
|
150
|
+
:type _headers: dict, optional
|
|
151
|
+
:param _host_index: set to override the host_index for a single
|
|
152
|
+
request; this effectively ignores the host_index
|
|
153
|
+
in the spec for a single request.
|
|
154
|
+
:type _host_index: int, optional
|
|
155
|
+
:return: Returns the result object.
|
|
156
|
+
""" # noqa: E501
|
|
157
|
+
|
|
158
|
+
_param = self._count_usage_serialize(
|
|
159
|
+
id=id,
|
|
160
|
+
_request_auth=_request_auth,
|
|
161
|
+
_content_type=_content_type,
|
|
162
|
+
_headers=_headers,
|
|
163
|
+
_host_index=_host_index
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
167
|
+
'200': "List[CustomFieldProjectCountDto]",
|
|
168
|
+
}
|
|
169
|
+
response_data = await self.api_client.call_api(
|
|
170
|
+
*_param,
|
|
171
|
+
_request_timeout=_request_timeout
|
|
172
|
+
)
|
|
173
|
+
await response_data.read()
|
|
174
|
+
return self.api_client.response_deserialize(
|
|
175
|
+
response_data=response_data,
|
|
176
|
+
response_types_map=_response_types_map,
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@validate_call
|
|
181
|
+
async def count_usage_without_preload_content(
|
|
182
|
+
self,
|
|
183
|
+
id: List[StrictInt],
|
|
184
|
+
_request_timeout: Union[
|
|
185
|
+
None,
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
187
|
+
Tuple[
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
189
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
190
|
+
]
|
|
191
|
+
] = None,
|
|
192
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
193
|
+
_content_type: Optional[StrictStr] = None,
|
|
194
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
195
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
196
|
+
) -> RESTResponseType:
|
|
197
|
+
"""Count custom fields usage in projects
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param id: (required)
|
|
201
|
+
:type id: List[int]
|
|
202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
203
|
+
number provided, it will be total request
|
|
204
|
+
timeout. It can also be a pair (tuple) of
|
|
205
|
+
(connection, read) timeouts.
|
|
206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
208
|
+
request; this effectively ignores the
|
|
209
|
+
authentication in the spec for a single request.
|
|
210
|
+
:type _request_auth: dict, optional
|
|
211
|
+
:param _content_type: force content-type for the request.
|
|
212
|
+
:type _content_type: str, Optional
|
|
213
|
+
:param _headers: set to override the headers for a single
|
|
214
|
+
request; this effectively ignores the headers
|
|
215
|
+
in the spec for a single request.
|
|
216
|
+
:type _headers: dict, optional
|
|
217
|
+
:param _host_index: set to override the host_index for a single
|
|
218
|
+
request; this effectively ignores the host_index
|
|
219
|
+
in the spec for a single request.
|
|
220
|
+
:type _host_index: int, optional
|
|
221
|
+
:return: Returns the result object.
|
|
222
|
+
""" # noqa: E501
|
|
223
|
+
|
|
224
|
+
_param = self._count_usage_serialize(
|
|
225
|
+
id=id,
|
|
226
|
+
_request_auth=_request_auth,
|
|
227
|
+
_content_type=_content_type,
|
|
228
|
+
_headers=_headers,
|
|
229
|
+
_host_index=_host_index
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
233
|
+
'200': "List[CustomFieldProjectCountDto]",
|
|
234
|
+
}
|
|
235
|
+
response_data = await self.api_client.call_api(
|
|
236
|
+
*_param,
|
|
237
|
+
_request_timeout=_request_timeout
|
|
238
|
+
)
|
|
239
|
+
return response_data.response
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
def _count_usage_serialize(
|
|
243
|
+
self,
|
|
244
|
+
id,
|
|
245
|
+
_request_auth,
|
|
246
|
+
_content_type,
|
|
247
|
+
_headers,
|
|
248
|
+
_host_index,
|
|
249
|
+
) -> RequestSerialized:
|
|
250
|
+
|
|
251
|
+
_host = None
|
|
252
|
+
|
|
253
|
+
_collection_formats: Dict[str, str] = {
|
|
254
|
+
'id': 'multi',
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
_path_params: Dict[str, str] = {}
|
|
258
|
+
_query_params: List[Tuple[str, str]] = []
|
|
259
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
260
|
+
_form_params: List[Tuple[str, str]] = []
|
|
261
|
+
_files: Dict[
|
|
262
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
263
|
+
] = {}
|
|
264
|
+
_body_params: Optional[bytes] = None
|
|
265
|
+
|
|
266
|
+
# process the path parameters
|
|
267
|
+
# process the query parameters
|
|
268
|
+
if id is not None:
|
|
269
|
+
|
|
270
|
+
_query_params.append(('id', id))
|
|
271
|
+
|
|
272
|
+
# process the header parameters
|
|
273
|
+
# process the form parameters
|
|
274
|
+
# process the body parameter
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
# set the HTTP header `Accept`
|
|
278
|
+
if 'Accept' not in _header_params:
|
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
280
|
+
[
|
|
281
|
+
'*/*'
|
|
282
|
+
]
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
# authentication setting
|
|
287
|
+
_auth_settings: List[str] = [
|
|
288
|
+
]
|
|
289
|
+
|
|
290
|
+
return self.api_client.param_serialize(
|
|
291
|
+
method='GET',
|
|
292
|
+
resource_path='/api/cf/count-usage',
|
|
293
|
+
path_params=_path_params,
|
|
294
|
+
query_params=_query_params,
|
|
295
|
+
header_params=_header_params,
|
|
296
|
+
body=_body_params,
|
|
297
|
+
post_params=_form_params,
|
|
298
|
+
files=_files,
|
|
299
|
+
auth_settings=_auth_settings,
|
|
300
|
+
collection_formats=_collection_formats,
|
|
301
|
+
_host=_host,
|
|
302
|
+
_request_auth=_request_auth
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
@validate_call
|
|
309
|
+
async def create52(
|
|
310
|
+
self,
|
|
311
|
+
custom_field_create_dto: CustomFieldCreateDto,
|
|
312
|
+
_request_timeout: Union[
|
|
313
|
+
None,
|
|
314
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
315
|
+
Tuple[
|
|
316
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
317
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
318
|
+
]
|
|
319
|
+
] = None,
|
|
320
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
321
|
+
_content_type: Optional[StrictStr] = None,
|
|
322
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
323
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
324
|
+
) -> CustomFieldDto:
|
|
325
|
+
"""create52
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
:param custom_field_create_dto: (required)
|
|
329
|
+
:type custom_field_create_dto: CustomFieldCreateDto
|
|
330
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
331
|
+
number provided, it will be total request
|
|
332
|
+
timeout. It can also be a pair (tuple) of
|
|
333
|
+
(connection, read) timeouts.
|
|
334
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
335
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
336
|
+
request; this effectively ignores the
|
|
337
|
+
authentication in the spec for a single request.
|
|
338
|
+
:type _request_auth: dict, optional
|
|
339
|
+
:param _content_type: force content-type for the request.
|
|
340
|
+
:type _content_type: str, Optional
|
|
341
|
+
:param _headers: set to override the headers for a single
|
|
342
|
+
request; this effectively ignores the headers
|
|
343
|
+
in the spec for a single request.
|
|
344
|
+
:type _headers: dict, optional
|
|
345
|
+
:param _host_index: set to override the host_index for a single
|
|
346
|
+
request; this effectively ignores the host_index
|
|
347
|
+
in the spec for a single request.
|
|
348
|
+
:type _host_index: int, optional
|
|
349
|
+
:return: Returns the result object.
|
|
350
|
+
""" # noqa: E501
|
|
351
|
+
|
|
352
|
+
_param = self._create52_serialize(
|
|
353
|
+
custom_field_create_dto=custom_field_create_dto,
|
|
354
|
+
_request_auth=_request_auth,
|
|
355
|
+
_content_type=_content_type,
|
|
356
|
+
_headers=_headers,
|
|
357
|
+
_host_index=_host_index
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
361
|
+
'200': "CustomFieldDto",
|
|
362
|
+
}
|
|
363
|
+
response_data = await self.api_client.call_api(
|
|
364
|
+
*_param,
|
|
365
|
+
_request_timeout=_request_timeout
|
|
366
|
+
)
|
|
367
|
+
await response_data.read()
|
|
368
|
+
return self.api_client.response_deserialize(
|
|
369
|
+
response_data=response_data,
|
|
370
|
+
response_types_map=_response_types_map,
|
|
371
|
+
).data
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
@validate_call
|
|
375
|
+
async def create52_with_http_info(
|
|
376
|
+
self,
|
|
377
|
+
custom_field_create_dto: CustomFieldCreateDto,
|
|
378
|
+
_request_timeout: Union[
|
|
379
|
+
None,
|
|
380
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
381
|
+
Tuple[
|
|
382
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
383
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
384
|
+
]
|
|
385
|
+
] = None,
|
|
386
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
387
|
+
_content_type: Optional[StrictStr] = None,
|
|
388
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
389
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
390
|
+
) -> ApiResponse[CustomFieldDto]:
|
|
391
|
+
"""create52
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
:param custom_field_create_dto: (required)
|
|
395
|
+
:type custom_field_create_dto: CustomFieldCreateDto
|
|
396
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
397
|
+
number provided, it will be total request
|
|
398
|
+
timeout. It can also be a pair (tuple) of
|
|
399
|
+
(connection, read) timeouts.
|
|
400
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
401
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
402
|
+
request; this effectively ignores the
|
|
403
|
+
authentication in the spec for a single request.
|
|
404
|
+
:type _request_auth: dict, optional
|
|
405
|
+
:param _content_type: force content-type for the request.
|
|
406
|
+
:type _content_type: str, Optional
|
|
407
|
+
:param _headers: set to override the headers for a single
|
|
408
|
+
request; this effectively ignores the headers
|
|
409
|
+
in the spec for a single request.
|
|
410
|
+
:type _headers: dict, optional
|
|
411
|
+
:param _host_index: set to override the host_index for a single
|
|
412
|
+
request; this effectively ignores the host_index
|
|
413
|
+
in the spec for a single request.
|
|
414
|
+
:type _host_index: int, optional
|
|
415
|
+
:return: Returns the result object.
|
|
416
|
+
""" # noqa: E501
|
|
417
|
+
|
|
418
|
+
_param = self._create52_serialize(
|
|
419
|
+
custom_field_create_dto=custom_field_create_dto,
|
|
420
|
+
_request_auth=_request_auth,
|
|
421
|
+
_content_type=_content_type,
|
|
422
|
+
_headers=_headers,
|
|
423
|
+
_host_index=_host_index
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
427
|
+
'200': "CustomFieldDto",
|
|
428
|
+
}
|
|
429
|
+
response_data = await self.api_client.call_api(
|
|
430
|
+
*_param,
|
|
431
|
+
_request_timeout=_request_timeout
|
|
432
|
+
)
|
|
433
|
+
await response_data.read()
|
|
434
|
+
return self.api_client.response_deserialize(
|
|
435
|
+
response_data=response_data,
|
|
436
|
+
response_types_map=_response_types_map,
|
|
437
|
+
)
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
@validate_call
|
|
441
|
+
async def create52_without_preload_content(
|
|
442
|
+
self,
|
|
443
|
+
custom_field_create_dto: CustomFieldCreateDto,
|
|
444
|
+
_request_timeout: Union[
|
|
445
|
+
None,
|
|
446
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
447
|
+
Tuple[
|
|
448
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
449
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
450
|
+
]
|
|
451
|
+
] = None,
|
|
452
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
453
|
+
_content_type: Optional[StrictStr] = None,
|
|
454
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
455
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
456
|
+
) -> RESTResponseType:
|
|
457
|
+
"""create52
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
:param custom_field_create_dto: (required)
|
|
461
|
+
:type custom_field_create_dto: CustomFieldCreateDto
|
|
462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
463
|
+
number provided, it will be total request
|
|
464
|
+
timeout. It can also be a pair (tuple) of
|
|
465
|
+
(connection, read) timeouts.
|
|
466
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
467
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
468
|
+
request; this effectively ignores the
|
|
469
|
+
authentication in the spec for a single request.
|
|
470
|
+
:type _request_auth: dict, optional
|
|
471
|
+
:param _content_type: force content-type for the request.
|
|
472
|
+
:type _content_type: str, Optional
|
|
473
|
+
:param _headers: set to override the headers for a single
|
|
474
|
+
request; this effectively ignores the headers
|
|
475
|
+
in the spec for a single request.
|
|
476
|
+
:type _headers: dict, optional
|
|
477
|
+
:param _host_index: set to override the host_index for a single
|
|
478
|
+
request; this effectively ignores the host_index
|
|
479
|
+
in the spec for a single request.
|
|
480
|
+
:type _host_index: int, optional
|
|
481
|
+
:return: Returns the result object.
|
|
482
|
+
""" # noqa: E501
|
|
483
|
+
|
|
484
|
+
_param = self._create52_serialize(
|
|
485
|
+
custom_field_create_dto=custom_field_create_dto,
|
|
486
|
+
_request_auth=_request_auth,
|
|
487
|
+
_content_type=_content_type,
|
|
488
|
+
_headers=_headers,
|
|
489
|
+
_host_index=_host_index
|
|
490
|
+
)
|
|
491
|
+
|
|
492
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
493
|
+
'200': "CustomFieldDto",
|
|
494
|
+
}
|
|
495
|
+
response_data = await self.api_client.call_api(
|
|
496
|
+
*_param,
|
|
497
|
+
_request_timeout=_request_timeout
|
|
498
|
+
)
|
|
499
|
+
return response_data.response
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
def _create52_serialize(
|
|
503
|
+
self,
|
|
504
|
+
custom_field_create_dto,
|
|
505
|
+
_request_auth,
|
|
506
|
+
_content_type,
|
|
507
|
+
_headers,
|
|
508
|
+
_host_index,
|
|
509
|
+
) -> RequestSerialized:
|
|
510
|
+
|
|
511
|
+
_host = None
|
|
512
|
+
|
|
513
|
+
_collection_formats: Dict[str, str] = {
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
_path_params: Dict[str, str] = {}
|
|
517
|
+
_query_params: List[Tuple[str, str]] = []
|
|
518
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
519
|
+
_form_params: List[Tuple[str, str]] = []
|
|
520
|
+
_files: Dict[
|
|
521
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
522
|
+
] = {}
|
|
523
|
+
_body_params: Optional[bytes] = None
|
|
524
|
+
|
|
525
|
+
# process the path parameters
|
|
526
|
+
# process the query parameters
|
|
527
|
+
# process the header parameters
|
|
528
|
+
# process the form parameters
|
|
529
|
+
# process the body parameter
|
|
530
|
+
if custom_field_create_dto is not None:
|
|
531
|
+
_body_params = custom_field_create_dto
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
# set the HTTP header `Accept`
|
|
535
|
+
if 'Accept' not in _header_params:
|
|
536
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
537
|
+
[
|
|
538
|
+
'*/*'
|
|
539
|
+
]
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
# set the HTTP header `Content-Type`
|
|
543
|
+
if _content_type:
|
|
544
|
+
_header_params['Content-Type'] = _content_type
|
|
545
|
+
else:
|
|
546
|
+
_default_content_type = (
|
|
547
|
+
self.api_client.select_header_content_type(
|
|
548
|
+
[
|
|
549
|
+
'application/json'
|
|
550
|
+
]
|
|
551
|
+
)
|
|
552
|
+
)
|
|
553
|
+
if _default_content_type is not None:
|
|
554
|
+
_header_params['Content-Type'] = _default_content_type
|
|
555
|
+
|
|
556
|
+
# authentication setting
|
|
557
|
+
_auth_settings: List[str] = [
|
|
558
|
+
]
|
|
559
|
+
|
|
560
|
+
return self.api_client.param_serialize(
|
|
561
|
+
method='POST',
|
|
562
|
+
resource_path='/api/cf',
|
|
563
|
+
path_params=_path_params,
|
|
564
|
+
query_params=_query_params,
|
|
565
|
+
header_params=_header_params,
|
|
566
|
+
body=_body_params,
|
|
567
|
+
post_params=_form_params,
|
|
568
|
+
files=_files,
|
|
569
|
+
auth_settings=_auth_settings,
|
|
570
|
+
collection_formats=_collection_formats,
|
|
571
|
+
_host=_host,
|
|
572
|
+
_request_auth=_request_auth
|
|
573
|
+
)
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
@validate_call
|
|
579
|
+
async def delete43(
|
|
580
|
+
self,
|
|
581
|
+
id: StrictInt,
|
|
582
|
+
_request_timeout: Union[
|
|
583
|
+
None,
|
|
584
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
585
|
+
Tuple[
|
|
586
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
587
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
588
|
+
]
|
|
589
|
+
] = None,
|
|
590
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
591
|
+
_content_type: Optional[StrictStr] = None,
|
|
592
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
593
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
594
|
+
) -> None:
|
|
595
|
+
"""delete43
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
:param id: (required)
|
|
599
|
+
:type id: int
|
|
600
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
601
|
+
number provided, it will be total request
|
|
602
|
+
timeout. It can also be a pair (tuple) of
|
|
603
|
+
(connection, read) timeouts.
|
|
604
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
605
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
606
|
+
request; this effectively ignores the
|
|
607
|
+
authentication in the spec for a single request.
|
|
608
|
+
:type _request_auth: dict, optional
|
|
609
|
+
:param _content_type: force content-type for the request.
|
|
610
|
+
:type _content_type: str, Optional
|
|
611
|
+
:param _headers: set to override the headers for a single
|
|
612
|
+
request; this effectively ignores the headers
|
|
613
|
+
in the spec for a single request.
|
|
614
|
+
:type _headers: dict, optional
|
|
615
|
+
:param _host_index: set to override the host_index for a single
|
|
616
|
+
request; this effectively ignores the host_index
|
|
617
|
+
in the spec for a single request.
|
|
618
|
+
:type _host_index: int, optional
|
|
619
|
+
:return: Returns the result object.
|
|
620
|
+
""" # noqa: E501
|
|
621
|
+
|
|
622
|
+
_param = self._delete43_serialize(
|
|
623
|
+
id=id,
|
|
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
|
+
'204': None,
|
|
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 delete43_with_http_info(
|
|
646
|
+
self,
|
|
647
|
+
id: StrictInt,
|
|
648
|
+
_request_timeout: Union[
|
|
649
|
+
None,
|
|
650
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
651
|
+
Tuple[
|
|
652
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
653
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
654
|
+
]
|
|
655
|
+
] = None,
|
|
656
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
657
|
+
_content_type: Optional[StrictStr] = None,
|
|
658
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
659
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
660
|
+
) -> ApiResponse[None]:
|
|
661
|
+
"""delete43
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
:param id: (required)
|
|
665
|
+
:type id: int
|
|
666
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
667
|
+
number provided, it will be total request
|
|
668
|
+
timeout. It can also be a pair (tuple) of
|
|
669
|
+
(connection, read) timeouts.
|
|
670
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
671
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
672
|
+
request; this effectively ignores the
|
|
673
|
+
authentication in the spec for a single request.
|
|
674
|
+
:type _request_auth: dict, optional
|
|
675
|
+
:param _content_type: force content-type for the request.
|
|
676
|
+
:type _content_type: str, Optional
|
|
677
|
+
:param _headers: set to override the headers for a single
|
|
678
|
+
request; this effectively ignores the headers
|
|
679
|
+
in the spec for a single request.
|
|
680
|
+
:type _headers: dict, optional
|
|
681
|
+
:param _host_index: set to override the host_index for a single
|
|
682
|
+
request; this effectively ignores the host_index
|
|
683
|
+
in the spec for a single request.
|
|
684
|
+
:type _host_index: int, optional
|
|
685
|
+
:return: Returns the result object.
|
|
686
|
+
""" # noqa: E501
|
|
687
|
+
|
|
688
|
+
_param = self._delete43_serialize(
|
|
689
|
+
id=id,
|
|
690
|
+
_request_auth=_request_auth,
|
|
691
|
+
_content_type=_content_type,
|
|
692
|
+
_headers=_headers,
|
|
693
|
+
_host_index=_host_index
|
|
694
|
+
)
|
|
695
|
+
|
|
696
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
697
|
+
'204': None,
|
|
698
|
+
}
|
|
699
|
+
response_data = await self.api_client.call_api(
|
|
700
|
+
*_param,
|
|
701
|
+
_request_timeout=_request_timeout
|
|
702
|
+
)
|
|
703
|
+
await response_data.read()
|
|
704
|
+
return self.api_client.response_deserialize(
|
|
705
|
+
response_data=response_data,
|
|
706
|
+
response_types_map=_response_types_map,
|
|
707
|
+
)
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
@validate_call
|
|
711
|
+
async def delete43_without_preload_content(
|
|
712
|
+
self,
|
|
713
|
+
id: StrictInt,
|
|
714
|
+
_request_timeout: Union[
|
|
715
|
+
None,
|
|
716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
717
|
+
Tuple[
|
|
718
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
719
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
720
|
+
]
|
|
721
|
+
] = None,
|
|
722
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
723
|
+
_content_type: Optional[StrictStr] = None,
|
|
724
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
725
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
726
|
+
) -> RESTResponseType:
|
|
727
|
+
"""delete43
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
:param id: (required)
|
|
731
|
+
:type id: int
|
|
732
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
733
|
+
number provided, it will be total request
|
|
734
|
+
timeout. It can also be a pair (tuple) of
|
|
735
|
+
(connection, read) timeouts.
|
|
736
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
737
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
738
|
+
request; this effectively ignores the
|
|
739
|
+
authentication in the spec for a single request.
|
|
740
|
+
:type _request_auth: dict, optional
|
|
741
|
+
:param _content_type: force content-type for the request.
|
|
742
|
+
:type _content_type: str, Optional
|
|
743
|
+
:param _headers: set to override the headers for a single
|
|
744
|
+
request; this effectively ignores the headers
|
|
745
|
+
in the spec for a single request.
|
|
746
|
+
:type _headers: dict, optional
|
|
747
|
+
:param _host_index: set to override the host_index for a single
|
|
748
|
+
request; this effectively ignores the host_index
|
|
749
|
+
in the spec for a single request.
|
|
750
|
+
:type _host_index: int, optional
|
|
751
|
+
:return: Returns the result object.
|
|
752
|
+
""" # noqa: E501
|
|
753
|
+
|
|
754
|
+
_param = self._delete43_serialize(
|
|
755
|
+
id=id,
|
|
756
|
+
_request_auth=_request_auth,
|
|
757
|
+
_content_type=_content_type,
|
|
758
|
+
_headers=_headers,
|
|
759
|
+
_host_index=_host_index
|
|
760
|
+
)
|
|
761
|
+
|
|
762
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
763
|
+
'204': None,
|
|
764
|
+
}
|
|
765
|
+
response_data = await self.api_client.call_api(
|
|
766
|
+
*_param,
|
|
767
|
+
_request_timeout=_request_timeout
|
|
768
|
+
)
|
|
769
|
+
return response_data.response
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
def _delete43_serialize(
|
|
773
|
+
self,
|
|
774
|
+
id,
|
|
775
|
+
_request_auth,
|
|
776
|
+
_content_type,
|
|
777
|
+
_headers,
|
|
778
|
+
_host_index,
|
|
779
|
+
) -> RequestSerialized:
|
|
780
|
+
|
|
781
|
+
_host = None
|
|
782
|
+
|
|
783
|
+
_collection_formats: Dict[str, str] = {
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
_path_params: Dict[str, str] = {}
|
|
787
|
+
_query_params: List[Tuple[str, str]] = []
|
|
788
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
789
|
+
_form_params: List[Tuple[str, str]] = []
|
|
790
|
+
_files: Dict[
|
|
791
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
792
|
+
] = {}
|
|
793
|
+
_body_params: Optional[bytes] = None
|
|
794
|
+
|
|
795
|
+
# process the path parameters
|
|
796
|
+
if id is not None:
|
|
797
|
+
_path_params['id'] = id
|
|
798
|
+
# process the query parameters
|
|
799
|
+
# process the header parameters
|
|
800
|
+
# process the form parameters
|
|
801
|
+
# process the body parameter
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
# authentication setting
|
|
807
|
+
_auth_settings: List[str] = [
|
|
808
|
+
]
|
|
809
|
+
|
|
810
|
+
return self.api_client.param_serialize(
|
|
811
|
+
method='DELETE',
|
|
812
|
+
resource_path='/api/cf/{id}',
|
|
813
|
+
path_params=_path_params,
|
|
814
|
+
query_params=_query_params,
|
|
815
|
+
header_params=_header_params,
|
|
816
|
+
body=_body_params,
|
|
817
|
+
post_params=_form_params,
|
|
818
|
+
files=_files,
|
|
819
|
+
auth_settings=_auth_settings,
|
|
820
|
+
collection_formats=_collection_formats,
|
|
821
|
+
_host=_host,
|
|
822
|
+
_request_auth=_request_auth
|
|
823
|
+
)
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
@validate_call
|
|
829
|
+
async def find_by_project(
|
|
830
|
+
self,
|
|
831
|
+
project_id: StrictInt,
|
|
832
|
+
query: Optional[StrictStr] = None,
|
|
833
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
834
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
835
|
+
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,
|
|
836
|
+
_request_timeout: Union[
|
|
837
|
+
None,
|
|
838
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
839
|
+
Tuple[
|
|
840
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
841
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
842
|
+
]
|
|
843
|
+
] = None,
|
|
844
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
845
|
+
_content_type: Optional[StrictStr] = None,
|
|
846
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
847
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
848
|
+
) -> PageCustomFieldProjectDto:
|
|
849
|
+
"""(Deprecated) Deprecated. Use GET /api/project/{projectId}/cf instead
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
:param project_id: (required)
|
|
853
|
+
:type project_id: int
|
|
854
|
+
:param query:
|
|
855
|
+
:type query: str
|
|
856
|
+
:param page: Zero-based page index (0..N)
|
|
857
|
+
:type page: int
|
|
858
|
+
:param size: The size of the page to be returned
|
|
859
|
+
:type size: int
|
|
860
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
861
|
+
:type sort: List[str]
|
|
862
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
863
|
+
number provided, it will be total request
|
|
864
|
+
timeout. It can also be a pair (tuple) of
|
|
865
|
+
(connection, read) timeouts.
|
|
866
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
867
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
868
|
+
request; this effectively ignores the
|
|
869
|
+
authentication in the spec for a single request.
|
|
870
|
+
:type _request_auth: dict, optional
|
|
871
|
+
:param _content_type: force content-type for the request.
|
|
872
|
+
:type _content_type: str, Optional
|
|
873
|
+
:param _headers: set to override the headers for a single
|
|
874
|
+
request; this effectively ignores the headers
|
|
875
|
+
in the spec for a single request.
|
|
876
|
+
:type _headers: dict, optional
|
|
877
|
+
:param _host_index: set to override the host_index for a single
|
|
878
|
+
request; this effectively ignores the host_index
|
|
879
|
+
in the spec for a single request.
|
|
880
|
+
:type _host_index: int, optional
|
|
881
|
+
:return: Returns the result object.
|
|
882
|
+
""" # noqa: E501
|
|
883
|
+
warnings.warn("GET /api/cf is deprecated.", DeprecationWarning)
|
|
884
|
+
|
|
885
|
+
_param = self._find_by_project_serialize(
|
|
886
|
+
project_id=project_id,
|
|
887
|
+
query=query,
|
|
888
|
+
page=page,
|
|
889
|
+
size=size,
|
|
890
|
+
sort=sort,
|
|
891
|
+
_request_auth=_request_auth,
|
|
892
|
+
_content_type=_content_type,
|
|
893
|
+
_headers=_headers,
|
|
894
|
+
_host_index=_host_index
|
|
895
|
+
)
|
|
896
|
+
|
|
897
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
898
|
+
'200': "PageCustomFieldProjectDto",
|
|
899
|
+
}
|
|
900
|
+
response_data = await self.api_client.call_api(
|
|
901
|
+
*_param,
|
|
902
|
+
_request_timeout=_request_timeout
|
|
903
|
+
)
|
|
904
|
+
await response_data.read()
|
|
905
|
+
return self.api_client.response_deserialize(
|
|
906
|
+
response_data=response_data,
|
|
907
|
+
response_types_map=_response_types_map,
|
|
908
|
+
).data
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
@validate_call
|
|
912
|
+
async def find_by_project_with_http_info(
|
|
913
|
+
self,
|
|
914
|
+
project_id: StrictInt,
|
|
915
|
+
query: Optional[StrictStr] = None,
|
|
916
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
917
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
918
|
+
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,
|
|
919
|
+
_request_timeout: Union[
|
|
920
|
+
None,
|
|
921
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
922
|
+
Tuple[
|
|
923
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
924
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
925
|
+
]
|
|
926
|
+
] = None,
|
|
927
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
928
|
+
_content_type: Optional[StrictStr] = None,
|
|
929
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
930
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
931
|
+
) -> ApiResponse[PageCustomFieldProjectDto]:
|
|
932
|
+
"""(Deprecated) Deprecated. Use GET /api/project/{projectId}/cf instead
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
:param project_id: (required)
|
|
936
|
+
:type project_id: int
|
|
937
|
+
:param query:
|
|
938
|
+
:type query: str
|
|
939
|
+
:param page: Zero-based page index (0..N)
|
|
940
|
+
:type page: int
|
|
941
|
+
:param size: The size of the page to be returned
|
|
942
|
+
:type size: int
|
|
943
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
944
|
+
:type sort: List[str]
|
|
945
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
946
|
+
number provided, it will be total request
|
|
947
|
+
timeout. It can also be a pair (tuple) of
|
|
948
|
+
(connection, read) timeouts.
|
|
949
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
950
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
951
|
+
request; this effectively ignores the
|
|
952
|
+
authentication in the spec for a single request.
|
|
953
|
+
:type _request_auth: dict, optional
|
|
954
|
+
:param _content_type: force content-type for the request.
|
|
955
|
+
:type _content_type: str, Optional
|
|
956
|
+
:param _headers: set to override the headers for a single
|
|
957
|
+
request; this effectively ignores the headers
|
|
958
|
+
in the spec for a single request.
|
|
959
|
+
:type _headers: dict, optional
|
|
960
|
+
:param _host_index: set to override the host_index for a single
|
|
961
|
+
request; this effectively ignores the host_index
|
|
962
|
+
in the spec for a single request.
|
|
963
|
+
:type _host_index: int, optional
|
|
964
|
+
:return: Returns the result object.
|
|
965
|
+
""" # noqa: E501
|
|
966
|
+
warnings.warn("GET /api/cf is deprecated.", DeprecationWarning)
|
|
967
|
+
|
|
968
|
+
_param = self._find_by_project_serialize(
|
|
969
|
+
project_id=project_id,
|
|
970
|
+
query=query,
|
|
971
|
+
page=page,
|
|
972
|
+
size=size,
|
|
973
|
+
sort=sort,
|
|
974
|
+
_request_auth=_request_auth,
|
|
975
|
+
_content_type=_content_type,
|
|
976
|
+
_headers=_headers,
|
|
977
|
+
_host_index=_host_index
|
|
978
|
+
)
|
|
979
|
+
|
|
980
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
981
|
+
'200': "PageCustomFieldProjectDto",
|
|
982
|
+
}
|
|
983
|
+
response_data = await self.api_client.call_api(
|
|
984
|
+
*_param,
|
|
985
|
+
_request_timeout=_request_timeout
|
|
986
|
+
)
|
|
987
|
+
await response_data.read()
|
|
988
|
+
return self.api_client.response_deserialize(
|
|
989
|
+
response_data=response_data,
|
|
990
|
+
response_types_map=_response_types_map,
|
|
991
|
+
)
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
@validate_call
|
|
995
|
+
async def find_by_project_without_preload_content(
|
|
996
|
+
self,
|
|
997
|
+
project_id: StrictInt,
|
|
998
|
+
query: Optional[StrictStr] = None,
|
|
999
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
1000
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
1001
|
+
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,
|
|
1002
|
+
_request_timeout: Union[
|
|
1003
|
+
None,
|
|
1004
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1005
|
+
Tuple[
|
|
1006
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1007
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1008
|
+
]
|
|
1009
|
+
] = None,
|
|
1010
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1011
|
+
_content_type: Optional[StrictStr] = None,
|
|
1012
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1013
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1014
|
+
) -> RESTResponseType:
|
|
1015
|
+
"""(Deprecated) Deprecated. Use GET /api/project/{projectId}/cf instead
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
:param project_id: (required)
|
|
1019
|
+
:type project_id: int
|
|
1020
|
+
:param query:
|
|
1021
|
+
:type query: str
|
|
1022
|
+
:param page: Zero-based page index (0..N)
|
|
1023
|
+
:type page: int
|
|
1024
|
+
:param size: The size of the page to be returned
|
|
1025
|
+
:type size: int
|
|
1026
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
1027
|
+
:type sort: List[str]
|
|
1028
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1029
|
+
number provided, it will be total request
|
|
1030
|
+
timeout. It can also be a pair (tuple) of
|
|
1031
|
+
(connection, read) timeouts.
|
|
1032
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1033
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1034
|
+
request; this effectively ignores the
|
|
1035
|
+
authentication in the spec for a single request.
|
|
1036
|
+
:type _request_auth: dict, optional
|
|
1037
|
+
:param _content_type: force content-type for the request.
|
|
1038
|
+
:type _content_type: str, Optional
|
|
1039
|
+
:param _headers: set to override the headers for a single
|
|
1040
|
+
request; this effectively ignores the headers
|
|
1041
|
+
in the spec for a single request.
|
|
1042
|
+
:type _headers: dict, optional
|
|
1043
|
+
:param _host_index: set to override the host_index for a single
|
|
1044
|
+
request; this effectively ignores the host_index
|
|
1045
|
+
in the spec for a single request.
|
|
1046
|
+
:type _host_index: int, optional
|
|
1047
|
+
:return: Returns the result object.
|
|
1048
|
+
""" # noqa: E501
|
|
1049
|
+
warnings.warn("GET /api/cf is deprecated.", DeprecationWarning)
|
|
1050
|
+
|
|
1051
|
+
_param = self._find_by_project_serialize(
|
|
1052
|
+
project_id=project_id,
|
|
1053
|
+
query=query,
|
|
1054
|
+
page=page,
|
|
1055
|
+
size=size,
|
|
1056
|
+
sort=sort,
|
|
1057
|
+
_request_auth=_request_auth,
|
|
1058
|
+
_content_type=_content_type,
|
|
1059
|
+
_headers=_headers,
|
|
1060
|
+
_host_index=_host_index
|
|
1061
|
+
)
|
|
1062
|
+
|
|
1063
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1064
|
+
'200': "PageCustomFieldProjectDto",
|
|
1065
|
+
}
|
|
1066
|
+
response_data = await self.api_client.call_api(
|
|
1067
|
+
*_param,
|
|
1068
|
+
_request_timeout=_request_timeout
|
|
1069
|
+
)
|
|
1070
|
+
return response_data.response
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
def _find_by_project_serialize(
|
|
1074
|
+
self,
|
|
1075
|
+
project_id,
|
|
1076
|
+
query,
|
|
1077
|
+
page,
|
|
1078
|
+
size,
|
|
1079
|
+
sort,
|
|
1080
|
+
_request_auth,
|
|
1081
|
+
_content_type,
|
|
1082
|
+
_headers,
|
|
1083
|
+
_host_index,
|
|
1084
|
+
) -> RequestSerialized:
|
|
1085
|
+
|
|
1086
|
+
_host = None
|
|
1087
|
+
|
|
1088
|
+
_collection_formats: Dict[str, str] = {
|
|
1089
|
+
'sort': 'multi',
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
_path_params: Dict[str, str] = {}
|
|
1093
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1094
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1095
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1096
|
+
_files: Dict[
|
|
1097
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1098
|
+
] = {}
|
|
1099
|
+
_body_params: Optional[bytes] = None
|
|
1100
|
+
|
|
1101
|
+
# process the path parameters
|
|
1102
|
+
# process the query parameters
|
|
1103
|
+
if project_id is not None:
|
|
1104
|
+
|
|
1105
|
+
_query_params.append(('projectId', project_id))
|
|
1106
|
+
|
|
1107
|
+
if query is not None:
|
|
1108
|
+
|
|
1109
|
+
_query_params.append(('query', query))
|
|
1110
|
+
|
|
1111
|
+
if page is not None:
|
|
1112
|
+
|
|
1113
|
+
_query_params.append(('page', page))
|
|
1114
|
+
|
|
1115
|
+
if size is not None:
|
|
1116
|
+
|
|
1117
|
+
_query_params.append(('size', size))
|
|
1118
|
+
|
|
1119
|
+
if sort is not None:
|
|
1120
|
+
|
|
1121
|
+
_query_params.append(('sort', sort))
|
|
1122
|
+
|
|
1123
|
+
# process the header parameters
|
|
1124
|
+
# process the form parameters
|
|
1125
|
+
# process the body parameter
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
# set the HTTP header `Accept`
|
|
1129
|
+
if 'Accept' not in _header_params:
|
|
1130
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1131
|
+
[
|
|
1132
|
+
'*/*'
|
|
1133
|
+
]
|
|
1134
|
+
)
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
# authentication setting
|
|
1138
|
+
_auth_settings: List[str] = [
|
|
1139
|
+
]
|
|
1140
|
+
|
|
1141
|
+
return self.api_client.param_serialize(
|
|
1142
|
+
method='GET',
|
|
1143
|
+
resource_path='/api/cf',
|
|
1144
|
+
path_params=_path_params,
|
|
1145
|
+
query_params=_query_params,
|
|
1146
|
+
header_params=_header_params,
|
|
1147
|
+
body=_body_params,
|
|
1148
|
+
post_params=_form_params,
|
|
1149
|
+
files=_files,
|
|
1150
|
+
auth_settings=_auth_settings,
|
|
1151
|
+
collection_formats=_collection_formats,
|
|
1152
|
+
_host=_host,
|
|
1153
|
+
_request_auth=_request_auth
|
|
1154
|
+
)
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
@validate_call
|
|
1160
|
+
async def find_one37(
|
|
1161
|
+
self,
|
|
1162
|
+
id: StrictInt,
|
|
1163
|
+
_request_timeout: Union[
|
|
1164
|
+
None,
|
|
1165
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1166
|
+
Tuple[
|
|
1167
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1168
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1169
|
+
]
|
|
1170
|
+
] = None,
|
|
1171
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1172
|
+
_content_type: Optional[StrictStr] = None,
|
|
1173
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1174
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1175
|
+
) -> CustomFieldDto:
|
|
1176
|
+
"""find_one37
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
:param id: (required)
|
|
1180
|
+
:type id: int
|
|
1181
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1182
|
+
number provided, it will be total request
|
|
1183
|
+
timeout. It can also be a pair (tuple) of
|
|
1184
|
+
(connection, read) timeouts.
|
|
1185
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1186
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1187
|
+
request; this effectively ignores the
|
|
1188
|
+
authentication in the spec for a single request.
|
|
1189
|
+
:type _request_auth: dict, optional
|
|
1190
|
+
:param _content_type: force content-type for the request.
|
|
1191
|
+
:type _content_type: str, Optional
|
|
1192
|
+
:param _headers: set to override the headers for a single
|
|
1193
|
+
request; this effectively ignores the headers
|
|
1194
|
+
in the spec for a single request.
|
|
1195
|
+
:type _headers: dict, optional
|
|
1196
|
+
:param _host_index: set to override the host_index for a single
|
|
1197
|
+
request; this effectively ignores the host_index
|
|
1198
|
+
in the spec for a single request.
|
|
1199
|
+
:type _host_index: int, optional
|
|
1200
|
+
:return: Returns the result object.
|
|
1201
|
+
""" # noqa: E501
|
|
1202
|
+
|
|
1203
|
+
_param = self._find_one37_serialize(
|
|
1204
|
+
id=id,
|
|
1205
|
+
_request_auth=_request_auth,
|
|
1206
|
+
_content_type=_content_type,
|
|
1207
|
+
_headers=_headers,
|
|
1208
|
+
_host_index=_host_index
|
|
1209
|
+
)
|
|
1210
|
+
|
|
1211
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1212
|
+
'200': "CustomFieldDto",
|
|
1213
|
+
}
|
|
1214
|
+
response_data = await self.api_client.call_api(
|
|
1215
|
+
*_param,
|
|
1216
|
+
_request_timeout=_request_timeout
|
|
1217
|
+
)
|
|
1218
|
+
await response_data.read()
|
|
1219
|
+
return self.api_client.response_deserialize(
|
|
1220
|
+
response_data=response_data,
|
|
1221
|
+
response_types_map=_response_types_map,
|
|
1222
|
+
).data
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
@validate_call
|
|
1226
|
+
async def find_one37_with_http_info(
|
|
1227
|
+
self,
|
|
1228
|
+
id: StrictInt,
|
|
1229
|
+
_request_timeout: Union[
|
|
1230
|
+
None,
|
|
1231
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1232
|
+
Tuple[
|
|
1233
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1234
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1235
|
+
]
|
|
1236
|
+
] = None,
|
|
1237
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1238
|
+
_content_type: Optional[StrictStr] = None,
|
|
1239
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1240
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1241
|
+
) -> ApiResponse[CustomFieldDto]:
|
|
1242
|
+
"""find_one37
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
:param id: (required)
|
|
1246
|
+
:type id: int
|
|
1247
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1248
|
+
number provided, it will be total request
|
|
1249
|
+
timeout. It can also be a pair (tuple) of
|
|
1250
|
+
(connection, read) timeouts.
|
|
1251
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1252
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1253
|
+
request; this effectively ignores the
|
|
1254
|
+
authentication in the spec for a single request.
|
|
1255
|
+
:type _request_auth: dict, optional
|
|
1256
|
+
:param _content_type: force content-type for the request.
|
|
1257
|
+
:type _content_type: str, Optional
|
|
1258
|
+
:param _headers: set to override the headers for a single
|
|
1259
|
+
request; this effectively ignores the headers
|
|
1260
|
+
in the spec for a single request.
|
|
1261
|
+
:type _headers: dict, optional
|
|
1262
|
+
:param _host_index: set to override the host_index for a single
|
|
1263
|
+
request; this effectively ignores the host_index
|
|
1264
|
+
in the spec for a single request.
|
|
1265
|
+
:type _host_index: int, optional
|
|
1266
|
+
:return: Returns the result object.
|
|
1267
|
+
""" # noqa: E501
|
|
1268
|
+
|
|
1269
|
+
_param = self._find_one37_serialize(
|
|
1270
|
+
id=id,
|
|
1271
|
+
_request_auth=_request_auth,
|
|
1272
|
+
_content_type=_content_type,
|
|
1273
|
+
_headers=_headers,
|
|
1274
|
+
_host_index=_host_index
|
|
1275
|
+
)
|
|
1276
|
+
|
|
1277
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1278
|
+
'200': "CustomFieldDto",
|
|
1279
|
+
}
|
|
1280
|
+
response_data = await self.api_client.call_api(
|
|
1281
|
+
*_param,
|
|
1282
|
+
_request_timeout=_request_timeout
|
|
1283
|
+
)
|
|
1284
|
+
await response_data.read()
|
|
1285
|
+
return self.api_client.response_deserialize(
|
|
1286
|
+
response_data=response_data,
|
|
1287
|
+
response_types_map=_response_types_map,
|
|
1288
|
+
)
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
@validate_call
|
|
1292
|
+
async def find_one37_without_preload_content(
|
|
1293
|
+
self,
|
|
1294
|
+
id: StrictInt,
|
|
1295
|
+
_request_timeout: Union[
|
|
1296
|
+
None,
|
|
1297
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1298
|
+
Tuple[
|
|
1299
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1300
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1301
|
+
]
|
|
1302
|
+
] = None,
|
|
1303
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1304
|
+
_content_type: Optional[StrictStr] = None,
|
|
1305
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1306
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1307
|
+
) -> RESTResponseType:
|
|
1308
|
+
"""find_one37
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
:param id: (required)
|
|
1312
|
+
:type id: int
|
|
1313
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1314
|
+
number provided, it will be total request
|
|
1315
|
+
timeout. It can also be a pair (tuple) of
|
|
1316
|
+
(connection, read) timeouts.
|
|
1317
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1318
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1319
|
+
request; this effectively ignores the
|
|
1320
|
+
authentication in the spec for a single request.
|
|
1321
|
+
:type _request_auth: dict, optional
|
|
1322
|
+
:param _content_type: force content-type for the request.
|
|
1323
|
+
:type _content_type: str, Optional
|
|
1324
|
+
:param _headers: set to override the headers for a single
|
|
1325
|
+
request; this effectively ignores the headers
|
|
1326
|
+
in the spec for a single request.
|
|
1327
|
+
:type _headers: dict, optional
|
|
1328
|
+
:param _host_index: set to override the host_index for a single
|
|
1329
|
+
request; this effectively ignores the host_index
|
|
1330
|
+
in the spec for a single request.
|
|
1331
|
+
:type _host_index: int, optional
|
|
1332
|
+
:return: Returns the result object.
|
|
1333
|
+
""" # noqa: E501
|
|
1334
|
+
|
|
1335
|
+
_param = self._find_one37_serialize(
|
|
1336
|
+
id=id,
|
|
1337
|
+
_request_auth=_request_auth,
|
|
1338
|
+
_content_type=_content_type,
|
|
1339
|
+
_headers=_headers,
|
|
1340
|
+
_host_index=_host_index
|
|
1341
|
+
)
|
|
1342
|
+
|
|
1343
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1344
|
+
'200': "CustomFieldDto",
|
|
1345
|
+
}
|
|
1346
|
+
response_data = await self.api_client.call_api(
|
|
1347
|
+
*_param,
|
|
1348
|
+
_request_timeout=_request_timeout
|
|
1349
|
+
)
|
|
1350
|
+
return response_data.response
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
def _find_one37_serialize(
|
|
1354
|
+
self,
|
|
1355
|
+
id,
|
|
1356
|
+
_request_auth,
|
|
1357
|
+
_content_type,
|
|
1358
|
+
_headers,
|
|
1359
|
+
_host_index,
|
|
1360
|
+
) -> RequestSerialized:
|
|
1361
|
+
|
|
1362
|
+
_host = None
|
|
1363
|
+
|
|
1364
|
+
_collection_formats: Dict[str, str] = {
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
_path_params: Dict[str, str] = {}
|
|
1368
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1369
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1370
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1371
|
+
_files: Dict[
|
|
1372
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1373
|
+
] = {}
|
|
1374
|
+
_body_params: Optional[bytes] = None
|
|
1375
|
+
|
|
1376
|
+
# process the path parameters
|
|
1377
|
+
if id is not None:
|
|
1378
|
+
_path_params['id'] = id
|
|
1379
|
+
# process the query parameters
|
|
1380
|
+
# process the header parameters
|
|
1381
|
+
# process the form parameters
|
|
1382
|
+
# process the body parameter
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
# set the HTTP header `Accept`
|
|
1386
|
+
if 'Accept' not in _header_params:
|
|
1387
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1388
|
+
[
|
|
1389
|
+
'*/*'
|
|
1390
|
+
]
|
|
1391
|
+
)
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
# authentication setting
|
|
1395
|
+
_auth_settings: List[str] = [
|
|
1396
|
+
]
|
|
1397
|
+
|
|
1398
|
+
return self.api_client.param_serialize(
|
|
1399
|
+
method='GET',
|
|
1400
|
+
resource_path='/api/cf/{id}',
|
|
1401
|
+
path_params=_path_params,
|
|
1402
|
+
query_params=_query_params,
|
|
1403
|
+
header_params=_header_params,
|
|
1404
|
+
body=_body_params,
|
|
1405
|
+
post_params=_form_params,
|
|
1406
|
+
files=_files,
|
|
1407
|
+
auth_settings=_auth_settings,
|
|
1408
|
+
collection_formats=_collection_formats,
|
|
1409
|
+
_host=_host,
|
|
1410
|
+
_request_auth=_request_auth
|
|
1411
|
+
)
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
@validate_call
|
|
1417
|
+
async def merge4(
|
|
1418
|
+
self,
|
|
1419
|
+
custom_field_merge_dto: CustomFieldMergeDto,
|
|
1420
|
+
_request_timeout: Union[
|
|
1421
|
+
None,
|
|
1422
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1423
|
+
Tuple[
|
|
1424
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1425
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1426
|
+
]
|
|
1427
|
+
] = None,
|
|
1428
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1429
|
+
_content_type: Optional[StrictStr] = None,
|
|
1430
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1431
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1432
|
+
) -> None:
|
|
1433
|
+
"""merge4
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
:param custom_field_merge_dto: (required)
|
|
1437
|
+
:type custom_field_merge_dto: CustomFieldMergeDto
|
|
1438
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1439
|
+
number provided, it will be total request
|
|
1440
|
+
timeout. It can also be a pair (tuple) of
|
|
1441
|
+
(connection, read) timeouts.
|
|
1442
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1443
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1444
|
+
request; this effectively ignores the
|
|
1445
|
+
authentication in the spec for a single request.
|
|
1446
|
+
:type _request_auth: dict, optional
|
|
1447
|
+
:param _content_type: force content-type for the request.
|
|
1448
|
+
:type _content_type: str, Optional
|
|
1449
|
+
:param _headers: set to override the headers for a single
|
|
1450
|
+
request; this effectively ignores the headers
|
|
1451
|
+
in the spec for a single request.
|
|
1452
|
+
:type _headers: dict, optional
|
|
1453
|
+
:param _host_index: set to override the host_index for a single
|
|
1454
|
+
request; this effectively ignores the host_index
|
|
1455
|
+
in the spec for a single request.
|
|
1456
|
+
:type _host_index: int, optional
|
|
1457
|
+
:return: Returns the result object.
|
|
1458
|
+
""" # noqa: E501
|
|
1459
|
+
|
|
1460
|
+
_param = self._merge4_serialize(
|
|
1461
|
+
custom_field_merge_dto=custom_field_merge_dto,
|
|
1462
|
+
_request_auth=_request_auth,
|
|
1463
|
+
_content_type=_content_type,
|
|
1464
|
+
_headers=_headers,
|
|
1465
|
+
_host_index=_host_index
|
|
1466
|
+
)
|
|
1467
|
+
|
|
1468
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1469
|
+
'202': None,
|
|
1470
|
+
}
|
|
1471
|
+
response_data = await self.api_client.call_api(
|
|
1472
|
+
*_param,
|
|
1473
|
+
_request_timeout=_request_timeout
|
|
1474
|
+
)
|
|
1475
|
+
await response_data.read()
|
|
1476
|
+
return self.api_client.response_deserialize(
|
|
1477
|
+
response_data=response_data,
|
|
1478
|
+
response_types_map=_response_types_map,
|
|
1479
|
+
).data
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
@validate_call
|
|
1483
|
+
async def merge4_with_http_info(
|
|
1484
|
+
self,
|
|
1485
|
+
custom_field_merge_dto: CustomFieldMergeDto,
|
|
1486
|
+
_request_timeout: Union[
|
|
1487
|
+
None,
|
|
1488
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1489
|
+
Tuple[
|
|
1490
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1491
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1492
|
+
]
|
|
1493
|
+
] = None,
|
|
1494
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1495
|
+
_content_type: Optional[StrictStr] = None,
|
|
1496
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1497
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1498
|
+
) -> ApiResponse[None]:
|
|
1499
|
+
"""merge4
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
:param custom_field_merge_dto: (required)
|
|
1503
|
+
:type custom_field_merge_dto: CustomFieldMergeDto
|
|
1504
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1505
|
+
number provided, it will be total request
|
|
1506
|
+
timeout. It can also be a pair (tuple) of
|
|
1507
|
+
(connection, read) timeouts.
|
|
1508
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1509
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1510
|
+
request; this effectively ignores the
|
|
1511
|
+
authentication in the spec for a single request.
|
|
1512
|
+
:type _request_auth: dict, optional
|
|
1513
|
+
:param _content_type: force content-type for the request.
|
|
1514
|
+
:type _content_type: str, Optional
|
|
1515
|
+
:param _headers: set to override the headers for a single
|
|
1516
|
+
request; this effectively ignores the headers
|
|
1517
|
+
in the spec for a single request.
|
|
1518
|
+
:type _headers: dict, optional
|
|
1519
|
+
:param _host_index: set to override the host_index for a single
|
|
1520
|
+
request; this effectively ignores the host_index
|
|
1521
|
+
in the spec for a single request.
|
|
1522
|
+
:type _host_index: int, optional
|
|
1523
|
+
:return: Returns the result object.
|
|
1524
|
+
""" # noqa: E501
|
|
1525
|
+
|
|
1526
|
+
_param = self._merge4_serialize(
|
|
1527
|
+
custom_field_merge_dto=custom_field_merge_dto,
|
|
1528
|
+
_request_auth=_request_auth,
|
|
1529
|
+
_content_type=_content_type,
|
|
1530
|
+
_headers=_headers,
|
|
1531
|
+
_host_index=_host_index
|
|
1532
|
+
)
|
|
1533
|
+
|
|
1534
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1535
|
+
'202': None,
|
|
1536
|
+
}
|
|
1537
|
+
response_data = await self.api_client.call_api(
|
|
1538
|
+
*_param,
|
|
1539
|
+
_request_timeout=_request_timeout
|
|
1540
|
+
)
|
|
1541
|
+
await response_data.read()
|
|
1542
|
+
return self.api_client.response_deserialize(
|
|
1543
|
+
response_data=response_data,
|
|
1544
|
+
response_types_map=_response_types_map,
|
|
1545
|
+
)
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
@validate_call
|
|
1549
|
+
async def merge4_without_preload_content(
|
|
1550
|
+
self,
|
|
1551
|
+
custom_field_merge_dto: CustomFieldMergeDto,
|
|
1552
|
+
_request_timeout: Union[
|
|
1553
|
+
None,
|
|
1554
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1555
|
+
Tuple[
|
|
1556
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1557
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1558
|
+
]
|
|
1559
|
+
] = None,
|
|
1560
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1561
|
+
_content_type: Optional[StrictStr] = None,
|
|
1562
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1563
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1564
|
+
) -> RESTResponseType:
|
|
1565
|
+
"""merge4
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
:param custom_field_merge_dto: (required)
|
|
1569
|
+
:type custom_field_merge_dto: CustomFieldMergeDto
|
|
1570
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1571
|
+
number provided, it will be total request
|
|
1572
|
+
timeout. It can also be a pair (tuple) of
|
|
1573
|
+
(connection, read) timeouts.
|
|
1574
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1575
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1576
|
+
request; this effectively ignores the
|
|
1577
|
+
authentication in the spec for a single request.
|
|
1578
|
+
:type _request_auth: dict, optional
|
|
1579
|
+
:param _content_type: force content-type for the request.
|
|
1580
|
+
:type _content_type: str, Optional
|
|
1581
|
+
:param _headers: set to override the headers for a single
|
|
1582
|
+
request; this effectively ignores the headers
|
|
1583
|
+
in the spec for a single request.
|
|
1584
|
+
:type _headers: dict, optional
|
|
1585
|
+
:param _host_index: set to override the host_index for a single
|
|
1586
|
+
request; this effectively ignores the host_index
|
|
1587
|
+
in the spec for a single request.
|
|
1588
|
+
:type _host_index: int, optional
|
|
1589
|
+
:return: Returns the result object.
|
|
1590
|
+
""" # noqa: E501
|
|
1591
|
+
|
|
1592
|
+
_param = self._merge4_serialize(
|
|
1593
|
+
custom_field_merge_dto=custom_field_merge_dto,
|
|
1594
|
+
_request_auth=_request_auth,
|
|
1595
|
+
_content_type=_content_type,
|
|
1596
|
+
_headers=_headers,
|
|
1597
|
+
_host_index=_host_index
|
|
1598
|
+
)
|
|
1599
|
+
|
|
1600
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1601
|
+
'202': None,
|
|
1602
|
+
}
|
|
1603
|
+
response_data = await self.api_client.call_api(
|
|
1604
|
+
*_param,
|
|
1605
|
+
_request_timeout=_request_timeout
|
|
1606
|
+
)
|
|
1607
|
+
return response_data.response
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
def _merge4_serialize(
|
|
1611
|
+
self,
|
|
1612
|
+
custom_field_merge_dto,
|
|
1613
|
+
_request_auth,
|
|
1614
|
+
_content_type,
|
|
1615
|
+
_headers,
|
|
1616
|
+
_host_index,
|
|
1617
|
+
) -> RequestSerialized:
|
|
1618
|
+
|
|
1619
|
+
_host = None
|
|
1620
|
+
|
|
1621
|
+
_collection_formats: Dict[str, str] = {
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
_path_params: Dict[str, str] = {}
|
|
1625
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1626
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1627
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1628
|
+
_files: Dict[
|
|
1629
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1630
|
+
] = {}
|
|
1631
|
+
_body_params: Optional[bytes] = None
|
|
1632
|
+
|
|
1633
|
+
# process the path parameters
|
|
1634
|
+
# process the query parameters
|
|
1635
|
+
# process the header parameters
|
|
1636
|
+
# process the form parameters
|
|
1637
|
+
# process the body parameter
|
|
1638
|
+
if custom_field_merge_dto is not None:
|
|
1639
|
+
_body_params = custom_field_merge_dto
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
# set the HTTP header `Content-Type`
|
|
1644
|
+
if _content_type:
|
|
1645
|
+
_header_params['Content-Type'] = _content_type
|
|
1646
|
+
else:
|
|
1647
|
+
_default_content_type = (
|
|
1648
|
+
self.api_client.select_header_content_type(
|
|
1649
|
+
[
|
|
1650
|
+
'application/json'
|
|
1651
|
+
]
|
|
1652
|
+
)
|
|
1653
|
+
)
|
|
1654
|
+
if _default_content_type is not None:
|
|
1655
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1656
|
+
|
|
1657
|
+
# authentication setting
|
|
1658
|
+
_auth_settings: List[str] = [
|
|
1659
|
+
]
|
|
1660
|
+
|
|
1661
|
+
return self.api_client.param_serialize(
|
|
1662
|
+
method='POST',
|
|
1663
|
+
resource_path='/api/cf/merge',
|
|
1664
|
+
path_params=_path_params,
|
|
1665
|
+
query_params=_query_params,
|
|
1666
|
+
header_params=_header_params,
|
|
1667
|
+
body=_body_params,
|
|
1668
|
+
post_params=_form_params,
|
|
1669
|
+
files=_files,
|
|
1670
|
+
auth_settings=_auth_settings,
|
|
1671
|
+
collection_formats=_collection_formats,
|
|
1672
|
+
_host=_host,
|
|
1673
|
+
_request_auth=_request_auth
|
|
1674
|
+
)
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
@validate_call
|
|
1680
|
+
async def patch48(
|
|
1681
|
+
self,
|
|
1682
|
+
id: StrictInt,
|
|
1683
|
+
custom_field_patch_dto: CustomFieldPatchDto,
|
|
1684
|
+
_request_timeout: Union[
|
|
1685
|
+
None,
|
|
1686
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1687
|
+
Tuple[
|
|
1688
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1689
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1690
|
+
]
|
|
1691
|
+
] = None,
|
|
1692
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1693
|
+
_content_type: Optional[StrictStr] = None,
|
|
1694
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1695
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1696
|
+
) -> CustomFieldDto:
|
|
1697
|
+
"""patch48
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
:param id: (required)
|
|
1701
|
+
:type id: int
|
|
1702
|
+
:param custom_field_patch_dto: (required)
|
|
1703
|
+
:type custom_field_patch_dto: CustomFieldPatchDto
|
|
1704
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1705
|
+
number provided, it will be total request
|
|
1706
|
+
timeout. It can also be a pair (tuple) of
|
|
1707
|
+
(connection, read) timeouts.
|
|
1708
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1709
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1710
|
+
request; this effectively ignores the
|
|
1711
|
+
authentication in the spec for a single request.
|
|
1712
|
+
:type _request_auth: dict, optional
|
|
1713
|
+
:param _content_type: force content-type for the request.
|
|
1714
|
+
:type _content_type: str, Optional
|
|
1715
|
+
:param _headers: set to override the headers for a single
|
|
1716
|
+
request; this effectively ignores the headers
|
|
1717
|
+
in the spec for a single request.
|
|
1718
|
+
:type _headers: dict, optional
|
|
1719
|
+
:param _host_index: set to override the host_index for a single
|
|
1720
|
+
request; this effectively ignores the host_index
|
|
1721
|
+
in the spec for a single request.
|
|
1722
|
+
:type _host_index: int, optional
|
|
1723
|
+
:return: Returns the result object.
|
|
1724
|
+
""" # noqa: E501
|
|
1725
|
+
|
|
1726
|
+
_param = self._patch48_serialize(
|
|
1727
|
+
id=id,
|
|
1728
|
+
custom_field_patch_dto=custom_field_patch_dto,
|
|
1729
|
+
_request_auth=_request_auth,
|
|
1730
|
+
_content_type=_content_type,
|
|
1731
|
+
_headers=_headers,
|
|
1732
|
+
_host_index=_host_index
|
|
1733
|
+
)
|
|
1734
|
+
|
|
1735
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1736
|
+
'200': "CustomFieldDto",
|
|
1737
|
+
}
|
|
1738
|
+
response_data = await self.api_client.call_api(
|
|
1739
|
+
*_param,
|
|
1740
|
+
_request_timeout=_request_timeout
|
|
1741
|
+
)
|
|
1742
|
+
await response_data.read()
|
|
1743
|
+
return self.api_client.response_deserialize(
|
|
1744
|
+
response_data=response_data,
|
|
1745
|
+
response_types_map=_response_types_map,
|
|
1746
|
+
).data
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
@validate_call
|
|
1750
|
+
async def patch48_with_http_info(
|
|
1751
|
+
self,
|
|
1752
|
+
id: StrictInt,
|
|
1753
|
+
custom_field_patch_dto: CustomFieldPatchDto,
|
|
1754
|
+
_request_timeout: Union[
|
|
1755
|
+
None,
|
|
1756
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1757
|
+
Tuple[
|
|
1758
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1759
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1760
|
+
]
|
|
1761
|
+
] = None,
|
|
1762
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1763
|
+
_content_type: Optional[StrictStr] = None,
|
|
1764
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1765
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1766
|
+
) -> ApiResponse[CustomFieldDto]:
|
|
1767
|
+
"""patch48
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
:param id: (required)
|
|
1771
|
+
:type id: int
|
|
1772
|
+
:param custom_field_patch_dto: (required)
|
|
1773
|
+
:type custom_field_patch_dto: CustomFieldPatchDto
|
|
1774
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1775
|
+
number provided, it will be total request
|
|
1776
|
+
timeout. It can also be a pair (tuple) of
|
|
1777
|
+
(connection, read) timeouts.
|
|
1778
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1779
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1780
|
+
request; this effectively ignores the
|
|
1781
|
+
authentication in the spec for a single request.
|
|
1782
|
+
:type _request_auth: dict, optional
|
|
1783
|
+
:param _content_type: force content-type for the request.
|
|
1784
|
+
:type _content_type: str, Optional
|
|
1785
|
+
:param _headers: set to override the headers for a single
|
|
1786
|
+
request; this effectively ignores the headers
|
|
1787
|
+
in the spec for a single request.
|
|
1788
|
+
:type _headers: dict, optional
|
|
1789
|
+
:param _host_index: set to override the host_index for a single
|
|
1790
|
+
request; this effectively ignores the host_index
|
|
1791
|
+
in the spec for a single request.
|
|
1792
|
+
:type _host_index: int, optional
|
|
1793
|
+
:return: Returns the result object.
|
|
1794
|
+
""" # noqa: E501
|
|
1795
|
+
|
|
1796
|
+
_param = self._patch48_serialize(
|
|
1797
|
+
id=id,
|
|
1798
|
+
custom_field_patch_dto=custom_field_patch_dto,
|
|
1799
|
+
_request_auth=_request_auth,
|
|
1800
|
+
_content_type=_content_type,
|
|
1801
|
+
_headers=_headers,
|
|
1802
|
+
_host_index=_host_index
|
|
1803
|
+
)
|
|
1804
|
+
|
|
1805
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1806
|
+
'200': "CustomFieldDto",
|
|
1807
|
+
}
|
|
1808
|
+
response_data = await self.api_client.call_api(
|
|
1809
|
+
*_param,
|
|
1810
|
+
_request_timeout=_request_timeout
|
|
1811
|
+
)
|
|
1812
|
+
await response_data.read()
|
|
1813
|
+
return self.api_client.response_deserialize(
|
|
1814
|
+
response_data=response_data,
|
|
1815
|
+
response_types_map=_response_types_map,
|
|
1816
|
+
)
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
@validate_call
|
|
1820
|
+
async def patch48_without_preload_content(
|
|
1821
|
+
self,
|
|
1822
|
+
id: StrictInt,
|
|
1823
|
+
custom_field_patch_dto: CustomFieldPatchDto,
|
|
1824
|
+
_request_timeout: Union[
|
|
1825
|
+
None,
|
|
1826
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1827
|
+
Tuple[
|
|
1828
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1829
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1830
|
+
]
|
|
1831
|
+
] = None,
|
|
1832
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1833
|
+
_content_type: Optional[StrictStr] = None,
|
|
1834
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1835
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1836
|
+
) -> RESTResponseType:
|
|
1837
|
+
"""patch48
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
:param id: (required)
|
|
1841
|
+
:type id: int
|
|
1842
|
+
:param custom_field_patch_dto: (required)
|
|
1843
|
+
:type custom_field_patch_dto: CustomFieldPatchDto
|
|
1844
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1845
|
+
number provided, it will be total request
|
|
1846
|
+
timeout. It can also be a pair (tuple) of
|
|
1847
|
+
(connection, read) timeouts.
|
|
1848
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1849
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1850
|
+
request; this effectively ignores the
|
|
1851
|
+
authentication in the spec for a single request.
|
|
1852
|
+
:type _request_auth: dict, optional
|
|
1853
|
+
:param _content_type: force content-type for the request.
|
|
1854
|
+
:type _content_type: str, Optional
|
|
1855
|
+
:param _headers: set to override the headers for a single
|
|
1856
|
+
request; this effectively ignores the headers
|
|
1857
|
+
in the spec for a single request.
|
|
1858
|
+
:type _headers: dict, optional
|
|
1859
|
+
:param _host_index: set to override the host_index for a single
|
|
1860
|
+
request; this effectively ignores the host_index
|
|
1861
|
+
in the spec for a single request.
|
|
1862
|
+
:type _host_index: int, optional
|
|
1863
|
+
:return: Returns the result object.
|
|
1864
|
+
""" # noqa: E501
|
|
1865
|
+
|
|
1866
|
+
_param = self._patch48_serialize(
|
|
1867
|
+
id=id,
|
|
1868
|
+
custom_field_patch_dto=custom_field_patch_dto,
|
|
1869
|
+
_request_auth=_request_auth,
|
|
1870
|
+
_content_type=_content_type,
|
|
1871
|
+
_headers=_headers,
|
|
1872
|
+
_host_index=_host_index
|
|
1873
|
+
)
|
|
1874
|
+
|
|
1875
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1876
|
+
'200': "CustomFieldDto",
|
|
1877
|
+
}
|
|
1878
|
+
response_data = await self.api_client.call_api(
|
|
1879
|
+
*_param,
|
|
1880
|
+
_request_timeout=_request_timeout
|
|
1881
|
+
)
|
|
1882
|
+
return response_data.response
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
def _patch48_serialize(
|
|
1886
|
+
self,
|
|
1887
|
+
id,
|
|
1888
|
+
custom_field_patch_dto,
|
|
1889
|
+
_request_auth,
|
|
1890
|
+
_content_type,
|
|
1891
|
+
_headers,
|
|
1892
|
+
_host_index,
|
|
1893
|
+
) -> RequestSerialized:
|
|
1894
|
+
|
|
1895
|
+
_host = None
|
|
1896
|
+
|
|
1897
|
+
_collection_formats: Dict[str, str] = {
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
_path_params: Dict[str, str] = {}
|
|
1901
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1902
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1903
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1904
|
+
_files: Dict[
|
|
1905
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1906
|
+
] = {}
|
|
1907
|
+
_body_params: Optional[bytes] = None
|
|
1908
|
+
|
|
1909
|
+
# process the path parameters
|
|
1910
|
+
if id is not None:
|
|
1911
|
+
_path_params['id'] = id
|
|
1912
|
+
# process the query parameters
|
|
1913
|
+
# process the header parameters
|
|
1914
|
+
# process the form parameters
|
|
1915
|
+
# process the body parameter
|
|
1916
|
+
if custom_field_patch_dto is not None:
|
|
1917
|
+
_body_params = custom_field_patch_dto
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
# set the HTTP header `Accept`
|
|
1921
|
+
if 'Accept' not in _header_params:
|
|
1922
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1923
|
+
[
|
|
1924
|
+
'*/*'
|
|
1925
|
+
]
|
|
1926
|
+
)
|
|
1927
|
+
|
|
1928
|
+
# set the HTTP header `Content-Type`
|
|
1929
|
+
if _content_type:
|
|
1930
|
+
_header_params['Content-Type'] = _content_type
|
|
1931
|
+
else:
|
|
1932
|
+
_default_content_type = (
|
|
1933
|
+
self.api_client.select_header_content_type(
|
|
1934
|
+
[
|
|
1935
|
+
'application/json'
|
|
1936
|
+
]
|
|
1937
|
+
)
|
|
1938
|
+
)
|
|
1939
|
+
if _default_content_type is not None:
|
|
1940
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1941
|
+
|
|
1942
|
+
# authentication setting
|
|
1943
|
+
_auth_settings: List[str] = [
|
|
1944
|
+
]
|
|
1945
|
+
|
|
1946
|
+
return self.api_client.param_serialize(
|
|
1947
|
+
method='PATCH',
|
|
1948
|
+
resource_path='/api/cf/{id}',
|
|
1949
|
+
path_params=_path_params,
|
|
1950
|
+
query_params=_query_params,
|
|
1951
|
+
header_params=_header_params,
|
|
1952
|
+
body=_body_params,
|
|
1953
|
+
post_params=_form_params,
|
|
1954
|
+
files=_files,
|
|
1955
|
+
auth_settings=_auth_settings,
|
|
1956
|
+
collection_formats=_collection_formats,
|
|
1957
|
+
_host=_host,
|
|
1958
|
+
_request_auth=_request_auth
|
|
1959
|
+
)
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
@validate_call
|
|
1965
|
+
async def set_archived(
|
|
1966
|
+
self,
|
|
1967
|
+
id: StrictInt,
|
|
1968
|
+
archived: Optional[StrictBool] = None,
|
|
1969
|
+
_request_timeout: Union[
|
|
1970
|
+
None,
|
|
1971
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1972
|
+
Tuple[
|
|
1973
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1974
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1975
|
+
]
|
|
1976
|
+
] = None,
|
|
1977
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1978
|
+
_content_type: Optional[StrictStr] = None,
|
|
1979
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1980
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1981
|
+
) -> CustomFieldDto:
|
|
1982
|
+
"""Soft delete custom field
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
:param id: (required)
|
|
1986
|
+
:type id: int
|
|
1987
|
+
:param archived:
|
|
1988
|
+
:type archived: bool
|
|
1989
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1990
|
+
number provided, it will be total request
|
|
1991
|
+
timeout. It can also be a pair (tuple) of
|
|
1992
|
+
(connection, read) timeouts.
|
|
1993
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1994
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1995
|
+
request; this effectively ignores the
|
|
1996
|
+
authentication in the spec for a single request.
|
|
1997
|
+
:type _request_auth: dict, optional
|
|
1998
|
+
:param _content_type: force content-type for the request.
|
|
1999
|
+
:type _content_type: str, Optional
|
|
2000
|
+
:param _headers: set to override the headers for a single
|
|
2001
|
+
request; this effectively ignores the headers
|
|
2002
|
+
in the spec for a single request.
|
|
2003
|
+
:type _headers: dict, optional
|
|
2004
|
+
:param _host_index: set to override the host_index for a single
|
|
2005
|
+
request; this effectively ignores the host_index
|
|
2006
|
+
in the spec for a single request.
|
|
2007
|
+
:type _host_index: int, optional
|
|
2008
|
+
:return: Returns the result object.
|
|
2009
|
+
""" # noqa: E501
|
|
2010
|
+
|
|
2011
|
+
_param = self._set_archived_serialize(
|
|
2012
|
+
id=id,
|
|
2013
|
+
archived=archived,
|
|
2014
|
+
_request_auth=_request_auth,
|
|
2015
|
+
_content_type=_content_type,
|
|
2016
|
+
_headers=_headers,
|
|
2017
|
+
_host_index=_host_index
|
|
2018
|
+
)
|
|
2019
|
+
|
|
2020
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2021
|
+
'200': "CustomFieldDto",
|
|
2022
|
+
}
|
|
2023
|
+
response_data = await self.api_client.call_api(
|
|
2024
|
+
*_param,
|
|
2025
|
+
_request_timeout=_request_timeout
|
|
2026
|
+
)
|
|
2027
|
+
await response_data.read()
|
|
2028
|
+
return self.api_client.response_deserialize(
|
|
2029
|
+
response_data=response_data,
|
|
2030
|
+
response_types_map=_response_types_map,
|
|
2031
|
+
).data
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
@validate_call
|
|
2035
|
+
async def set_archived_with_http_info(
|
|
2036
|
+
self,
|
|
2037
|
+
id: StrictInt,
|
|
2038
|
+
archived: Optional[StrictBool] = None,
|
|
2039
|
+
_request_timeout: Union[
|
|
2040
|
+
None,
|
|
2041
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2042
|
+
Tuple[
|
|
2043
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2044
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2045
|
+
]
|
|
2046
|
+
] = None,
|
|
2047
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2048
|
+
_content_type: Optional[StrictStr] = None,
|
|
2049
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2050
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2051
|
+
) -> ApiResponse[CustomFieldDto]:
|
|
2052
|
+
"""Soft delete custom field
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
:param id: (required)
|
|
2056
|
+
:type id: int
|
|
2057
|
+
:param archived:
|
|
2058
|
+
:type archived: bool
|
|
2059
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2060
|
+
number provided, it will be total request
|
|
2061
|
+
timeout. It can also be a pair (tuple) of
|
|
2062
|
+
(connection, read) timeouts.
|
|
2063
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2064
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2065
|
+
request; this effectively ignores the
|
|
2066
|
+
authentication in the spec for a single request.
|
|
2067
|
+
:type _request_auth: dict, optional
|
|
2068
|
+
:param _content_type: force content-type for the request.
|
|
2069
|
+
:type _content_type: str, Optional
|
|
2070
|
+
:param _headers: set to override the headers for a single
|
|
2071
|
+
request; this effectively ignores the headers
|
|
2072
|
+
in the spec for a single request.
|
|
2073
|
+
:type _headers: dict, optional
|
|
2074
|
+
:param _host_index: set to override the host_index for a single
|
|
2075
|
+
request; this effectively ignores the host_index
|
|
2076
|
+
in the spec for a single request.
|
|
2077
|
+
:type _host_index: int, optional
|
|
2078
|
+
:return: Returns the result object.
|
|
2079
|
+
""" # noqa: E501
|
|
2080
|
+
|
|
2081
|
+
_param = self._set_archived_serialize(
|
|
2082
|
+
id=id,
|
|
2083
|
+
archived=archived,
|
|
2084
|
+
_request_auth=_request_auth,
|
|
2085
|
+
_content_type=_content_type,
|
|
2086
|
+
_headers=_headers,
|
|
2087
|
+
_host_index=_host_index
|
|
2088
|
+
)
|
|
2089
|
+
|
|
2090
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2091
|
+
'200': "CustomFieldDto",
|
|
2092
|
+
}
|
|
2093
|
+
response_data = await self.api_client.call_api(
|
|
2094
|
+
*_param,
|
|
2095
|
+
_request_timeout=_request_timeout
|
|
2096
|
+
)
|
|
2097
|
+
await response_data.read()
|
|
2098
|
+
return self.api_client.response_deserialize(
|
|
2099
|
+
response_data=response_data,
|
|
2100
|
+
response_types_map=_response_types_map,
|
|
2101
|
+
)
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
@validate_call
|
|
2105
|
+
async def set_archived_without_preload_content(
|
|
2106
|
+
self,
|
|
2107
|
+
id: StrictInt,
|
|
2108
|
+
archived: Optional[StrictBool] = None,
|
|
2109
|
+
_request_timeout: Union[
|
|
2110
|
+
None,
|
|
2111
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2112
|
+
Tuple[
|
|
2113
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2114
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2115
|
+
]
|
|
2116
|
+
] = None,
|
|
2117
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2118
|
+
_content_type: Optional[StrictStr] = None,
|
|
2119
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2120
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2121
|
+
) -> RESTResponseType:
|
|
2122
|
+
"""Soft delete custom field
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
:param id: (required)
|
|
2126
|
+
:type id: int
|
|
2127
|
+
:param archived:
|
|
2128
|
+
:type archived: bool
|
|
2129
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2130
|
+
number provided, it will be total request
|
|
2131
|
+
timeout. It can also be a pair (tuple) of
|
|
2132
|
+
(connection, read) timeouts.
|
|
2133
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2134
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2135
|
+
request; this effectively ignores the
|
|
2136
|
+
authentication in the spec for a single request.
|
|
2137
|
+
:type _request_auth: dict, optional
|
|
2138
|
+
:param _content_type: force content-type for the request.
|
|
2139
|
+
:type _content_type: str, Optional
|
|
2140
|
+
:param _headers: set to override the headers for a single
|
|
2141
|
+
request; this effectively ignores the headers
|
|
2142
|
+
in the spec for a single request.
|
|
2143
|
+
:type _headers: dict, optional
|
|
2144
|
+
:param _host_index: set to override the host_index for a single
|
|
2145
|
+
request; this effectively ignores the host_index
|
|
2146
|
+
in the spec for a single request.
|
|
2147
|
+
:type _host_index: int, optional
|
|
2148
|
+
:return: Returns the result object.
|
|
2149
|
+
""" # noqa: E501
|
|
2150
|
+
|
|
2151
|
+
_param = self._set_archived_serialize(
|
|
2152
|
+
id=id,
|
|
2153
|
+
archived=archived,
|
|
2154
|
+
_request_auth=_request_auth,
|
|
2155
|
+
_content_type=_content_type,
|
|
2156
|
+
_headers=_headers,
|
|
2157
|
+
_host_index=_host_index
|
|
2158
|
+
)
|
|
2159
|
+
|
|
2160
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2161
|
+
'200': "CustomFieldDto",
|
|
2162
|
+
}
|
|
2163
|
+
response_data = await self.api_client.call_api(
|
|
2164
|
+
*_param,
|
|
2165
|
+
_request_timeout=_request_timeout
|
|
2166
|
+
)
|
|
2167
|
+
return response_data.response
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
def _set_archived_serialize(
|
|
2171
|
+
self,
|
|
2172
|
+
id,
|
|
2173
|
+
archived,
|
|
2174
|
+
_request_auth,
|
|
2175
|
+
_content_type,
|
|
2176
|
+
_headers,
|
|
2177
|
+
_host_index,
|
|
2178
|
+
) -> RequestSerialized:
|
|
2179
|
+
|
|
2180
|
+
_host = None
|
|
2181
|
+
|
|
2182
|
+
_collection_formats: Dict[str, str] = {
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
_path_params: Dict[str, str] = {}
|
|
2186
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2187
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2188
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2189
|
+
_files: Dict[
|
|
2190
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2191
|
+
] = {}
|
|
2192
|
+
_body_params: Optional[bytes] = None
|
|
2193
|
+
|
|
2194
|
+
# process the path parameters
|
|
2195
|
+
if id is not None:
|
|
2196
|
+
_path_params['id'] = id
|
|
2197
|
+
# process the query parameters
|
|
2198
|
+
if archived is not None:
|
|
2199
|
+
|
|
2200
|
+
_query_params.append(('archived', archived))
|
|
2201
|
+
|
|
2202
|
+
# process the header parameters
|
|
2203
|
+
# process the form parameters
|
|
2204
|
+
# process the body parameter
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
# set the HTTP header `Accept`
|
|
2208
|
+
if 'Accept' not in _header_params:
|
|
2209
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2210
|
+
[
|
|
2211
|
+
'*/*'
|
|
2212
|
+
]
|
|
2213
|
+
)
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
# authentication setting
|
|
2217
|
+
_auth_settings: List[str] = [
|
|
2218
|
+
]
|
|
2219
|
+
|
|
2220
|
+
return self.api_client.param_serialize(
|
|
2221
|
+
method='POST',
|
|
2222
|
+
resource_path='/api/cf/{id}/archived',
|
|
2223
|
+
path_params=_path_params,
|
|
2224
|
+
query_params=_query_params,
|
|
2225
|
+
header_params=_header_params,
|
|
2226
|
+
body=_body_params,
|
|
2227
|
+
post_params=_form_params,
|
|
2228
|
+
files=_files,
|
|
2229
|
+
auth_settings=_auth_settings,
|
|
2230
|
+
collection_formats=_collection_formats,
|
|
2231
|
+
_host=_host,
|
|
2232
|
+
_request_auth=_request_auth
|
|
2233
|
+
)
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
@validate_call
|
|
2239
|
+
async def suggest22(
|
|
2240
|
+
self,
|
|
2241
|
+
project_id: Optional[StrictInt] = None,
|
|
2242
|
+
query: Optional[StrictStr] = None,
|
|
2243
|
+
exclude_project_id: Optional[List[StrictInt]] = None,
|
|
2244
|
+
id: Optional[List[StrictInt]] = None,
|
|
2245
|
+
ignore_id: Optional[List[StrictInt]] = None,
|
|
2246
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
2247
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
2248
|
+
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,
|
|
2249
|
+
_request_timeout: Union[
|
|
2250
|
+
None,
|
|
2251
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2252
|
+
Tuple[
|
|
2253
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2254
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2255
|
+
]
|
|
2256
|
+
] = None,
|
|
2257
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2258
|
+
_content_type: Optional[StrictStr] = None,
|
|
2259
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2260
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2261
|
+
) -> PageIdAndNameOnlyDto:
|
|
2262
|
+
"""suggest22
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
:param project_id:
|
|
2266
|
+
:type project_id: int
|
|
2267
|
+
:param query:
|
|
2268
|
+
:type query: str
|
|
2269
|
+
:param exclude_project_id:
|
|
2270
|
+
:type exclude_project_id: List[int]
|
|
2271
|
+
:param id:
|
|
2272
|
+
:type id: List[int]
|
|
2273
|
+
:param ignore_id:
|
|
2274
|
+
:type ignore_id: List[int]
|
|
2275
|
+
:param page: Zero-based page index (0..N)
|
|
2276
|
+
:type page: int
|
|
2277
|
+
:param size: The size of the page to be returned
|
|
2278
|
+
:type size: int
|
|
2279
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
2280
|
+
:type sort: List[str]
|
|
2281
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2282
|
+
number provided, it will be total request
|
|
2283
|
+
timeout. It can also be a pair (tuple) of
|
|
2284
|
+
(connection, read) timeouts.
|
|
2285
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2286
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2287
|
+
request; this effectively ignores the
|
|
2288
|
+
authentication in the spec for a single request.
|
|
2289
|
+
:type _request_auth: dict, optional
|
|
2290
|
+
:param _content_type: force content-type for the request.
|
|
2291
|
+
:type _content_type: str, Optional
|
|
2292
|
+
:param _headers: set to override the headers for a single
|
|
2293
|
+
request; this effectively ignores the headers
|
|
2294
|
+
in the spec for a single request.
|
|
2295
|
+
:type _headers: dict, optional
|
|
2296
|
+
:param _host_index: set to override the host_index for a single
|
|
2297
|
+
request; this effectively ignores the host_index
|
|
2298
|
+
in the spec for a single request.
|
|
2299
|
+
:type _host_index: int, optional
|
|
2300
|
+
:return: Returns the result object.
|
|
2301
|
+
""" # noqa: E501
|
|
2302
|
+
|
|
2303
|
+
_param = self._suggest22_serialize(
|
|
2304
|
+
project_id=project_id,
|
|
2305
|
+
query=query,
|
|
2306
|
+
exclude_project_id=exclude_project_id,
|
|
2307
|
+
id=id,
|
|
2308
|
+
ignore_id=ignore_id,
|
|
2309
|
+
page=page,
|
|
2310
|
+
size=size,
|
|
2311
|
+
sort=sort,
|
|
2312
|
+
_request_auth=_request_auth,
|
|
2313
|
+
_content_type=_content_type,
|
|
2314
|
+
_headers=_headers,
|
|
2315
|
+
_host_index=_host_index
|
|
2316
|
+
)
|
|
2317
|
+
|
|
2318
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2319
|
+
'200': "PageIdAndNameOnlyDto",
|
|
2320
|
+
}
|
|
2321
|
+
response_data = await self.api_client.call_api(
|
|
2322
|
+
*_param,
|
|
2323
|
+
_request_timeout=_request_timeout
|
|
2324
|
+
)
|
|
2325
|
+
await response_data.read()
|
|
2326
|
+
return self.api_client.response_deserialize(
|
|
2327
|
+
response_data=response_data,
|
|
2328
|
+
response_types_map=_response_types_map,
|
|
2329
|
+
).data
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
@validate_call
|
|
2333
|
+
async def suggest22_with_http_info(
|
|
2334
|
+
self,
|
|
2335
|
+
project_id: Optional[StrictInt] = None,
|
|
2336
|
+
query: Optional[StrictStr] = None,
|
|
2337
|
+
exclude_project_id: Optional[List[StrictInt]] = None,
|
|
2338
|
+
id: Optional[List[StrictInt]] = None,
|
|
2339
|
+
ignore_id: Optional[List[StrictInt]] = None,
|
|
2340
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
2341
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
2342
|
+
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,
|
|
2343
|
+
_request_timeout: Union[
|
|
2344
|
+
None,
|
|
2345
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2346
|
+
Tuple[
|
|
2347
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2348
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2349
|
+
]
|
|
2350
|
+
] = None,
|
|
2351
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2352
|
+
_content_type: Optional[StrictStr] = None,
|
|
2353
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2354
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2355
|
+
) -> ApiResponse[PageIdAndNameOnlyDto]:
|
|
2356
|
+
"""suggest22
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
:param project_id:
|
|
2360
|
+
:type project_id: int
|
|
2361
|
+
:param query:
|
|
2362
|
+
:type query: str
|
|
2363
|
+
:param exclude_project_id:
|
|
2364
|
+
:type exclude_project_id: List[int]
|
|
2365
|
+
:param id:
|
|
2366
|
+
:type id: List[int]
|
|
2367
|
+
:param ignore_id:
|
|
2368
|
+
:type ignore_id: List[int]
|
|
2369
|
+
:param page: Zero-based page index (0..N)
|
|
2370
|
+
:type page: int
|
|
2371
|
+
:param size: The size of the page to be returned
|
|
2372
|
+
:type size: int
|
|
2373
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
2374
|
+
:type sort: List[str]
|
|
2375
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2376
|
+
number provided, it will be total request
|
|
2377
|
+
timeout. It can also be a pair (tuple) of
|
|
2378
|
+
(connection, read) timeouts.
|
|
2379
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2380
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2381
|
+
request; this effectively ignores the
|
|
2382
|
+
authentication in the spec for a single request.
|
|
2383
|
+
:type _request_auth: dict, optional
|
|
2384
|
+
:param _content_type: force content-type for the request.
|
|
2385
|
+
:type _content_type: str, Optional
|
|
2386
|
+
:param _headers: set to override the headers for a single
|
|
2387
|
+
request; this effectively ignores the headers
|
|
2388
|
+
in the spec for a single request.
|
|
2389
|
+
:type _headers: dict, optional
|
|
2390
|
+
:param _host_index: set to override the host_index for a single
|
|
2391
|
+
request; this effectively ignores the host_index
|
|
2392
|
+
in the spec for a single request.
|
|
2393
|
+
:type _host_index: int, optional
|
|
2394
|
+
:return: Returns the result object.
|
|
2395
|
+
""" # noqa: E501
|
|
2396
|
+
|
|
2397
|
+
_param = self._suggest22_serialize(
|
|
2398
|
+
project_id=project_id,
|
|
2399
|
+
query=query,
|
|
2400
|
+
exclude_project_id=exclude_project_id,
|
|
2401
|
+
id=id,
|
|
2402
|
+
ignore_id=ignore_id,
|
|
2403
|
+
page=page,
|
|
2404
|
+
size=size,
|
|
2405
|
+
sort=sort,
|
|
2406
|
+
_request_auth=_request_auth,
|
|
2407
|
+
_content_type=_content_type,
|
|
2408
|
+
_headers=_headers,
|
|
2409
|
+
_host_index=_host_index
|
|
2410
|
+
)
|
|
2411
|
+
|
|
2412
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2413
|
+
'200': "PageIdAndNameOnlyDto",
|
|
2414
|
+
}
|
|
2415
|
+
response_data = await self.api_client.call_api(
|
|
2416
|
+
*_param,
|
|
2417
|
+
_request_timeout=_request_timeout
|
|
2418
|
+
)
|
|
2419
|
+
await response_data.read()
|
|
2420
|
+
return self.api_client.response_deserialize(
|
|
2421
|
+
response_data=response_data,
|
|
2422
|
+
response_types_map=_response_types_map,
|
|
2423
|
+
)
|
|
2424
|
+
|
|
2425
|
+
|
|
2426
|
+
@validate_call
|
|
2427
|
+
async def suggest22_without_preload_content(
|
|
2428
|
+
self,
|
|
2429
|
+
project_id: Optional[StrictInt] = None,
|
|
2430
|
+
query: Optional[StrictStr] = None,
|
|
2431
|
+
exclude_project_id: Optional[List[StrictInt]] = None,
|
|
2432
|
+
id: Optional[List[StrictInt]] = None,
|
|
2433
|
+
ignore_id: Optional[List[StrictInt]] = None,
|
|
2434
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
2435
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
2436
|
+
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,
|
|
2437
|
+
_request_timeout: Union[
|
|
2438
|
+
None,
|
|
2439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2440
|
+
Tuple[
|
|
2441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2443
|
+
]
|
|
2444
|
+
] = None,
|
|
2445
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2446
|
+
_content_type: Optional[StrictStr] = None,
|
|
2447
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2448
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2449
|
+
) -> RESTResponseType:
|
|
2450
|
+
"""suggest22
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
:param project_id:
|
|
2454
|
+
:type project_id: int
|
|
2455
|
+
:param query:
|
|
2456
|
+
:type query: str
|
|
2457
|
+
:param exclude_project_id:
|
|
2458
|
+
:type exclude_project_id: List[int]
|
|
2459
|
+
:param id:
|
|
2460
|
+
:type id: List[int]
|
|
2461
|
+
:param ignore_id:
|
|
2462
|
+
:type ignore_id: List[int]
|
|
2463
|
+
:param page: Zero-based page index (0..N)
|
|
2464
|
+
:type page: int
|
|
2465
|
+
:param size: The size of the page to be returned
|
|
2466
|
+
:type size: int
|
|
2467
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
2468
|
+
:type sort: List[str]
|
|
2469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2470
|
+
number provided, it will be total request
|
|
2471
|
+
timeout. It can also be a pair (tuple) of
|
|
2472
|
+
(connection, read) timeouts.
|
|
2473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2475
|
+
request; this effectively ignores the
|
|
2476
|
+
authentication in the spec for a single request.
|
|
2477
|
+
:type _request_auth: dict, optional
|
|
2478
|
+
:param _content_type: force content-type for the request.
|
|
2479
|
+
:type _content_type: str, Optional
|
|
2480
|
+
:param _headers: set to override the headers for a single
|
|
2481
|
+
request; this effectively ignores the headers
|
|
2482
|
+
in the spec for a single request.
|
|
2483
|
+
:type _headers: dict, optional
|
|
2484
|
+
:param _host_index: set to override the host_index for a single
|
|
2485
|
+
request; this effectively ignores the host_index
|
|
2486
|
+
in the spec for a single request.
|
|
2487
|
+
:type _host_index: int, optional
|
|
2488
|
+
:return: Returns the result object.
|
|
2489
|
+
""" # noqa: E501
|
|
2490
|
+
|
|
2491
|
+
_param = self._suggest22_serialize(
|
|
2492
|
+
project_id=project_id,
|
|
2493
|
+
query=query,
|
|
2494
|
+
exclude_project_id=exclude_project_id,
|
|
2495
|
+
id=id,
|
|
2496
|
+
ignore_id=ignore_id,
|
|
2497
|
+
page=page,
|
|
2498
|
+
size=size,
|
|
2499
|
+
sort=sort,
|
|
2500
|
+
_request_auth=_request_auth,
|
|
2501
|
+
_content_type=_content_type,
|
|
2502
|
+
_headers=_headers,
|
|
2503
|
+
_host_index=_host_index
|
|
2504
|
+
)
|
|
2505
|
+
|
|
2506
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2507
|
+
'200': "PageIdAndNameOnlyDto",
|
|
2508
|
+
}
|
|
2509
|
+
response_data = await self.api_client.call_api(
|
|
2510
|
+
*_param,
|
|
2511
|
+
_request_timeout=_request_timeout
|
|
2512
|
+
)
|
|
2513
|
+
return response_data.response
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
def _suggest22_serialize(
|
|
2517
|
+
self,
|
|
2518
|
+
project_id,
|
|
2519
|
+
query,
|
|
2520
|
+
exclude_project_id,
|
|
2521
|
+
id,
|
|
2522
|
+
ignore_id,
|
|
2523
|
+
page,
|
|
2524
|
+
size,
|
|
2525
|
+
sort,
|
|
2526
|
+
_request_auth,
|
|
2527
|
+
_content_type,
|
|
2528
|
+
_headers,
|
|
2529
|
+
_host_index,
|
|
2530
|
+
) -> RequestSerialized:
|
|
2531
|
+
|
|
2532
|
+
_host = None
|
|
2533
|
+
|
|
2534
|
+
_collection_formats: Dict[str, str] = {
|
|
2535
|
+
'excludeProjectId': 'multi',
|
|
2536
|
+
'id': 'multi',
|
|
2537
|
+
'ignoreId': 'multi',
|
|
2538
|
+
'sort': 'multi',
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
_path_params: Dict[str, str] = {}
|
|
2542
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2543
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2544
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2545
|
+
_files: Dict[
|
|
2546
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2547
|
+
] = {}
|
|
2548
|
+
_body_params: Optional[bytes] = None
|
|
2549
|
+
|
|
2550
|
+
# process the path parameters
|
|
2551
|
+
# process the query parameters
|
|
2552
|
+
if project_id is not None:
|
|
2553
|
+
|
|
2554
|
+
_query_params.append(('projectId', project_id))
|
|
2555
|
+
|
|
2556
|
+
if query is not None:
|
|
2557
|
+
|
|
2558
|
+
_query_params.append(('query', query))
|
|
2559
|
+
|
|
2560
|
+
if exclude_project_id is not None:
|
|
2561
|
+
|
|
2562
|
+
_query_params.append(('excludeProjectId', exclude_project_id))
|
|
2563
|
+
|
|
2564
|
+
if id is not None:
|
|
2565
|
+
|
|
2566
|
+
_query_params.append(('id', id))
|
|
2567
|
+
|
|
2568
|
+
if ignore_id is not None:
|
|
2569
|
+
|
|
2570
|
+
_query_params.append(('ignoreId', ignore_id))
|
|
2571
|
+
|
|
2572
|
+
if page is not None:
|
|
2573
|
+
|
|
2574
|
+
_query_params.append(('page', page))
|
|
2575
|
+
|
|
2576
|
+
if size is not None:
|
|
2577
|
+
|
|
2578
|
+
_query_params.append(('size', size))
|
|
2579
|
+
|
|
2580
|
+
if sort is not None:
|
|
2581
|
+
|
|
2582
|
+
_query_params.append(('sort', sort))
|
|
2583
|
+
|
|
2584
|
+
# process the header parameters
|
|
2585
|
+
# process the form parameters
|
|
2586
|
+
# process the body parameter
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
# set the HTTP header `Accept`
|
|
2590
|
+
if 'Accept' not in _header_params:
|
|
2591
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2592
|
+
[
|
|
2593
|
+
'*/*'
|
|
2594
|
+
]
|
|
2595
|
+
)
|
|
2596
|
+
|
|
2597
|
+
|
|
2598
|
+
# authentication setting
|
|
2599
|
+
_auth_settings: List[str] = [
|
|
2600
|
+
]
|
|
2601
|
+
|
|
2602
|
+
return self.api_client.param_serialize(
|
|
2603
|
+
method='GET',
|
|
2604
|
+
resource_path='/api/cf/suggest',
|
|
2605
|
+
path_params=_path_params,
|
|
2606
|
+
query_params=_query_params,
|
|
2607
|
+
header_params=_header_params,
|
|
2608
|
+
body=_body_params,
|
|
2609
|
+
post_params=_form_params,
|
|
2610
|
+
files=_files,
|
|
2611
|
+
auth_settings=_auth_settings,
|
|
2612
|
+
collection_formats=_collection_formats,
|
|
2613
|
+
_host=_host,
|
|
2614
|
+
_request_auth=_request_auth
|
|
2615
|
+
)
|
|
2616
|
+
|
|
2617
|
+
|