testit-python-commons 5.1.3__py3-none-any.whl → 5.1.4__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.
- adapters_api/api/custom_attributes_api.py +607 -0
- adapters_api/apis/__init__.py +1 -0
- adapters_api/model/adapters_auto_tests_post_request.py +6 -0
- adapters_api/model/adapters_auto_tests_put_request.py +10 -0
- adapters_api/model/adapters_custom_attributes_global_id_put_request.py +337 -0
- adapters_api/model/adapters_custom_attributes_global_post_request.py +343 -0
- adapters_api/model/adapters_custom_attributes_search_post_request.py +351 -0
- adapters_api/model/adapters_test_results_search_post_request.py +6 -0
- adapters_api/model/auto_test_api_result.py +6 -0
- adapters_api/model/auto_test_api_result_layer.py +325 -0
- adapters_api/model/auto_test_create_api_model.py +6 -0
- adapters_api/model/auto_test_create_api_model_layer.py +328 -0
- adapters_api/model/auto_test_update_api_model.py +14 -2
- adapters_api/model/custom_attribute_api_result.py +28 -0
- adapters_api/model/custom_attribute_option_post_api_model.py +271 -0
- adapters_api/model/custom_attribute_option_update_api_model.py +283 -0
- adapters_api/model/custom_attribute_search_api_model.py +292 -0
- adapters_api/model/custom_attribute_search_api_result.py +348 -0
- adapters_api/model/global_custom_attribute_post_api_model.py +292 -0
- adapters_api/model/global_custom_attribute_update_api_model.py +284 -0
- adapters_api/model/layer_api_model.py +277 -0
- adapters_api/model/layer_api_result.py +274 -0
- adapters_api/model/layer_source.py +291 -0
- adapters_api/model/manual_rerun_select_test_results_api_model_filter.py +6 -0
- adapters_api/model/project_shortest_api_result.py +292 -0
- adapters_api/model/projects_filter_model_autotests_count.py +3 -3
- adapters_api/model/projects_filter_model_checklists_count.py +3 -3
- adapters_api/model/projects_filter_model_shared_steps_count.py +3 -3
- adapters_api/model/projects_filter_model_test_cases_count.py +3 -3
- adapters_api/model/test_result_short_response.py +8 -2
- adapters_api/model/test_results_filter_api_model.py +6 -0
- adapters_api/model/test_run_api_result.py +16 -2
- adapters_api/models/__init__.py +15 -0
- testit_python_commons/client/converter.py +2 -0
- {testit_python_commons-5.1.3.dist-info → testit_python_commons-5.1.4.dist-info}/METADATA +1 -1
- {testit_python_commons-5.1.3.dist-info → testit_python_commons-5.1.4.dist-info}/RECORD +38 -22
- {testit_python_commons-5.1.3.dist-info → testit_python_commons-5.1.4.dist-info}/WHEEL +0 -0
- {testit_python_commons-5.1.3.dist-info → testit_python_commons-5.1.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
"""
|
|
2
|
+
API
|
|
3
|
+
|
|
4
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: adapters
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from adapters_api.api_client import ApiClient, Endpoint as _Endpoint
|
|
15
|
+
from adapters_api.model_utils import ( # noqa: F401
|
|
16
|
+
check_allowed_values,
|
|
17
|
+
check_validations,
|
|
18
|
+
date,
|
|
19
|
+
datetime,
|
|
20
|
+
file_type,
|
|
21
|
+
none_type,
|
|
22
|
+
validate_and_convert_types
|
|
23
|
+
)
|
|
24
|
+
from adapters_api.model.adapters_custom_attributes_global_id_put_request import AdaptersCustomAttributesGlobalIdPutRequest
|
|
25
|
+
from adapters_api.model.adapters_custom_attributes_global_post_request import AdaptersCustomAttributesGlobalPostRequest
|
|
26
|
+
from adapters_api.model.adapters_custom_attributes_search_post_request import AdaptersCustomAttributesSearchPostRequest
|
|
27
|
+
from adapters_api.model.custom_attribute_api_result import CustomAttributeApiResult
|
|
28
|
+
from adapters_api.model.custom_attribute_search_api_result import CustomAttributeSearchApiResult
|
|
29
|
+
from adapters_api.model.problem_details import ProblemDetails
|
|
30
|
+
from adapters_api.model.validation_problem_details import ValidationProblemDetails
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class CustomAttributesApi(object):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None):
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
self.adapters_custom_attributes_global_id_put_endpoint = _Endpoint(
|
|
45
|
+
settings={
|
|
46
|
+
'response_type': (CustomAttributeApiResult,),
|
|
47
|
+
'auth': [
|
|
48
|
+
'PrivateToken',
|
|
49
|
+
'Identity.Application'
|
|
50
|
+
],
|
|
51
|
+
'endpoint_path': '/adapters/customAttributes/global/{id}',
|
|
52
|
+
'operation_id': 'adapters_custom_attributes_global_id_put',
|
|
53
|
+
'http_method': 'PUT',
|
|
54
|
+
'servers': None,
|
|
55
|
+
},
|
|
56
|
+
params_map={
|
|
57
|
+
'all': [
|
|
58
|
+
'id',
|
|
59
|
+
'adapters_custom_attributes_global_id_put_request',
|
|
60
|
+
],
|
|
61
|
+
'required': [
|
|
62
|
+
'id',
|
|
63
|
+
],
|
|
64
|
+
'nullable': [
|
|
65
|
+
],
|
|
66
|
+
'enum': [
|
|
67
|
+
],
|
|
68
|
+
'validation': [
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
root_map={
|
|
72
|
+
'validations': {
|
|
73
|
+
},
|
|
74
|
+
'allowed_values': {
|
|
75
|
+
},
|
|
76
|
+
'openapi_types': {
|
|
77
|
+
'id':
|
|
78
|
+
(str,),
|
|
79
|
+
'adapters_custom_attributes_global_id_put_request':
|
|
80
|
+
(AdaptersCustomAttributesGlobalIdPutRequest,),
|
|
81
|
+
},
|
|
82
|
+
'attribute_map': {
|
|
83
|
+
'id': 'id',
|
|
84
|
+
},
|
|
85
|
+
'location_map': {
|
|
86
|
+
'id': 'path',
|
|
87
|
+
'adapters_custom_attributes_global_id_put_request': 'body',
|
|
88
|
+
},
|
|
89
|
+
'collection_format_map': {
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
headers_map={
|
|
93
|
+
'accept': [
|
|
94
|
+
'application/json'
|
|
95
|
+
],
|
|
96
|
+
'content_type': [
|
|
97
|
+
'application/json'
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
api_client=api_client
|
|
101
|
+
)
|
|
102
|
+
self.adapters_custom_attributes_global_post_endpoint = _Endpoint(
|
|
103
|
+
settings={
|
|
104
|
+
'response_type': (CustomAttributeApiResult,),
|
|
105
|
+
'auth': [
|
|
106
|
+
'PrivateToken',
|
|
107
|
+
'Identity.Application'
|
|
108
|
+
],
|
|
109
|
+
'endpoint_path': '/adapters/customAttributes/global',
|
|
110
|
+
'operation_id': 'adapters_custom_attributes_global_post',
|
|
111
|
+
'http_method': 'POST',
|
|
112
|
+
'servers': None,
|
|
113
|
+
},
|
|
114
|
+
params_map={
|
|
115
|
+
'all': [
|
|
116
|
+
'adapters_custom_attributes_global_post_request',
|
|
117
|
+
],
|
|
118
|
+
'required': [],
|
|
119
|
+
'nullable': [
|
|
120
|
+
],
|
|
121
|
+
'enum': [
|
|
122
|
+
],
|
|
123
|
+
'validation': [
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
root_map={
|
|
127
|
+
'validations': {
|
|
128
|
+
},
|
|
129
|
+
'allowed_values': {
|
|
130
|
+
},
|
|
131
|
+
'openapi_types': {
|
|
132
|
+
'adapters_custom_attributes_global_post_request':
|
|
133
|
+
(AdaptersCustomAttributesGlobalPostRequest,),
|
|
134
|
+
},
|
|
135
|
+
'attribute_map': {
|
|
136
|
+
},
|
|
137
|
+
'location_map': {
|
|
138
|
+
'adapters_custom_attributes_global_post_request': 'body',
|
|
139
|
+
},
|
|
140
|
+
'collection_format_map': {
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
headers_map={
|
|
144
|
+
'accept': [
|
|
145
|
+
'application/json'
|
|
146
|
+
],
|
|
147
|
+
'content_type': [
|
|
148
|
+
'application/json'
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
api_client=api_client
|
|
152
|
+
)
|
|
153
|
+
self.adapters_custom_attributes_id_get_endpoint = _Endpoint(
|
|
154
|
+
settings={
|
|
155
|
+
'response_type': (CustomAttributeApiResult,),
|
|
156
|
+
'auth': [
|
|
157
|
+
'PrivateToken',
|
|
158
|
+
'Identity.Application'
|
|
159
|
+
],
|
|
160
|
+
'endpoint_path': '/adapters/customAttributes/{id}',
|
|
161
|
+
'operation_id': 'adapters_custom_attributes_id_get',
|
|
162
|
+
'http_method': 'GET',
|
|
163
|
+
'servers': None,
|
|
164
|
+
},
|
|
165
|
+
params_map={
|
|
166
|
+
'all': [
|
|
167
|
+
'id',
|
|
168
|
+
],
|
|
169
|
+
'required': [
|
|
170
|
+
'id',
|
|
171
|
+
],
|
|
172
|
+
'nullable': [
|
|
173
|
+
],
|
|
174
|
+
'enum': [
|
|
175
|
+
],
|
|
176
|
+
'validation': [
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
root_map={
|
|
180
|
+
'validations': {
|
|
181
|
+
},
|
|
182
|
+
'allowed_values': {
|
|
183
|
+
},
|
|
184
|
+
'openapi_types': {
|
|
185
|
+
'id':
|
|
186
|
+
(str,),
|
|
187
|
+
},
|
|
188
|
+
'attribute_map': {
|
|
189
|
+
'id': 'id',
|
|
190
|
+
},
|
|
191
|
+
'location_map': {
|
|
192
|
+
'id': 'path',
|
|
193
|
+
},
|
|
194
|
+
'collection_format_map': {
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
headers_map={
|
|
198
|
+
'accept': [
|
|
199
|
+
'application/json'
|
|
200
|
+
],
|
|
201
|
+
'content_type': [],
|
|
202
|
+
},
|
|
203
|
+
api_client=api_client
|
|
204
|
+
)
|
|
205
|
+
self.adapters_custom_attributes_search_post_endpoint = _Endpoint(
|
|
206
|
+
settings={
|
|
207
|
+
'response_type': ([CustomAttributeSearchApiResult],),
|
|
208
|
+
'auth': [
|
|
209
|
+
'PrivateToken',
|
|
210
|
+
'Identity.Application'
|
|
211
|
+
],
|
|
212
|
+
'endpoint_path': '/adapters/customAttributes/search',
|
|
213
|
+
'operation_id': 'adapters_custom_attributes_search_post',
|
|
214
|
+
'http_method': 'POST',
|
|
215
|
+
'servers': None,
|
|
216
|
+
},
|
|
217
|
+
params_map={
|
|
218
|
+
'all': [
|
|
219
|
+
'skip',
|
|
220
|
+
'take',
|
|
221
|
+
'order_by',
|
|
222
|
+
'search_field',
|
|
223
|
+
'search_value',
|
|
224
|
+
'adapters_custom_attributes_search_post_request',
|
|
225
|
+
],
|
|
226
|
+
'required': [],
|
|
227
|
+
'nullable': [
|
|
228
|
+
],
|
|
229
|
+
'enum': [
|
|
230
|
+
],
|
|
231
|
+
'validation': [
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
root_map={
|
|
235
|
+
'validations': {
|
|
236
|
+
},
|
|
237
|
+
'allowed_values': {
|
|
238
|
+
},
|
|
239
|
+
'openapi_types': {
|
|
240
|
+
'skip':
|
|
241
|
+
(int,),
|
|
242
|
+
'take':
|
|
243
|
+
(int,),
|
|
244
|
+
'order_by':
|
|
245
|
+
(str,),
|
|
246
|
+
'search_field':
|
|
247
|
+
(str,),
|
|
248
|
+
'search_value':
|
|
249
|
+
(str,),
|
|
250
|
+
'adapters_custom_attributes_search_post_request':
|
|
251
|
+
(AdaptersCustomAttributesSearchPostRequest,),
|
|
252
|
+
},
|
|
253
|
+
'attribute_map': {
|
|
254
|
+
'skip': 'Skip',
|
|
255
|
+
'take': 'Take',
|
|
256
|
+
'order_by': 'OrderBy',
|
|
257
|
+
'search_field': 'SearchField',
|
|
258
|
+
'search_value': 'SearchValue',
|
|
259
|
+
},
|
|
260
|
+
'location_map': {
|
|
261
|
+
'skip': 'query',
|
|
262
|
+
'take': 'query',
|
|
263
|
+
'order_by': 'query',
|
|
264
|
+
'search_field': 'query',
|
|
265
|
+
'search_value': 'query',
|
|
266
|
+
'adapters_custom_attributes_search_post_request': 'body',
|
|
267
|
+
},
|
|
268
|
+
'collection_format_map': {
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
headers_map={
|
|
272
|
+
'accept': [
|
|
273
|
+
'application/json'
|
|
274
|
+
],
|
|
275
|
+
'content_type': [
|
|
276
|
+
'application/json'
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
api_client=api_client
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
def adapters_custom_attributes_global_id_put(
|
|
283
|
+
self,
|
|
284
|
+
id,
|
|
285
|
+
**kwargs
|
|
286
|
+
):
|
|
287
|
+
"""Update global attribute # noqa: E501
|
|
288
|
+
|
|
289
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
290
|
+
asynchronous HTTP request, please pass async_req=True
|
|
291
|
+
|
|
292
|
+
>>> thread = api.adapters_custom_attributes_global_id_put(id, async_req=True)
|
|
293
|
+
>>> result = thread.get()
|
|
294
|
+
|
|
295
|
+
Args:
|
|
296
|
+
id (str): Unique ID of attribute
|
|
297
|
+
|
|
298
|
+
Keyword Args:
|
|
299
|
+
adapters_custom_attributes_global_id_put_request (AdaptersCustomAttributesGlobalIdPutRequest): [optional]
|
|
300
|
+
_return_http_data_only (bool): response data without head status
|
|
301
|
+
code and headers. Default is True.
|
|
302
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
303
|
+
will be returned without reading/decoding response data.
|
|
304
|
+
Default is True.
|
|
305
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
306
|
+
one number provided, it will be total request timeout. It can also
|
|
307
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
308
|
+
Default is None.
|
|
309
|
+
_check_input_type (bool): specifies if type checking
|
|
310
|
+
should be done one the data sent to the server.
|
|
311
|
+
Default is True.
|
|
312
|
+
_check_return_type (bool): specifies if type checking
|
|
313
|
+
should be done one the data received from the server.
|
|
314
|
+
Default is True.
|
|
315
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
316
|
+
are serialized names, as specified in the OpenAPI document.
|
|
317
|
+
False if the variable names in the input data
|
|
318
|
+
are pythonic names, e.g. snake case (default)
|
|
319
|
+
_content_type (str/None): force body content-type.
|
|
320
|
+
Default is None and content-type will be predicted by allowed
|
|
321
|
+
content-types and body.
|
|
322
|
+
_host_index (int/None): specifies the index of the server
|
|
323
|
+
that we want to use.
|
|
324
|
+
Default is read from the configuration.
|
|
325
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
326
|
+
request; this effectively ignores the authentication
|
|
327
|
+
in the spec for a single request.
|
|
328
|
+
Default is None
|
|
329
|
+
async_req (bool): execute request asynchronously
|
|
330
|
+
|
|
331
|
+
Returns:
|
|
332
|
+
CustomAttributeApiResult
|
|
333
|
+
If the method is called asynchronously, returns the request
|
|
334
|
+
thread.
|
|
335
|
+
"""
|
|
336
|
+
kwargs['async_req'] = kwargs.get(
|
|
337
|
+
'async_req', False
|
|
338
|
+
)
|
|
339
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
340
|
+
'_return_http_data_only', True
|
|
341
|
+
)
|
|
342
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
343
|
+
'_preload_content', True
|
|
344
|
+
)
|
|
345
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
346
|
+
'_request_timeout', None
|
|
347
|
+
)
|
|
348
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
349
|
+
'_check_input_type', True
|
|
350
|
+
)
|
|
351
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
352
|
+
'_check_return_type', True
|
|
353
|
+
)
|
|
354
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
355
|
+
'_spec_property_naming', False
|
|
356
|
+
)
|
|
357
|
+
kwargs['_content_type'] = kwargs.get(
|
|
358
|
+
'_content_type')
|
|
359
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
360
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
361
|
+
kwargs['id'] = \
|
|
362
|
+
id
|
|
363
|
+
return self.adapters_custom_attributes_global_id_put_endpoint.call_with_http_info(**kwargs)
|
|
364
|
+
|
|
365
|
+
def adapters_custom_attributes_global_post(
|
|
366
|
+
self,
|
|
367
|
+
**kwargs
|
|
368
|
+
):
|
|
369
|
+
"""Create global attribute # noqa: E501
|
|
370
|
+
|
|
371
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
372
|
+
asynchronous HTTP request, please pass async_req=True
|
|
373
|
+
|
|
374
|
+
>>> thread = api.adapters_custom_attributes_global_post(async_req=True)
|
|
375
|
+
>>> result = thread.get()
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
Keyword Args:
|
|
379
|
+
adapters_custom_attributes_global_post_request (AdaptersCustomAttributesGlobalPostRequest): [optional]
|
|
380
|
+
_return_http_data_only (bool): response data without head status
|
|
381
|
+
code and headers. Default is True.
|
|
382
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
383
|
+
will be returned without reading/decoding response data.
|
|
384
|
+
Default is True.
|
|
385
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
386
|
+
one number provided, it will be total request timeout. It can also
|
|
387
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
388
|
+
Default is None.
|
|
389
|
+
_check_input_type (bool): specifies if type checking
|
|
390
|
+
should be done one the data sent to the server.
|
|
391
|
+
Default is True.
|
|
392
|
+
_check_return_type (bool): specifies if type checking
|
|
393
|
+
should be done one the data received from the server.
|
|
394
|
+
Default is True.
|
|
395
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
396
|
+
are serialized names, as specified in the OpenAPI document.
|
|
397
|
+
False if the variable names in the input data
|
|
398
|
+
are pythonic names, e.g. snake case (default)
|
|
399
|
+
_content_type (str/None): force body content-type.
|
|
400
|
+
Default is None and content-type will be predicted by allowed
|
|
401
|
+
content-types and body.
|
|
402
|
+
_host_index (int/None): specifies the index of the server
|
|
403
|
+
that we want to use.
|
|
404
|
+
Default is read from the configuration.
|
|
405
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
406
|
+
request; this effectively ignores the authentication
|
|
407
|
+
in the spec for a single request.
|
|
408
|
+
Default is None
|
|
409
|
+
async_req (bool): execute request asynchronously
|
|
410
|
+
|
|
411
|
+
Returns:
|
|
412
|
+
CustomAttributeApiResult
|
|
413
|
+
If the method is called asynchronously, returns the request
|
|
414
|
+
thread.
|
|
415
|
+
"""
|
|
416
|
+
kwargs['async_req'] = kwargs.get(
|
|
417
|
+
'async_req', False
|
|
418
|
+
)
|
|
419
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
420
|
+
'_return_http_data_only', True
|
|
421
|
+
)
|
|
422
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
423
|
+
'_preload_content', True
|
|
424
|
+
)
|
|
425
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
426
|
+
'_request_timeout', None
|
|
427
|
+
)
|
|
428
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
429
|
+
'_check_input_type', True
|
|
430
|
+
)
|
|
431
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
432
|
+
'_check_return_type', True
|
|
433
|
+
)
|
|
434
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
435
|
+
'_spec_property_naming', False
|
|
436
|
+
)
|
|
437
|
+
kwargs['_content_type'] = kwargs.get(
|
|
438
|
+
'_content_type')
|
|
439
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
440
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
441
|
+
return self.adapters_custom_attributes_global_post_endpoint.call_with_http_info(**kwargs)
|
|
442
|
+
|
|
443
|
+
def adapters_custom_attributes_id_get(
|
|
444
|
+
self,
|
|
445
|
+
id,
|
|
446
|
+
**kwargs
|
|
447
|
+
):
|
|
448
|
+
"""Get attribute by ID # noqa: E501
|
|
449
|
+
|
|
450
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
451
|
+
asynchronous HTTP request, please pass async_req=True
|
|
452
|
+
|
|
453
|
+
>>> thread = api.adapters_custom_attributes_id_get(id, async_req=True)
|
|
454
|
+
>>> result = thread.get()
|
|
455
|
+
|
|
456
|
+
Args:
|
|
457
|
+
id (str): Unique ID of attribute
|
|
458
|
+
|
|
459
|
+
Keyword Args:
|
|
460
|
+
_return_http_data_only (bool): response data without head status
|
|
461
|
+
code and headers. Default is True.
|
|
462
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
463
|
+
will be returned without reading/decoding response data.
|
|
464
|
+
Default is True.
|
|
465
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
466
|
+
one number provided, it will be total request timeout. It can also
|
|
467
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
468
|
+
Default is None.
|
|
469
|
+
_check_input_type (bool): specifies if type checking
|
|
470
|
+
should be done one the data sent to the server.
|
|
471
|
+
Default is True.
|
|
472
|
+
_check_return_type (bool): specifies if type checking
|
|
473
|
+
should be done one the data received from the server.
|
|
474
|
+
Default is True.
|
|
475
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
476
|
+
are serialized names, as specified in the OpenAPI document.
|
|
477
|
+
False if the variable names in the input data
|
|
478
|
+
are pythonic names, e.g. snake case (default)
|
|
479
|
+
_content_type (str/None): force body content-type.
|
|
480
|
+
Default is None and content-type will be predicted by allowed
|
|
481
|
+
content-types and body.
|
|
482
|
+
_host_index (int/None): specifies the index of the server
|
|
483
|
+
that we want to use.
|
|
484
|
+
Default is read from the configuration.
|
|
485
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
486
|
+
request; this effectively ignores the authentication
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
Default is None
|
|
489
|
+
async_req (bool): execute request asynchronously
|
|
490
|
+
|
|
491
|
+
Returns:
|
|
492
|
+
CustomAttributeApiResult
|
|
493
|
+
If the method is called asynchronously, returns the request
|
|
494
|
+
thread.
|
|
495
|
+
"""
|
|
496
|
+
kwargs['async_req'] = kwargs.get(
|
|
497
|
+
'async_req', False
|
|
498
|
+
)
|
|
499
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
500
|
+
'_return_http_data_only', True
|
|
501
|
+
)
|
|
502
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
503
|
+
'_preload_content', True
|
|
504
|
+
)
|
|
505
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
506
|
+
'_request_timeout', None
|
|
507
|
+
)
|
|
508
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
509
|
+
'_check_input_type', True
|
|
510
|
+
)
|
|
511
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
512
|
+
'_check_return_type', True
|
|
513
|
+
)
|
|
514
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
515
|
+
'_spec_property_naming', False
|
|
516
|
+
)
|
|
517
|
+
kwargs['_content_type'] = kwargs.get(
|
|
518
|
+
'_content_type')
|
|
519
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
520
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
521
|
+
kwargs['id'] = \
|
|
522
|
+
id
|
|
523
|
+
return self.adapters_custom_attributes_id_get_endpoint.call_with_http_info(**kwargs)
|
|
524
|
+
|
|
525
|
+
def adapters_custom_attributes_search_post(
|
|
526
|
+
self,
|
|
527
|
+
**kwargs
|
|
528
|
+
):
|
|
529
|
+
"""Search for attributes # noqa: E501
|
|
530
|
+
|
|
531
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
532
|
+
asynchronous HTTP request, please pass async_req=True
|
|
533
|
+
|
|
534
|
+
>>> thread = api.adapters_custom_attributes_search_post(async_req=True)
|
|
535
|
+
>>> result = thread.get()
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
Keyword Args:
|
|
539
|
+
skip (int): Amount of items to be skipped (offset). [optional]
|
|
540
|
+
take (int): Amount of items to be taken (limit). [optional]
|
|
541
|
+
order_by (str): SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC). [optional]
|
|
542
|
+
search_field (str): Property name for searching. [optional]
|
|
543
|
+
search_value (str): Value for searching. [optional]
|
|
544
|
+
adapters_custom_attributes_search_post_request (AdaptersCustomAttributesSearchPostRequest): [optional]
|
|
545
|
+
_return_http_data_only (bool): response data without head status
|
|
546
|
+
code and headers. Default is True.
|
|
547
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
548
|
+
will be returned without reading/decoding response data.
|
|
549
|
+
Default is True.
|
|
550
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
551
|
+
one number provided, it will be total request timeout. It can also
|
|
552
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
553
|
+
Default is None.
|
|
554
|
+
_check_input_type (bool): specifies if type checking
|
|
555
|
+
should be done one the data sent to the server.
|
|
556
|
+
Default is True.
|
|
557
|
+
_check_return_type (bool): specifies if type checking
|
|
558
|
+
should be done one the data received from the server.
|
|
559
|
+
Default is True.
|
|
560
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
561
|
+
are serialized names, as specified in the OpenAPI document.
|
|
562
|
+
False if the variable names in the input data
|
|
563
|
+
are pythonic names, e.g. snake case (default)
|
|
564
|
+
_content_type (str/None): force body content-type.
|
|
565
|
+
Default is None and content-type will be predicted by allowed
|
|
566
|
+
content-types and body.
|
|
567
|
+
_host_index (int/None): specifies the index of the server
|
|
568
|
+
that we want to use.
|
|
569
|
+
Default is read from the configuration.
|
|
570
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
571
|
+
request; this effectively ignores the authentication
|
|
572
|
+
in the spec for a single request.
|
|
573
|
+
Default is None
|
|
574
|
+
async_req (bool): execute request asynchronously
|
|
575
|
+
|
|
576
|
+
Returns:
|
|
577
|
+
[CustomAttributeSearchApiResult]
|
|
578
|
+
If the method is called asynchronously, returns the request
|
|
579
|
+
thread.
|
|
580
|
+
"""
|
|
581
|
+
kwargs['async_req'] = kwargs.get(
|
|
582
|
+
'async_req', False
|
|
583
|
+
)
|
|
584
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
585
|
+
'_return_http_data_only', True
|
|
586
|
+
)
|
|
587
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
588
|
+
'_preload_content', True
|
|
589
|
+
)
|
|
590
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
591
|
+
'_request_timeout', None
|
|
592
|
+
)
|
|
593
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
594
|
+
'_check_input_type', True
|
|
595
|
+
)
|
|
596
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
597
|
+
'_check_return_type', True
|
|
598
|
+
)
|
|
599
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
600
|
+
'_spec_property_naming', False
|
|
601
|
+
)
|
|
602
|
+
kwargs['_content_type'] = kwargs.get(
|
|
603
|
+
'_content_type')
|
|
604
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
605
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
606
|
+
return self.adapters_custom_attributes_search_post_endpoint.call_with_http_info(**kwargs)
|
|
607
|
+
|
adapters_api/apis/__init__.py
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
from adapters_api.api.attachments_api import AttachmentsApi
|
|
18
18
|
from adapters_api.api.auto_tests_api import AutoTestsApi
|
|
19
19
|
from adapters_api.api.configurations_api import ConfigurationsApi
|
|
20
|
+
from adapters_api.api.custom_attributes_api import CustomAttributesApi
|
|
20
21
|
from adapters_api.api.parameters_api import ParametersApi
|
|
21
22
|
from adapters_api.api.project_attributes_api import ProjectAttributesApi
|
|
22
23
|
from adapters_api.api.project_sections_api import ProjectSectionsApi
|
|
@@ -31,10 +31,12 @@ from adapters_api.exceptions import ApiAttributeError
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
33
|
from adapters_api.model.auto_test_create_api_model import AutoTestCreateApiModel
|
|
34
|
+
from adapters_api.model.auto_test_create_api_model_layer import AutoTestCreateApiModelLayer
|
|
34
35
|
from adapters_api.model.auto_test_step_api_model import AutoTestStepApiModel
|
|
35
36
|
from adapters_api.model.label_api_model import LabelApiModel
|
|
36
37
|
from adapters_api.model.link_create_api_model import LinkCreateApiModel
|
|
37
38
|
globals()['AutoTestCreateApiModel'] = AutoTestCreateApiModel
|
|
39
|
+
globals()['AutoTestCreateApiModelLayer'] = AutoTestCreateApiModelLayer
|
|
38
40
|
globals()['AutoTestStepApiModel'] = AutoTestStepApiModel
|
|
39
41
|
globals()['LabelApiModel'] = LabelApiModel
|
|
40
42
|
globals()['LinkCreateApiModel'] = LinkCreateApiModel
|
|
@@ -108,6 +110,7 @@ class AdaptersAutoTestsPostRequest(ModelComposed):
|
|
|
108
110
|
'title': (str, none_type,), # noqa: E501
|
|
109
111
|
'description': (str, none_type,), # noqa: E501
|
|
110
112
|
'is_flaky': (bool, none_type,), # noqa: E501
|
|
113
|
+
'layer': (AutoTestCreateApiModelLayer,), # noqa: E501
|
|
111
114
|
'steps': ([AutoTestStepApiModel], none_type,), # noqa: E501
|
|
112
115
|
'setup': ([AutoTestStepApiModel], none_type,), # noqa: E501
|
|
113
116
|
'teardown': ([AutoTestStepApiModel], none_type,), # noqa: E501
|
|
@@ -132,6 +135,7 @@ class AdaptersAutoTestsPostRequest(ModelComposed):
|
|
|
132
135
|
'title': 'title', # noqa: E501
|
|
133
136
|
'description': 'description', # noqa: E501
|
|
134
137
|
'is_flaky': 'isFlaky', # noqa: E501
|
|
138
|
+
'layer': 'layer', # noqa: E501
|
|
135
139
|
'steps': 'steps', # noqa: E501
|
|
136
140
|
'setup': 'setup', # noqa: E501
|
|
137
141
|
'teardown': 'teardown', # noqa: E501
|
|
@@ -189,6 +193,7 @@ class AdaptersAutoTestsPostRequest(ModelComposed):
|
|
|
189
193
|
title (str, none_type): Name of the autotest in autotest's card. [optional] # noqa: E501
|
|
190
194
|
description (str, none_type): Description of the autotest in autotest's card. [optional] # noqa: E501
|
|
191
195
|
is_flaky (bool, none_type): Indicates if the autotest is marked as flaky. [optional] # noqa: E501
|
|
196
|
+
layer (AutoTestCreateApiModelLayer): [optional] # noqa: E501
|
|
192
197
|
steps ([AutoTestStepApiModel], none_type): Collection of the autotest steps. [optional] # noqa: E501
|
|
193
198
|
setup ([AutoTestStepApiModel], none_type): Collection of the autotest setup steps. [optional] # noqa: E501
|
|
194
199
|
teardown ([AutoTestStepApiModel], none_type): Collection of the autotest teardown steps. [optional] # noqa: E501
|
|
@@ -308,6 +313,7 @@ class AdaptersAutoTestsPostRequest(ModelComposed):
|
|
|
308
313
|
title (str, none_type): Name of the autotest in autotest's card. [optional] # noqa: E501
|
|
309
314
|
description (str, none_type): Description of the autotest in autotest's card. [optional] # noqa: E501
|
|
310
315
|
is_flaky (bool, none_type): Indicates if the autotest is marked as flaky. [optional] # noqa: E501
|
|
316
|
+
layer (AutoTestCreateApiModelLayer): [optional] # noqa: E501
|
|
311
317
|
steps ([AutoTestStepApiModel], none_type): Collection of the autotest steps. [optional] # noqa: E501
|
|
312
318
|
setup ([AutoTestStepApiModel], none_type): Collection of the autotest setup steps. [optional] # noqa: E501
|
|
313
319
|
teardown ([AutoTestStepApiModel], none_type): Collection of the autotest teardown steps. [optional] # noqa: E501
|