teamdbapi 2.37.1__py3-none-any.whl → 3.0.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 +11 -0
- teamdbapi/api/__init__.py +39 -34
- teamdbapi/api/assembly_api.py +2108 -2108
- teamdbapi/api/car_api.py +874 -874
- teamdbapi/api/component_api.py +954 -0
- teamdbapi/api/config_api.py +118 -118
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/edit_api.py +433 -433
- teamdbapi/api/event_api.py +878 -878
- teamdbapi/api/fixed_field_api.py +320 -320
- teamdbapi/api/group_api.py +609 -609
- teamdbapi/api/import_export_api.py +828 -743
- teamdbapi/api/lap_api.py +708 -708
- teamdbapi/api/lap_report_api.py +490 -486
- teamdbapi/api/model_field_api.py +708 -708
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/notes_authorization_api.py +324 -324
- teamdbapi/api/parameter_api.py +1176 -1176
- teamdbapi/api/part_api.py +304 -0
- teamdbapi/api/report_api.py +142 -142
- teamdbapi/api/revision_api.py +1420 -1420
- teamdbapi/api/revision_editor_selector_api.py +990 -990
- teamdbapi/api/run_api.py +603 -603
- teamdbapi/api/script_api.py +490 -490
- teamdbapi/api/session_api.py +720 -720
- teamdbapi/api/target_api.py +415 -415
- teamdbapi/api/team_db_list_api.py +987 -987
- teamdbapi/api/team_db_view_api.py +482 -482
- teamdbapi/api/tire_api.py +599 -599
- teamdbapi/api/tire_set_api.py +514 -514
- teamdbapi/api/track_api.py +506 -506
- teamdbapi/api/track_layout_api.py +514 -514
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api/user_api.py +474 -474
- teamdbapi/api/value_field_api.py +558 -558
- teamdbapi/api/version_api.py +449 -449
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +6 -13
- teamdbapi/models/__init__.py +6 -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 +1217 -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/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/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 +963 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +88 -3
- teamdbapi/models/revision_value.py +1 -0
- 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.1.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +5 -5
- teamdbapi-3.0.0.dist-info/RECORD +93 -0
- teamdbapi-2.37.1.dist-info/RECORD +0 -82
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
teamdbapi/api/value_field_api.py
CHANGED
|
@@ -1,558 +1,558 @@
|
|
|
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 ValueFieldApi(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_item_values(self, body, **kwargs): # noqa: E501
|
|
36
|
-
"""Get a list of value fields, revision editors and revision selectors via a model field unique id and a parent entity unique id. # 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_item_values(body, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param list[ItemValueKey] body: The list of keys (model field / parent entity) for which you want to get the values (required)
|
|
45
|
-
:return: list[ItemValue]
|
|
46
|
-
If the method is called asynchronously,
|
|
47
|
-
returns the request thread.
|
|
48
|
-
"""
|
|
49
|
-
kwargs['_return_http_data_only'] = True
|
|
50
|
-
if kwargs.get('async_req'):
|
|
51
|
-
return self.get_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.get_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def get_item_values_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
-
"""Get a list of value fields, revision editors and revision selectors via a model field unique id and a parent entity unique id. # noqa: E501
|
|
58
|
-
|
|
59
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
60
|
-
asynchronous HTTP request, please pass async_req=True
|
|
61
|
-
>>> thread = api.get_item_values_with_http_info(body, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param list[ItemValueKey] body: The list of keys (model field / parent entity) for which you want to get the values (required)
|
|
66
|
-
:return: list[ItemValue]
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['body'] # noqa: E501
|
|
72
|
-
all_params.append('async_req')
|
|
73
|
-
all_params.append('_return_http_data_only')
|
|
74
|
-
all_params.append('_preload_content')
|
|
75
|
-
all_params.append('_request_timeout')
|
|
76
|
-
|
|
77
|
-
params = locals()
|
|
78
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
-
if key not in all_params:
|
|
80
|
-
raise TypeError(
|
|
81
|
-
"Got an unexpected keyword argument '%s'"
|
|
82
|
-
" to method get_item_values" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'body' is set
|
|
87
|
-
if ('body' not in params or
|
|
88
|
-
params['body'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `body` when calling `get_item_values`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
|
|
95
|
-
query_params = []
|
|
96
|
-
|
|
97
|
-
header_params = {}
|
|
98
|
-
|
|
99
|
-
form_params = []
|
|
100
|
-
local_var_files = {}
|
|
101
|
-
|
|
102
|
-
body_params = None
|
|
103
|
-
if 'body' in params:
|
|
104
|
-
body_params = params['body']
|
|
105
|
-
# HTTP header `Accept`
|
|
106
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
-
['application/json', 'text/json']) # noqa: E501
|
|
108
|
-
|
|
109
|
-
# HTTP header `Content-Type`
|
|
110
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
-
|
|
113
|
-
# Authentication setting
|
|
114
|
-
auth_settings = [] # noqa: E501
|
|
115
|
-
|
|
116
|
-
return self.api_client.call_api(
|
|
117
|
-
'/teamdbapi/v2.0/valuefields', 'POST',
|
|
118
|
-
path_params,
|
|
119
|
-
query_params,
|
|
120
|
-
header_params,
|
|
121
|
-
body=body_params,
|
|
122
|
-
post_params=form_params,
|
|
123
|
-
files=local_var_files,
|
|
124
|
-
response_type='list[ItemValue]', # noqa: E501
|
|
125
|
-
auth_settings=auth_settings,
|
|
126
|
-
async_req=params.get('async_req'),
|
|
127
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
-
_preload_content=params.get('_preload_content', True),
|
|
129
|
-
_request_timeout=params.get('_request_timeout'),
|
|
130
|
-
collection_formats=collection_formats)
|
|
131
|
-
|
|
132
|
-
def get_value_field_by_id(self, model_field_id, parent_item_id, **kwargs): # noqa: E501
|
|
133
|
-
"""Get a value field via a model field unique id and a parent entity unique id. # noqa: E501
|
|
134
|
-
|
|
135
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
-
asynchronous HTTP request, please pass async_req=True
|
|
137
|
-
>>> thread = api.get_value_field_by_id(model_field_id, parent_item_id, async_req=True)
|
|
138
|
-
>>> result = thread.get()
|
|
139
|
-
|
|
140
|
-
:param async_req bool
|
|
141
|
-
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
142
|
-
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
143
|
-
:param int row_id: The row 0 based index of the cell for which you want the value. The Row headers are included.
|
|
144
|
-
:param int col_id: The column 0 based index of the cell for which you want the value
|
|
145
|
-
:return: object
|
|
146
|
-
If the method is called asynchronously,
|
|
147
|
-
returns the request thread.
|
|
148
|
-
"""
|
|
149
|
-
kwargs['_return_http_data_only'] = True
|
|
150
|
-
if kwargs.get('async_req'):
|
|
151
|
-
return self.get_value_field_by_id_with_http_info(model_field_id, parent_item_id, **kwargs) # noqa: E501
|
|
152
|
-
else:
|
|
153
|
-
(data) = self.get_value_field_by_id_with_http_info(model_field_id, parent_item_id, **kwargs) # noqa: E501
|
|
154
|
-
return data
|
|
155
|
-
|
|
156
|
-
def get_value_field_by_id_with_http_info(self, model_field_id, parent_item_id, **kwargs): # noqa: E501
|
|
157
|
-
"""Get a value field via a model field unique id and a parent entity unique id. # noqa: E501
|
|
158
|
-
|
|
159
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
160
|
-
asynchronous HTTP request, please pass async_req=True
|
|
161
|
-
>>> thread = api.get_value_field_by_id_with_http_info(model_field_id, parent_item_id, async_req=True)
|
|
162
|
-
>>> result = thread.get()
|
|
163
|
-
|
|
164
|
-
:param async_req bool
|
|
165
|
-
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
166
|
-
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
167
|
-
:param int row_id: The row 0 based index of the cell for which you want the value. The Row headers are included.
|
|
168
|
-
:param int col_id: The column 0 based index of the cell for which you want the value
|
|
169
|
-
:return: object
|
|
170
|
-
If the method is called asynchronously,
|
|
171
|
-
returns the request thread.
|
|
172
|
-
"""
|
|
173
|
-
|
|
174
|
-
all_params = ['model_field_id', 'parent_item_id', 'row_id', 'col_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 get_value_field_by_id" % key
|
|
186
|
-
)
|
|
187
|
-
params[key] = val
|
|
188
|
-
del params['kwargs']
|
|
189
|
-
# verify the required parameter 'model_field_id' is set
|
|
190
|
-
if ('model_field_id' not in params or
|
|
191
|
-
params['model_field_id'] is None):
|
|
192
|
-
raise ValueError("Missing the required parameter `model_field_id` when calling `get_value_field_by_id`") # noqa: E501
|
|
193
|
-
# verify the required parameter 'parent_item_id' is set
|
|
194
|
-
if ('parent_item_id' not in params or
|
|
195
|
-
params['parent_item_id'] is None):
|
|
196
|
-
raise ValueError("Missing the required parameter `parent_item_id` when calling `get_value_field_by_id`") # noqa: E501
|
|
197
|
-
|
|
198
|
-
collection_formats = {}
|
|
199
|
-
|
|
200
|
-
path_params = {}
|
|
201
|
-
if 'model_field_id' in params:
|
|
202
|
-
path_params['modelFieldId'] = params['model_field_id'] # noqa: E501
|
|
203
|
-
|
|
204
|
-
query_params = []
|
|
205
|
-
if 'parent_item_id' in params:
|
|
206
|
-
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
207
|
-
if 'row_id' in params:
|
|
208
|
-
query_params.append(('rowId', params['row_id'])) # noqa: E501
|
|
209
|
-
if 'col_id' in params:
|
|
210
|
-
query_params.append(('colId', params['col_id'])) # noqa: E501
|
|
211
|
-
|
|
212
|
-
header_params = {}
|
|
213
|
-
|
|
214
|
-
form_params = []
|
|
215
|
-
local_var_files = {}
|
|
216
|
-
|
|
217
|
-
body_params = None
|
|
218
|
-
# HTTP header `Accept`
|
|
219
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
220
|
-
['application/json', 'text/json']) # noqa: E501
|
|
221
|
-
|
|
222
|
-
# Authentication setting
|
|
223
|
-
auth_settings = [] # noqa: E501
|
|
224
|
-
|
|
225
|
-
return self.api_client.call_api(
|
|
226
|
-
'/teamdbapi/v2.0/modelfield/{modelFieldId}/valuefield', 'GET',
|
|
227
|
-
path_params,
|
|
228
|
-
query_params,
|
|
229
|
-
header_params,
|
|
230
|
-
body=body_params,
|
|
231
|
-
post_params=form_params,
|
|
232
|
-
files=local_var_files,
|
|
233
|
-
response_type='object', # noqa: E501
|
|
234
|
-
auth_settings=auth_settings,
|
|
235
|
-
async_req=params.get('async_req'),
|
|
236
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
237
|
-
_preload_content=params.get('_preload_content', True),
|
|
238
|
-
_request_timeout=params.get('_request_timeout'),
|
|
239
|
-
collection_formats=collection_formats)
|
|
240
|
-
|
|
241
|
-
def get_value_field_by_name(self, field_name, field_type, parent_item_id, **kwargs): # noqa: E501
|
|
242
|
-
"""Retrieve the list of all values of a modelField # noqa: E501
|
|
243
|
-
|
|
244
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
245
|
-
asynchronous HTTP request, please pass async_req=True
|
|
246
|
-
>>> thread = api.get_value_field_by_name(field_name, field_type, parent_item_id, async_req=True)
|
|
247
|
-
>>> result = thread.get()
|
|
248
|
-
|
|
249
|
-
:param async_req bool
|
|
250
|
-
:param str field_name: The name of the field for which you are looking for values (required)
|
|
251
|
-
:param str field_type: The type of modelField (event, car,...) (required)
|
|
252
|
-
:param str parent_item_id: Id of the parent itembase (required)
|
|
253
|
-
:return: list[object]
|
|
254
|
-
If the method is called asynchronously,
|
|
255
|
-
returns the request thread.
|
|
256
|
-
"""
|
|
257
|
-
kwargs['_return_http_data_only'] = True
|
|
258
|
-
if kwargs.get('async_req'):
|
|
259
|
-
return self.get_value_field_by_name_with_http_info(field_name, field_type, parent_item_id, **kwargs) # noqa: E501
|
|
260
|
-
else:
|
|
261
|
-
(data) = self.get_value_field_by_name_with_http_info(field_name, field_type, parent_item_id, **kwargs) # noqa: E501
|
|
262
|
-
return data
|
|
263
|
-
|
|
264
|
-
def get_value_field_by_name_with_http_info(self, field_name, field_type, parent_item_id, **kwargs): # noqa: E501
|
|
265
|
-
"""Retrieve the list of all values of a modelField # noqa: E501
|
|
266
|
-
|
|
267
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
268
|
-
asynchronous HTTP request, please pass async_req=True
|
|
269
|
-
>>> thread = api.get_value_field_by_name_with_http_info(field_name, field_type, parent_item_id, async_req=True)
|
|
270
|
-
>>> result = thread.get()
|
|
271
|
-
|
|
272
|
-
:param async_req bool
|
|
273
|
-
:param str field_name: The name of the field for which you are looking for values (required)
|
|
274
|
-
:param str field_type: The type of modelField (event, car,...) (required)
|
|
275
|
-
:param str parent_item_id: Id of the parent itembase (required)
|
|
276
|
-
:return: list[object]
|
|
277
|
-
If the method is called asynchronously,
|
|
278
|
-
returns the request thread.
|
|
279
|
-
"""
|
|
280
|
-
|
|
281
|
-
all_params = ['field_name', 'field_type', 'parent_item_id'] # noqa: E501
|
|
282
|
-
all_params.append('async_req')
|
|
283
|
-
all_params.append('_return_http_data_only')
|
|
284
|
-
all_params.append('_preload_content')
|
|
285
|
-
all_params.append('_request_timeout')
|
|
286
|
-
|
|
287
|
-
params = locals()
|
|
288
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
289
|
-
if key not in all_params:
|
|
290
|
-
raise TypeError(
|
|
291
|
-
"Got an unexpected keyword argument '%s'"
|
|
292
|
-
" to method get_value_field_by_name" % key
|
|
293
|
-
)
|
|
294
|
-
params[key] = val
|
|
295
|
-
del params['kwargs']
|
|
296
|
-
# verify the required parameter 'field_name' is set
|
|
297
|
-
if ('field_name' not in params or
|
|
298
|
-
params['field_name'] is None):
|
|
299
|
-
raise ValueError("Missing the required parameter `field_name` when calling `get_value_field_by_name`") # noqa: E501
|
|
300
|
-
# verify the required parameter 'field_type' is set
|
|
301
|
-
if ('field_type' not in params or
|
|
302
|
-
params['field_type'] is None):
|
|
303
|
-
raise ValueError("Missing the required parameter `field_type` when calling `get_value_field_by_name`") # noqa: E501
|
|
304
|
-
# verify the required parameter 'parent_item_id' is set
|
|
305
|
-
if ('parent_item_id' not in params or
|
|
306
|
-
params['parent_item_id'] is None):
|
|
307
|
-
raise ValueError("Missing the required parameter `parent_item_id` when calling `get_value_field_by_name`") # noqa: E501
|
|
308
|
-
|
|
309
|
-
collection_formats = {}
|
|
310
|
-
|
|
311
|
-
path_params = {}
|
|
312
|
-
if 'field_name' in params:
|
|
313
|
-
path_params['fieldName'] = params['field_name'] # noqa: E501
|
|
314
|
-
if 'field_type' in params:
|
|
315
|
-
path_params['fieldType'] = params['field_type'] # noqa: E501
|
|
316
|
-
|
|
317
|
-
query_params = []
|
|
318
|
-
if 'parent_item_id' in params:
|
|
319
|
-
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
320
|
-
|
|
321
|
-
header_params = {}
|
|
322
|
-
|
|
323
|
-
form_params = []
|
|
324
|
-
local_var_files = {}
|
|
325
|
-
|
|
326
|
-
body_params = None
|
|
327
|
-
# HTTP header `Accept`
|
|
328
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
329
|
-
['application/json', 'text/json']) # noqa: E501
|
|
330
|
-
|
|
331
|
-
# Authentication setting
|
|
332
|
-
auth_settings = [] # noqa: E501
|
|
333
|
-
|
|
334
|
-
return self.api_client.call_api(
|
|
335
|
-
'/teamdbapi/v2.0/modelfield/{fieldName}/fieldType/{fieldType}/valuefield', 'GET',
|
|
336
|
-
path_params,
|
|
337
|
-
query_params,
|
|
338
|
-
header_params,
|
|
339
|
-
body=body_params,
|
|
340
|
-
post_params=form_params,
|
|
341
|
-
files=local_var_files,
|
|
342
|
-
response_type='list[object]', # noqa: E501
|
|
343
|
-
auth_settings=auth_settings,
|
|
344
|
-
async_req=params.get('async_req'),
|
|
345
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
346
|
-
_preload_content=params.get('_preload_content', True),
|
|
347
|
-
_request_timeout=params.get('_request_timeout'),
|
|
348
|
-
collection_formats=collection_formats)
|
|
349
|
-
|
|
350
|
-
def set_item_values(self, body, **kwargs): # noqa: E501
|
|
351
|
-
"""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
|
-
|
|
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.set_item_values(body, async_req=True)
|
|
356
|
-
>>> result = thread.get()
|
|
357
|
-
|
|
358
|
-
:param async_req bool
|
|
359
|
-
:param list[ItemValue] body: The list of values you want to set (required)
|
|
360
|
-
:return: None
|
|
361
|
-
If the method is called asynchronously,
|
|
362
|
-
returns the request thread.
|
|
363
|
-
"""
|
|
364
|
-
kwargs['_return_http_data_only'] = True
|
|
365
|
-
if kwargs.get('async_req'):
|
|
366
|
-
return self.set_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
367
|
-
else:
|
|
368
|
-
(data) = self.set_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
369
|
-
return data
|
|
370
|
-
|
|
371
|
-
def set_item_values_with_http_info(self, body, **kwargs): # noqa: E501
|
|
372
|
-
"""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
|
|
373
|
-
|
|
374
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
375
|
-
asynchronous HTTP request, please pass async_req=True
|
|
376
|
-
>>> thread = api.set_item_values_with_http_info(body, async_req=True)
|
|
377
|
-
>>> result = thread.get()
|
|
378
|
-
|
|
379
|
-
:param async_req bool
|
|
380
|
-
:param list[ItemValue] body: The list of values you want to set (required)
|
|
381
|
-
:return: None
|
|
382
|
-
If the method is called asynchronously,
|
|
383
|
-
returns the request thread.
|
|
384
|
-
"""
|
|
385
|
-
|
|
386
|
-
all_params = ['body'] # noqa: E501
|
|
387
|
-
all_params.append('async_req')
|
|
388
|
-
all_params.append('_return_http_data_only')
|
|
389
|
-
all_params.append('_preload_content')
|
|
390
|
-
all_params.append('_request_timeout')
|
|
391
|
-
|
|
392
|
-
params = locals()
|
|
393
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
394
|
-
if key not in all_params:
|
|
395
|
-
raise TypeError(
|
|
396
|
-
"Got an unexpected keyword argument '%s'"
|
|
397
|
-
" to method set_item_values" % key
|
|
398
|
-
)
|
|
399
|
-
params[key] = val
|
|
400
|
-
del params['kwargs']
|
|
401
|
-
# verify the required parameter 'body' is set
|
|
402
|
-
if ('body' not in params or
|
|
403
|
-
params['body'] is None):
|
|
404
|
-
raise ValueError("Missing the required parameter `body` when calling `set_item_values`") # noqa: E501
|
|
405
|
-
|
|
406
|
-
collection_formats = {}
|
|
407
|
-
|
|
408
|
-
path_params = {}
|
|
409
|
-
|
|
410
|
-
query_params = []
|
|
411
|
-
|
|
412
|
-
header_params = {}
|
|
413
|
-
|
|
414
|
-
form_params = []
|
|
415
|
-
local_var_files = {}
|
|
416
|
-
|
|
417
|
-
body_params = None
|
|
418
|
-
if 'body' in params:
|
|
419
|
-
body_params = params['body']
|
|
420
|
-
# HTTP header `Accept`
|
|
421
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
422
|
-
['application/json', 'text/json']) # noqa: E501
|
|
423
|
-
|
|
424
|
-
# HTTP header `Content-Type`
|
|
425
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
426
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
427
|
-
|
|
428
|
-
# Authentication setting
|
|
429
|
-
auth_settings = [] # noqa: E501
|
|
430
|
-
|
|
431
|
-
return self.api_client.call_api(
|
|
432
|
-
'/teamdbapi/v2.0/valuefields', 'PUT',
|
|
433
|
-
path_params,
|
|
434
|
-
query_params,
|
|
435
|
-
header_params,
|
|
436
|
-
body=body_params,
|
|
437
|
-
post_params=form_params,
|
|
438
|
-
files=local_var_files,
|
|
439
|
-
response_type=None, # noqa: E501
|
|
440
|
-
auth_settings=auth_settings,
|
|
441
|
-
async_req=params.get('async_req'),
|
|
442
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
443
|
-
_preload_content=params.get('_preload_content', True),
|
|
444
|
-
_request_timeout=params.get('_request_timeout'),
|
|
445
|
-
collection_formats=collection_formats)
|
|
446
|
-
|
|
447
|
-
def set_value_field(self, body, parent_item_id, model_field_id, **kwargs): # noqa: E501
|
|
448
|
-
"""Set a value field via a model field unique id and a parent entity unique id. To update a RevisionEditor call POST tracksideapi/v1/RevisionEditorValue method from RevisionEditorSelector API instead To update a RevisionSelector call POST tracksideapi/v1/RevisionSelectorValue method from RevisionEditorSelector API instead # noqa: E501
|
|
449
|
-
|
|
450
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
451
|
-
asynchronous HTTP request, please pass async_req=True
|
|
452
|
-
>>> thread = api.set_value_field(body, parent_item_id, model_field_id, async_req=True)
|
|
453
|
-
>>> result = thread.get()
|
|
454
|
-
|
|
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 with the following format C
|
|
457
|
-
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
458
|
-
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
459
|
-
:return: ValueField
|
|
460
|
-
If the method is called asynchronously,
|
|
461
|
-
returns the request thread.
|
|
462
|
-
"""
|
|
463
|
-
kwargs['_return_http_data_only'] = True
|
|
464
|
-
if kwargs.get('async_req'):
|
|
465
|
-
return self.set_value_field_with_http_info(body, parent_item_id, model_field_id, **kwargs) # noqa: E501
|
|
466
|
-
else:
|
|
467
|
-
(data) = self.set_value_field_with_http_info(body, parent_item_id, model_field_id, **kwargs) # noqa: E501
|
|
468
|
-
return data
|
|
469
|
-
|
|
470
|
-
def set_value_field_with_http_info(self, body, parent_item_id, model_field_id, **kwargs): # noqa: E501
|
|
471
|
-
"""Set a value field via a model field unique id and a parent entity unique id. To update a RevisionEditor call POST tracksideapi/v1/RevisionEditorValue method from RevisionEditorSelector API instead To update a RevisionSelector call POST tracksideapi/v1/RevisionSelectorValue method from RevisionEditorSelector API instead # noqa: E501
|
|
472
|
-
|
|
473
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
474
|
-
asynchronous HTTP request, please pass async_req=True
|
|
475
|
-
>>> thread = api.set_value_field_with_http_info(body, parent_item_id, model_field_id, async_req=True)
|
|
476
|
-
>>> result = thread.get()
|
|
477
|
-
|
|
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 with the following format C
|
|
480
|
-
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
481
|
-
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
482
|
-
:return: ValueField
|
|
483
|
-
If the method is called asynchronously,
|
|
484
|
-
returns the request thread.
|
|
485
|
-
"""
|
|
486
|
-
|
|
487
|
-
all_params = ['body', 'parent_item_id', 'model_field_id'] # noqa: E501
|
|
488
|
-
all_params.append('async_req')
|
|
489
|
-
all_params.append('_return_http_data_only')
|
|
490
|
-
all_params.append('_preload_content')
|
|
491
|
-
all_params.append('_request_timeout')
|
|
492
|
-
|
|
493
|
-
params = locals()
|
|
494
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
495
|
-
if key not in all_params:
|
|
496
|
-
raise TypeError(
|
|
497
|
-
"Got an unexpected keyword argument '%s'"
|
|
498
|
-
" to method set_value_field" % key
|
|
499
|
-
)
|
|
500
|
-
params[key] = val
|
|
501
|
-
del params['kwargs']
|
|
502
|
-
# verify the required parameter 'body' is set
|
|
503
|
-
if ('body' not in params or
|
|
504
|
-
params['body'] is None):
|
|
505
|
-
raise ValueError("Missing the required parameter `body` when calling `set_value_field`") # noqa: E501
|
|
506
|
-
# verify the required parameter 'parent_item_id' is set
|
|
507
|
-
if ('parent_item_id' not in params or
|
|
508
|
-
params['parent_item_id'] is None):
|
|
509
|
-
raise ValueError("Missing the required parameter `parent_item_id` when calling `set_value_field`") # noqa: E501
|
|
510
|
-
# verify the required parameter 'model_field_id' is set
|
|
511
|
-
if ('model_field_id' not in params or
|
|
512
|
-
params['model_field_id'] is None):
|
|
513
|
-
raise ValueError("Missing the required parameter `model_field_id` when calling `set_value_field`") # noqa: E501
|
|
514
|
-
|
|
515
|
-
collection_formats = {}
|
|
516
|
-
|
|
517
|
-
path_params = {}
|
|
518
|
-
if 'model_field_id' in params:
|
|
519
|
-
path_params['modelFieldId'] = params['model_field_id'] # noqa: E501
|
|
520
|
-
|
|
521
|
-
query_params = []
|
|
522
|
-
if 'parent_item_id' in params:
|
|
523
|
-
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
524
|
-
|
|
525
|
-
header_params = {}
|
|
526
|
-
|
|
527
|
-
form_params = []
|
|
528
|
-
local_var_files = {}
|
|
529
|
-
|
|
530
|
-
body_params = None
|
|
531
|
-
if 'body' in params:
|
|
532
|
-
body_params = params['body']
|
|
533
|
-
# HTTP header `Accept`
|
|
534
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
535
|
-
['application/json', 'text/json']) # noqa: E501
|
|
536
|
-
|
|
537
|
-
# HTTP header `Content-Type`
|
|
538
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
539
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
540
|
-
|
|
541
|
-
# Authentication setting
|
|
542
|
-
auth_settings = [] # noqa: E501
|
|
543
|
-
|
|
544
|
-
return self.api_client.call_api(
|
|
545
|
-
'/teamdbapi/v2.0/modelfield/{modelFieldId}/valuefield', 'PUT',
|
|
546
|
-
path_params,
|
|
547
|
-
query_params,
|
|
548
|
-
header_params,
|
|
549
|
-
body=body_params,
|
|
550
|
-
post_params=form_params,
|
|
551
|
-
files=local_var_files,
|
|
552
|
-
response_type='ValueField', # noqa: E501
|
|
553
|
-
auth_settings=auth_settings,
|
|
554
|
-
async_req=params.get('async_req'),
|
|
555
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
556
|
-
_preload_content=params.get('_preload_content', True),
|
|
557
|
-
_request_timeout=params.get('_request_timeout'),
|
|
558
|
-
collection_formats=collection_formats)
|
|
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 ValueFieldApi(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_item_values(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Get a list of value fields, revision editors and revision selectors via a model field unique id and a parent entity unique id. # 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_item_values(body, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param list[ItemValueKey] body: The list of keys (model field / parent entity) for which you want to get the values (required)
|
|
45
|
+
:return: list[ItemValue]
|
|
46
|
+
If the method is called asynchronously,
|
|
47
|
+
returns the request thread.
|
|
48
|
+
"""
|
|
49
|
+
kwargs['_return_http_data_only'] = True
|
|
50
|
+
if kwargs.get('async_req'):
|
|
51
|
+
return self.get_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.get_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def get_item_values_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
+
"""Get a list of value fields, revision editors and revision selectors via a model field unique id and a parent entity unique id. # noqa: E501
|
|
58
|
+
|
|
59
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
60
|
+
asynchronous HTTP request, please pass async_req=True
|
|
61
|
+
>>> thread = api.get_item_values_with_http_info(body, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param list[ItemValueKey] body: The list of keys (model field / parent entity) for which you want to get the values (required)
|
|
66
|
+
:return: list[ItemValue]
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['body'] # noqa: E501
|
|
72
|
+
all_params.append('async_req')
|
|
73
|
+
all_params.append('_return_http_data_only')
|
|
74
|
+
all_params.append('_preload_content')
|
|
75
|
+
all_params.append('_request_timeout')
|
|
76
|
+
|
|
77
|
+
params = locals()
|
|
78
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
+
if key not in all_params:
|
|
80
|
+
raise TypeError(
|
|
81
|
+
"Got an unexpected keyword argument '%s'"
|
|
82
|
+
" to method get_item_values" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'body' is set
|
|
87
|
+
if ('body' not in params or
|
|
88
|
+
params['body'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `body` when calling `get_item_values`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
|
|
97
|
+
header_params = {}
|
|
98
|
+
|
|
99
|
+
form_params = []
|
|
100
|
+
local_var_files = {}
|
|
101
|
+
|
|
102
|
+
body_params = None
|
|
103
|
+
if 'body' in params:
|
|
104
|
+
body_params = params['body']
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json', 'text/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# HTTP header `Content-Type`
|
|
110
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
+
|
|
113
|
+
# Authentication setting
|
|
114
|
+
auth_settings = [] # noqa: E501
|
|
115
|
+
|
|
116
|
+
return self.api_client.call_api(
|
|
117
|
+
'/teamdbapi/v2.0/valuefields', 'POST',
|
|
118
|
+
path_params,
|
|
119
|
+
query_params,
|
|
120
|
+
header_params,
|
|
121
|
+
body=body_params,
|
|
122
|
+
post_params=form_params,
|
|
123
|
+
files=local_var_files,
|
|
124
|
+
response_type='list[ItemValue]', # noqa: E501
|
|
125
|
+
auth_settings=auth_settings,
|
|
126
|
+
async_req=params.get('async_req'),
|
|
127
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
+
_preload_content=params.get('_preload_content', True),
|
|
129
|
+
_request_timeout=params.get('_request_timeout'),
|
|
130
|
+
collection_formats=collection_formats)
|
|
131
|
+
|
|
132
|
+
def get_value_field_by_id(self, model_field_id, parent_item_id, **kwargs): # noqa: E501
|
|
133
|
+
"""Get a value field via a model field unique id and a parent entity unique id. # noqa: E501
|
|
134
|
+
|
|
135
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
+
asynchronous HTTP request, please pass async_req=True
|
|
137
|
+
>>> thread = api.get_value_field_by_id(model_field_id, parent_item_id, async_req=True)
|
|
138
|
+
>>> result = thread.get()
|
|
139
|
+
|
|
140
|
+
:param async_req bool
|
|
141
|
+
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
142
|
+
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
143
|
+
:param int row_id: The row 0 based index of the cell for which you want the value. The Row headers are included.
|
|
144
|
+
:param int col_id: The column 0 based index of the cell for which you want the value
|
|
145
|
+
:return: object
|
|
146
|
+
If the method is called asynchronously,
|
|
147
|
+
returns the request thread.
|
|
148
|
+
"""
|
|
149
|
+
kwargs['_return_http_data_only'] = True
|
|
150
|
+
if kwargs.get('async_req'):
|
|
151
|
+
return self.get_value_field_by_id_with_http_info(model_field_id, parent_item_id, **kwargs) # noqa: E501
|
|
152
|
+
else:
|
|
153
|
+
(data) = self.get_value_field_by_id_with_http_info(model_field_id, parent_item_id, **kwargs) # noqa: E501
|
|
154
|
+
return data
|
|
155
|
+
|
|
156
|
+
def get_value_field_by_id_with_http_info(self, model_field_id, parent_item_id, **kwargs): # noqa: E501
|
|
157
|
+
"""Get a value field via a model field unique id and a parent entity unique id. # noqa: E501
|
|
158
|
+
|
|
159
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
160
|
+
asynchronous HTTP request, please pass async_req=True
|
|
161
|
+
>>> thread = api.get_value_field_by_id_with_http_info(model_field_id, parent_item_id, async_req=True)
|
|
162
|
+
>>> result = thread.get()
|
|
163
|
+
|
|
164
|
+
:param async_req bool
|
|
165
|
+
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
166
|
+
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
167
|
+
:param int row_id: The row 0 based index of the cell for which you want the value. The Row headers are included.
|
|
168
|
+
:param int col_id: The column 0 based index of the cell for which you want the value
|
|
169
|
+
:return: object
|
|
170
|
+
If the method is called asynchronously,
|
|
171
|
+
returns the request thread.
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
all_params = ['model_field_id', 'parent_item_id', 'row_id', 'col_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 get_value_field_by_id" % key
|
|
186
|
+
)
|
|
187
|
+
params[key] = val
|
|
188
|
+
del params['kwargs']
|
|
189
|
+
# verify the required parameter 'model_field_id' is set
|
|
190
|
+
if ('model_field_id' not in params or
|
|
191
|
+
params['model_field_id'] is None):
|
|
192
|
+
raise ValueError("Missing the required parameter `model_field_id` when calling `get_value_field_by_id`") # noqa: E501
|
|
193
|
+
# verify the required parameter 'parent_item_id' is set
|
|
194
|
+
if ('parent_item_id' not in params or
|
|
195
|
+
params['parent_item_id'] is None):
|
|
196
|
+
raise ValueError("Missing the required parameter `parent_item_id` when calling `get_value_field_by_id`") # noqa: E501
|
|
197
|
+
|
|
198
|
+
collection_formats = {}
|
|
199
|
+
|
|
200
|
+
path_params = {}
|
|
201
|
+
if 'model_field_id' in params:
|
|
202
|
+
path_params['modelFieldId'] = params['model_field_id'] # noqa: E501
|
|
203
|
+
|
|
204
|
+
query_params = []
|
|
205
|
+
if 'parent_item_id' in params:
|
|
206
|
+
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
207
|
+
if 'row_id' in params:
|
|
208
|
+
query_params.append(('rowId', params['row_id'])) # noqa: E501
|
|
209
|
+
if 'col_id' in params:
|
|
210
|
+
query_params.append(('colId', params['col_id'])) # noqa: E501
|
|
211
|
+
|
|
212
|
+
header_params = {}
|
|
213
|
+
|
|
214
|
+
form_params = []
|
|
215
|
+
local_var_files = {}
|
|
216
|
+
|
|
217
|
+
body_params = None
|
|
218
|
+
# HTTP header `Accept`
|
|
219
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
220
|
+
['application/json', 'text/json']) # noqa: E501
|
|
221
|
+
|
|
222
|
+
# Authentication setting
|
|
223
|
+
auth_settings = [] # noqa: E501
|
|
224
|
+
|
|
225
|
+
return self.api_client.call_api(
|
|
226
|
+
'/teamdbapi/v2.0/modelfield/{modelFieldId}/valuefield', 'GET',
|
|
227
|
+
path_params,
|
|
228
|
+
query_params,
|
|
229
|
+
header_params,
|
|
230
|
+
body=body_params,
|
|
231
|
+
post_params=form_params,
|
|
232
|
+
files=local_var_files,
|
|
233
|
+
response_type='object', # noqa: E501
|
|
234
|
+
auth_settings=auth_settings,
|
|
235
|
+
async_req=params.get('async_req'),
|
|
236
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
237
|
+
_preload_content=params.get('_preload_content', True),
|
|
238
|
+
_request_timeout=params.get('_request_timeout'),
|
|
239
|
+
collection_formats=collection_formats)
|
|
240
|
+
|
|
241
|
+
def get_value_field_by_name(self, field_name, field_type, parent_item_id, **kwargs): # noqa: E501
|
|
242
|
+
"""Retrieve the list of all values of a modelField # noqa: E501
|
|
243
|
+
|
|
244
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
245
|
+
asynchronous HTTP request, please pass async_req=True
|
|
246
|
+
>>> thread = api.get_value_field_by_name(field_name, field_type, parent_item_id, async_req=True)
|
|
247
|
+
>>> result = thread.get()
|
|
248
|
+
|
|
249
|
+
:param async_req bool
|
|
250
|
+
:param str field_name: The name of the field for which you are looking for values (required)
|
|
251
|
+
:param str field_type: The type of modelField (event, car,...) (required)
|
|
252
|
+
:param str parent_item_id: Id of the parent itembase (required)
|
|
253
|
+
:return: list[object]
|
|
254
|
+
If the method is called asynchronously,
|
|
255
|
+
returns the request thread.
|
|
256
|
+
"""
|
|
257
|
+
kwargs['_return_http_data_only'] = True
|
|
258
|
+
if kwargs.get('async_req'):
|
|
259
|
+
return self.get_value_field_by_name_with_http_info(field_name, field_type, parent_item_id, **kwargs) # noqa: E501
|
|
260
|
+
else:
|
|
261
|
+
(data) = self.get_value_field_by_name_with_http_info(field_name, field_type, parent_item_id, **kwargs) # noqa: E501
|
|
262
|
+
return data
|
|
263
|
+
|
|
264
|
+
def get_value_field_by_name_with_http_info(self, field_name, field_type, parent_item_id, **kwargs): # noqa: E501
|
|
265
|
+
"""Retrieve the list of all values of a modelField # noqa: E501
|
|
266
|
+
|
|
267
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
268
|
+
asynchronous HTTP request, please pass async_req=True
|
|
269
|
+
>>> thread = api.get_value_field_by_name_with_http_info(field_name, field_type, parent_item_id, async_req=True)
|
|
270
|
+
>>> result = thread.get()
|
|
271
|
+
|
|
272
|
+
:param async_req bool
|
|
273
|
+
:param str field_name: The name of the field for which you are looking for values (required)
|
|
274
|
+
:param str field_type: The type of modelField (event, car,...) (required)
|
|
275
|
+
:param str parent_item_id: Id of the parent itembase (required)
|
|
276
|
+
:return: list[object]
|
|
277
|
+
If the method is called asynchronously,
|
|
278
|
+
returns the request thread.
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
all_params = ['field_name', 'field_type', 'parent_item_id'] # noqa: E501
|
|
282
|
+
all_params.append('async_req')
|
|
283
|
+
all_params.append('_return_http_data_only')
|
|
284
|
+
all_params.append('_preload_content')
|
|
285
|
+
all_params.append('_request_timeout')
|
|
286
|
+
|
|
287
|
+
params = locals()
|
|
288
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
289
|
+
if key not in all_params:
|
|
290
|
+
raise TypeError(
|
|
291
|
+
"Got an unexpected keyword argument '%s'"
|
|
292
|
+
" to method get_value_field_by_name" % key
|
|
293
|
+
)
|
|
294
|
+
params[key] = val
|
|
295
|
+
del params['kwargs']
|
|
296
|
+
# verify the required parameter 'field_name' is set
|
|
297
|
+
if ('field_name' not in params or
|
|
298
|
+
params['field_name'] is None):
|
|
299
|
+
raise ValueError("Missing the required parameter `field_name` when calling `get_value_field_by_name`") # noqa: E501
|
|
300
|
+
# verify the required parameter 'field_type' is set
|
|
301
|
+
if ('field_type' not in params or
|
|
302
|
+
params['field_type'] is None):
|
|
303
|
+
raise ValueError("Missing the required parameter `field_type` when calling `get_value_field_by_name`") # noqa: E501
|
|
304
|
+
# verify the required parameter 'parent_item_id' is set
|
|
305
|
+
if ('parent_item_id' not in params or
|
|
306
|
+
params['parent_item_id'] is None):
|
|
307
|
+
raise ValueError("Missing the required parameter `parent_item_id` when calling `get_value_field_by_name`") # noqa: E501
|
|
308
|
+
|
|
309
|
+
collection_formats = {}
|
|
310
|
+
|
|
311
|
+
path_params = {}
|
|
312
|
+
if 'field_name' in params:
|
|
313
|
+
path_params['fieldName'] = params['field_name'] # noqa: E501
|
|
314
|
+
if 'field_type' in params:
|
|
315
|
+
path_params['fieldType'] = params['field_type'] # noqa: E501
|
|
316
|
+
|
|
317
|
+
query_params = []
|
|
318
|
+
if 'parent_item_id' in params:
|
|
319
|
+
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
320
|
+
|
|
321
|
+
header_params = {}
|
|
322
|
+
|
|
323
|
+
form_params = []
|
|
324
|
+
local_var_files = {}
|
|
325
|
+
|
|
326
|
+
body_params = None
|
|
327
|
+
# HTTP header `Accept`
|
|
328
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
329
|
+
['application/json', 'text/json']) # noqa: E501
|
|
330
|
+
|
|
331
|
+
# Authentication setting
|
|
332
|
+
auth_settings = [] # noqa: E501
|
|
333
|
+
|
|
334
|
+
return self.api_client.call_api(
|
|
335
|
+
'/teamdbapi/v2.0/modelfield/{fieldName}/fieldType/{fieldType}/valuefield', 'GET',
|
|
336
|
+
path_params,
|
|
337
|
+
query_params,
|
|
338
|
+
header_params,
|
|
339
|
+
body=body_params,
|
|
340
|
+
post_params=form_params,
|
|
341
|
+
files=local_var_files,
|
|
342
|
+
response_type='list[object]', # noqa: E501
|
|
343
|
+
auth_settings=auth_settings,
|
|
344
|
+
async_req=params.get('async_req'),
|
|
345
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
346
|
+
_preload_content=params.get('_preload_content', True),
|
|
347
|
+
_request_timeout=params.get('_request_timeout'),
|
|
348
|
+
collection_formats=collection_formats)
|
|
349
|
+
|
|
350
|
+
def set_item_values(self, body, **kwargs): # noqa: E501
|
|
351
|
+
"""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
|
+
|
|
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.set_item_values(body, async_req=True)
|
|
356
|
+
>>> result = thread.get()
|
|
357
|
+
|
|
358
|
+
:param async_req bool
|
|
359
|
+
:param list[ItemValue] body: The list of values you want to set (required)
|
|
360
|
+
:return: None
|
|
361
|
+
If the method is called asynchronously,
|
|
362
|
+
returns the request thread.
|
|
363
|
+
"""
|
|
364
|
+
kwargs['_return_http_data_only'] = True
|
|
365
|
+
if kwargs.get('async_req'):
|
|
366
|
+
return self.set_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
367
|
+
else:
|
|
368
|
+
(data) = self.set_item_values_with_http_info(body, **kwargs) # noqa: E501
|
|
369
|
+
return data
|
|
370
|
+
|
|
371
|
+
def set_item_values_with_http_info(self, body, **kwargs): # noqa: E501
|
|
372
|
+
"""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
|
|
373
|
+
|
|
374
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
375
|
+
asynchronous HTTP request, please pass async_req=True
|
|
376
|
+
>>> thread = api.set_item_values_with_http_info(body, async_req=True)
|
|
377
|
+
>>> result = thread.get()
|
|
378
|
+
|
|
379
|
+
:param async_req bool
|
|
380
|
+
:param list[ItemValue] body: The list of values you want to set (required)
|
|
381
|
+
:return: None
|
|
382
|
+
If the method is called asynchronously,
|
|
383
|
+
returns the request thread.
|
|
384
|
+
"""
|
|
385
|
+
|
|
386
|
+
all_params = ['body'] # noqa: E501
|
|
387
|
+
all_params.append('async_req')
|
|
388
|
+
all_params.append('_return_http_data_only')
|
|
389
|
+
all_params.append('_preload_content')
|
|
390
|
+
all_params.append('_request_timeout')
|
|
391
|
+
|
|
392
|
+
params = locals()
|
|
393
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
394
|
+
if key not in all_params:
|
|
395
|
+
raise TypeError(
|
|
396
|
+
"Got an unexpected keyword argument '%s'"
|
|
397
|
+
" to method set_item_values" % key
|
|
398
|
+
)
|
|
399
|
+
params[key] = val
|
|
400
|
+
del params['kwargs']
|
|
401
|
+
# verify the required parameter 'body' is set
|
|
402
|
+
if ('body' not in params or
|
|
403
|
+
params['body'] is None):
|
|
404
|
+
raise ValueError("Missing the required parameter `body` when calling `set_item_values`") # noqa: E501
|
|
405
|
+
|
|
406
|
+
collection_formats = {}
|
|
407
|
+
|
|
408
|
+
path_params = {}
|
|
409
|
+
|
|
410
|
+
query_params = []
|
|
411
|
+
|
|
412
|
+
header_params = {}
|
|
413
|
+
|
|
414
|
+
form_params = []
|
|
415
|
+
local_var_files = {}
|
|
416
|
+
|
|
417
|
+
body_params = None
|
|
418
|
+
if 'body' in params:
|
|
419
|
+
body_params = params['body']
|
|
420
|
+
# HTTP header `Accept`
|
|
421
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
422
|
+
['application/json', 'text/json']) # noqa: E501
|
|
423
|
+
|
|
424
|
+
# HTTP header `Content-Type`
|
|
425
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
426
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
427
|
+
|
|
428
|
+
# Authentication setting
|
|
429
|
+
auth_settings = [] # noqa: E501
|
|
430
|
+
|
|
431
|
+
return self.api_client.call_api(
|
|
432
|
+
'/teamdbapi/v2.0/valuefields', 'PUT',
|
|
433
|
+
path_params,
|
|
434
|
+
query_params,
|
|
435
|
+
header_params,
|
|
436
|
+
body=body_params,
|
|
437
|
+
post_params=form_params,
|
|
438
|
+
files=local_var_files,
|
|
439
|
+
response_type=None, # noqa: E501
|
|
440
|
+
auth_settings=auth_settings,
|
|
441
|
+
async_req=params.get('async_req'),
|
|
442
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
443
|
+
_preload_content=params.get('_preload_content', True),
|
|
444
|
+
_request_timeout=params.get('_request_timeout'),
|
|
445
|
+
collection_formats=collection_formats)
|
|
446
|
+
|
|
447
|
+
def set_value_field(self, body, parent_item_id, model_field_id, **kwargs): # noqa: E501
|
|
448
|
+
"""Set a value field via a model field unique id and a parent entity unique id. To update a RevisionEditor call POST tracksideapi/v1/RevisionEditorValue method from RevisionEditorSelector API instead To update a RevisionSelector call POST tracksideapi/v1/RevisionSelectorValue method from RevisionEditorSelector API instead # noqa: E501
|
|
449
|
+
|
|
450
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
451
|
+
asynchronous HTTP request, please pass async_req=True
|
|
452
|
+
>>> thread = api.set_value_field(body, parent_item_id, model_field_id, async_req=True)
|
|
453
|
+
>>> result = thread.get()
|
|
454
|
+
|
|
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 with the following format C:\\\\Users\\\\MyUser\\\\Downloads\\\\MyImage.png (note the double \\) (required)
|
|
457
|
+
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
458
|
+
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
459
|
+
:return: ValueField
|
|
460
|
+
If the method is called asynchronously,
|
|
461
|
+
returns the request thread.
|
|
462
|
+
"""
|
|
463
|
+
kwargs['_return_http_data_only'] = True
|
|
464
|
+
if kwargs.get('async_req'):
|
|
465
|
+
return self.set_value_field_with_http_info(body, parent_item_id, model_field_id, **kwargs) # noqa: E501
|
|
466
|
+
else:
|
|
467
|
+
(data) = self.set_value_field_with_http_info(body, parent_item_id, model_field_id, **kwargs) # noqa: E501
|
|
468
|
+
return data
|
|
469
|
+
|
|
470
|
+
def set_value_field_with_http_info(self, body, parent_item_id, model_field_id, **kwargs): # noqa: E501
|
|
471
|
+
"""Set a value field via a model field unique id and a parent entity unique id. To update a RevisionEditor call POST tracksideapi/v1/RevisionEditorValue method from RevisionEditorSelector API instead To update a RevisionSelector call POST tracksideapi/v1/RevisionSelectorValue method from RevisionEditorSelector API instead # noqa: E501
|
|
472
|
+
|
|
473
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
474
|
+
asynchronous HTTP request, please pass async_req=True
|
|
475
|
+
>>> thread = api.set_value_field_with_http_info(body, parent_item_id, model_field_id, async_req=True)
|
|
476
|
+
>>> result = thread.get()
|
|
477
|
+
|
|
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 with the following format C:\\\\Users\\\\MyUser\\\\Downloads\\\\MyImage.png (note the double \\) (required)
|
|
480
|
+
:param str parent_item_id: The parent item id for which you want to get the value field (required)
|
|
481
|
+
:param str model_field_id: The model field id for which you want to get the value field (required)
|
|
482
|
+
:return: ValueField
|
|
483
|
+
If the method is called asynchronously,
|
|
484
|
+
returns the request thread.
|
|
485
|
+
"""
|
|
486
|
+
|
|
487
|
+
all_params = ['body', 'parent_item_id', 'model_field_id'] # noqa: E501
|
|
488
|
+
all_params.append('async_req')
|
|
489
|
+
all_params.append('_return_http_data_only')
|
|
490
|
+
all_params.append('_preload_content')
|
|
491
|
+
all_params.append('_request_timeout')
|
|
492
|
+
|
|
493
|
+
params = locals()
|
|
494
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
495
|
+
if key not in all_params:
|
|
496
|
+
raise TypeError(
|
|
497
|
+
"Got an unexpected keyword argument '%s'"
|
|
498
|
+
" to method set_value_field" % key
|
|
499
|
+
)
|
|
500
|
+
params[key] = val
|
|
501
|
+
del params['kwargs']
|
|
502
|
+
# verify the required parameter 'body' is set
|
|
503
|
+
if ('body' not in params or
|
|
504
|
+
params['body'] is None):
|
|
505
|
+
raise ValueError("Missing the required parameter `body` when calling `set_value_field`") # noqa: E501
|
|
506
|
+
# verify the required parameter 'parent_item_id' is set
|
|
507
|
+
if ('parent_item_id' not in params or
|
|
508
|
+
params['parent_item_id'] is None):
|
|
509
|
+
raise ValueError("Missing the required parameter `parent_item_id` when calling `set_value_field`") # noqa: E501
|
|
510
|
+
# verify the required parameter 'model_field_id' is set
|
|
511
|
+
if ('model_field_id' not in params or
|
|
512
|
+
params['model_field_id'] is None):
|
|
513
|
+
raise ValueError("Missing the required parameter `model_field_id` when calling `set_value_field`") # noqa: E501
|
|
514
|
+
|
|
515
|
+
collection_formats = {}
|
|
516
|
+
|
|
517
|
+
path_params = {}
|
|
518
|
+
if 'model_field_id' in params:
|
|
519
|
+
path_params['modelFieldId'] = params['model_field_id'] # noqa: E501
|
|
520
|
+
|
|
521
|
+
query_params = []
|
|
522
|
+
if 'parent_item_id' in params:
|
|
523
|
+
query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
|
|
524
|
+
|
|
525
|
+
header_params = {}
|
|
526
|
+
|
|
527
|
+
form_params = []
|
|
528
|
+
local_var_files = {}
|
|
529
|
+
|
|
530
|
+
body_params = None
|
|
531
|
+
if 'body' in params:
|
|
532
|
+
body_params = params['body']
|
|
533
|
+
# HTTP header `Accept`
|
|
534
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
535
|
+
['application/json', 'text/json']) # noqa: E501
|
|
536
|
+
|
|
537
|
+
# HTTP header `Content-Type`
|
|
538
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
539
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
540
|
+
|
|
541
|
+
# Authentication setting
|
|
542
|
+
auth_settings = [] # noqa: E501
|
|
543
|
+
|
|
544
|
+
return self.api_client.call_api(
|
|
545
|
+
'/teamdbapi/v2.0/modelfield/{modelFieldId}/valuefield', 'PUT',
|
|
546
|
+
path_params,
|
|
547
|
+
query_params,
|
|
548
|
+
header_params,
|
|
549
|
+
body=body_params,
|
|
550
|
+
post_params=form_params,
|
|
551
|
+
files=local_var_files,
|
|
552
|
+
response_type='ValueField', # noqa: E501
|
|
553
|
+
auth_settings=auth_settings,
|
|
554
|
+
async_req=params.get('async_req'),
|
|
555
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
556
|
+
_preload_content=params.get('_preload_content', True),
|
|
557
|
+
_request_timeout=params.get('_request_timeout'),
|
|
558
|
+
collection_formats=collection_formats)
|