teamdbapi 3.3.0__py3-none-any.whl → 3.5.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.
- teamdbapi/__init__.py +5 -0
- teamdbapi/api/__init__.py +2 -0
- teamdbapi/api/component_api.py +186 -0
- teamdbapi/api/edit_api.py +97 -0
- teamdbapi/api/mounting_api.py +93 -0
- teamdbapi/api/overall_api.py +118 -0
- teamdbapi/api/parameter_binding_api.py +508 -0
- teamdbapi/api/script_api.py +6 -6
- teamdbapi/api/value_field_api.py +101 -0
- teamdbapi/models/__init__.py +3 -0
- teamdbapi/models/car_parameters_context.py +2 -2
- teamdbapi/models/component.py +31 -3
- teamdbapi/models/criteria.py +3 -3
- teamdbapi/models/criteria_value_detail.py +673 -0
- teamdbapi/models/fixed_field.py +1 -1
- teamdbapi/models/model_field.py +1 -1
- teamdbapi/models/overall.py +198 -0
- teamdbapi/models/parameter_binding.py +401 -0
- teamdbapi/models/target.py +31 -3
- {teamdbapi-3.3.0.dist-info → teamdbapi-3.5.0.dist-info}/METADATA +5 -4
- {teamdbapi-3.3.0.dist-info → teamdbapi-3.5.0.dist-info}/RECORD +23 -18
- {teamdbapi-3.3.0.dist-info → teamdbapi-3.5.0.dist-info}/WHEEL +1 -1
- {teamdbapi-3.3.0.dist-info → teamdbapi-3.5.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Trackside Software TeamDB API v2.0
|
|
5
|
+
|
|
6
|
+
This API enables you to access TeamDB data # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0
|
|
9
|
+
Contact: support@trackside.fr
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from teamdbapi.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ParameterBindingApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def create_parameter_binding(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new ParameterBinding. # noqa: E501
|
|
37
|
+
|
|
38
|
+
Set ParameterBinding.Id empty (00000000-0000-0000-0000-000000000000) in order to create a new ParameterBinding. # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.create_parameter_binding(body, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param ParameterBinding body: The ParameterBinding to create. (required)
|
|
46
|
+
:return: ParameterBinding
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.create_parameter_binding_with_http_info(body, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.create_parameter_binding_with_http_info(body, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def create_parameter_binding_with_http_info(self, body, **kwargs): # noqa: E501
|
|
58
|
+
"""Create a new ParameterBinding. # noqa: E501
|
|
59
|
+
|
|
60
|
+
Set ParameterBinding.Id empty (00000000-0000-0000-0000-000000000000) in order to create a new ParameterBinding. # noqa: E501
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.create_parameter_binding_with_http_info(body, async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param ParameterBinding body: The ParameterBinding to create. (required)
|
|
68
|
+
:return: ParameterBinding
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['body'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method create_parameter_binding" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter 'body' is set
|
|
89
|
+
if ('body' not in params or
|
|
90
|
+
params['body'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `body` when calling `create_parameter_binding`") # noqa: E501
|
|
92
|
+
|
|
93
|
+
collection_formats = {}
|
|
94
|
+
|
|
95
|
+
path_params = {}
|
|
96
|
+
|
|
97
|
+
query_params = []
|
|
98
|
+
|
|
99
|
+
header_params = {}
|
|
100
|
+
|
|
101
|
+
form_params = []
|
|
102
|
+
local_var_files = {}
|
|
103
|
+
|
|
104
|
+
body_params = None
|
|
105
|
+
if 'body' in params:
|
|
106
|
+
body_params = params['body']
|
|
107
|
+
# HTTP header `Accept`
|
|
108
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
109
|
+
['application/json', 'text/json']) # noqa: E501
|
|
110
|
+
|
|
111
|
+
# HTTP header `Content-Type`
|
|
112
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
113
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
114
|
+
|
|
115
|
+
# Authentication setting
|
|
116
|
+
auth_settings = [] # noqa: E501
|
|
117
|
+
|
|
118
|
+
return self.api_client.call_api(
|
|
119
|
+
'/teamdbapi/v2.0/parameterbinding', 'POST',
|
|
120
|
+
path_params,
|
|
121
|
+
query_params,
|
|
122
|
+
header_params,
|
|
123
|
+
body=body_params,
|
|
124
|
+
post_params=form_params,
|
|
125
|
+
files=local_var_files,
|
|
126
|
+
response_type='ParameterBinding', # noqa: E501
|
|
127
|
+
auth_settings=auth_settings,
|
|
128
|
+
async_req=params.get('async_req'),
|
|
129
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
130
|
+
_preload_content=params.get('_preload_content', True),
|
|
131
|
+
_request_timeout=params.get('_request_timeout'),
|
|
132
|
+
collection_formats=collection_formats)
|
|
133
|
+
|
|
134
|
+
def delete_parameter_binding(self, parameter_binding_id, **kwargs): # noqa: E501
|
|
135
|
+
"""Delete a ParameterBinding based on it's unique identifier. # noqa: E501
|
|
136
|
+
|
|
137
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
138
|
+
asynchronous HTTP request, please pass async_req=True
|
|
139
|
+
>>> thread = api.delete_parameter_binding(parameter_binding_id, async_req=True)
|
|
140
|
+
>>> result = thread.get()
|
|
141
|
+
|
|
142
|
+
:param async_req bool
|
|
143
|
+
:param str parameter_binding_id: The unique identifier of the ParameterBinding to delete. (required)
|
|
144
|
+
:return: None
|
|
145
|
+
If the method is called asynchronously,
|
|
146
|
+
returns the request thread.
|
|
147
|
+
"""
|
|
148
|
+
kwargs['_return_http_data_only'] = True
|
|
149
|
+
if kwargs.get('async_req'):
|
|
150
|
+
return self.delete_parameter_binding_with_http_info(parameter_binding_id, **kwargs) # noqa: E501
|
|
151
|
+
else:
|
|
152
|
+
(data) = self.delete_parameter_binding_with_http_info(parameter_binding_id, **kwargs) # noqa: E501
|
|
153
|
+
return data
|
|
154
|
+
|
|
155
|
+
def delete_parameter_binding_with_http_info(self, parameter_binding_id, **kwargs): # noqa: E501
|
|
156
|
+
"""Delete a ParameterBinding based on it's unique identifier. # noqa: E501
|
|
157
|
+
|
|
158
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
159
|
+
asynchronous HTTP request, please pass async_req=True
|
|
160
|
+
>>> thread = api.delete_parameter_binding_with_http_info(parameter_binding_id, async_req=True)
|
|
161
|
+
>>> result = thread.get()
|
|
162
|
+
|
|
163
|
+
:param async_req bool
|
|
164
|
+
:param str parameter_binding_id: The unique identifier of the ParameterBinding to delete. (required)
|
|
165
|
+
:return: None
|
|
166
|
+
If the method is called asynchronously,
|
|
167
|
+
returns the request thread.
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
all_params = ['parameter_binding_id'] # noqa: E501
|
|
171
|
+
all_params.append('async_req')
|
|
172
|
+
all_params.append('_return_http_data_only')
|
|
173
|
+
all_params.append('_preload_content')
|
|
174
|
+
all_params.append('_request_timeout')
|
|
175
|
+
|
|
176
|
+
params = locals()
|
|
177
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
178
|
+
if key not in all_params:
|
|
179
|
+
raise TypeError(
|
|
180
|
+
"Got an unexpected keyword argument '%s'"
|
|
181
|
+
" to method delete_parameter_binding" % key
|
|
182
|
+
)
|
|
183
|
+
params[key] = val
|
|
184
|
+
del params['kwargs']
|
|
185
|
+
# verify the required parameter 'parameter_binding_id' is set
|
|
186
|
+
if ('parameter_binding_id' not in params or
|
|
187
|
+
params['parameter_binding_id'] is None):
|
|
188
|
+
raise ValueError("Missing the required parameter `parameter_binding_id` when calling `delete_parameter_binding`") # noqa: E501
|
|
189
|
+
|
|
190
|
+
collection_formats = {}
|
|
191
|
+
|
|
192
|
+
path_params = {}
|
|
193
|
+
if 'parameter_binding_id' in params:
|
|
194
|
+
path_params['parameterBindingId'] = params['parameter_binding_id'] # noqa: E501
|
|
195
|
+
|
|
196
|
+
query_params = []
|
|
197
|
+
|
|
198
|
+
header_params = {}
|
|
199
|
+
|
|
200
|
+
form_params = []
|
|
201
|
+
local_var_files = {}
|
|
202
|
+
|
|
203
|
+
body_params = None
|
|
204
|
+
# HTTP header `Accept`
|
|
205
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
206
|
+
['application/json', 'text/json']) # noqa: E501
|
|
207
|
+
|
|
208
|
+
# Authentication setting
|
|
209
|
+
auth_settings = [] # noqa: E501
|
|
210
|
+
|
|
211
|
+
return self.api_client.call_api(
|
|
212
|
+
'/teamdbapi/v2.0/parameterbinding/{parameterBindingId}', 'DELETE',
|
|
213
|
+
path_params,
|
|
214
|
+
query_params,
|
|
215
|
+
header_params,
|
|
216
|
+
body=body_params,
|
|
217
|
+
post_params=form_params,
|
|
218
|
+
files=local_var_files,
|
|
219
|
+
response_type=None, # noqa: E501
|
|
220
|
+
auth_settings=auth_settings,
|
|
221
|
+
async_req=params.get('async_req'),
|
|
222
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
223
|
+
_preload_content=params.get('_preload_content', True),
|
|
224
|
+
_request_timeout=params.get('_request_timeout'),
|
|
225
|
+
collection_formats=collection_formats)
|
|
226
|
+
|
|
227
|
+
def get_all_parameter_bindings(self, **kwargs): # noqa: E501
|
|
228
|
+
"""Get all the ParameterBindings. # noqa: E501
|
|
229
|
+
|
|
230
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
231
|
+
asynchronous HTTP request, please pass async_req=True
|
|
232
|
+
>>> thread = api.get_all_parameter_bindings(async_req=True)
|
|
233
|
+
>>> result = thread.get()
|
|
234
|
+
|
|
235
|
+
:param async_req bool
|
|
236
|
+
:return: list[ParameterBinding]
|
|
237
|
+
If the method is called asynchronously,
|
|
238
|
+
returns the request thread.
|
|
239
|
+
"""
|
|
240
|
+
kwargs['_return_http_data_only'] = True
|
|
241
|
+
if kwargs.get('async_req'):
|
|
242
|
+
return self.get_all_parameter_bindings_with_http_info(**kwargs) # noqa: E501
|
|
243
|
+
else:
|
|
244
|
+
(data) = self.get_all_parameter_bindings_with_http_info(**kwargs) # noqa: E501
|
|
245
|
+
return data
|
|
246
|
+
|
|
247
|
+
def get_all_parameter_bindings_with_http_info(self, **kwargs): # noqa: E501
|
|
248
|
+
"""Get all the ParameterBindings. # noqa: E501
|
|
249
|
+
|
|
250
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
251
|
+
asynchronous HTTP request, please pass async_req=True
|
|
252
|
+
>>> thread = api.get_all_parameter_bindings_with_http_info(async_req=True)
|
|
253
|
+
>>> result = thread.get()
|
|
254
|
+
|
|
255
|
+
:param async_req bool
|
|
256
|
+
:return: list[ParameterBinding]
|
|
257
|
+
If the method is called asynchronously,
|
|
258
|
+
returns the request thread.
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
all_params = [] # noqa: E501
|
|
262
|
+
all_params.append('async_req')
|
|
263
|
+
all_params.append('_return_http_data_only')
|
|
264
|
+
all_params.append('_preload_content')
|
|
265
|
+
all_params.append('_request_timeout')
|
|
266
|
+
|
|
267
|
+
params = locals()
|
|
268
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
269
|
+
if key not in all_params:
|
|
270
|
+
raise TypeError(
|
|
271
|
+
"Got an unexpected keyword argument '%s'"
|
|
272
|
+
" to method get_all_parameter_bindings" % key
|
|
273
|
+
)
|
|
274
|
+
params[key] = val
|
|
275
|
+
del params['kwargs']
|
|
276
|
+
|
|
277
|
+
collection_formats = {}
|
|
278
|
+
|
|
279
|
+
path_params = {}
|
|
280
|
+
|
|
281
|
+
query_params = []
|
|
282
|
+
|
|
283
|
+
header_params = {}
|
|
284
|
+
|
|
285
|
+
form_params = []
|
|
286
|
+
local_var_files = {}
|
|
287
|
+
|
|
288
|
+
body_params = None
|
|
289
|
+
# HTTP header `Accept`
|
|
290
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
291
|
+
['application/json', 'text/json']) # noqa: E501
|
|
292
|
+
|
|
293
|
+
# Authentication setting
|
|
294
|
+
auth_settings = [] # noqa: E501
|
|
295
|
+
|
|
296
|
+
return self.api_client.call_api(
|
|
297
|
+
'/teamdbapi/v2.0/parameterbindings', 'GET',
|
|
298
|
+
path_params,
|
|
299
|
+
query_params,
|
|
300
|
+
header_params,
|
|
301
|
+
body=body_params,
|
|
302
|
+
post_params=form_params,
|
|
303
|
+
files=local_var_files,
|
|
304
|
+
response_type='list[ParameterBinding]', # noqa: E501
|
|
305
|
+
auth_settings=auth_settings,
|
|
306
|
+
async_req=params.get('async_req'),
|
|
307
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
308
|
+
_preload_content=params.get('_preload_content', True),
|
|
309
|
+
_request_timeout=params.get('_request_timeout'),
|
|
310
|
+
collection_formats=collection_formats)
|
|
311
|
+
|
|
312
|
+
def get_parameter_binding(self, parameter_binding_id, **kwargs): # noqa: E501
|
|
313
|
+
"""Get a ParameterBinding from it's unique identifier. # noqa: E501
|
|
314
|
+
|
|
315
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
316
|
+
asynchronous HTTP request, please pass async_req=True
|
|
317
|
+
>>> thread = api.get_parameter_binding(parameter_binding_id, async_req=True)
|
|
318
|
+
>>> result = thread.get()
|
|
319
|
+
|
|
320
|
+
:param async_req bool
|
|
321
|
+
:param str parameter_binding_id: The unique identifier of the ParameterBinding to retrieve. (required)
|
|
322
|
+
:return: ParameterBinding
|
|
323
|
+
If the method is called asynchronously,
|
|
324
|
+
returns the request thread.
|
|
325
|
+
"""
|
|
326
|
+
kwargs['_return_http_data_only'] = True
|
|
327
|
+
if kwargs.get('async_req'):
|
|
328
|
+
return self.get_parameter_binding_with_http_info(parameter_binding_id, **kwargs) # noqa: E501
|
|
329
|
+
else:
|
|
330
|
+
(data) = self.get_parameter_binding_with_http_info(parameter_binding_id, **kwargs) # noqa: E501
|
|
331
|
+
return data
|
|
332
|
+
|
|
333
|
+
def get_parameter_binding_with_http_info(self, parameter_binding_id, **kwargs): # noqa: E501
|
|
334
|
+
"""Get a ParameterBinding from it's unique identifier. # noqa: E501
|
|
335
|
+
|
|
336
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
337
|
+
asynchronous HTTP request, please pass async_req=True
|
|
338
|
+
>>> thread = api.get_parameter_binding_with_http_info(parameter_binding_id, async_req=True)
|
|
339
|
+
>>> result = thread.get()
|
|
340
|
+
|
|
341
|
+
:param async_req bool
|
|
342
|
+
:param str parameter_binding_id: The unique identifier of the ParameterBinding to retrieve. (required)
|
|
343
|
+
:return: ParameterBinding
|
|
344
|
+
If the method is called asynchronously,
|
|
345
|
+
returns the request thread.
|
|
346
|
+
"""
|
|
347
|
+
|
|
348
|
+
all_params = ['parameter_binding_id'] # noqa: E501
|
|
349
|
+
all_params.append('async_req')
|
|
350
|
+
all_params.append('_return_http_data_only')
|
|
351
|
+
all_params.append('_preload_content')
|
|
352
|
+
all_params.append('_request_timeout')
|
|
353
|
+
|
|
354
|
+
params = locals()
|
|
355
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
356
|
+
if key not in all_params:
|
|
357
|
+
raise TypeError(
|
|
358
|
+
"Got an unexpected keyword argument '%s'"
|
|
359
|
+
" to method get_parameter_binding" % key
|
|
360
|
+
)
|
|
361
|
+
params[key] = val
|
|
362
|
+
del params['kwargs']
|
|
363
|
+
# verify the required parameter 'parameter_binding_id' is set
|
|
364
|
+
if ('parameter_binding_id' not in params or
|
|
365
|
+
params['parameter_binding_id'] is None):
|
|
366
|
+
raise ValueError("Missing the required parameter `parameter_binding_id` when calling `get_parameter_binding`") # noqa: E501
|
|
367
|
+
|
|
368
|
+
collection_formats = {}
|
|
369
|
+
|
|
370
|
+
path_params = {}
|
|
371
|
+
if 'parameter_binding_id' in params:
|
|
372
|
+
path_params['parameterBindingId'] = params['parameter_binding_id'] # noqa: E501
|
|
373
|
+
|
|
374
|
+
query_params = []
|
|
375
|
+
|
|
376
|
+
header_params = {}
|
|
377
|
+
|
|
378
|
+
form_params = []
|
|
379
|
+
local_var_files = {}
|
|
380
|
+
|
|
381
|
+
body_params = None
|
|
382
|
+
# HTTP header `Accept`
|
|
383
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
384
|
+
['application/json', 'text/json']) # noqa: E501
|
|
385
|
+
|
|
386
|
+
# Authentication setting
|
|
387
|
+
auth_settings = [] # noqa: E501
|
|
388
|
+
|
|
389
|
+
return self.api_client.call_api(
|
|
390
|
+
'/teamdbapi/v2.0/parameterbinding/{parameterBindingId}', 'GET',
|
|
391
|
+
path_params,
|
|
392
|
+
query_params,
|
|
393
|
+
header_params,
|
|
394
|
+
body=body_params,
|
|
395
|
+
post_params=form_params,
|
|
396
|
+
files=local_var_files,
|
|
397
|
+
response_type='ParameterBinding', # noqa: E501
|
|
398
|
+
auth_settings=auth_settings,
|
|
399
|
+
async_req=params.get('async_req'),
|
|
400
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
401
|
+
_preload_content=params.get('_preload_content', True),
|
|
402
|
+
_request_timeout=params.get('_request_timeout'),
|
|
403
|
+
collection_formats=collection_formats)
|
|
404
|
+
|
|
405
|
+
def update_parameter_binding(self, body, parameter_binding_id, **kwargs): # noqa: E501
|
|
406
|
+
"""Update a ParameterBinding. # noqa: E501
|
|
407
|
+
|
|
408
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
409
|
+
asynchronous HTTP request, please pass async_req=True
|
|
410
|
+
>>> thread = api.update_parameter_binding(body, parameter_binding_id, async_req=True)
|
|
411
|
+
>>> result = thread.get()
|
|
412
|
+
|
|
413
|
+
:param async_req bool
|
|
414
|
+
:param ParameterBinding body: The properties of the ParameterBinding to update. (required)
|
|
415
|
+
:param str parameter_binding_id: The unique identifier of the ParameterBinding to update. (required)
|
|
416
|
+
:return: ParameterBinding
|
|
417
|
+
If the method is called asynchronously,
|
|
418
|
+
returns the request thread.
|
|
419
|
+
"""
|
|
420
|
+
kwargs['_return_http_data_only'] = True
|
|
421
|
+
if kwargs.get('async_req'):
|
|
422
|
+
return self.update_parameter_binding_with_http_info(body, parameter_binding_id, **kwargs) # noqa: E501
|
|
423
|
+
else:
|
|
424
|
+
(data) = self.update_parameter_binding_with_http_info(body, parameter_binding_id, **kwargs) # noqa: E501
|
|
425
|
+
return data
|
|
426
|
+
|
|
427
|
+
def update_parameter_binding_with_http_info(self, body, parameter_binding_id, **kwargs): # noqa: E501
|
|
428
|
+
"""Update a ParameterBinding. # noqa: E501
|
|
429
|
+
|
|
430
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
431
|
+
asynchronous HTTP request, please pass async_req=True
|
|
432
|
+
>>> thread = api.update_parameter_binding_with_http_info(body, parameter_binding_id, async_req=True)
|
|
433
|
+
>>> result = thread.get()
|
|
434
|
+
|
|
435
|
+
:param async_req bool
|
|
436
|
+
:param ParameterBinding body: The properties of the ParameterBinding to update. (required)
|
|
437
|
+
:param str parameter_binding_id: The unique identifier of the ParameterBinding to update. (required)
|
|
438
|
+
:return: ParameterBinding
|
|
439
|
+
If the method is called asynchronously,
|
|
440
|
+
returns the request thread.
|
|
441
|
+
"""
|
|
442
|
+
|
|
443
|
+
all_params = ['body', 'parameter_binding_id'] # noqa: E501
|
|
444
|
+
all_params.append('async_req')
|
|
445
|
+
all_params.append('_return_http_data_only')
|
|
446
|
+
all_params.append('_preload_content')
|
|
447
|
+
all_params.append('_request_timeout')
|
|
448
|
+
|
|
449
|
+
params = locals()
|
|
450
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
451
|
+
if key not in all_params:
|
|
452
|
+
raise TypeError(
|
|
453
|
+
"Got an unexpected keyword argument '%s'"
|
|
454
|
+
" to method update_parameter_binding" % key
|
|
455
|
+
)
|
|
456
|
+
params[key] = val
|
|
457
|
+
del params['kwargs']
|
|
458
|
+
# verify the required parameter 'body' is set
|
|
459
|
+
if ('body' not in params or
|
|
460
|
+
params['body'] is None):
|
|
461
|
+
raise ValueError("Missing the required parameter `body` when calling `update_parameter_binding`") # noqa: E501
|
|
462
|
+
# verify the required parameter 'parameter_binding_id' is set
|
|
463
|
+
if ('parameter_binding_id' not in params or
|
|
464
|
+
params['parameter_binding_id'] is None):
|
|
465
|
+
raise ValueError("Missing the required parameter `parameter_binding_id` when calling `update_parameter_binding`") # noqa: E501
|
|
466
|
+
|
|
467
|
+
collection_formats = {}
|
|
468
|
+
|
|
469
|
+
path_params = {}
|
|
470
|
+
if 'parameter_binding_id' in params:
|
|
471
|
+
path_params['parameterBindingId'] = params['parameter_binding_id'] # noqa: E501
|
|
472
|
+
|
|
473
|
+
query_params = []
|
|
474
|
+
|
|
475
|
+
header_params = {}
|
|
476
|
+
|
|
477
|
+
form_params = []
|
|
478
|
+
local_var_files = {}
|
|
479
|
+
|
|
480
|
+
body_params = None
|
|
481
|
+
if 'body' in params:
|
|
482
|
+
body_params = params['body']
|
|
483
|
+
# HTTP header `Accept`
|
|
484
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
485
|
+
['application/json', 'text/json']) # noqa: E501
|
|
486
|
+
|
|
487
|
+
# HTTP header `Content-Type`
|
|
488
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
489
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
490
|
+
|
|
491
|
+
# Authentication setting
|
|
492
|
+
auth_settings = [] # noqa: E501
|
|
493
|
+
|
|
494
|
+
return self.api_client.call_api(
|
|
495
|
+
'/teamdbapi/v2.0/parameterbinding/{parameterBindingId}', 'PUT',
|
|
496
|
+
path_params,
|
|
497
|
+
query_params,
|
|
498
|
+
header_params,
|
|
499
|
+
body=body_params,
|
|
500
|
+
post_params=form_params,
|
|
501
|
+
files=local_var_files,
|
|
502
|
+
response_type='ParameterBinding', # noqa: E501
|
|
503
|
+
auth_settings=auth_settings,
|
|
504
|
+
async_req=params.get('async_req'),
|
|
505
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
506
|
+
_preload_content=params.get('_preload_content', True),
|
|
507
|
+
_request_timeout=params.get('_request_timeout'),
|
|
508
|
+
collection_formats=collection_formats)
|
teamdbapi/api/script_api.py
CHANGED
|
@@ -42,7 +42,7 @@ class ScriptApi(object):
|
|
|
42
42
|
|
|
43
43
|
:param async_req bool
|
|
44
44
|
:param str id: The unique Python script id that corresponds to the searched script (required)
|
|
45
|
-
:return:
|
|
45
|
+
:return: bool
|
|
46
46
|
If the method is called asynchronously,
|
|
47
47
|
returns the request thread.
|
|
48
48
|
"""
|
|
@@ -63,7 +63,7 @@ class ScriptApi(object):
|
|
|
63
63
|
|
|
64
64
|
:param async_req bool
|
|
65
65
|
:param str id: The unique Python script id that corresponds to the searched script (required)
|
|
66
|
-
:return:
|
|
66
|
+
:return: bool
|
|
67
67
|
If the method is called asynchronously,
|
|
68
68
|
returns the request thread.
|
|
69
69
|
"""
|
|
@@ -117,7 +117,7 @@ class ScriptApi(object):
|
|
|
117
117
|
body=body_params,
|
|
118
118
|
post_params=form_params,
|
|
119
119
|
files=local_var_files,
|
|
120
|
-
response_type='
|
|
120
|
+
response_type='bool', # noqa: E501
|
|
121
121
|
auth_settings=auth_settings,
|
|
122
122
|
async_req=params.get('async_req'),
|
|
123
123
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -135,7 +135,7 @@ class ScriptApi(object):
|
|
|
135
135
|
|
|
136
136
|
:param async_req bool
|
|
137
137
|
:param str name: The Python script unique name that corresponds to the searched script (required)
|
|
138
|
-
:return:
|
|
138
|
+
:return: bool
|
|
139
139
|
If the method is called asynchronously,
|
|
140
140
|
returns the request thread.
|
|
141
141
|
"""
|
|
@@ -156,7 +156,7 @@ class ScriptApi(object):
|
|
|
156
156
|
|
|
157
157
|
:param async_req bool
|
|
158
158
|
:param str name: The Python script unique name that corresponds to the searched script (required)
|
|
159
|
-
:return:
|
|
159
|
+
:return: bool
|
|
160
160
|
If the method is called asynchronously,
|
|
161
161
|
returns the request thread.
|
|
162
162
|
"""
|
|
@@ -210,7 +210,7 @@ class ScriptApi(object):
|
|
|
210
210
|
body=body_params,
|
|
211
211
|
post_params=form_params,
|
|
212
212
|
files=local_var_files,
|
|
213
|
-
response_type='
|
|
213
|
+
response_type='bool', # noqa: E501
|
|
214
214
|
auth_settings=auth_settings,
|
|
215
215
|
async_req=params.get('async_req'),
|
|
216
216
|
_return_http_data_only=params.get('_return_http_data_only'),
|
teamdbapi/api/value_field_api.py
CHANGED
|
@@ -347,6 +347,107 @@ class ValueFieldApi(object):
|
|
|
347
347
|
_request_timeout=params.get('_request_timeout'),
|
|
348
348
|
collection_formats=collection_formats)
|
|
349
349
|
|
|
350
|
+
def open_media_file(self, model_field_id, parent_item_id, **kwargs): # noqa: E501
|
|
351
|
+
"""[Command] Ask to open a file (document or image) with the default viewer. # noqa: E501
|
|
352
|
+
|
|
353
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
354
|
+
asynchronous HTTP request, please pass async_req=True
|
|
355
|
+
>>> thread = api.open_media_file(model_field_id, parent_item_id, async_req=True)
|
|
356
|
+
>>> result = thread.get()
|
|
357
|
+
|
|
358
|
+
:param async_req bool
|
|
359
|
+
:param str model_field_id: The id of the ModelField containing the document you wish to open. (required)
|
|
360
|
+
:param str parent_item_id: The id of the parent item for which you wish to open the document. (required)
|
|
361
|
+
:return: None
|
|
362
|
+
If the method is called asynchronously,
|
|
363
|
+
returns the request thread.
|
|
364
|
+
"""
|
|
365
|
+
kwargs['_return_http_data_only'] = True
|
|
366
|
+
if kwargs.get('async_req'):
|
|
367
|
+
return self.open_media_file_with_http_info(model_field_id, parent_item_id, **kwargs) # noqa: E501
|
|
368
|
+
else:
|
|
369
|
+
(data) = self.open_media_file_with_http_info(model_field_id, parent_item_id, **kwargs) # noqa: E501
|
|
370
|
+
return data
|
|
371
|
+
|
|
372
|
+
def open_media_file_with_http_info(self, model_field_id, parent_item_id, **kwargs): # noqa: E501
|
|
373
|
+
"""[Command] Ask to open a file (document or image) with the default viewer. # noqa: E501
|
|
374
|
+
|
|
375
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
376
|
+
asynchronous HTTP request, please pass async_req=True
|
|
377
|
+
>>> thread = api.open_media_file_with_http_info(model_field_id, parent_item_id, async_req=True)
|
|
378
|
+
>>> result = thread.get()
|
|
379
|
+
|
|
380
|
+
:param async_req bool
|
|
381
|
+
:param str model_field_id: The id of the ModelField containing the document you wish to open. (required)
|
|
382
|
+
:param str parent_item_id: The id of the parent item for which you wish to open the document. (required)
|
|
383
|
+
:return: None
|
|
384
|
+
If the method is called asynchronously,
|
|
385
|
+
returns the request thread.
|
|
386
|
+
"""
|
|
387
|
+
|
|
388
|
+
all_params = ['model_field_id', 'parent_item_id'] # noqa: E501
|
|
389
|
+
all_params.append('async_req')
|
|
390
|
+
all_params.append('_return_http_data_only')
|
|
391
|
+
all_params.append('_preload_content')
|
|
392
|
+
all_params.append('_request_timeout')
|
|
393
|
+
|
|
394
|
+
params = locals()
|
|
395
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
396
|
+
if key not in all_params:
|
|
397
|
+
raise TypeError(
|
|
398
|
+
"Got an unexpected keyword argument '%s'"
|
|
399
|
+
" to method open_media_file" % key
|
|
400
|
+
)
|
|
401
|
+
params[key] = val
|
|
402
|
+
del params['kwargs']
|
|
403
|
+
# verify the required parameter 'model_field_id' is set
|
|
404
|
+
if ('model_field_id' not in params or
|
|
405
|
+
params['model_field_id'] is None):
|
|
406
|
+
raise ValueError("Missing the required parameter `model_field_id` when calling `open_media_file`") # noqa: E501
|
|
407
|
+
# verify the required parameter 'parent_item_id' is set
|
|
408
|
+
if ('parent_item_id' not in params or
|
|
409
|
+
params['parent_item_id'] is None):
|
|
410
|
+
raise ValueError("Missing the required parameter `parent_item_id` when calling `open_media_file`") # noqa: E501
|
|
411
|
+
|
|
412
|
+
collection_formats = {}
|
|
413
|
+
|
|
414
|
+
path_params = {}
|
|
415
|
+
if 'model_field_id' in params:
|
|
416
|
+
path_params['modelFieldId'] = params['model_field_id'] # noqa: E501
|
|
417
|
+
|
|
418
|
+
query_params = []
|
|
419
|
+
if 'parent_item_id' in params:
|
|
420
|
+
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
421
|
+
|
|
422
|
+
header_params = {}
|
|
423
|
+
|
|
424
|
+
form_params = []
|
|
425
|
+
local_var_files = {}
|
|
426
|
+
|
|
427
|
+
body_params = None
|
|
428
|
+
# HTTP header `Accept`
|
|
429
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
430
|
+
['application/json', 'text/json']) # noqa: E501
|
|
431
|
+
|
|
432
|
+
# Authentication setting
|
|
433
|
+
auth_settings = [] # noqa: E501
|
|
434
|
+
|
|
435
|
+
return self.api_client.call_api(
|
|
436
|
+
'/teamdbapi/v2.0/modelfield/{modelFieldId}/openMediaFile', 'POST',
|
|
437
|
+
path_params,
|
|
438
|
+
query_params,
|
|
439
|
+
header_params,
|
|
440
|
+
body=body_params,
|
|
441
|
+
post_params=form_params,
|
|
442
|
+
files=local_var_files,
|
|
443
|
+
response_type=None, # noqa: E501
|
|
444
|
+
auth_settings=auth_settings,
|
|
445
|
+
async_req=params.get('async_req'),
|
|
446
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
447
|
+
_preload_content=params.get('_preload_content', True),
|
|
448
|
+
_request_timeout=params.get('_request_timeout'),
|
|
449
|
+
collection_formats=collection_formats)
|
|
450
|
+
|
|
350
451
|
def set_item_values(self, body, **kwargs): # noqa: E501
|
|
351
452
|
"""Set a list of items value fields, revision editors and revision selectors via a model field unique id and a parent entity unique id. # noqa: E501
|
|
352
453
|
|
teamdbapi/models/__init__.py
CHANGED
|
@@ -28,6 +28,7 @@ from teamdbapi.models.copy_from_tags_args import CopyFromTagsArgs
|
|
|
28
28
|
from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
29
29
|
from teamdbapi.models.criteria import Criteria
|
|
30
30
|
from teamdbapi.models.criteria_value import CriteriaValue
|
|
31
|
+
from teamdbapi.models.criteria_value_detail import CriteriaValueDetail
|
|
31
32
|
from teamdbapi.models.event import Event
|
|
32
33
|
from teamdbapi.models.file_revision_info import FileRevisionInfo
|
|
33
34
|
from teamdbapi.models.fixed_field import FixedField
|
|
@@ -54,7 +55,9 @@ from teamdbapi.models.model_field_authorization import ModelFieldAuthorization
|
|
|
54
55
|
from teamdbapi.models.mounting import Mounting
|
|
55
56
|
from teamdbapi.models.notes_authorization import NotesAuthorization
|
|
56
57
|
from teamdbapi.models.notes_context import NotesContext
|
|
58
|
+
from teamdbapi.models.overall import Overall
|
|
57
59
|
from teamdbapi.models.parameter import Parameter
|
|
60
|
+
from teamdbapi.models.parameter_binding import ParameterBinding
|
|
58
61
|
from teamdbapi.models.parameter_cross_table import ParameterCrossTable
|
|
59
62
|
from teamdbapi.models.part import Part
|
|
60
63
|
from teamdbapi.models.part_car_parameters import PartCarParameters
|