teamdbapi 2.37.2__py3-none-any.whl → 3.2.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 +26 -0
- teamdbapi/api/__init__.py +6 -0
- teamdbapi/api/assembly_api.py +23 -23
- teamdbapi/api/component_api.py +1071 -0
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/import_export_api.py +85 -0
- teamdbapi/api/issue_api.py +1537 -0
- teamdbapi/api/lap_report_api.py +5 -1
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/part_api.py +785 -0
- teamdbapi/api/revision_api.py +109 -4
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +5 -12
- teamdbapi/models/__init__.py +20 -0
- teamdbapi/models/add_part_car_parameter_arg.py +396 -0
- teamdbapi/models/assembly.py +1 -0
- teamdbapi/models/bleed_adjustment.py +1 -0
- teamdbapi/models/calibration.py +1 -0
- teamdbapi/models/car.py +1 -0
- teamdbapi/models/car_parameters_context.py +1 -0
- teamdbapi/models/compare_options.py +1 -0
- teamdbapi/models/compare_result.py +1 -0
- teamdbapi/models/compare_result_detail.py +2 -0
- teamdbapi/models/component.py +1301 -0
- teamdbapi/models/copy_from_tags_args.py +2 -0
- teamdbapi/models/couple_guid_text.py +1 -0
- teamdbapi/models/criteria.py +430 -0
- teamdbapi/models/criteria_value.py +197 -0
- teamdbapi/models/event.py +1 -0
- teamdbapi/models/file_revision_info.py +199 -0
- teamdbapi/models/fixed_field.py +2 -1
- teamdbapi/models/group.py +1 -0
- teamdbapi/models/import_parameters_args.py +1 -0
- teamdbapi/models/import_parameters_results.py +2 -0
- teamdbapi/models/import_revisions_args.py +173 -0
- teamdbapi/models/import_revisions_info.py +197 -0
- teamdbapi/models/import_revisions_results.py +170 -0
- teamdbapi/models/issue.py +674 -0
- teamdbapi/models/issue_custom_field_value.py +319 -0
- teamdbapi/models/issue_priority.py +227 -0
- teamdbapi/models/issue_project.py +229 -0
- teamdbapi/models/issue_sector.py +199 -0
- teamdbapi/models/issue_status.py +284 -0
- teamdbapi/models/issue_type.py +199 -0
- teamdbapi/models/issue_workflow.py +199 -0
- teamdbapi/models/item_value.py +1 -0
- teamdbapi/models/item_value_key.py +1 -0
- teamdbapi/models/lap.py +1 -0
- teamdbapi/models/lap_report_options.py +1 -0
- teamdbapi/models/model_field.py +3 -1
- teamdbapi/models/model_field_authorization.py +1 -0
- teamdbapi/models/mounting.py +489 -0
- teamdbapi/models/notes_authorization.py +1 -0
- teamdbapi/models/notes_context.py +1 -0
- teamdbapi/models/parameter.py +2 -0
- teamdbapi/models/parameter_cross_table.py +1 -0
- teamdbapi/models/part.py +991 -0
- teamdbapi/models/part_car_parameters.py +561 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +116 -3
- teamdbapi/models/revision_value.py +32 -3
- teamdbapi/models/run.py +1 -0
- teamdbapi/models/script.py +1 -0
- teamdbapi/models/session.py +1 -0
- teamdbapi/models/string_with_font_style.py +1 -0
- teamdbapi/models/target.py +64 -7
- teamdbapi/models/team_db_list.py +1 -0
- teamdbapi/models/team_db_list_item.py +1 -0
- teamdbapi/models/tire.py +2 -0
- teamdbapi/models/tire_set.py +2 -0
- teamdbapi/models/track.py +1 -0
- teamdbapi/models/track_layout.py +1 -0
- teamdbapi/models/user.py +1 -0
- teamdbapi/models/user_group.py +1 -0
- teamdbapi/models/value_field.py +1 -0
- teamdbapi/models/version.py +1 -0
- teamdbapi/rest.py +6 -1
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.2.0.dist-info}/METADATA +3 -3
- teamdbapi-3.2.0.dist-info/RECORD +108 -0
- teamdbapi-2.37.2.dist-info/RECORD +0 -82
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.2.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.2.0.dist-info}/WHEEL +0 -0
teamdbapi/api/revision_api.py
CHANGED
|
@@ -151,7 +151,7 @@ class RevisionApi(object):
|
|
|
151
151
|
:param RevisionValue body: The revision value you want to create (required)
|
|
152
152
|
:param str part_number: The lifing component's part number (required)
|
|
153
153
|
:param str serial_number: The lifing component's serial number (required)
|
|
154
|
-
:param str parameter_path: The parameter path identifying the parameter.
|
|
154
|
+
:param str parameter_path: The parameter path identifying the parameter. (required)
|
|
155
155
|
:param str target_name: The target to which the parameter is associated (required)
|
|
156
156
|
:return: Revision
|
|
157
157
|
If the method is called asynchronously,
|
|
@@ -176,7 +176,7 @@ class RevisionApi(object):
|
|
|
176
176
|
:param RevisionValue body: The revision value you want to create (required)
|
|
177
177
|
:param str part_number: The lifing component's part number (required)
|
|
178
178
|
:param str serial_number: The lifing component's serial number (required)
|
|
179
|
-
:param str parameter_path: The parameter path identifying the parameter.
|
|
179
|
+
:param str parameter_path: The parameter path identifying the parameter. (required)
|
|
180
180
|
:param str target_name: The target to which the parameter is associated (required)
|
|
181
181
|
:return: Revision
|
|
182
182
|
If the method is called asynchronously,
|
|
@@ -582,7 +582,7 @@ class RevisionApi(object):
|
|
|
582
582
|
:param async_req bool
|
|
583
583
|
:param str part_number: The lifing component's part number (required)
|
|
584
584
|
:param str serial_number: The lifing component's serial number (required)
|
|
585
|
-
:param str parameter_path: The parameter path identifying the parameter.
|
|
585
|
+
:param str parameter_path: The parameter path identifying the parameter. (required)
|
|
586
586
|
:param str target_name: The target to which the parameter is associated (required)
|
|
587
587
|
:return: list[Revision]
|
|
588
588
|
If the method is called asynchronously,
|
|
@@ -606,7 +606,7 @@ class RevisionApi(object):
|
|
|
606
606
|
:param async_req bool
|
|
607
607
|
:param str part_number: The lifing component's part number (required)
|
|
608
608
|
:param str serial_number: The lifing component's serial number (required)
|
|
609
|
-
:param str parameter_path: The parameter path identifying the parameter.
|
|
609
|
+
:param str parameter_path: The parameter path identifying the parameter. (required)
|
|
610
610
|
:param str target_name: The target to which the parameter is associated (required)
|
|
611
611
|
:return: list[Revision]
|
|
612
612
|
If the method is called asynchronously,
|
|
@@ -1197,6 +1197,111 @@ class RevisionApi(object):
|
|
|
1197
1197
|
_request_timeout=params.get('_request_timeout'),
|
|
1198
1198
|
collection_formats=collection_formats)
|
|
1199
1199
|
|
|
1200
|
+
def import_revisions(self, body, version_id, **kwargs): # noqa: E501
|
|
1201
|
+
"""Import revisions from files for a given car parameters version # noqa: E501
|
|
1202
|
+
|
|
1203
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1204
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1205
|
+
>>> thread = api.import_revisions(body, version_id, async_req=True)
|
|
1206
|
+
>>> result = thread.get()
|
|
1207
|
+
|
|
1208
|
+
:param async_req bool
|
|
1209
|
+
:param ImportRevisionsArgs body: The import options (required)
|
|
1210
|
+
:param str version_id: The unique id of the version to which the revisions will be imported. (required)
|
|
1211
|
+
:return: ImportRevisionsResults
|
|
1212
|
+
If the method is called asynchronously,
|
|
1213
|
+
returns the request thread.
|
|
1214
|
+
"""
|
|
1215
|
+
kwargs['_return_http_data_only'] = True
|
|
1216
|
+
if kwargs.get('async_req'):
|
|
1217
|
+
return self.import_revisions_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
1218
|
+
else:
|
|
1219
|
+
(data) = self.import_revisions_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
1220
|
+
return data
|
|
1221
|
+
|
|
1222
|
+
def import_revisions_with_http_info(self, body, version_id, **kwargs): # noqa: E501
|
|
1223
|
+
"""Import revisions from files for a given car parameters version # noqa: E501
|
|
1224
|
+
|
|
1225
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1226
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1227
|
+
>>> thread = api.import_revisions_with_http_info(body, version_id, async_req=True)
|
|
1228
|
+
>>> result = thread.get()
|
|
1229
|
+
|
|
1230
|
+
:param async_req bool
|
|
1231
|
+
:param ImportRevisionsArgs body: The import options (required)
|
|
1232
|
+
:param str version_id: The unique id of the version to which the revisions will be imported. (required)
|
|
1233
|
+
:return: ImportRevisionsResults
|
|
1234
|
+
If the method is called asynchronously,
|
|
1235
|
+
returns the request thread.
|
|
1236
|
+
"""
|
|
1237
|
+
|
|
1238
|
+
all_params = ['body', 'version_id'] # noqa: E501
|
|
1239
|
+
all_params.append('async_req')
|
|
1240
|
+
all_params.append('_return_http_data_only')
|
|
1241
|
+
all_params.append('_preload_content')
|
|
1242
|
+
all_params.append('_request_timeout')
|
|
1243
|
+
|
|
1244
|
+
params = locals()
|
|
1245
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1246
|
+
if key not in all_params:
|
|
1247
|
+
raise TypeError(
|
|
1248
|
+
"Got an unexpected keyword argument '%s'"
|
|
1249
|
+
" to method import_revisions" % key
|
|
1250
|
+
)
|
|
1251
|
+
params[key] = val
|
|
1252
|
+
del params['kwargs']
|
|
1253
|
+
# verify the required parameter 'body' is set
|
|
1254
|
+
if ('body' not in params or
|
|
1255
|
+
params['body'] is None):
|
|
1256
|
+
raise ValueError("Missing the required parameter `body` when calling `import_revisions`") # noqa: E501
|
|
1257
|
+
# verify the required parameter 'version_id' is set
|
|
1258
|
+
if ('version_id' not in params or
|
|
1259
|
+
params['version_id'] is None):
|
|
1260
|
+
raise ValueError("Missing the required parameter `version_id` when calling `import_revisions`") # noqa: E501
|
|
1261
|
+
|
|
1262
|
+
collection_formats = {}
|
|
1263
|
+
|
|
1264
|
+
path_params = {}
|
|
1265
|
+
if 'version_id' in params:
|
|
1266
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
1267
|
+
|
|
1268
|
+
query_params = []
|
|
1269
|
+
|
|
1270
|
+
header_params = {}
|
|
1271
|
+
|
|
1272
|
+
form_params = []
|
|
1273
|
+
local_var_files = {}
|
|
1274
|
+
|
|
1275
|
+
body_params = None
|
|
1276
|
+
if 'body' in params:
|
|
1277
|
+
body_params = params['body']
|
|
1278
|
+
# HTTP header `Accept`
|
|
1279
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1280
|
+
['application/json', 'text/json']) # noqa: E501
|
|
1281
|
+
|
|
1282
|
+
# HTTP header `Content-Type`
|
|
1283
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1284
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
1285
|
+
|
|
1286
|
+
# Authentication setting
|
|
1287
|
+
auth_settings = [] # noqa: E501
|
|
1288
|
+
|
|
1289
|
+
return self.api_client.call_api(
|
|
1290
|
+
'/teamdbapi/v2.0/version/{versionId}/revisions/import', 'POST',
|
|
1291
|
+
path_params,
|
|
1292
|
+
query_params,
|
|
1293
|
+
header_params,
|
|
1294
|
+
body=body_params,
|
|
1295
|
+
post_params=form_params,
|
|
1296
|
+
files=local_var_files,
|
|
1297
|
+
response_type='ImportRevisionsResults', # noqa: E501
|
|
1298
|
+
auth_settings=auth_settings,
|
|
1299
|
+
async_req=params.get('async_req'),
|
|
1300
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1301
|
+
_preload_content=params.get('_preload_content', True),
|
|
1302
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1303
|
+
collection_formats=collection_formats)
|
|
1304
|
+
|
|
1200
1305
|
def try_get_revision(self, body, version_id, **kwargs): # noqa: E501
|
|
1201
1306
|
"""Check whether the revision with the same data already exists for a given version. Returns the revision unique ID already existing or empty (00000000-0000-0000-0000-000000000000) if not found. # noqa: E501
|
|
1202
1307
|
|
|
@@ -0,0 +1,235 @@
|
|
|
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 UpdateRequestApi(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 get_update_request_status(self, target_id, car_id, **kwargs): # noqa: E501
|
|
36
|
+
"""Get the update request status for a target and a car. # noqa: E501
|
|
37
|
+
|
|
38
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40
|
+
>>> thread = api.get_update_request_status(target_id, car_id, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str target_id: The unique target id that corresponds to the searched update request status (required)
|
|
45
|
+
:param str car_id: The unique car id that corresponds to the searched update request status (required)
|
|
46
|
+
:return: str
|
|
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.get_update_request_status_with_http_info(target_id, car_id, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.get_update_request_status_with_http_info(target_id, car_id, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def get_update_request_status_with_http_info(self, target_id, car_id, **kwargs): # noqa: E501
|
|
58
|
+
"""Get the update request status for a target and a car. # noqa: E501
|
|
59
|
+
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.get_update_request_status_with_http_info(target_id, car_id, async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:param str target_id: The unique target id that corresponds to the searched update request status (required)
|
|
67
|
+
:param str car_id: The unique car id that corresponds to the searched update request status (required)
|
|
68
|
+
:return: str
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['target_id', 'car_id'] # 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 get_update_request_status" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter 'target_id' is set
|
|
89
|
+
if ('target_id' not in params or
|
|
90
|
+
params['target_id'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `target_id` when calling `get_update_request_status`") # noqa: E501
|
|
92
|
+
# verify the required parameter 'car_id' is set
|
|
93
|
+
if ('car_id' not in params or
|
|
94
|
+
params['car_id'] is None):
|
|
95
|
+
raise ValueError("Missing the required parameter `car_id` when calling `get_update_request_status`") # noqa: E501
|
|
96
|
+
|
|
97
|
+
collection_formats = {}
|
|
98
|
+
|
|
99
|
+
path_params = {}
|
|
100
|
+
if 'target_id' in params:
|
|
101
|
+
path_params['targetId'] = params['target_id'] # noqa: E501
|
|
102
|
+
if 'car_id' in params:
|
|
103
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
104
|
+
|
|
105
|
+
query_params = []
|
|
106
|
+
|
|
107
|
+
header_params = {}
|
|
108
|
+
|
|
109
|
+
form_params = []
|
|
110
|
+
local_var_files = {}
|
|
111
|
+
|
|
112
|
+
body_params = None
|
|
113
|
+
# HTTP header `Accept`
|
|
114
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
115
|
+
['application/json', 'text/json']) # noqa: E501
|
|
116
|
+
|
|
117
|
+
# Authentication setting
|
|
118
|
+
auth_settings = [] # noqa: E501
|
|
119
|
+
|
|
120
|
+
return self.api_client.call_api(
|
|
121
|
+
'/updaterequeststatus/target/{targetId}/car/{carId}', 'GET',
|
|
122
|
+
path_params,
|
|
123
|
+
query_params,
|
|
124
|
+
header_params,
|
|
125
|
+
body=body_params,
|
|
126
|
+
post_params=form_params,
|
|
127
|
+
files=local_var_files,
|
|
128
|
+
response_type='str', # noqa: E501
|
|
129
|
+
auth_settings=auth_settings,
|
|
130
|
+
async_req=params.get('async_req'),
|
|
131
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
132
|
+
_preload_content=params.get('_preload_content', True),
|
|
133
|
+
_request_timeout=params.get('_request_timeout'),
|
|
134
|
+
collection_formats=collection_formats)
|
|
135
|
+
|
|
136
|
+
def reset_update_request_status(self, target_id, car_id, **kwargs): # noqa: E501
|
|
137
|
+
"""Reset the update request status for a target and a car. # noqa: E501
|
|
138
|
+
|
|
139
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
140
|
+
asynchronous HTTP request, please pass async_req=True
|
|
141
|
+
>>> thread = api.reset_update_request_status(target_id, car_id, async_req=True)
|
|
142
|
+
>>> result = thread.get()
|
|
143
|
+
|
|
144
|
+
:param async_req bool
|
|
145
|
+
:param str target_id: The unique target id that corresponds to the searched update request status (required)
|
|
146
|
+
:param str car_id: The unique car id that corresponds to the searched update request status (required)
|
|
147
|
+
:return: None
|
|
148
|
+
If the method is called asynchronously,
|
|
149
|
+
returns the request thread.
|
|
150
|
+
"""
|
|
151
|
+
kwargs['_return_http_data_only'] = True
|
|
152
|
+
if kwargs.get('async_req'):
|
|
153
|
+
return self.reset_update_request_status_with_http_info(target_id, car_id, **kwargs) # noqa: E501
|
|
154
|
+
else:
|
|
155
|
+
(data) = self.reset_update_request_status_with_http_info(target_id, car_id, **kwargs) # noqa: E501
|
|
156
|
+
return data
|
|
157
|
+
|
|
158
|
+
def reset_update_request_status_with_http_info(self, target_id, car_id, **kwargs): # noqa: E501
|
|
159
|
+
"""Reset the update request status for a target and a car. # noqa: E501
|
|
160
|
+
|
|
161
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
162
|
+
asynchronous HTTP request, please pass async_req=True
|
|
163
|
+
>>> thread = api.reset_update_request_status_with_http_info(target_id, car_id, async_req=True)
|
|
164
|
+
>>> result = thread.get()
|
|
165
|
+
|
|
166
|
+
:param async_req bool
|
|
167
|
+
:param str target_id: The unique target id that corresponds to the searched update request status (required)
|
|
168
|
+
:param str car_id: The unique car id that corresponds to the searched update request status (required)
|
|
169
|
+
:return: None
|
|
170
|
+
If the method is called asynchronously,
|
|
171
|
+
returns the request thread.
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
all_params = ['target_id', 'car_id'] # noqa: E501
|
|
175
|
+
all_params.append('async_req')
|
|
176
|
+
all_params.append('_return_http_data_only')
|
|
177
|
+
all_params.append('_preload_content')
|
|
178
|
+
all_params.append('_request_timeout')
|
|
179
|
+
|
|
180
|
+
params = locals()
|
|
181
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
182
|
+
if key not in all_params:
|
|
183
|
+
raise TypeError(
|
|
184
|
+
"Got an unexpected keyword argument '%s'"
|
|
185
|
+
" to method reset_update_request_status" % key
|
|
186
|
+
)
|
|
187
|
+
params[key] = val
|
|
188
|
+
del params['kwargs']
|
|
189
|
+
# verify the required parameter 'target_id' is set
|
|
190
|
+
if ('target_id' not in params or
|
|
191
|
+
params['target_id'] is None):
|
|
192
|
+
raise ValueError("Missing the required parameter `target_id` when calling `reset_update_request_status`") # noqa: E501
|
|
193
|
+
# verify the required parameter 'car_id' is set
|
|
194
|
+
if ('car_id' not in params or
|
|
195
|
+
params['car_id'] is None):
|
|
196
|
+
raise ValueError("Missing the required parameter `car_id` when calling `reset_update_request_status`") # noqa: E501
|
|
197
|
+
|
|
198
|
+
collection_formats = {}
|
|
199
|
+
|
|
200
|
+
path_params = {}
|
|
201
|
+
if 'target_id' in params:
|
|
202
|
+
path_params['targetId'] = params['target_id'] # noqa: E501
|
|
203
|
+
if 'car_id' in params:
|
|
204
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
205
|
+
|
|
206
|
+
query_params = []
|
|
207
|
+
|
|
208
|
+
header_params = {}
|
|
209
|
+
|
|
210
|
+
form_params = []
|
|
211
|
+
local_var_files = {}
|
|
212
|
+
|
|
213
|
+
body_params = None
|
|
214
|
+
# HTTP header `Accept`
|
|
215
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
216
|
+
['application/json', 'text/json']) # noqa: E501
|
|
217
|
+
|
|
218
|
+
# Authentication setting
|
|
219
|
+
auth_settings = [] # noqa: E501
|
|
220
|
+
|
|
221
|
+
return self.api_client.call_api(
|
|
222
|
+
'/updaterequeststatus/reset/target/{targetId}/car/{carId}', 'POST',
|
|
223
|
+
path_params,
|
|
224
|
+
query_params,
|
|
225
|
+
header_params,
|
|
226
|
+
body=body_params,
|
|
227
|
+
post_params=form_params,
|
|
228
|
+
files=local_var_files,
|
|
229
|
+
response_type=None, # noqa: E501
|
|
230
|
+
auth_settings=auth_settings,
|
|
231
|
+
async_req=params.get('async_req'),
|
|
232
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
233
|
+
_preload_content=params.get('_preload_content', True),
|
|
234
|
+
_request_timeout=params.get('_request_timeout'),
|
|
235
|
+
collection_formats=collection_formats)
|
teamdbapi/api_client.py
CHANGED
|
@@ -523,14 +523,10 @@ class ApiClient(object):
|
|
|
523
523
|
filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
|
|
524
524
|
content_disposition).group(1)
|
|
525
525
|
path = os.path.join(os.path.dirname(path), filename)
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
response_data = response_data.encode('utf-8')
|
|
531
|
-
f.write(response_data)
|
|
532
|
-
else:
|
|
533
|
-
f.write(response_data)
|
|
526
|
+
|
|
527
|
+
with open(path, "wb") as f:
|
|
528
|
+
f.write(response.data)
|
|
529
|
+
|
|
534
530
|
return path
|
|
535
531
|
|
|
536
532
|
def __deserialize_primitive(self, data, klass):
|
teamdbapi/configuration.py
CHANGED
|
@@ -55,8 +55,6 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
55
55
|
self.api_key = {}
|
|
56
56
|
# dict to store API prefix (e.g. Bearer)
|
|
57
57
|
self.api_key_prefix = {}
|
|
58
|
-
# function to refresh API key if expired
|
|
59
|
-
self.refresh_api_key_hook = None
|
|
60
58
|
# Username for HTTP basic authentication
|
|
61
59
|
self.username = ""
|
|
62
60
|
# Password for HTTP basic authentication
|
|
@@ -203,16 +201,11 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
203
201
|
:param identifier: The identifier of apiKey.
|
|
204
202
|
:return: The token for api key authentication.
|
|
205
203
|
"""
|
|
206
|
-
if self.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
prefix = self.api_key_prefix.get(identifier)
|
|
212
|
-
if prefix:
|
|
213
|
-
return "%s %s" % (prefix, key)
|
|
214
|
-
else:
|
|
215
|
-
return key
|
|
204
|
+
if (self.api_key.get(identifier) and
|
|
205
|
+
self.api_key_prefix.get(identifier)):
|
|
206
|
+
return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501
|
|
207
|
+
elif self.api_key.get(identifier):
|
|
208
|
+
return self.api_key[identifier]
|
|
216
209
|
|
|
217
210
|
def get_basic_auth_token(self):
|
|
218
211
|
"""Gets HTTP basic authentication header (string).
|
teamdbapi/models/__init__.py
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
from __future__ import absolute_import
|
|
15
15
|
|
|
16
16
|
# import models into model package
|
|
17
|
+
from teamdbapi.models.add_part_car_parameter_arg import AddPartCarParameterArg
|
|
17
18
|
from teamdbapi.models.assembly import Assembly
|
|
18
19
|
from teamdbapi.models.bleed_adjustment import BleedAdjustment
|
|
19
20
|
from teamdbapi.models.calibration import Calibration
|
|
@@ -22,23 +23,42 @@ from teamdbapi.models.car_parameters_context import CarParametersContext
|
|
|
22
23
|
from teamdbapi.models.compare_options import CompareOptions
|
|
23
24
|
from teamdbapi.models.compare_result import CompareResult
|
|
24
25
|
from teamdbapi.models.compare_result_detail import CompareResultDetail
|
|
26
|
+
from teamdbapi.models.component import Component
|
|
25
27
|
from teamdbapi.models.copy_from_tags_args import CopyFromTagsArgs
|
|
26
28
|
from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
29
|
+
from teamdbapi.models.criteria import Criteria
|
|
30
|
+
from teamdbapi.models.criteria_value import CriteriaValue
|
|
27
31
|
from teamdbapi.models.event import Event
|
|
32
|
+
from teamdbapi.models.file_revision_info import FileRevisionInfo
|
|
28
33
|
from teamdbapi.models.fixed_field import FixedField
|
|
29
34
|
from teamdbapi.models.group import Group
|
|
30
35
|
from teamdbapi.models.import_parameters_args import ImportParametersArgs
|
|
31
36
|
from teamdbapi.models.import_parameters_results import ImportParametersResults
|
|
37
|
+
from teamdbapi.models.import_revisions_args import ImportRevisionsArgs
|
|
38
|
+
from teamdbapi.models.import_revisions_info import ImportRevisionsInfo
|
|
39
|
+
from teamdbapi.models.import_revisions_results import ImportRevisionsResults
|
|
40
|
+
from teamdbapi.models.issue import Issue
|
|
41
|
+
from teamdbapi.models.issue_custom_field_value import IssueCustomFieldValue
|
|
42
|
+
from teamdbapi.models.issue_priority import IssuePriority
|
|
43
|
+
from teamdbapi.models.issue_project import IssueProject
|
|
44
|
+
from teamdbapi.models.issue_sector import IssueSector
|
|
45
|
+
from teamdbapi.models.issue_status import IssueStatus
|
|
46
|
+
from teamdbapi.models.issue_type import IssueType
|
|
47
|
+
from teamdbapi.models.issue_workflow import IssueWorkflow
|
|
32
48
|
from teamdbapi.models.item_value import ItemValue
|
|
33
49
|
from teamdbapi.models.item_value_key import ItemValueKey
|
|
34
50
|
from teamdbapi.models.lap import Lap
|
|
35
51
|
from teamdbapi.models.lap_report_options import LapReportOptions
|
|
36
52
|
from teamdbapi.models.model_field import ModelField
|
|
37
53
|
from teamdbapi.models.model_field_authorization import ModelFieldAuthorization
|
|
54
|
+
from teamdbapi.models.mounting import Mounting
|
|
38
55
|
from teamdbapi.models.notes_authorization import NotesAuthorization
|
|
39
56
|
from teamdbapi.models.notes_context import NotesContext
|
|
40
57
|
from teamdbapi.models.parameter import Parameter
|
|
41
58
|
from teamdbapi.models.parameter_cross_table import ParameterCrossTable
|
|
59
|
+
from teamdbapi.models.part import Part
|
|
60
|
+
from teamdbapi.models.part_car_parameters import PartCarParameters
|
|
61
|
+
from teamdbapi.models.part_count import PartCount
|
|
42
62
|
from teamdbapi.models.problem_details import ProblemDetails
|
|
43
63
|
from teamdbapi.models.revision import Revision
|
|
44
64
|
from teamdbapi.models.revision_value import RevisionValue
|