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