teamdbapi 3.2.0__py3-none-any.whl → 3.4.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.
@@ -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)
@@ -43,7 +43,7 @@ class ReportApi(object):
43
43
  :param async_req bool
44
44
  :param str report_name: The report name (required)
45
45
  :param str format: The output file format (required)
46
- :param str output_file_path: The path to the file to create. You have to provide the file extension for example : C://path/MyFile.pdf (required)
46
+ :param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:/path/MyFile.pdf (required)
47
47
  :return: None
48
48
  If the method is called asynchronously,
49
49
  returns the request thread.
@@ -66,7 +66,7 @@ class ReportApi(object):
66
66
  :param async_req bool
67
67
  :param str report_name: The report name (required)
68
68
  :param str format: The output file format (required)
69
- :param str output_file_path: The path to the file to create. You have to provide the file extension for example : C://path/MyFile.pdf (required)
69
+ :param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:/path/MyFile.pdf (required)
70
70
  :return: None
71
71
  If the method is called asynchronously,
72
72
  returns the request thread.
@@ -372,7 +372,7 @@ class RevisionApi(object):
372
372
  :param async_req bool
373
373
  :param str revision_id: The revision id to export. (required)
374
374
  :param str version_id: The version id to which you want to export the revision value. (required)
375
- :param str output_file_path: The path to the file to create. You have to provide the file extension for example : MyFile.m (required)
375
+ :param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:/path/MyFile.m (required)
376
376
  :return: bool
377
377
  If the method is called asynchronously,
378
378
  returns the request thread.
@@ -395,7 +395,7 @@ class RevisionApi(object):
395
395
  :param async_req bool
396
396
  :param str revision_id: The revision id to export. (required)
397
397
  :param str version_id: The version id to which you want to export the revision value. (required)
398
- :param str output_file_path: The path to the file to create. You have to provide the file extension for example : MyFile.m (required)
398
+ :param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:/path/MyFile.m (required)
399
399
  :return: bool
400
400
  If the method is called asynchronously,
401
401
  returns the request thread.
@@ -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
 
@@ -453,7 +554,7 @@ class ValueFieldApi(object):
453
554
  >>> result = thread.get()
454
555
 
455
556
  :param async_req bool
456
- :param object body: The value to set in the value field. -Timespan, enter a double value in seconds 125.333 -> 02:05.333. -DateTime, use the following format 2019-02-18T18:14:32.930Z. -Image, enter the path to the file with the following format C:\\\\Users\\\\MyUser\\\\Downloads\\\\MyImage.png (note the double \\) (required)
557
+ :param object body: The value to set in the value field. -Timespan, enter a double value in seconds 125.333 -> 02:05.333. -DateTime, use the following format 2019-02-18T18:14:32.930Z. -Image, enter the path to the file, must be described only by / or \\\\. (required)
457
558
  :param str parent_item_id: The parent item id for which you want to get the value field (required)
458
559
  :param str model_field_id: The model field id for which you want to get the value field (required)
459
560
  :return: ValueField
@@ -476,7 +577,7 @@ class ValueFieldApi(object):
476
577
  >>> result = thread.get()
477
578
 
478
579
  :param async_req bool
479
- :param object body: The value to set in the value field. -Timespan, enter a double value in seconds 125.333 -> 02:05.333. -DateTime, use the following format 2019-02-18T18:14:32.930Z. -Image, enter the path to the file with the following format C:\\\\Users\\\\MyUser\\\\Downloads\\\\MyImage.png (note the double \\) (required)
580
+ :param object body: The value to set in the value field. -Timespan, enter a double value in seconds 125.333 -> 02:05.333. -DateTime, use the following format 2019-02-18T18:14:32.930Z. -Image, enter the path to the file, must be described only by / or \\\\. (required)
480
581
  :param str parent_item_id: The parent item id for which you want to get the value field (required)
481
582
  :param str model_field_id: The model field id for which you want to get the value field (required)
482
583
  :return: ValueField
@@ -54,7 +54,9 @@ from teamdbapi.models.model_field_authorization import ModelFieldAuthorization
54
54
  from teamdbapi.models.mounting import Mounting
55
55
  from teamdbapi.models.notes_authorization import NotesAuthorization
56
56
  from teamdbapi.models.notes_context import NotesContext
57
+ from teamdbapi.models.overall import Overall
57
58
  from teamdbapi.models.parameter import Parameter
59
+ from teamdbapi.models.parameter_binding import ParameterBinding
58
60
  from teamdbapi.models.parameter_cross_table import ParameterCrossTable
59
61
  from teamdbapi.models.part import Part
60
62
  from teamdbapi.models.part_car_parameters import PartCarParameters