teamdbapi 3.0.0__py3-none-any.whl → 3.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- teamdbapi/__init__.py +15 -0
- teamdbapi/api/__init__.py +1 -0
- teamdbapi/api/assembly_api.py +4 -4
- teamdbapi/api/component_api.py +117 -0
- teamdbapi/api/edit_api.py +89 -0
- teamdbapi/api/import_export_api.py +12 -12
- teamdbapi/api/issue_api.py +1537 -0
- teamdbapi/api/lap_report_api.py +2 -2
- teamdbapi/api/part_api.py +481 -0
- teamdbapi/api/report_api.py +2 -2
- teamdbapi/api/revision_api.py +111 -6
- teamdbapi/api/value_field_api.py +2 -2
- teamdbapi/models/__init__.py +14 -0
- teamdbapi/models/add_part_car_parameter_arg.py +396 -0
- teamdbapi/models/car_parameters_context.py +31 -3
- teamdbapi/models/compare_options.py +2 -2
- teamdbapi/models/component.py +87 -3
- teamdbapi/models/file_revision_info.py +199 -0
- teamdbapi/models/import_parameters_args.py +2 -2
- 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/lap_report_options.py +2 -2
- teamdbapi/models/parameter_cross_table.py +4 -4
- teamdbapi/models/part.py +31 -3
- teamdbapi/models/part_car_parameters.py +561 -0
- teamdbapi/models/revision.py +37 -9
- teamdbapi/models/revision_value.py +31 -3
- teamdbapi/models/script.py +2 -2
- teamdbapi/models/target.py +4 -4
- teamdbapi/models/version.py +4 -4
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/METADATA +3 -3
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/RECORD +43 -28
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/LICENSE +0 -0
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.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,
|
|
@@ -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.
|
|
@@ -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
|
|
teamdbapi/api/value_field_api.py
CHANGED
|
@@ -453,7 +453,7 @@ class ValueFieldApi(object):
|
|
|
453
453
|
>>> result = thread.get()
|
|
454
454
|
|
|
455
455
|
: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
|
|
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, must be described only by / or \\\\. (required)
|
|
457
457
|
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
458
458
|
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
459
459
|
:return: ValueField
|
|
@@ -476,7 +476,7 @@ class ValueFieldApi(object):
|
|
|
476
476
|
>>> result = thread.get()
|
|
477
477
|
|
|
478
478
|
: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
|
|
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, must be described only by / or \\\\. (required)
|
|
480
480
|
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
481
481
|
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
482
482
|
:return: ValueField
|
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
|
|
@@ -28,10 +29,22 @@ from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
|
28
29
|
from teamdbapi.models.criteria import Criteria
|
|
29
30
|
from teamdbapi.models.criteria_value import CriteriaValue
|
|
30
31
|
from teamdbapi.models.event import Event
|
|
32
|
+
from teamdbapi.models.file_revision_info import FileRevisionInfo
|
|
31
33
|
from teamdbapi.models.fixed_field import FixedField
|
|
32
34
|
from teamdbapi.models.group import Group
|
|
33
35
|
from teamdbapi.models.import_parameters_args import ImportParametersArgs
|
|
34
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
|
|
35
48
|
from teamdbapi.models.item_value import ItemValue
|
|
36
49
|
from teamdbapi.models.item_value_key import ItemValueKey
|
|
37
50
|
from teamdbapi.models.lap import Lap
|
|
@@ -44,6 +57,7 @@ from teamdbapi.models.notes_context import NotesContext
|
|
|
44
57
|
from teamdbapi.models.parameter import Parameter
|
|
45
58
|
from teamdbapi.models.parameter_cross_table import ParameterCrossTable
|
|
46
59
|
from teamdbapi.models.part import Part
|
|
60
|
+
from teamdbapi.models.part_car_parameters import PartCarParameters
|
|
47
61
|
from teamdbapi.models.part_count import PartCount
|
|
48
62
|
from teamdbapi.models.problem_details import ProblemDetails
|
|
49
63
|
from teamdbapi.models.revision import Revision
|
|
@@ -0,0 +1,396 @@
|
|
|
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
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AddPartCarParameterArg(object):
|
|
20
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
21
|
+
|
|
22
|
+
Do not edit the class manually.
|
|
23
|
+
"""
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
swagger_types (dict): The key is attribute name
|
|
27
|
+
and the value is attribute type.
|
|
28
|
+
attribute_map (dict): The key is attribute name
|
|
29
|
+
and the value is json key in definition.
|
|
30
|
+
"""
|
|
31
|
+
swagger_types = {
|
|
32
|
+
'part_id': 'str',
|
|
33
|
+
'parameter_id': 'str',
|
|
34
|
+
'target_id': 'str',
|
|
35
|
+
'parameter_binding': 'str',
|
|
36
|
+
'redirect_part_id': 'str',
|
|
37
|
+
'redirect_parameter_id': 'str',
|
|
38
|
+
'redirect_target_id': 'str',
|
|
39
|
+
'redirect_coeff_a': 'float',
|
|
40
|
+
'redirect_coeff_b': 'float',
|
|
41
|
+
'redirect_coeff_c': 'float',
|
|
42
|
+
'redirect_coeff_d': 'float'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'part_id': 'PartId',
|
|
47
|
+
'parameter_id': 'ParameterId',
|
|
48
|
+
'target_id': 'TargetId',
|
|
49
|
+
'parameter_binding': 'ParameterBinding',
|
|
50
|
+
'redirect_part_id': 'RedirectPartId',
|
|
51
|
+
'redirect_parameter_id': 'RedirectParameterId',
|
|
52
|
+
'redirect_target_id': 'RedirectTargetId',
|
|
53
|
+
'redirect_coeff_a': 'RedirectCoeffA',
|
|
54
|
+
'redirect_coeff_b': 'RedirectCoeffB',
|
|
55
|
+
'redirect_coeff_c': 'RedirectCoeffC',
|
|
56
|
+
'redirect_coeff_d': 'RedirectCoeffD'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, part_id=None, parameter_id=None, target_id=None, parameter_binding=None, redirect_part_id=None, redirect_parameter_id=None, redirect_target_id=None, redirect_coeff_a=None, redirect_coeff_b=None, redirect_coeff_c=None, redirect_coeff_d=None): # noqa: E501
|
|
60
|
+
"""AddPartCarParameterArg - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._part_id = None
|
|
62
|
+
self._parameter_id = None
|
|
63
|
+
self._target_id = None
|
|
64
|
+
self._parameter_binding = None
|
|
65
|
+
self._redirect_part_id = None
|
|
66
|
+
self._redirect_parameter_id = None
|
|
67
|
+
self._redirect_target_id = None
|
|
68
|
+
self._redirect_coeff_a = None
|
|
69
|
+
self._redirect_coeff_b = None
|
|
70
|
+
self._redirect_coeff_c = None
|
|
71
|
+
self._redirect_coeff_d = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
self.part_id = part_id
|
|
74
|
+
self.parameter_id = parameter_id
|
|
75
|
+
self.target_id = target_id
|
|
76
|
+
if parameter_binding is not None:
|
|
77
|
+
self.parameter_binding = parameter_binding
|
|
78
|
+
if redirect_part_id is not None:
|
|
79
|
+
self.redirect_part_id = redirect_part_id
|
|
80
|
+
if redirect_parameter_id is not None:
|
|
81
|
+
self.redirect_parameter_id = redirect_parameter_id
|
|
82
|
+
if redirect_target_id is not None:
|
|
83
|
+
self.redirect_target_id = redirect_target_id
|
|
84
|
+
if redirect_coeff_a is not None:
|
|
85
|
+
self.redirect_coeff_a = redirect_coeff_a
|
|
86
|
+
if redirect_coeff_b is not None:
|
|
87
|
+
self.redirect_coeff_b = redirect_coeff_b
|
|
88
|
+
if redirect_coeff_c is not None:
|
|
89
|
+
self.redirect_coeff_c = redirect_coeff_c
|
|
90
|
+
if redirect_coeff_d is not None:
|
|
91
|
+
self.redirect_coeff_d = redirect_coeff_d
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def part_id(self):
|
|
95
|
+
"""Gets the part_id of this AddPartCarParameterArg. # noqa: E501
|
|
96
|
+
|
|
97
|
+
The part unique identifier # noqa: E501
|
|
98
|
+
|
|
99
|
+
:return: The part_id of this AddPartCarParameterArg. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._part_id
|
|
103
|
+
|
|
104
|
+
@part_id.setter
|
|
105
|
+
def part_id(self, part_id):
|
|
106
|
+
"""Sets the part_id of this AddPartCarParameterArg.
|
|
107
|
+
|
|
108
|
+
The part unique identifier # noqa: E501
|
|
109
|
+
|
|
110
|
+
:param part_id: The part_id of this AddPartCarParameterArg. # noqa: E501
|
|
111
|
+
:type: str
|
|
112
|
+
"""
|
|
113
|
+
if part_id is None:
|
|
114
|
+
raise ValueError("Invalid value for `part_id`, must not be `None`") # noqa: E501
|
|
115
|
+
|
|
116
|
+
self._part_id = part_id
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def parameter_id(self):
|
|
120
|
+
"""Gets the parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
121
|
+
|
|
122
|
+
The car parameters unique identifier # noqa: E501
|
|
123
|
+
|
|
124
|
+
:return: The parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._parameter_id
|
|
128
|
+
|
|
129
|
+
@parameter_id.setter
|
|
130
|
+
def parameter_id(self, parameter_id):
|
|
131
|
+
"""Sets the parameter_id of this AddPartCarParameterArg.
|
|
132
|
+
|
|
133
|
+
The car parameters unique identifier # noqa: E501
|
|
134
|
+
|
|
135
|
+
:param parameter_id: The parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
if parameter_id is None:
|
|
139
|
+
raise ValueError("Invalid value for `parameter_id`, must not be `None`") # noqa: E501
|
|
140
|
+
|
|
141
|
+
self._parameter_id = parameter_id
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def target_id(self):
|
|
145
|
+
"""Gets the target_id of this AddPartCarParameterArg. # noqa: E501
|
|
146
|
+
|
|
147
|
+
The car parameters target unique identifier # noqa: E501
|
|
148
|
+
|
|
149
|
+
:return: The target_id of this AddPartCarParameterArg. # noqa: E501
|
|
150
|
+
:rtype: str
|
|
151
|
+
"""
|
|
152
|
+
return self._target_id
|
|
153
|
+
|
|
154
|
+
@target_id.setter
|
|
155
|
+
def target_id(self, target_id):
|
|
156
|
+
"""Sets the target_id of this AddPartCarParameterArg.
|
|
157
|
+
|
|
158
|
+
The car parameters target unique identifier # noqa: E501
|
|
159
|
+
|
|
160
|
+
:param target_id: The target_id of this AddPartCarParameterArg. # noqa: E501
|
|
161
|
+
:type: str
|
|
162
|
+
"""
|
|
163
|
+
if target_id is None:
|
|
164
|
+
raise ValueError("Invalid value for `target_id`, must not be `None`") # noqa: E501
|
|
165
|
+
|
|
166
|
+
self._target_id = target_id
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def parameter_binding(self):
|
|
170
|
+
"""Gets the parameter_binding of this AddPartCarParameterArg. # noqa: E501
|
|
171
|
+
|
|
172
|
+
The parameter binfing used to identify the component to import from a mounting to a car parameter assembly # noqa: E501
|
|
173
|
+
|
|
174
|
+
:return: The parameter_binding of this AddPartCarParameterArg. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._parameter_binding
|
|
178
|
+
|
|
179
|
+
@parameter_binding.setter
|
|
180
|
+
def parameter_binding(self, parameter_binding):
|
|
181
|
+
"""Sets the parameter_binding of this AddPartCarParameterArg.
|
|
182
|
+
|
|
183
|
+
The parameter binfing used to identify the component to import from a mounting to a car parameter assembly # noqa: E501
|
|
184
|
+
|
|
185
|
+
:param parameter_binding: The parameter_binding of this AddPartCarParameterArg. # noqa: E501
|
|
186
|
+
:type: str
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
self._parameter_binding = parameter_binding
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def redirect_part_id(self):
|
|
193
|
+
"""Gets the redirect_part_id of this AddPartCarParameterArg. # noqa: E501
|
|
194
|
+
|
|
195
|
+
The redirect part name. Optional field. Only valid with a group part. # noqa: E501
|
|
196
|
+
|
|
197
|
+
:return: The redirect_part_id of this AddPartCarParameterArg. # noqa: E501
|
|
198
|
+
:rtype: str
|
|
199
|
+
"""
|
|
200
|
+
return self._redirect_part_id
|
|
201
|
+
|
|
202
|
+
@redirect_part_id.setter
|
|
203
|
+
def redirect_part_id(self, redirect_part_id):
|
|
204
|
+
"""Sets the redirect_part_id of this AddPartCarParameterArg.
|
|
205
|
+
|
|
206
|
+
The redirect part name. Optional field. Only valid with a group part. # noqa: E501
|
|
207
|
+
|
|
208
|
+
:param redirect_part_id: The redirect_part_id of this AddPartCarParameterArg. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._redirect_part_id = redirect_part_id
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def redirect_parameter_id(self):
|
|
216
|
+
"""Gets the redirect_parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
217
|
+
|
|
218
|
+
The redirected car parameters unique id Optional field. Only valid with a group part. # noqa: E501
|
|
219
|
+
|
|
220
|
+
:return: The redirect_parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
221
|
+
:rtype: str
|
|
222
|
+
"""
|
|
223
|
+
return self._redirect_parameter_id
|
|
224
|
+
|
|
225
|
+
@redirect_parameter_id.setter
|
|
226
|
+
def redirect_parameter_id(self, redirect_parameter_id):
|
|
227
|
+
"""Sets the redirect_parameter_id of this AddPartCarParameterArg.
|
|
228
|
+
|
|
229
|
+
The redirected car parameters unique id Optional field. Only valid with a group part. # noqa: E501
|
|
230
|
+
|
|
231
|
+
:param redirect_parameter_id: The redirect_parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
232
|
+
:type: str
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._redirect_parameter_id = redirect_parameter_id
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def redirect_target_id(self):
|
|
239
|
+
"""Gets the redirect_target_id of this AddPartCarParameterArg. # noqa: E501
|
|
240
|
+
|
|
241
|
+
The redirected car parameters target unique id Optional field. Only valid with a group part. # noqa: E501
|
|
242
|
+
|
|
243
|
+
:return: The redirect_target_id of this AddPartCarParameterArg. # noqa: E501
|
|
244
|
+
:rtype: str
|
|
245
|
+
"""
|
|
246
|
+
return self._redirect_target_id
|
|
247
|
+
|
|
248
|
+
@redirect_target_id.setter
|
|
249
|
+
def redirect_target_id(self, redirect_target_id):
|
|
250
|
+
"""Sets the redirect_target_id of this AddPartCarParameterArg.
|
|
251
|
+
|
|
252
|
+
The redirected car parameters target unique id Optional field. Only valid with a group part. # noqa: E501
|
|
253
|
+
|
|
254
|
+
:param redirect_target_id: The redirect_target_id of this AddPartCarParameterArg. # noqa: E501
|
|
255
|
+
:type: str
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._redirect_target_id = redirect_target_id
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def redirect_coeff_a(self):
|
|
262
|
+
"""Gets the redirect_coeff_a of this AddPartCarParameterArg. # noqa: E501
|
|
263
|
+
|
|
264
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
265
|
+
|
|
266
|
+
:return: The redirect_coeff_a of this AddPartCarParameterArg. # noqa: E501
|
|
267
|
+
:rtype: float
|
|
268
|
+
"""
|
|
269
|
+
return self._redirect_coeff_a
|
|
270
|
+
|
|
271
|
+
@redirect_coeff_a.setter
|
|
272
|
+
def redirect_coeff_a(self, redirect_coeff_a):
|
|
273
|
+
"""Sets the redirect_coeff_a of this AddPartCarParameterArg.
|
|
274
|
+
|
|
275
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
276
|
+
|
|
277
|
+
:param redirect_coeff_a: The redirect_coeff_a of this AddPartCarParameterArg. # noqa: E501
|
|
278
|
+
:type: float
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
self._redirect_coeff_a = redirect_coeff_a
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def redirect_coeff_b(self):
|
|
285
|
+
"""Gets the redirect_coeff_b of this AddPartCarParameterArg. # noqa: E501
|
|
286
|
+
|
|
287
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
288
|
+
|
|
289
|
+
:return: The redirect_coeff_b of this AddPartCarParameterArg. # noqa: E501
|
|
290
|
+
:rtype: float
|
|
291
|
+
"""
|
|
292
|
+
return self._redirect_coeff_b
|
|
293
|
+
|
|
294
|
+
@redirect_coeff_b.setter
|
|
295
|
+
def redirect_coeff_b(self, redirect_coeff_b):
|
|
296
|
+
"""Sets the redirect_coeff_b of this AddPartCarParameterArg.
|
|
297
|
+
|
|
298
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
299
|
+
|
|
300
|
+
:param redirect_coeff_b: The redirect_coeff_b of this AddPartCarParameterArg. # noqa: E501
|
|
301
|
+
:type: float
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
self._redirect_coeff_b = redirect_coeff_b
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
def redirect_coeff_c(self):
|
|
308
|
+
"""Gets the redirect_coeff_c of this AddPartCarParameterArg. # noqa: E501
|
|
309
|
+
|
|
310
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
311
|
+
|
|
312
|
+
:return: The redirect_coeff_c of this AddPartCarParameterArg. # noqa: E501
|
|
313
|
+
:rtype: float
|
|
314
|
+
"""
|
|
315
|
+
return self._redirect_coeff_c
|
|
316
|
+
|
|
317
|
+
@redirect_coeff_c.setter
|
|
318
|
+
def redirect_coeff_c(self, redirect_coeff_c):
|
|
319
|
+
"""Sets the redirect_coeff_c of this AddPartCarParameterArg.
|
|
320
|
+
|
|
321
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
322
|
+
|
|
323
|
+
:param redirect_coeff_c: The redirect_coeff_c of this AddPartCarParameterArg. # noqa: E501
|
|
324
|
+
:type: float
|
|
325
|
+
"""
|
|
326
|
+
|
|
327
|
+
self._redirect_coeff_c = redirect_coeff_c
|
|
328
|
+
|
|
329
|
+
@property
|
|
330
|
+
def redirect_coeff_d(self):
|
|
331
|
+
"""Gets the redirect_coeff_d of this AddPartCarParameterArg. # noqa: E501
|
|
332
|
+
|
|
333
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
334
|
+
|
|
335
|
+
:return: The redirect_coeff_d of this AddPartCarParameterArg. # noqa: E501
|
|
336
|
+
:rtype: float
|
|
337
|
+
"""
|
|
338
|
+
return self._redirect_coeff_d
|
|
339
|
+
|
|
340
|
+
@redirect_coeff_d.setter
|
|
341
|
+
def redirect_coeff_d(self, redirect_coeff_d):
|
|
342
|
+
"""Sets the redirect_coeff_d of this AddPartCarParameterArg.
|
|
343
|
+
|
|
344
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
345
|
+
|
|
346
|
+
:param redirect_coeff_d: The redirect_coeff_d of this AddPartCarParameterArg. # noqa: E501
|
|
347
|
+
:type: float
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
self._redirect_coeff_d = redirect_coeff_d
|
|
351
|
+
|
|
352
|
+
def to_dict(self):
|
|
353
|
+
"""Returns the model properties as a dict"""
|
|
354
|
+
result = {}
|
|
355
|
+
|
|
356
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
357
|
+
value = getattr(self, attr)
|
|
358
|
+
if isinstance(value, list):
|
|
359
|
+
result[attr] = list(map(
|
|
360
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
361
|
+
value
|
|
362
|
+
))
|
|
363
|
+
elif hasattr(value, "to_dict"):
|
|
364
|
+
result[attr] = value.to_dict()
|
|
365
|
+
elif isinstance(value, dict):
|
|
366
|
+
result[attr] = dict(map(
|
|
367
|
+
lambda item: (item[0], item[1].to_dict())
|
|
368
|
+
if hasattr(item[1], "to_dict") else item,
|
|
369
|
+
value.items()
|
|
370
|
+
))
|
|
371
|
+
else:
|
|
372
|
+
result[attr] = value
|
|
373
|
+
if issubclass(AddPartCarParameterArg, dict):
|
|
374
|
+
for key, value in self.items():
|
|
375
|
+
result[key] = value
|
|
376
|
+
|
|
377
|
+
return result
|
|
378
|
+
|
|
379
|
+
def to_str(self):
|
|
380
|
+
"""Returns the string representation of the model"""
|
|
381
|
+
return pprint.pformat(self.to_dict())
|
|
382
|
+
|
|
383
|
+
def __repr__(self):
|
|
384
|
+
"""For `print` and `pprint`"""
|
|
385
|
+
return self.to_str()
|
|
386
|
+
|
|
387
|
+
def __eq__(self, other):
|
|
388
|
+
"""Returns true if both objects are equal"""
|
|
389
|
+
if not isinstance(other, AddPartCarParameterArg):
|
|
390
|
+
return False
|
|
391
|
+
|
|
392
|
+
return self.__dict__ == other.__dict__
|
|
393
|
+
|
|
394
|
+
def __ne__(self, other):
|
|
395
|
+
"""Returns true if both objects are not equal"""
|
|
396
|
+
return not self == other
|
|
@@ -31,20 +31,23 @@ class CarParametersContext(object):
|
|
|
31
31
|
swagger_types = {
|
|
32
32
|
'target_id': 'str',
|
|
33
33
|
'version_id': 'str',
|
|
34
|
-
'assembly_id': 'str'
|
|
34
|
+
'assembly_id': 'str',
|
|
35
|
+
'name': 'str'
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
attribute_map = {
|
|
38
39
|
'target_id': 'TargetId',
|
|
39
40
|
'version_id': 'VersionId',
|
|
40
|
-
'assembly_id': 'AssemblyId'
|
|
41
|
+
'assembly_id': 'AssemblyId',
|
|
42
|
+
'name': 'Name'
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
def __init__(self, target_id=None, version_id=None, assembly_id=None): # noqa: E501
|
|
45
|
+
def __init__(self, target_id=None, version_id=None, assembly_id=None, name=None): # noqa: E501
|
|
44
46
|
"""CarParametersContext - a model defined in Swagger""" # noqa: E501
|
|
45
47
|
self._target_id = None
|
|
46
48
|
self._version_id = None
|
|
47
49
|
self._assembly_id = None
|
|
50
|
+
self._name = None
|
|
48
51
|
self.discriminator = None
|
|
49
52
|
if target_id is not None:
|
|
50
53
|
self.target_id = target_id
|
|
@@ -52,6 +55,8 @@ class CarParametersContext(object):
|
|
|
52
55
|
self.version_id = version_id
|
|
53
56
|
if assembly_id is not None:
|
|
54
57
|
self.assembly_id = assembly_id
|
|
58
|
+
if name is not None:
|
|
59
|
+
self.name = name
|
|
55
60
|
|
|
56
61
|
@property
|
|
57
62
|
def target_id(self):
|
|
@@ -122,6 +127,29 @@ class CarParametersContext(object):
|
|
|
122
127
|
|
|
123
128
|
self._assembly_id = assembly_id
|
|
124
129
|
|
|
130
|
+
@property
|
|
131
|
+
def name(self):
|
|
132
|
+
"""Gets the name of this CarParametersContext. # noqa: E501
|
|
133
|
+
|
|
134
|
+
Context name (ie the layout name) or empty for the global context # noqa: E501
|
|
135
|
+
|
|
136
|
+
:return: The name of this CarParametersContext. # noqa: E501
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._name
|
|
140
|
+
|
|
141
|
+
@name.setter
|
|
142
|
+
def name(self, name):
|
|
143
|
+
"""Sets the name of this CarParametersContext.
|
|
144
|
+
|
|
145
|
+
Context name (ie the layout name) or empty for the global context # noqa: E501
|
|
146
|
+
|
|
147
|
+
:param name: The name of this CarParametersContext. # noqa: E501
|
|
148
|
+
:type: str
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
self._name = name
|
|
152
|
+
|
|
125
153
|
def to_dict(self):
|
|
126
154
|
"""Returns the model properties as a dict"""
|
|
127
155
|
result = {}
|