lucius-mcp 0.2.2__py3-none-any.whl → 0.3.0__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.2.2.dist-info → lucius_mcp-0.3.0.dist-info}/METADATA +8 -1
- {lucius_mcp-0.2.2.dist-info → lucius_mcp-0.3.0.dist-info}/RECORD +38 -19
- src/client/__init__.py +10 -0
- src/client/client.py +289 -8
- src/client/generated/README.md +11 -0
- src/client/generated/__init__.py +4 -0
- src/client/generated/api/__init__.py +2 -0
- src/client/generated/api/test_layer_controller_api.py +1746 -0
- src/client/generated/api/test_layer_schema_controller_api.py +1415 -0
- src/client/generated/docs/TestLayerControllerApi.md +407 -0
- src/client/generated/docs/TestLayerSchemaControllerApi.md +350 -0
- src/client/overridden/test_case_custom_fields_v2.py +254 -0
- src/services/__init__.py +8 -0
- src/services/launch_service.py +278 -0
- src/services/search_service.py +1 -1
- src/services/test_case_service.py +512 -92
- src/services/test_layer_service.py +416 -0
- src/tools/__init__.py +35 -0
- src/tools/create_test_case.py +38 -19
- src/tools/create_test_layer.py +33 -0
- src/tools/create_test_layer_schema.py +39 -0
- src/tools/delete_test_layer.py +31 -0
- src/tools/delete_test_layer_schema.py +31 -0
- src/tools/get_custom_fields.py +2 -1
- src/tools/get_test_case_custom_fields.py +34 -0
- src/tools/launches.py +112 -0
- src/tools/list_test_layer_schemas.py +43 -0
- src/tools/list_test_layers.py +38 -0
- src/tools/search.py +6 -3
- src/tools/test_layers.py +21 -0
- src/tools/update_test_case.py +48 -23
- src/tools/update_test_layer.py +33 -0
- src/tools/update_test_layer_schema.py +40 -0
- src/utils/__init__.py +4 -0
- src/utils/links.py +13 -0
- {lucius_mcp-0.2.2.dist-info → lucius_mcp-0.3.0.dist-info}/WHEEL +0 -0
- {lucius_mcp-0.2.2.dist-info → lucius_mcp-0.3.0.dist-info}/entry_points.txt +0 -0
- {lucius_mcp-0.2.2.dist-info → lucius_mcp-0.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
allure-testops-service
|
|
5
|
+
|
|
6
|
+
Branch **HEAD** Commit **623f6ed302ba4b651cf9040faca4635af2d93b7c**
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 25.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from src.client.generated.models.page_test_layer_schema_dto import PageTestLayerSchemaDto
|
|
23
|
+
from src.client.generated.models.test_layer_schema_create_dto import TestLayerSchemaCreateDto
|
|
24
|
+
from src.client.generated.models.test_layer_schema_dto import TestLayerSchemaDto
|
|
25
|
+
from src.client.generated.models.test_layer_schema_patch_dto import TestLayerSchemaPatchDto
|
|
26
|
+
|
|
27
|
+
from src.client.generated.api_client import ApiClient, RequestSerialized
|
|
28
|
+
from src.client.generated.api_response import ApiResponse
|
|
29
|
+
from src.client.generated.rest import RESTResponseType
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class TestLayerSchemaControllerApi:
|
|
33
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
34
|
+
Ref: https://openapi-generator.tech
|
|
35
|
+
|
|
36
|
+
Do not edit the class manually.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def __init__(self, api_client=None) -> None:
|
|
40
|
+
if api_client is None:
|
|
41
|
+
api_client = ApiClient.get_default()
|
|
42
|
+
self.api_client = api_client
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@validate_call
|
|
46
|
+
async def create8(
|
|
47
|
+
self,
|
|
48
|
+
test_layer_schema_create_dto: TestLayerSchemaCreateDto,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> TestLayerSchemaDto:
|
|
62
|
+
"""Create a new test layer schema
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param test_layer_schema_create_dto: (required)
|
|
66
|
+
:type test_layer_schema_create_dto: TestLayerSchemaCreateDto
|
|
67
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
68
|
+
number provided, it will be total request
|
|
69
|
+
timeout. It can also be a pair (tuple) of
|
|
70
|
+
(connection, read) timeouts.
|
|
71
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
72
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
73
|
+
request; this effectively ignores the
|
|
74
|
+
authentication in the spec for a single request.
|
|
75
|
+
:type _request_auth: dict, optional
|
|
76
|
+
:param _content_type: force content-type for the request.
|
|
77
|
+
:type _content_type: str, Optional
|
|
78
|
+
:param _headers: set to override the headers for a single
|
|
79
|
+
request; this effectively ignores the headers
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _headers: dict, optional
|
|
82
|
+
:param _host_index: set to override the host_index for a single
|
|
83
|
+
request; this effectively ignores the host_index
|
|
84
|
+
in the spec for a single request.
|
|
85
|
+
:type _host_index: int, optional
|
|
86
|
+
:return: Returns the result object.
|
|
87
|
+
""" # noqa: E501
|
|
88
|
+
|
|
89
|
+
_param = self._create8_serialize(
|
|
90
|
+
test_layer_schema_create_dto=test_layer_schema_create_dto,
|
|
91
|
+
_request_auth=_request_auth,
|
|
92
|
+
_content_type=_content_type,
|
|
93
|
+
_headers=_headers,
|
|
94
|
+
_host_index=_host_index
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
|
+
'200': "TestLayerSchemaDto",
|
|
99
|
+
}
|
|
100
|
+
response_data = await self.api_client.call_api(
|
|
101
|
+
*_param,
|
|
102
|
+
_request_timeout=_request_timeout
|
|
103
|
+
)
|
|
104
|
+
await response_data.read()
|
|
105
|
+
return self.api_client.response_deserialize(
|
|
106
|
+
response_data=response_data,
|
|
107
|
+
response_types_map=_response_types_map,
|
|
108
|
+
).data
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@validate_call
|
|
112
|
+
async def create8_with_http_info(
|
|
113
|
+
self,
|
|
114
|
+
test_layer_schema_create_dto: TestLayerSchemaCreateDto,
|
|
115
|
+
_request_timeout: Union[
|
|
116
|
+
None,
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Tuple[
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
121
|
+
]
|
|
122
|
+
] = None,
|
|
123
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_content_type: Optional[StrictStr] = None,
|
|
125
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
127
|
+
) -> ApiResponse[TestLayerSchemaDto]:
|
|
128
|
+
"""Create a new test layer schema
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param test_layer_schema_create_dto: (required)
|
|
132
|
+
:type test_layer_schema_create_dto: TestLayerSchemaCreateDto
|
|
133
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
134
|
+
number provided, it will be total request
|
|
135
|
+
timeout. It can also be a pair (tuple) of
|
|
136
|
+
(connection, read) timeouts.
|
|
137
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the
|
|
140
|
+
authentication in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:param _content_type: force content-type for the request.
|
|
143
|
+
:type _content_type: str, Optional
|
|
144
|
+
:param _headers: set to override the headers for a single
|
|
145
|
+
request; this effectively ignores the headers
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _headers: dict, optional
|
|
148
|
+
:param _host_index: set to override the host_index for a single
|
|
149
|
+
request; this effectively ignores the host_index
|
|
150
|
+
in the spec for a single request.
|
|
151
|
+
:type _host_index: int, optional
|
|
152
|
+
:return: Returns the result object.
|
|
153
|
+
""" # noqa: E501
|
|
154
|
+
|
|
155
|
+
_param = self._create8_serialize(
|
|
156
|
+
test_layer_schema_create_dto=test_layer_schema_create_dto,
|
|
157
|
+
_request_auth=_request_auth,
|
|
158
|
+
_content_type=_content_type,
|
|
159
|
+
_headers=_headers,
|
|
160
|
+
_host_index=_host_index
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
164
|
+
'200': "TestLayerSchemaDto",
|
|
165
|
+
}
|
|
166
|
+
response_data = await self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
170
|
+
await response_data.read()
|
|
171
|
+
return self.api_client.response_deserialize(
|
|
172
|
+
response_data=response_data,
|
|
173
|
+
response_types_map=_response_types_map,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@validate_call
|
|
178
|
+
async def create8_without_preload_content(
|
|
179
|
+
self,
|
|
180
|
+
test_layer_schema_create_dto: TestLayerSchemaCreateDto,
|
|
181
|
+
_request_timeout: Union[
|
|
182
|
+
None,
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Tuple[
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
187
|
+
]
|
|
188
|
+
] = None,
|
|
189
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_content_type: Optional[StrictStr] = None,
|
|
191
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
193
|
+
) -> RESTResponseType:
|
|
194
|
+
"""Create a new test layer schema
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param test_layer_schema_create_dto: (required)
|
|
198
|
+
:type test_layer_schema_create_dto: TestLayerSchemaCreateDto
|
|
199
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
200
|
+
number provided, it will be total request
|
|
201
|
+
timeout. It can also be a pair (tuple) of
|
|
202
|
+
(connection, read) timeouts.
|
|
203
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
204
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
205
|
+
request; this effectively ignores the
|
|
206
|
+
authentication in the spec for a single request.
|
|
207
|
+
:type _request_auth: dict, optional
|
|
208
|
+
:param _content_type: force content-type for the request.
|
|
209
|
+
:type _content_type: str, Optional
|
|
210
|
+
:param _headers: set to override the headers for a single
|
|
211
|
+
request; this effectively ignores the headers
|
|
212
|
+
in the spec for a single request.
|
|
213
|
+
:type _headers: dict, optional
|
|
214
|
+
:param _host_index: set to override the host_index for a single
|
|
215
|
+
request; this effectively ignores the host_index
|
|
216
|
+
in the spec for a single request.
|
|
217
|
+
:type _host_index: int, optional
|
|
218
|
+
:return: Returns the result object.
|
|
219
|
+
""" # noqa: E501
|
|
220
|
+
|
|
221
|
+
_param = self._create8_serialize(
|
|
222
|
+
test_layer_schema_create_dto=test_layer_schema_create_dto,
|
|
223
|
+
_request_auth=_request_auth,
|
|
224
|
+
_content_type=_content_type,
|
|
225
|
+
_headers=_headers,
|
|
226
|
+
_host_index=_host_index
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
230
|
+
'200': "TestLayerSchemaDto",
|
|
231
|
+
}
|
|
232
|
+
response_data = await self.api_client.call_api(
|
|
233
|
+
*_param,
|
|
234
|
+
_request_timeout=_request_timeout
|
|
235
|
+
)
|
|
236
|
+
return response_data.response
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _create8_serialize(
|
|
240
|
+
self,
|
|
241
|
+
test_layer_schema_create_dto,
|
|
242
|
+
_request_auth,
|
|
243
|
+
_content_type,
|
|
244
|
+
_headers,
|
|
245
|
+
_host_index,
|
|
246
|
+
) -> RequestSerialized:
|
|
247
|
+
|
|
248
|
+
_host = None
|
|
249
|
+
|
|
250
|
+
_collection_formats: Dict[str, str] = {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
_path_params: Dict[str, str] = {}
|
|
254
|
+
_query_params: List[Tuple[str, str]] = []
|
|
255
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
256
|
+
_form_params: List[Tuple[str, str]] = []
|
|
257
|
+
_files: Dict[
|
|
258
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
259
|
+
] = {}
|
|
260
|
+
_body_params: Optional[bytes] = None
|
|
261
|
+
|
|
262
|
+
# process the path parameters
|
|
263
|
+
# process the query parameters
|
|
264
|
+
# process the header parameters
|
|
265
|
+
# process the form parameters
|
|
266
|
+
# process the body parameter
|
|
267
|
+
if test_layer_schema_create_dto is not None:
|
|
268
|
+
_body_params = test_layer_schema_create_dto
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
# set the HTTP header `Accept`
|
|
272
|
+
if 'Accept' not in _header_params:
|
|
273
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
274
|
+
[
|
|
275
|
+
'*/*'
|
|
276
|
+
]
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
# set the HTTP header `Content-Type`
|
|
280
|
+
if _content_type:
|
|
281
|
+
_header_params['Content-Type'] = _content_type
|
|
282
|
+
else:
|
|
283
|
+
_default_content_type = (
|
|
284
|
+
self.api_client.select_header_content_type(
|
|
285
|
+
[
|
|
286
|
+
'application/json'
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
)
|
|
290
|
+
if _default_content_type is not None:
|
|
291
|
+
_header_params['Content-Type'] = _default_content_type
|
|
292
|
+
|
|
293
|
+
# authentication setting
|
|
294
|
+
_auth_settings: List[str] = [
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
return self.api_client.param_serialize(
|
|
298
|
+
method='POST',
|
|
299
|
+
resource_path='/api/testlayerschema',
|
|
300
|
+
path_params=_path_params,
|
|
301
|
+
query_params=_query_params,
|
|
302
|
+
header_params=_header_params,
|
|
303
|
+
body=_body_params,
|
|
304
|
+
post_params=_form_params,
|
|
305
|
+
files=_files,
|
|
306
|
+
auth_settings=_auth_settings,
|
|
307
|
+
collection_formats=_collection_formats,
|
|
308
|
+
_host=_host,
|
|
309
|
+
_request_auth=_request_auth
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
@validate_call
|
|
316
|
+
async def delete8(
|
|
317
|
+
self,
|
|
318
|
+
id: StrictInt,
|
|
319
|
+
_request_timeout: Union[
|
|
320
|
+
None,
|
|
321
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
322
|
+
Tuple[
|
|
323
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
325
|
+
]
|
|
326
|
+
] = None,
|
|
327
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
328
|
+
_content_type: Optional[StrictStr] = None,
|
|
329
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
331
|
+
) -> None:
|
|
332
|
+
"""Delete test layer schema by id
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
:param id: (required)
|
|
336
|
+
:type id: int
|
|
337
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
338
|
+
number provided, it will be total request
|
|
339
|
+
timeout. It can also be a pair (tuple) of
|
|
340
|
+
(connection, read) timeouts.
|
|
341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
343
|
+
request; this effectively ignores the
|
|
344
|
+
authentication in the spec for a single request.
|
|
345
|
+
:type _request_auth: dict, optional
|
|
346
|
+
:param _content_type: force content-type for the request.
|
|
347
|
+
:type _content_type: str, Optional
|
|
348
|
+
:param _headers: set to override the headers for a single
|
|
349
|
+
request; this effectively ignores the headers
|
|
350
|
+
in the spec for a single request.
|
|
351
|
+
:type _headers: dict, optional
|
|
352
|
+
:param _host_index: set to override the host_index for a single
|
|
353
|
+
request; this effectively ignores the host_index
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _host_index: int, optional
|
|
356
|
+
:return: Returns the result object.
|
|
357
|
+
""" # noqa: E501
|
|
358
|
+
|
|
359
|
+
_param = self._delete8_serialize(
|
|
360
|
+
id=id,
|
|
361
|
+
_request_auth=_request_auth,
|
|
362
|
+
_content_type=_content_type,
|
|
363
|
+
_headers=_headers,
|
|
364
|
+
_host_index=_host_index
|
|
365
|
+
)
|
|
366
|
+
|
|
367
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
368
|
+
'204': None,
|
|
369
|
+
}
|
|
370
|
+
response_data = await self.api_client.call_api(
|
|
371
|
+
*_param,
|
|
372
|
+
_request_timeout=_request_timeout
|
|
373
|
+
)
|
|
374
|
+
await response_data.read()
|
|
375
|
+
return self.api_client.response_deserialize(
|
|
376
|
+
response_data=response_data,
|
|
377
|
+
response_types_map=_response_types_map,
|
|
378
|
+
).data
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
@validate_call
|
|
382
|
+
async def delete8_with_http_info(
|
|
383
|
+
self,
|
|
384
|
+
id: StrictInt,
|
|
385
|
+
_request_timeout: Union[
|
|
386
|
+
None,
|
|
387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
388
|
+
Tuple[
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
390
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
391
|
+
]
|
|
392
|
+
] = None,
|
|
393
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
394
|
+
_content_type: Optional[StrictStr] = None,
|
|
395
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
396
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
397
|
+
) -> ApiResponse[None]:
|
|
398
|
+
"""Delete test layer schema by id
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
:param id: (required)
|
|
402
|
+
:type id: int
|
|
403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
404
|
+
number provided, it will be total request
|
|
405
|
+
timeout. It can also be a pair (tuple) of
|
|
406
|
+
(connection, read) timeouts.
|
|
407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
409
|
+
request; this effectively ignores the
|
|
410
|
+
authentication in the spec for a single request.
|
|
411
|
+
:type _request_auth: dict, optional
|
|
412
|
+
:param _content_type: force content-type for the request.
|
|
413
|
+
:type _content_type: str, Optional
|
|
414
|
+
:param _headers: set to override the headers for a single
|
|
415
|
+
request; this effectively ignores the headers
|
|
416
|
+
in the spec for a single request.
|
|
417
|
+
:type _headers: dict, optional
|
|
418
|
+
:param _host_index: set to override the host_index for a single
|
|
419
|
+
request; this effectively ignores the host_index
|
|
420
|
+
in the spec for a single request.
|
|
421
|
+
:type _host_index: int, optional
|
|
422
|
+
:return: Returns the result object.
|
|
423
|
+
""" # noqa: E501
|
|
424
|
+
|
|
425
|
+
_param = self._delete8_serialize(
|
|
426
|
+
id=id,
|
|
427
|
+
_request_auth=_request_auth,
|
|
428
|
+
_content_type=_content_type,
|
|
429
|
+
_headers=_headers,
|
|
430
|
+
_host_index=_host_index
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
434
|
+
'204': None,
|
|
435
|
+
}
|
|
436
|
+
response_data = await self.api_client.call_api(
|
|
437
|
+
*_param,
|
|
438
|
+
_request_timeout=_request_timeout
|
|
439
|
+
)
|
|
440
|
+
await response_data.read()
|
|
441
|
+
return self.api_client.response_deserialize(
|
|
442
|
+
response_data=response_data,
|
|
443
|
+
response_types_map=_response_types_map,
|
|
444
|
+
)
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
@validate_call
|
|
448
|
+
async def delete8_without_preload_content(
|
|
449
|
+
self,
|
|
450
|
+
id: StrictInt,
|
|
451
|
+
_request_timeout: Union[
|
|
452
|
+
None,
|
|
453
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
454
|
+
Tuple[
|
|
455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
456
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
457
|
+
]
|
|
458
|
+
] = None,
|
|
459
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
460
|
+
_content_type: Optional[StrictStr] = None,
|
|
461
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
462
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
463
|
+
) -> RESTResponseType:
|
|
464
|
+
"""Delete test layer schema by id
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
:param id: (required)
|
|
468
|
+
:type id: int
|
|
469
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
470
|
+
number provided, it will be total request
|
|
471
|
+
timeout. It can also be a pair (tuple) of
|
|
472
|
+
(connection, read) timeouts.
|
|
473
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
474
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
475
|
+
request; this effectively ignores the
|
|
476
|
+
authentication in the spec for a single request.
|
|
477
|
+
:type _request_auth: dict, optional
|
|
478
|
+
:param _content_type: force content-type for the request.
|
|
479
|
+
:type _content_type: str, Optional
|
|
480
|
+
:param _headers: set to override the headers for a single
|
|
481
|
+
request; this effectively ignores the headers
|
|
482
|
+
in the spec for a single request.
|
|
483
|
+
:type _headers: dict, optional
|
|
484
|
+
:param _host_index: set to override the host_index for a single
|
|
485
|
+
request; this effectively ignores the host_index
|
|
486
|
+
in the spec for a single request.
|
|
487
|
+
:type _host_index: int, optional
|
|
488
|
+
:return: Returns the result object.
|
|
489
|
+
""" # noqa: E501
|
|
490
|
+
|
|
491
|
+
_param = self._delete8_serialize(
|
|
492
|
+
id=id,
|
|
493
|
+
_request_auth=_request_auth,
|
|
494
|
+
_content_type=_content_type,
|
|
495
|
+
_headers=_headers,
|
|
496
|
+
_host_index=_host_index
|
|
497
|
+
)
|
|
498
|
+
|
|
499
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
500
|
+
'204': None,
|
|
501
|
+
}
|
|
502
|
+
response_data = await self.api_client.call_api(
|
|
503
|
+
*_param,
|
|
504
|
+
_request_timeout=_request_timeout
|
|
505
|
+
)
|
|
506
|
+
return response_data.response
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
def _delete8_serialize(
|
|
510
|
+
self,
|
|
511
|
+
id,
|
|
512
|
+
_request_auth,
|
|
513
|
+
_content_type,
|
|
514
|
+
_headers,
|
|
515
|
+
_host_index,
|
|
516
|
+
) -> RequestSerialized:
|
|
517
|
+
|
|
518
|
+
_host = None
|
|
519
|
+
|
|
520
|
+
_collection_formats: Dict[str, str] = {
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
_path_params: Dict[str, str] = {}
|
|
524
|
+
_query_params: List[Tuple[str, str]] = []
|
|
525
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
526
|
+
_form_params: List[Tuple[str, str]] = []
|
|
527
|
+
_files: Dict[
|
|
528
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
529
|
+
] = {}
|
|
530
|
+
_body_params: Optional[bytes] = None
|
|
531
|
+
|
|
532
|
+
# process the path parameters
|
|
533
|
+
if id is not None:
|
|
534
|
+
_path_params['id'] = id
|
|
535
|
+
# process the query parameters
|
|
536
|
+
# process the header parameters
|
|
537
|
+
# process the form parameters
|
|
538
|
+
# process the body parameter
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
# authentication setting
|
|
544
|
+
_auth_settings: List[str] = [
|
|
545
|
+
]
|
|
546
|
+
|
|
547
|
+
return self.api_client.param_serialize(
|
|
548
|
+
method='DELETE',
|
|
549
|
+
resource_path='/api/testlayerschema/{id}',
|
|
550
|
+
path_params=_path_params,
|
|
551
|
+
query_params=_query_params,
|
|
552
|
+
header_params=_header_params,
|
|
553
|
+
body=_body_params,
|
|
554
|
+
post_params=_form_params,
|
|
555
|
+
files=_files,
|
|
556
|
+
auth_settings=_auth_settings,
|
|
557
|
+
collection_formats=_collection_formats,
|
|
558
|
+
_host=_host,
|
|
559
|
+
_request_auth=_request_auth
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
@validate_call
|
|
566
|
+
async def find_all6(
|
|
567
|
+
self,
|
|
568
|
+
project_id: StrictInt,
|
|
569
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
570
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
571
|
+
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,
|
|
572
|
+
_request_timeout: Union[
|
|
573
|
+
None,
|
|
574
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
575
|
+
Tuple[
|
|
576
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
577
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
578
|
+
]
|
|
579
|
+
] = None,
|
|
580
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
581
|
+
_content_type: Optional[StrictStr] = None,
|
|
582
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
583
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
584
|
+
) -> PageTestLayerSchemaDto:
|
|
585
|
+
"""Find all test layer schemas for given project
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
:param project_id: (required)
|
|
589
|
+
:type project_id: int
|
|
590
|
+
:param page: Zero-based page index (0..N)
|
|
591
|
+
:type page: int
|
|
592
|
+
:param size: The size of the page to be returned
|
|
593
|
+
:type size: int
|
|
594
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
595
|
+
:type sort: List[str]
|
|
596
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
597
|
+
number provided, it will be total request
|
|
598
|
+
timeout. It can also be a pair (tuple) of
|
|
599
|
+
(connection, read) timeouts.
|
|
600
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
601
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
602
|
+
request; this effectively ignores the
|
|
603
|
+
authentication in the spec for a single request.
|
|
604
|
+
:type _request_auth: dict, optional
|
|
605
|
+
:param _content_type: force content-type for the request.
|
|
606
|
+
:type _content_type: str, Optional
|
|
607
|
+
:param _headers: set to override the headers for a single
|
|
608
|
+
request; this effectively ignores the headers
|
|
609
|
+
in the spec for a single request.
|
|
610
|
+
:type _headers: dict, optional
|
|
611
|
+
:param _host_index: set to override the host_index for a single
|
|
612
|
+
request; this effectively ignores the host_index
|
|
613
|
+
in the spec for a single request.
|
|
614
|
+
:type _host_index: int, optional
|
|
615
|
+
:return: Returns the result object.
|
|
616
|
+
""" # noqa: E501
|
|
617
|
+
|
|
618
|
+
_param = self._find_all6_serialize(
|
|
619
|
+
project_id=project_id,
|
|
620
|
+
page=page,
|
|
621
|
+
size=size,
|
|
622
|
+
sort=sort,
|
|
623
|
+
_request_auth=_request_auth,
|
|
624
|
+
_content_type=_content_type,
|
|
625
|
+
_headers=_headers,
|
|
626
|
+
_host_index=_host_index
|
|
627
|
+
)
|
|
628
|
+
|
|
629
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
630
|
+
'200': "PageTestLayerSchemaDto",
|
|
631
|
+
}
|
|
632
|
+
response_data = await self.api_client.call_api(
|
|
633
|
+
*_param,
|
|
634
|
+
_request_timeout=_request_timeout
|
|
635
|
+
)
|
|
636
|
+
await response_data.read()
|
|
637
|
+
return self.api_client.response_deserialize(
|
|
638
|
+
response_data=response_data,
|
|
639
|
+
response_types_map=_response_types_map,
|
|
640
|
+
).data
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
@validate_call
|
|
644
|
+
async def find_all6_with_http_info(
|
|
645
|
+
self,
|
|
646
|
+
project_id: StrictInt,
|
|
647
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
648
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
649
|
+
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,
|
|
650
|
+
_request_timeout: Union[
|
|
651
|
+
None,
|
|
652
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
653
|
+
Tuple[
|
|
654
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
655
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
656
|
+
]
|
|
657
|
+
] = None,
|
|
658
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
659
|
+
_content_type: Optional[StrictStr] = None,
|
|
660
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
661
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
662
|
+
) -> ApiResponse[PageTestLayerSchemaDto]:
|
|
663
|
+
"""Find all test layer schemas for given project
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
:param project_id: (required)
|
|
667
|
+
:type project_id: int
|
|
668
|
+
:param page: Zero-based page index (0..N)
|
|
669
|
+
:type page: int
|
|
670
|
+
:param size: The size of the page to be returned
|
|
671
|
+
:type size: int
|
|
672
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
673
|
+
:type sort: List[str]
|
|
674
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
675
|
+
number provided, it will be total request
|
|
676
|
+
timeout. It can also be a pair (tuple) of
|
|
677
|
+
(connection, read) timeouts.
|
|
678
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
679
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
680
|
+
request; this effectively ignores the
|
|
681
|
+
authentication in the spec for a single request.
|
|
682
|
+
:type _request_auth: dict, optional
|
|
683
|
+
:param _content_type: force content-type for the request.
|
|
684
|
+
:type _content_type: str, Optional
|
|
685
|
+
:param _headers: set to override the headers for a single
|
|
686
|
+
request; this effectively ignores the headers
|
|
687
|
+
in the spec for a single request.
|
|
688
|
+
:type _headers: dict, optional
|
|
689
|
+
:param _host_index: set to override the host_index for a single
|
|
690
|
+
request; this effectively ignores the host_index
|
|
691
|
+
in the spec for a single request.
|
|
692
|
+
:type _host_index: int, optional
|
|
693
|
+
:return: Returns the result object.
|
|
694
|
+
""" # noqa: E501
|
|
695
|
+
|
|
696
|
+
_param = self._find_all6_serialize(
|
|
697
|
+
project_id=project_id,
|
|
698
|
+
page=page,
|
|
699
|
+
size=size,
|
|
700
|
+
sort=sort,
|
|
701
|
+
_request_auth=_request_auth,
|
|
702
|
+
_content_type=_content_type,
|
|
703
|
+
_headers=_headers,
|
|
704
|
+
_host_index=_host_index
|
|
705
|
+
)
|
|
706
|
+
|
|
707
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
708
|
+
'200': "PageTestLayerSchemaDto",
|
|
709
|
+
}
|
|
710
|
+
response_data = await self.api_client.call_api(
|
|
711
|
+
*_param,
|
|
712
|
+
_request_timeout=_request_timeout
|
|
713
|
+
)
|
|
714
|
+
await response_data.read()
|
|
715
|
+
return self.api_client.response_deserialize(
|
|
716
|
+
response_data=response_data,
|
|
717
|
+
response_types_map=_response_types_map,
|
|
718
|
+
)
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
@validate_call
|
|
722
|
+
async def find_all6_without_preload_content(
|
|
723
|
+
self,
|
|
724
|
+
project_id: StrictInt,
|
|
725
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index (0..N)")] = None,
|
|
726
|
+
size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The size of the page to be returned")] = None,
|
|
727
|
+
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,
|
|
728
|
+
_request_timeout: Union[
|
|
729
|
+
None,
|
|
730
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
731
|
+
Tuple[
|
|
732
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
733
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
734
|
+
]
|
|
735
|
+
] = None,
|
|
736
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
737
|
+
_content_type: Optional[StrictStr] = None,
|
|
738
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
739
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
740
|
+
) -> RESTResponseType:
|
|
741
|
+
"""Find all test layer schemas for given project
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
:param project_id: (required)
|
|
745
|
+
:type project_id: int
|
|
746
|
+
:param page: Zero-based page index (0..N)
|
|
747
|
+
:type page: int
|
|
748
|
+
:param size: The size of the page to be returned
|
|
749
|
+
:type size: int
|
|
750
|
+
:param sort: Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
751
|
+
:type sort: List[str]
|
|
752
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
753
|
+
number provided, it will be total request
|
|
754
|
+
timeout. It can also be a pair (tuple) of
|
|
755
|
+
(connection, read) timeouts.
|
|
756
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
757
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
758
|
+
request; this effectively ignores the
|
|
759
|
+
authentication in the spec for a single request.
|
|
760
|
+
:type _request_auth: dict, optional
|
|
761
|
+
:param _content_type: force content-type for the request.
|
|
762
|
+
:type _content_type: str, Optional
|
|
763
|
+
:param _headers: set to override the headers for a single
|
|
764
|
+
request; this effectively ignores the headers
|
|
765
|
+
in the spec for a single request.
|
|
766
|
+
:type _headers: dict, optional
|
|
767
|
+
:param _host_index: set to override the host_index for a single
|
|
768
|
+
request; this effectively ignores the host_index
|
|
769
|
+
in the spec for a single request.
|
|
770
|
+
:type _host_index: int, optional
|
|
771
|
+
:return: Returns the result object.
|
|
772
|
+
""" # noqa: E501
|
|
773
|
+
|
|
774
|
+
_param = self._find_all6_serialize(
|
|
775
|
+
project_id=project_id,
|
|
776
|
+
page=page,
|
|
777
|
+
size=size,
|
|
778
|
+
sort=sort,
|
|
779
|
+
_request_auth=_request_auth,
|
|
780
|
+
_content_type=_content_type,
|
|
781
|
+
_headers=_headers,
|
|
782
|
+
_host_index=_host_index
|
|
783
|
+
)
|
|
784
|
+
|
|
785
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
786
|
+
'200': "PageTestLayerSchemaDto",
|
|
787
|
+
}
|
|
788
|
+
response_data = await self.api_client.call_api(
|
|
789
|
+
*_param,
|
|
790
|
+
_request_timeout=_request_timeout
|
|
791
|
+
)
|
|
792
|
+
return response_data.response
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
def _find_all6_serialize(
|
|
796
|
+
self,
|
|
797
|
+
project_id,
|
|
798
|
+
page,
|
|
799
|
+
size,
|
|
800
|
+
sort,
|
|
801
|
+
_request_auth,
|
|
802
|
+
_content_type,
|
|
803
|
+
_headers,
|
|
804
|
+
_host_index,
|
|
805
|
+
) -> RequestSerialized:
|
|
806
|
+
|
|
807
|
+
_host = None
|
|
808
|
+
|
|
809
|
+
_collection_formats: Dict[str, str] = {
|
|
810
|
+
'sort': 'multi',
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
_path_params: Dict[str, str] = {}
|
|
814
|
+
_query_params: List[Tuple[str, str]] = []
|
|
815
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
816
|
+
_form_params: List[Tuple[str, str]] = []
|
|
817
|
+
_files: Dict[
|
|
818
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
819
|
+
] = {}
|
|
820
|
+
_body_params: Optional[bytes] = None
|
|
821
|
+
|
|
822
|
+
# process the path parameters
|
|
823
|
+
# process the query parameters
|
|
824
|
+
if project_id is not None:
|
|
825
|
+
|
|
826
|
+
_query_params.append(('projectId', project_id))
|
|
827
|
+
|
|
828
|
+
if page is not None:
|
|
829
|
+
|
|
830
|
+
_query_params.append(('page', page))
|
|
831
|
+
|
|
832
|
+
if size is not None:
|
|
833
|
+
|
|
834
|
+
_query_params.append(('size', size))
|
|
835
|
+
|
|
836
|
+
if sort is not None:
|
|
837
|
+
|
|
838
|
+
_query_params.append(('sort', sort))
|
|
839
|
+
|
|
840
|
+
# process the header parameters
|
|
841
|
+
# process the form parameters
|
|
842
|
+
# process the body parameter
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
# set the HTTP header `Accept`
|
|
846
|
+
if 'Accept' not in _header_params:
|
|
847
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
848
|
+
[
|
|
849
|
+
'*/*'
|
|
850
|
+
]
|
|
851
|
+
)
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
# authentication setting
|
|
855
|
+
_auth_settings: List[str] = [
|
|
856
|
+
]
|
|
857
|
+
|
|
858
|
+
return self.api_client.param_serialize(
|
|
859
|
+
method='GET',
|
|
860
|
+
resource_path='/api/testlayerschema',
|
|
861
|
+
path_params=_path_params,
|
|
862
|
+
query_params=_query_params,
|
|
863
|
+
header_params=_header_params,
|
|
864
|
+
body=_body_params,
|
|
865
|
+
post_params=_form_params,
|
|
866
|
+
files=_files,
|
|
867
|
+
auth_settings=_auth_settings,
|
|
868
|
+
collection_formats=_collection_formats,
|
|
869
|
+
_host=_host,
|
|
870
|
+
_request_auth=_request_auth
|
|
871
|
+
)
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
@validate_call
|
|
877
|
+
async def find_one7(
|
|
878
|
+
self,
|
|
879
|
+
id: StrictInt,
|
|
880
|
+
_request_timeout: Union[
|
|
881
|
+
None,
|
|
882
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
883
|
+
Tuple[
|
|
884
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
885
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
886
|
+
]
|
|
887
|
+
] = None,
|
|
888
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
889
|
+
_content_type: Optional[StrictStr] = None,
|
|
890
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
891
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
892
|
+
) -> TestLayerSchemaDto:
|
|
893
|
+
"""Find test layer schema by id
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
:param id: (required)
|
|
897
|
+
:type id: int
|
|
898
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
899
|
+
number provided, it will be total request
|
|
900
|
+
timeout. It can also be a pair (tuple) of
|
|
901
|
+
(connection, read) timeouts.
|
|
902
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
903
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
904
|
+
request; this effectively ignores the
|
|
905
|
+
authentication in the spec for a single request.
|
|
906
|
+
:type _request_auth: dict, optional
|
|
907
|
+
:param _content_type: force content-type for the request.
|
|
908
|
+
:type _content_type: str, Optional
|
|
909
|
+
:param _headers: set to override the headers for a single
|
|
910
|
+
request; this effectively ignores the headers
|
|
911
|
+
in the spec for a single request.
|
|
912
|
+
:type _headers: dict, optional
|
|
913
|
+
:param _host_index: set to override the host_index for a single
|
|
914
|
+
request; this effectively ignores the host_index
|
|
915
|
+
in the spec for a single request.
|
|
916
|
+
:type _host_index: int, optional
|
|
917
|
+
:return: Returns the result object.
|
|
918
|
+
""" # noqa: E501
|
|
919
|
+
|
|
920
|
+
_param = self._find_one7_serialize(
|
|
921
|
+
id=id,
|
|
922
|
+
_request_auth=_request_auth,
|
|
923
|
+
_content_type=_content_type,
|
|
924
|
+
_headers=_headers,
|
|
925
|
+
_host_index=_host_index
|
|
926
|
+
)
|
|
927
|
+
|
|
928
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
929
|
+
'200': "TestLayerSchemaDto",
|
|
930
|
+
}
|
|
931
|
+
response_data = await self.api_client.call_api(
|
|
932
|
+
*_param,
|
|
933
|
+
_request_timeout=_request_timeout
|
|
934
|
+
)
|
|
935
|
+
await response_data.read()
|
|
936
|
+
return self.api_client.response_deserialize(
|
|
937
|
+
response_data=response_data,
|
|
938
|
+
response_types_map=_response_types_map,
|
|
939
|
+
).data
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
@validate_call
|
|
943
|
+
async def find_one7_with_http_info(
|
|
944
|
+
self,
|
|
945
|
+
id: StrictInt,
|
|
946
|
+
_request_timeout: Union[
|
|
947
|
+
None,
|
|
948
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
949
|
+
Tuple[
|
|
950
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
951
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
952
|
+
]
|
|
953
|
+
] = None,
|
|
954
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
955
|
+
_content_type: Optional[StrictStr] = None,
|
|
956
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
957
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
958
|
+
) -> ApiResponse[TestLayerSchemaDto]:
|
|
959
|
+
"""Find test layer schema by id
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
:param id: (required)
|
|
963
|
+
:type id: int
|
|
964
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
965
|
+
number provided, it will be total request
|
|
966
|
+
timeout. It can also be a pair (tuple) of
|
|
967
|
+
(connection, read) timeouts.
|
|
968
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
969
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
970
|
+
request; this effectively ignores the
|
|
971
|
+
authentication in the spec for a single request.
|
|
972
|
+
:type _request_auth: dict, optional
|
|
973
|
+
:param _content_type: force content-type for the request.
|
|
974
|
+
:type _content_type: str, Optional
|
|
975
|
+
:param _headers: set to override the headers for a single
|
|
976
|
+
request; this effectively ignores the headers
|
|
977
|
+
in the spec for a single request.
|
|
978
|
+
:type _headers: dict, optional
|
|
979
|
+
:param _host_index: set to override the host_index for a single
|
|
980
|
+
request; this effectively ignores the host_index
|
|
981
|
+
in the spec for a single request.
|
|
982
|
+
:type _host_index: int, optional
|
|
983
|
+
:return: Returns the result object.
|
|
984
|
+
""" # noqa: E501
|
|
985
|
+
|
|
986
|
+
_param = self._find_one7_serialize(
|
|
987
|
+
id=id,
|
|
988
|
+
_request_auth=_request_auth,
|
|
989
|
+
_content_type=_content_type,
|
|
990
|
+
_headers=_headers,
|
|
991
|
+
_host_index=_host_index
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
995
|
+
'200': "TestLayerSchemaDto",
|
|
996
|
+
}
|
|
997
|
+
response_data = await self.api_client.call_api(
|
|
998
|
+
*_param,
|
|
999
|
+
_request_timeout=_request_timeout
|
|
1000
|
+
)
|
|
1001
|
+
await response_data.read()
|
|
1002
|
+
return self.api_client.response_deserialize(
|
|
1003
|
+
response_data=response_data,
|
|
1004
|
+
response_types_map=_response_types_map,
|
|
1005
|
+
)
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
@validate_call
|
|
1009
|
+
async def find_one7_without_preload_content(
|
|
1010
|
+
self,
|
|
1011
|
+
id: StrictInt,
|
|
1012
|
+
_request_timeout: Union[
|
|
1013
|
+
None,
|
|
1014
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1015
|
+
Tuple[
|
|
1016
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1017
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1018
|
+
]
|
|
1019
|
+
] = None,
|
|
1020
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1021
|
+
_content_type: Optional[StrictStr] = None,
|
|
1022
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1023
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1024
|
+
) -> RESTResponseType:
|
|
1025
|
+
"""Find test layer schema by id
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
:param id: (required)
|
|
1029
|
+
:type id: int
|
|
1030
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1031
|
+
number provided, it will be total request
|
|
1032
|
+
timeout. It can also be a pair (tuple) of
|
|
1033
|
+
(connection, read) timeouts.
|
|
1034
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1035
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1036
|
+
request; this effectively ignores the
|
|
1037
|
+
authentication in the spec for a single request.
|
|
1038
|
+
:type _request_auth: dict, optional
|
|
1039
|
+
:param _content_type: force content-type for the request.
|
|
1040
|
+
:type _content_type: str, Optional
|
|
1041
|
+
:param _headers: set to override the headers for a single
|
|
1042
|
+
request; this effectively ignores the headers
|
|
1043
|
+
in the spec for a single request.
|
|
1044
|
+
:type _headers: dict, optional
|
|
1045
|
+
:param _host_index: set to override the host_index for a single
|
|
1046
|
+
request; this effectively ignores the host_index
|
|
1047
|
+
in the spec for a single request.
|
|
1048
|
+
:type _host_index: int, optional
|
|
1049
|
+
:return: Returns the result object.
|
|
1050
|
+
""" # noqa: E501
|
|
1051
|
+
|
|
1052
|
+
_param = self._find_one7_serialize(
|
|
1053
|
+
id=id,
|
|
1054
|
+
_request_auth=_request_auth,
|
|
1055
|
+
_content_type=_content_type,
|
|
1056
|
+
_headers=_headers,
|
|
1057
|
+
_host_index=_host_index
|
|
1058
|
+
)
|
|
1059
|
+
|
|
1060
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1061
|
+
'200': "TestLayerSchemaDto",
|
|
1062
|
+
}
|
|
1063
|
+
response_data = await self.api_client.call_api(
|
|
1064
|
+
*_param,
|
|
1065
|
+
_request_timeout=_request_timeout
|
|
1066
|
+
)
|
|
1067
|
+
return response_data.response
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
def _find_one7_serialize(
|
|
1071
|
+
self,
|
|
1072
|
+
id,
|
|
1073
|
+
_request_auth,
|
|
1074
|
+
_content_type,
|
|
1075
|
+
_headers,
|
|
1076
|
+
_host_index,
|
|
1077
|
+
) -> RequestSerialized:
|
|
1078
|
+
|
|
1079
|
+
_host = None
|
|
1080
|
+
|
|
1081
|
+
_collection_formats: Dict[str, str] = {
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
_path_params: Dict[str, str] = {}
|
|
1085
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1086
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1087
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1088
|
+
_files: Dict[
|
|
1089
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1090
|
+
] = {}
|
|
1091
|
+
_body_params: Optional[bytes] = None
|
|
1092
|
+
|
|
1093
|
+
# process the path parameters
|
|
1094
|
+
if id is not None:
|
|
1095
|
+
_path_params['id'] = id
|
|
1096
|
+
# process the query parameters
|
|
1097
|
+
# process the header parameters
|
|
1098
|
+
# process the form parameters
|
|
1099
|
+
# process the body parameter
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
# set the HTTP header `Accept`
|
|
1103
|
+
if 'Accept' not in _header_params:
|
|
1104
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1105
|
+
[
|
|
1106
|
+
'*/*'
|
|
1107
|
+
]
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
# authentication setting
|
|
1112
|
+
_auth_settings: List[str] = [
|
|
1113
|
+
]
|
|
1114
|
+
|
|
1115
|
+
return self.api_client.param_serialize(
|
|
1116
|
+
method='GET',
|
|
1117
|
+
resource_path='/api/testlayerschema/{id}',
|
|
1118
|
+
path_params=_path_params,
|
|
1119
|
+
query_params=_query_params,
|
|
1120
|
+
header_params=_header_params,
|
|
1121
|
+
body=_body_params,
|
|
1122
|
+
post_params=_form_params,
|
|
1123
|
+
files=_files,
|
|
1124
|
+
auth_settings=_auth_settings,
|
|
1125
|
+
collection_formats=_collection_formats,
|
|
1126
|
+
_host=_host,
|
|
1127
|
+
_request_auth=_request_auth
|
|
1128
|
+
)
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
@validate_call
|
|
1134
|
+
async def patch8(
|
|
1135
|
+
self,
|
|
1136
|
+
id: StrictInt,
|
|
1137
|
+
test_layer_schema_patch_dto: TestLayerSchemaPatchDto,
|
|
1138
|
+
_request_timeout: Union[
|
|
1139
|
+
None,
|
|
1140
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1141
|
+
Tuple[
|
|
1142
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1143
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1144
|
+
]
|
|
1145
|
+
] = None,
|
|
1146
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1147
|
+
_content_type: Optional[StrictStr] = None,
|
|
1148
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1149
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1150
|
+
) -> TestLayerSchemaDto:
|
|
1151
|
+
"""Patch test layer schema
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
:param id: (required)
|
|
1155
|
+
:type id: int
|
|
1156
|
+
:param test_layer_schema_patch_dto: (required)
|
|
1157
|
+
:type test_layer_schema_patch_dto: TestLayerSchemaPatchDto
|
|
1158
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1159
|
+
number provided, it will be total request
|
|
1160
|
+
timeout. It can also be a pair (tuple) of
|
|
1161
|
+
(connection, read) timeouts.
|
|
1162
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1163
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1164
|
+
request; this effectively ignores the
|
|
1165
|
+
authentication in the spec for a single request.
|
|
1166
|
+
:type _request_auth: dict, optional
|
|
1167
|
+
:param _content_type: force content-type for the request.
|
|
1168
|
+
:type _content_type: str, Optional
|
|
1169
|
+
:param _headers: set to override the headers for a single
|
|
1170
|
+
request; this effectively ignores the headers
|
|
1171
|
+
in the spec for a single request.
|
|
1172
|
+
:type _headers: dict, optional
|
|
1173
|
+
:param _host_index: set to override the host_index for a single
|
|
1174
|
+
request; this effectively ignores the host_index
|
|
1175
|
+
in the spec for a single request.
|
|
1176
|
+
:type _host_index: int, optional
|
|
1177
|
+
:return: Returns the result object.
|
|
1178
|
+
""" # noqa: E501
|
|
1179
|
+
|
|
1180
|
+
_param = self._patch8_serialize(
|
|
1181
|
+
id=id,
|
|
1182
|
+
test_layer_schema_patch_dto=test_layer_schema_patch_dto,
|
|
1183
|
+
_request_auth=_request_auth,
|
|
1184
|
+
_content_type=_content_type,
|
|
1185
|
+
_headers=_headers,
|
|
1186
|
+
_host_index=_host_index
|
|
1187
|
+
)
|
|
1188
|
+
|
|
1189
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1190
|
+
'200': "TestLayerSchemaDto",
|
|
1191
|
+
}
|
|
1192
|
+
response_data = await self.api_client.call_api(
|
|
1193
|
+
*_param,
|
|
1194
|
+
_request_timeout=_request_timeout
|
|
1195
|
+
)
|
|
1196
|
+
await response_data.read()
|
|
1197
|
+
return self.api_client.response_deserialize(
|
|
1198
|
+
response_data=response_data,
|
|
1199
|
+
response_types_map=_response_types_map,
|
|
1200
|
+
).data
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
@validate_call
|
|
1204
|
+
async def patch8_with_http_info(
|
|
1205
|
+
self,
|
|
1206
|
+
id: StrictInt,
|
|
1207
|
+
test_layer_schema_patch_dto: TestLayerSchemaPatchDto,
|
|
1208
|
+
_request_timeout: Union[
|
|
1209
|
+
None,
|
|
1210
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1211
|
+
Tuple[
|
|
1212
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1213
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1214
|
+
]
|
|
1215
|
+
] = None,
|
|
1216
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1217
|
+
_content_type: Optional[StrictStr] = None,
|
|
1218
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1219
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1220
|
+
) -> ApiResponse[TestLayerSchemaDto]:
|
|
1221
|
+
"""Patch test layer schema
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
:param id: (required)
|
|
1225
|
+
:type id: int
|
|
1226
|
+
:param test_layer_schema_patch_dto: (required)
|
|
1227
|
+
:type test_layer_schema_patch_dto: TestLayerSchemaPatchDto
|
|
1228
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1229
|
+
number provided, it will be total request
|
|
1230
|
+
timeout. It can also be a pair (tuple) of
|
|
1231
|
+
(connection, read) timeouts.
|
|
1232
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1233
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1234
|
+
request; this effectively ignores the
|
|
1235
|
+
authentication in the spec for a single request.
|
|
1236
|
+
:type _request_auth: dict, optional
|
|
1237
|
+
:param _content_type: force content-type for the request.
|
|
1238
|
+
:type _content_type: str, Optional
|
|
1239
|
+
:param _headers: set to override the headers for a single
|
|
1240
|
+
request; this effectively ignores the headers
|
|
1241
|
+
in the spec for a single request.
|
|
1242
|
+
:type _headers: dict, optional
|
|
1243
|
+
:param _host_index: set to override the host_index for a single
|
|
1244
|
+
request; this effectively ignores the host_index
|
|
1245
|
+
in the spec for a single request.
|
|
1246
|
+
:type _host_index: int, optional
|
|
1247
|
+
:return: Returns the result object.
|
|
1248
|
+
""" # noqa: E501
|
|
1249
|
+
|
|
1250
|
+
_param = self._patch8_serialize(
|
|
1251
|
+
id=id,
|
|
1252
|
+
test_layer_schema_patch_dto=test_layer_schema_patch_dto,
|
|
1253
|
+
_request_auth=_request_auth,
|
|
1254
|
+
_content_type=_content_type,
|
|
1255
|
+
_headers=_headers,
|
|
1256
|
+
_host_index=_host_index
|
|
1257
|
+
)
|
|
1258
|
+
|
|
1259
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1260
|
+
'200': "TestLayerSchemaDto",
|
|
1261
|
+
}
|
|
1262
|
+
response_data = await self.api_client.call_api(
|
|
1263
|
+
*_param,
|
|
1264
|
+
_request_timeout=_request_timeout
|
|
1265
|
+
)
|
|
1266
|
+
await response_data.read()
|
|
1267
|
+
return self.api_client.response_deserialize(
|
|
1268
|
+
response_data=response_data,
|
|
1269
|
+
response_types_map=_response_types_map,
|
|
1270
|
+
)
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
@validate_call
|
|
1274
|
+
async def patch8_without_preload_content(
|
|
1275
|
+
self,
|
|
1276
|
+
id: StrictInt,
|
|
1277
|
+
test_layer_schema_patch_dto: TestLayerSchemaPatchDto,
|
|
1278
|
+
_request_timeout: Union[
|
|
1279
|
+
None,
|
|
1280
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1281
|
+
Tuple[
|
|
1282
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1283
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1284
|
+
]
|
|
1285
|
+
] = None,
|
|
1286
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1287
|
+
_content_type: Optional[StrictStr] = None,
|
|
1288
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1289
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1290
|
+
) -> RESTResponseType:
|
|
1291
|
+
"""Patch test layer schema
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
:param id: (required)
|
|
1295
|
+
:type id: int
|
|
1296
|
+
:param test_layer_schema_patch_dto: (required)
|
|
1297
|
+
:type test_layer_schema_patch_dto: TestLayerSchemaPatchDto
|
|
1298
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1299
|
+
number provided, it will be total request
|
|
1300
|
+
timeout. It can also be a pair (tuple) of
|
|
1301
|
+
(connection, read) timeouts.
|
|
1302
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1303
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1304
|
+
request; this effectively ignores the
|
|
1305
|
+
authentication in the spec for a single request.
|
|
1306
|
+
:type _request_auth: dict, optional
|
|
1307
|
+
:param _content_type: force content-type for the request.
|
|
1308
|
+
:type _content_type: str, Optional
|
|
1309
|
+
:param _headers: set to override the headers for a single
|
|
1310
|
+
request; this effectively ignores the headers
|
|
1311
|
+
in the spec for a single request.
|
|
1312
|
+
:type _headers: dict, optional
|
|
1313
|
+
:param _host_index: set to override the host_index for a single
|
|
1314
|
+
request; this effectively ignores the host_index
|
|
1315
|
+
in the spec for a single request.
|
|
1316
|
+
:type _host_index: int, optional
|
|
1317
|
+
:return: Returns the result object.
|
|
1318
|
+
""" # noqa: E501
|
|
1319
|
+
|
|
1320
|
+
_param = self._patch8_serialize(
|
|
1321
|
+
id=id,
|
|
1322
|
+
test_layer_schema_patch_dto=test_layer_schema_patch_dto,
|
|
1323
|
+
_request_auth=_request_auth,
|
|
1324
|
+
_content_type=_content_type,
|
|
1325
|
+
_headers=_headers,
|
|
1326
|
+
_host_index=_host_index
|
|
1327
|
+
)
|
|
1328
|
+
|
|
1329
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1330
|
+
'200': "TestLayerSchemaDto",
|
|
1331
|
+
}
|
|
1332
|
+
response_data = await self.api_client.call_api(
|
|
1333
|
+
*_param,
|
|
1334
|
+
_request_timeout=_request_timeout
|
|
1335
|
+
)
|
|
1336
|
+
return response_data.response
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
def _patch8_serialize(
|
|
1340
|
+
self,
|
|
1341
|
+
id,
|
|
1342
|
+
test_layer_schema_patch_dto,
|
|
1343
|
+
_request_auth,
|
|
1344
|
+
_content_type,
|
|
1345
|
+
_headers,
|
|
1346
|
+
_host_index,
|
|
1347
|
+
) -> RequestSerialized:
|
|
1348
|
+
|
|
1349
|
+
_host = None
|
|
1350
|
+
|
|
1351
|
+
_collection_formats: Dict[str, str] = {
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
_path_params: Dict[str, str] = {}
|
|
1355
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1356
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1357
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1358
|
+
_files: Dict[
|
|
1359
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1360
|
+
] = {}
|
|
1361
|
+
_body_params: Optional[bytes] = None
|
|
1362
|
+
|
|
1363
|
+
# process the path parameters
|
|
1364
|
+
if id is not None:
|
|
1365
|
+
_path_params['id'] = id
|
|
1366
|
+
# process the query parameters
|
|
1367
|
+
# process the header parameters
|
|
1368
|
+
# process the form parameters
|
|
1369
|
+
# process the body parameter
|
|
1370
|
+
if test_layer_schema_patch_dto is not None:
|
|
1371
|
+
_body_params = test_layer_schema_patch_dto
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
# set the HTTP header `Accept`
|
|
1375
|
+
if 'Accept' not in _header_params:
|
|
1376
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1377
|
+
[
|
|
1378
|
+
'*/*'
|
|
1379
|
+
]
|
|
1380
|
+
)
|
|
1381
|
+
|
|
1382
|
+
# set the HTTP header `Content-Type`
|
|
1383
|
+
if _content_type:
|
|
1384
|
+
_header_params['Content-Type'] = _content_type
|
|
1385
|
+
else:
|
|
1386
|
+
_default_content_type = (
|
|
1387
|
+
self.api_client.select_header_content_type(
|
|
1388
|
+
[
|
|
1389
|
+
'application/json'
|
|
1390
|
+
]
|
|
1391
|
+
)
|
|
1392
|
+
)
|
|
1393
|
+
if _default_content_type is not None:
|
|
1394
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1395
|
+
|
|
1396
|
+
# authentication setting
|
|
1397
|
+
_auth_settings: List[str] = [
|
|
1398
|
+
]
|
|
1399
|
+
|
|
1400
|
+
return self.api_client.param_serialize(
|
|
1401
|
+
method='PATCH',
|
|
1402
|
+
resource_path='/api/testlayerschema/{id}',
|
|
1403
|
+
path_params=_path_params,
|
|
1404
|
+
query_params=_query_params,
|
|
1405
|
+
header_params=_header_params,
|
|
1406
|
+
body=_body_params,
|
|
1407
|
+
post_params=_form_params,
|
|
1408
|
+
files=_files,
|
|
1409
|
+
auth_settings=_auth_settings,
|
|
1410
|
+
collection_formats=_collection_formats,
|
|
1411
|
+
_host=_host,
|
|
1412
|
+
_request_auth=_request_auth
|
|
1413
|
+
)
|
|
1414
|
+
|
|
1415
|
+
|