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/parameter_api.py
CHANGED
|
@@ -1,1176 +1,1176 @@
|
|
|
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 ParameterApi(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_current_context_parameter_by_name(self, param_name_or_reference, **kwargs): # noqa: E501
|
|
36
|
-
"""Get the parameter for a given parameter name or reference and the current selected version in the Parameters Editor view. # 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_current_context_parameter_by_name(param_name_or_reference, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
45
|
-
:return: Parameter
|
|
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_current_context_parameter_by_name_with_http_info(param_name_or_reference, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.get_current_context_parameter_by_name_with_http_info(param_name_or_reference, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def get_current_context_parameter_by_name_with_http_info(self, param_name_or_reference, **kwargs): # noqa: E501
|
|
57
|
-
"""Get the parameter for a given parameter name or reference and the current selected version in the Parameters Editor view. # 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_current_context_parameter_by_name_with_http_info(param_name_or_reference, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
66
|
-
:return: Parameter
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['param_name_or_reference'] # 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_current_context_parameter_by_name" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'param_name_or_reference' is set
|
|
87
|
-
if ('param_name_or_reference' not in params or
|
|
88
|
-
params['param_name_or_reference'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `param_name_or_reference` when calling `get_current_context_parameter_by_name`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
|
|
95
|
-
query_params = []
|
|
96
|
-
if 'param_name_or_reference' in params:
|
|
97
|
-
query_params.append(('paramNameOrReference', params['param_name_or_reference'])) # noqa: E501
|
|
98
|
-
|
|
99
|
-
header_params = {}
|
|
100
|
-
|
|
101
|
-
form_params = []
|
|
102
|
-
local_var_files = {}
|
|
103
|
-
|
|
104
|
-
body_params = None
|
|
105
|
-
# HTTP header `Accept`
|
|
106
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
-
['application/json', 'text/json']) # noqa: E501
|
|
108
|
-
|
|
109
|
-
# Authentication setting
|
|
110
|
-
auth_settings = [] # noqa: E501
|
|
111
|
-
|
|
112
|
-
return self.api_client.call_api(
|
|
113
|
-
'/teamdbapi/v2.0/currentVersion/parameter', 'GET',
|
|
114
|
-
path_params,
|
|
115
|
-
query_params,
|
|
116
|
-
header_params,
|
|
117
|
-
body=body_params,
|
|
118
|
-
post_params=form_params,
|
|
119
|
-
files=local_var_files,
|
|
120
|
-
response_type='Parameter', # noqa: E501
|
|
121
|
-
auth_settings=auth_settings,
|
|
122
|
-
async_req=params.get('async_req'),
|
|
123
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
124
|
-
_preload_content=params.get('_preload_content', True),
|
|
125
|
-
_request_timeout=params.get('_request_timeout'),
|
|
126
|
-
collection_formats=collection_formats)
|
|
127
|
-
|
|
128
|
-
def get_parameter(self, param_id, version_id, **kwargs): # noqa: E501
|
|
129
|
-
"""Get a parameter for a given version id. A parameter can be linked to different versions with the same definition... or not (for ex: new parameter size, format...). For this reason, you have to specify the version to which you want to get the paramater definition. # noqa: E501
|
|
130
|
-
|
|
131
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
132
|
-
asynchronous HTTP request, please pass async_req=True
|
|
133
|
-
>>> thread = api.get_parameter(param_id, version_id, async_req=True)
|
|
134
|
-
>>> result = thread.get()
|
|
135
|
-
|
|
136
|
-
:param async_req bool
|
|
137
|
-
:param str param_id: The unique parameter id to get. (required)
|
|
138
|
-
:param str version_id: The version id to which you want to get the parameter definition (required)
|
|
139
|
-
:return: Parameter
|
|
140
|
-
If the method is called asynchronously,
|
|
141
|
-
returns the request thread.
|
|
142
|
-
"""
|
|
143
|
-
kwargs['_return_http_data_only'] = True
|
|
144
|
-
if kwargs.get('async_req'):
|
|
145
|
-
return self.get_parameter_with_http_info(param_id, version_id, **kwargs) # noqa: E501
|
|
146
|
-
else:
|
|
147
|
-
(data) = self.get_parameter_with_http_info(param_id, version_id, **kwargs) # noqa: E501
|
|
148
|
-
return data
|
|
149
|
-
|
|
150
|
-
def get_parameter_with_http_info(self, param_id, version_id, **kwargs): # noqa: E501
|
|
151
|
-
"""Get a parameter for a given version id. A parameter can be linked to different versions with the same definition... or not (for ex: new parameter size, format...). For this reason, you have to specify the version to which you want to get the paramater definition. # noqa: E501
|
|
152
|
-
|
|
153
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
154
|
-
asynchronous HTTP request, please pass async_req=True
|
|
155
|
-
>>> thread = api.get_parameter_with_http_info(param_id, version_id, async_req=True)
|
|
156
|
-
>>> result = thread.get()
|
|
157
|
-
|
|
158
|
-
:param async_req bool
|
|
159
|
-
:param str param_id: The unique parameter id to get. (required)
|
|
160
|
-
:param str version_id: The version id to which you want to get the parameter definition (required)
|
|
161
|
-
:return: Parameter
|
|
162
|
-
If the method is called asynchronously,
|
|
163
|
-
returns the request thread.
|
|
164
|
-
"""
|
|
165
|
-
|
|
166
|
-
all_params = ['param_id', 'version_id'] # noqa: E501
|
|
167
|
-
all_params.append('async_req')
|
|
168
|
-
all_params.append('_return_http_data_only')
|
|
169
|
-
all_params.append('_preload_content')
|
|
170
|
-
all_params.append('_request_timeout')
|
|
171
|
-
|
|
172
|
-
params = locals()
|
|
173
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
174
|
-
if key not in all_params:
|
|
175
|
-
raise TypeError(
|
|
176
|
-
"Got an unexpected keyword argument '%s'"
|
|
177
|
-
" to method get_parameter" % key
|
|
178
|
-
)
|
|
179
|
-
params[key] = val
|
|
180
|
-
del params['kwargs']
|
|
181
|
-
# verify the required parameter 'param_id' is set
|
|
182
|
-
if ('param_id' not in params or
|
|
183
|
-
params['param_id'] is None):
|
|
184
|
-
raise ValueError("Missing the required parameter `param_id` when calling `get_parameter`") # noqa: E501
|
|
185
|
-
# verify the required parameter 'version_id' is set
|
|
186
|
-
if ('version_id' not in params or
|
|
187
|
-
params['version_id'] is None):
|
|
188
|
-
raise ValueError("Missing the required parameter `version_id` when calling `get_parameter`") # noqa: E501
|
|
189
|
-
|
|
190
|
-
collection_formats = {}
|
|
191
|
-
|
|
192
|
-
path_params = {}
|
|
193
|
-
if 'param_id' in params:
|
|
194
|
-
path_params['paramId'] = params['param_id'] # noqa: E501
|
|
195
|
-
if 'version_id' in params:
|
|
196
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
197
|
-
|
|
198
|
-
query_params = []
|
|
199
|
-
|
|
200
|
-
header_params = {}
|
|
201
|
-
|
|
202
|
-
form_params = []
|
|
203
|
-
local_var_files = {}
|
|
204
|
-
|
|
205
|
-
body_params = None
|
|
206
|
-
# HTTP header `Accept`
|
|
207
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
208
|
-
['application/json', 'text/json']) # noqa: E501
|
|
209
|
-
|
|
210
|
-
# Authentication setting
|
|
211
|
-
auth_settings = [] # noqa: E501
|
|
212
|
-
|
|
213
|
-
return self.api_client.call_api(
|
|
214
|
-
'/teamdbapi/v2.0/version/{versionId}/parameter/{paramId}', 'GET',
|
|
215
|
-
path_params,
|
|
216
|
-
query_params,
|
|
217
|
-
header_params,
|
|
218
|
-
body=body_params,
|
|
219
|
-
post_params=form_params,
|
|
220
|
-
files=local_var_files,
|
|
221
|
-
response_type='Parameter', # noqa: E501
|
|
222
|
-
auth_settings=auth_settings,
|
|
223
|
-
async_req=params.get('async_req'),
|
|
224
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
225
|
-
_preload_content=params.get('_preload_content', True),
|
|
226
|
-
_request_timeout=params.get('_request_timeout'),
|
|
227
|
-
collection_formats=collection_formats)
|
|
228
|
-
|
|
229
|
-
def get_parameter_by_name_for_version(self, version_id, param_name_or_reference, **kwargs): # noqa: E501
|
|
230
|
-
"""Get the parameter for a given parameter name or reference and a version unique id # noqa: E501
|
|
231
|
-
|
|
232
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
233
|
-
asynchronous HTTP request, please pass async_req=True
|
|
234
|
-
>>> thread = api.get_parameter_by_name_for_version(version_id, param_name_or_reference, async_req=True)
|
|
235
|
-
>>> result = thread.get()
|
|
236
|
-
|
|
237
|
-
:param async_req bool
|
|
238
|
-
:param str version_id: The unique version Id containing the parameter (required)
|
|
239
|
-
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
240
|
-
:return: Parameter
|
|
241
|
-
If the method is called asynchronously,
|
|
242
|
-
returns the request thread.
|
|
243
|
-
"""
|
|
244
|
-
kwargs['_return_http_data_only'] = True
|
|
245
|
-
if kwargs.get('async_req'):
|
|
246
|
-
return self.get_parameter_by_name_for_version_with_http_info(version_id, param_name_or_reference, **kwargs) # noqa: E501
|
|
247
|
-
else:
|
|
248
|
-
(data) = self.get_parameter_by_name_for_version_with_http_info(version_id, param_name_or_reference, **kwargs) # noqa: E501
|
|
249
|
-
return data
|
|
250
|
-
|
|
251
|
-
def get_parameter_by_name_for_version_with_http_info(self, version_id, param_name_or_reference, **kwargs): # noqa: E501
|
|
252
|
-
"""Get the parameter for a given parameter name or reference and a version unique id # noqa: E501
|
|
253
|
-
|
|
254
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
255
|
-
asynchronous HTTP request, please pass async_req=True
|
|
256
|
-
>>> thread = api.get_parameter_by_name_for_version_with_http_info(version_id, param_name_or_reference, async_req=True)
|
|
257
|
-
>>> result = thread.get()
|
|
258
|
-
|
|
259
|
-
:param async_req bool
|
|
260
|
-
:param str version_id: The unique version Id containing the parameter (required)
|
|
261
|
-
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
262
|
-
:return: Parameter
|
|
263
|
-
If the method is called asynchronously,
|
|
264
|
-
returns the request thread.
|
|
265
|
-
"""
|
|
266
|
-
|
|
267
|
-
all_params = ['version_id', 'param_name_or_reference'] # noqa: E501
|
|
268
|
-
all_params.append('async_req')
|
|
269
|
-
all_params.append('_return_http_data_only')
|
|
270
|
-
all_params.append('_preload_content')
|
|
271
|
-
all_params.append('_request_timeout')
|
|
272
|
-
|
|
273
|
-
params = locals()
|
|
274
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
275
|
-
if key not in all_params:
|
|
276
|
-
raise TypeError(
|
|
277
|
-
"Got an unexpected keyword argument '%s'"
|
|
278
|
-
" to method get_parameter_by_name_for_version" % key
|
|
279
|
-
)
|
|
280
|
-
params[key] = val
|
|
281
|
-
del params['kwargs']
|
|
282
|
-
# verify the required parameter 'version_id' is set
|
|
283
|
-
if ('version_id' not in params or
|
|
284
|
-
params['version_id'] is None):
|
|
285
|
-
raise ValueError("Missing the required parameter `version_id` when calling `get_parameter_by_name_for_version`") # noqa: E501
|
|
286
|
-
# verify the required parameter 'param_name_or_reference' is set
|
|
287
|
-
if ('param_name_or_reference' not in params or
|
|
288
|
-
params['param_name_or_reference'] is None):
|
|
289
|
-
raise ValueError("Missing the required parameter `param_name_or_reference` when calling `get_parameter_by_name_for_version`") # noqa: E501
|
|
290
|
-
|
|
291
|
-
collection_formats = {}
|
|
292
|
-
|
|
293
|
-
path_params = {}
|
|
294
|
-
if 'version_id' in params:
|
|
295
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
296
|
-
|
|
297
|
-
query_params = []
|
|
298
|
-
if 'param_name_or_reference' in params:
|
|
299
|
-
query_params.append(('paramNameOrReference', params['param_name_or_reference'])) # noqa: E501
|
|
300
|
-
|
|
301
|
-
header_params = {}
|
|
302
|
-
|
|
303
|
-
form_params = []
|
|
304
|
-
local_var_files = {}
|
|
305
|
-
|
|
306
|
-
body_params = None
|
|
307
|
-
# HTTP header `Accept`
|
|
308
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
309
|
-
['application/json', 'text/json']) # noqa: E501
|
|
310
|
-
|
|
311
|
-
# Authentication setting
|
|
312
|
-
auth_settings = [] # noqa: E501
|
|
313
|
-
|
|
314
|
-
return self.api_client.call_api(
|
|
315
|
-
'/teamdbapi/v2.0/version/{versionId}/parameter', 'GET',
|
|
316
|
-
path_params,
|
|
317
|
-
query_params,
|
|
318
|
-
header_params,
|
|
319
|
-
body=body_params,
|
|
320
|
-
post_params=form_params,
|
|
321
|
-
files=local_var_files,
|
|
322
|
-
response_type='Parameter', # noqa: E501
|
|
323
|
-
auth_settings=auth_settings,
|
|
324
|
-
async_req=params.get('async_req'),
|
|
325
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
326
|
-
_preload_content=params.get('_preload_content', True),
|
|
327
|
-
_request_timeout=params.get('_request_timeout'),
|
|
328
|
-
collection_formats=collection_formats)
|
|
329
|
-
|
|
330
|
-
def get_parameters(self, version_id, **kwargs): # noqa: E501
|
|
331
|
-
"""Get all parameters for a given version # noqa: E501
|
|
332
|
-
|
|
333
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
334
|
-
asynchronous HTTP request, please pass async_req=True
|
|
335
|
-
>>> thread = api.get_parameters(version_id, async_req=True)
|
|
336
|
-
>>> result = thread.get()
|
|
337
|
-
|
|
338
|
-
:param async_req bool
|
|
339
|
-
:param str version_id: The unique version id to which you want the parameters. (required)
|
|
340
|
-
:return: list[Parameter]
|
|
341
|
-
If the method is called asynchronously,
|
|
342
|
-
returns the request thread.
|
|
343
|
-
"""
|
|
344
|
-
kwargs['_return_http_data_only'] = True
|
|
345
|
-
if kwargs.get('async_req'):
|
|
346
|
-
return self.get_parameters_with_http_info(version_id, **kwargs) # noqa: E501
|
|
347
|
-
else:
|
|
348
|
-
(data) = self.get_parameters_with_http_info(version_id, **kwargs) # noqa: E501
|
|
349
|
-
return data
|
|
350
|
-
|
|
351
|
-
def get_parameters_with_http_info(self, version_id, **kwargs): # noqa: E501
|
|
352
|
-
"""Get all parameters for a given version # noqa: E501
|
|
353
|
-
|
|
354
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
355
|
-
asynchronous HTTP request, please pass async_req=True
|
|
356
|
-
>>> thread = api.get_parameters_with_http_info(version_id, async_req=True)
|
|
357
|
-
>>> result = thread.get()
|
|
358
|
-
|
|
359
|
-
:param async_req bool
|
|
360
|
-
:param str version_id: The unique version id to which you want the parameters. (required)
|
|
361
|
-
:return: list[Parameter]
|
|
362
|
-
If the method is called asynchronously,
|
|
363
|
-
returns the request thread.
|
|
364
|
-
"""
|
|
365
|
-
|
|
366
|
-
all_params = ['version_id'] # noqa: E501
|
|
367
|
-
all_params.append('async_req')
|
|
368
|
-
all_params.append('_return_http_data_only')
|
|
369
|
-
all_params.append('_preload_content')
|
|
370
|
-
all_params.append('_request_timeout')
|
|
371
|
-
|
|
372
|
-
params = locals()
|
|
373
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
374
|
-
if key not in all_params:
|
|
375
|
-
raise TypeError(
|
|
376
|
-
"Got an unexpected keyword argument '%s'"
|
|
377
|
-
" to method get_parameters" % key
|
|
378
|
-
)
|
|
379
|
-
params[key] = val
|
|
380
|
-
del params['kwargs']
|
|
381
|
-
# verify the required parameter 'version_id' is set
|
|
382
|
-
if ('version_id' not in params or
|
|
383
|
-
params['version_id'] is None):
|
|
384
|
-
raise ValueError("Missing the required parameter `version_id` when calling `get_parameters`") # noqa: E501
|
|
385
|
-
|
|
386
|
-
collection_formats = {}
|
|
387
|
-
|
|
388
|
-
path_params = {}
|
|
389
|
-
if 'version_id' in params:
|
|
390
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
391
|
-
|
|
392
|
-
query_params = []
|
|
393
|
-
|
|
394
|
-
header_params = {}
|
|
395
|
-
|
|
396
|
-
form_params = []
|
|
397
|
-
local_var_files = {}
|
|
398
|
-
|
|
399
|
-
body_params = None
|
|
400
|
-
# HTTP header `Accept`
|
|
401
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
402
|
-
['application/json', 'text/json']) # noqa: E501
|
|
403
|
-
|
|
404
|
-
# Authentication setting
|
|
405
|
-
auth_settings = [] # noqa: E501
|
|
406
|
-
|
|
407
|
-
return self.api_client.call_api(
|
|
408
|
-
'/teamdbapi/v2.0/version/{versionId}/parameters', 'GET',
|
|
409
|
-
path_params,
|
|
410
|
-
query_params,
|
|
411
|
-
header_params,
|
|
412
|
-
body=body_params,
|
|
413
|
-
post_params=form_params,
|
|
414
|
-
files=local_var_files,
|
|
415
|
-
response_type='list[Parameter]', # noqa: E501
|
|
416
|
-
auth_settings=auth_settings,
|
|
417
|
-
async_req=params.get('async_req'),
|
|
418
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
419
|
-
_preload_content=params.get('_preload_content', True),
|
|
420
|
-
_request_timeout=params.get('_request_timeout'),
|
|
421
|
-
collection_formats=collection_formats)
|
|
422
|
-
|
|
423
|
-
def get_parameters_in_group(self, version_id, group_id, **kwargs): # noqa: E501
|
|
424
|
-
"""Get all parameters contained inside a group, including the parameters inside the child groups # noqa: E501
|
|
425
|
-
|
|
426
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
427
|
-
asynchronous HTTP request, please pass async_req=True
|
|
428
|
-
>>> thread = api.get_parameters_in_group(version_id, group_id, async_req=True)
|
|
429
|
-
>>> result = thread.get()
|
|
430
|
-
|
|
431
|
-
:param async_req bool
|
|
432
|
-
:param str version_id: The unique version id to which the group belongs. (required)
|
|
433
|
-
:param str group_id: The unique group id to which you want the parameters. (required)
|
|
434
|
-
:return: list[Parameter]
|
|
435
|
-
If the method is called asynchronously,
|
|
436
|
-
returns the request thread.
|
|
437
|
-
"""
|
|
438
|
-
kwargs['_return_http_data_only'] = True
|
|
439
|
-
if kwargs.get('async_req'):
|
|
440
|
-
return self.get_parameters_in_group_with_http_info(version_id, group_id, **kwargs) # noqa: E501
|
|
441
|
-
else:
|
|
442
|
-
(data) = self.get_parameters_in_group_with_http_info(version_id, group_id, **kwargs) # noqa: E501
|
|
443
|
-
return data
|
|
444
|
-
|
|
445
|
-
def get_parameters_in_group_with_http_info(self, version_id, group_id, **kwargs): # noqa: E501
|
|
446
|
-
"""Get all parameters contained inside a group, including the parameters inside the child groups # noqa: E501
|
|
447
|
-
|
|
448
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
449
|
-
asynchronous HTTP request, please pass async_req=True
|
|
450
|
-
>>> thread = api.get_parameters_in_group_with_http_info(version_id, group_id, async_req=True)
|
|
451
|
-
>>> result = thread.get()
|
|
452
|
-
|
|
453
|
-
:param async_req bool
|
|
454
|
-
:param str version_id: The unique version id to which the group belongs. (required)
|
|
455
|
-
:param str group_id: The unique group id to which you want the parameters. (required)
|
|
456
|
-
:return: list[Parameter]
|
|
457
|
-
If the method is called asynchronously,
|
|
458
|
-
returns the request thread.
|
|
459
|
-
"""
|
|
460
|
-
|
|
461
|
-
all_params = ['version_id', 'group_id'] # noqa: E501
|
|
462
|
-
all_params.append('async_req')
|
|
463
|
-
all_params.append('_return_http_data_only')
|
|
464
|
-
all_params.append('_preload_content')
|
|
465
|
-
all_params.append('_request_timeout')
|
|
466
|
-
|
|
467
|
-
params = locals()
|
|
468
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
469
|
-
if key not in all_params:
|
|
470
|
-
raise TypeError(
|
|
471
|
-
"Got an unexpected keyword argument '%s'"
|
|
472
|
-
" to method get_parameters_in_group" % key
|
|
473
|
-
)
|
|
474
|
-
params[key] = val
|
|
475
|
-
del params['kwargs']
|
|
476
|
-
# verify the required parameter 'version_id' is set
|
|
477
|
-
if ('version_id' not in params or
|
|
478
|
-
params['version_id'] is None):
|
|
479
|
-
raise ValueError("Missing the required parameter `version_id` when calling `get_parameters_in_group`") # noqa: E501
|
|
480
|
-
# verify the required parameter 'group_id' is set
|
|
481
|
-
if ('group_id' not in params or
|
|
482
|
-
params['group_id'] is None):
|
|
483
|
-
raise ValueError("Missing the required parameter `group_id` when calling `get_parameters_in_group`") # noqa: E501
|
|
484
|
-
|
|
485
|
-
collection_formats = {}
|
|
486
|
-
|
|
487
|
-
path_params = {}
|
|
488
|
-
if 'version_id' in params:
|
|
489
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
490
|
-
if 'group_id' in params:
|
|
491
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
492
|
-
|
|
493
|
-
query_params = []
|
|
494
|
-
|
|
495
|
-
header_params = {}
|
|
496
|
-
|
|
497
|
-
form_params = []
|
|
498
|
-
local_var_files = {}
|
|
499
|
-
|
|
500
|
-
body_params = None
|
|
501
|
-
# HTTP header `Accept`
|
|
502
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
503
|
-
['application/json', 'text/json']) # noqa: E501
|
|
504
|
-
|
|
505
|
-
# Authentication setting
|
|
506
|
-
auth_settings = [] # noqa: E501
|
|
507
|
-
|
|
508
|
-
return self.api_client.call_api(
|
|
509
|
-
'/teamdbapi/v2.0/version/{versionId}/group/{groupId}/parameters', 'GET',
|
|
510
|
-
path_params,
|
|
511
|
-
query_params,
|
|
512
|
-
header_params,
|
|
513
|
-
body=body_params,
|
|
514
|
-
post_params=form_params,
|
|
515
|
-
files=local_var_files,
|
|
516
|
-
response_type='list[Parameter]', # noqa: E501
|
|
517
|
-
auth_settings=auth_settings,
|
|
518
|
-
async_req=params.get('async_req'),
|
|
519
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
520
|
-
_preload_content=params.get('_preload_content', True),
|
|
521
|
-
_request_timeout=params.get('_request_timeout'),
|
|
522
|
-
collection_formats=collection_formats)
|
|
523
|
-
|
|
524
|
-
def import_parameters(self, body, version_id, **kwargs): # noqa: E501
|
|
525
|
-
"""Import parameter files # noqa: E501
|
|
526
|
-
|
|
527
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
528
|
-
asynchronous HTTP request, please pass async_req=True
|
|
529
|
-
>>> thread = api.import_parameters(body, version_id, async_req=True)
|
|
530
|
-
>>> result = thread.get()
|
|
531
|
-
|
|
532
|
-
:param async_req bool
|
|
533
|
-
:param ImportParametersArgs body: The import options (required)
|
|
534
|
-
:param str version_id: The unique id of the version to which the paramterers will be imported. (required)
|
|
535
|
-
:return: ImportParametersResults
|
|
536
|
-
If the method is called asynchronously,
|
|
537
|
-
returns the request thread.
|
|
538
|
-
"""
|
|
539
|
-
kwargs['_return_http_data_only'] = True
|
|
540
|
-
if kwargs.get('async_req'):
|
|
541
|
-
return self.import_parameters_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
542
|
-
else:
|
|
543
|
-
(data) = self.import_parameters_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
544
|
-
return data
|
|
545
|
-
|
|
546
|
-
def import_parameters_with_http_info(self, body, version_id, **kwargs): # noqa: E501
|
|
547
|
-
"""Import parameter files # noqa: E501
|
|
548
|
-
|
|
549
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
550
|
-
asynchronous HTTP request, please pass async_req=True
|
|
551
|
-
>>> thread = api.import_parameters_with_http_info(body, version_id, async_req=True)
|
|
552
|
-
>>> result = thread.get()
|
|
553
|
-
|
|
554
|
-
:param async_req bool
|
|
555
|
-
:param ImportParametersArgs body: The import options (required)
|
|
556
|
-
:param str version_id: The unique id of the version to which the paramterers will be imported. (required)
|
|
557
|
-
:return: ImportParametersResults
|
|
558
|
-
If the method is called asynchronously,
|
|
559
|
-
returns the request thread.
|
|
560
|
-
"""
|
|
561
|
-
|
|
562
|
-
all_params = ['body', 'version_id'] # noqa: E501
|
|
563
|
-
all_params.append('async_req')
|
|
564
|
-
all_params.append('_return_http_data_only')
|
|
565
|
-
all_params.append('_preload_content')
|
|
566
|
-
all_params.append('_request_timeout')
|
|
567
|
-
|
|
568
|
-
params = locals()
|
|
569
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
570
|
-
if key not in all_params:
|
|
571
|
-
raise TypeError(
|
|
572
|
-
"Got an unexpected keyword argument '%s'"
|
|
573
|
-
" to method import_parameters" % key
|
|
574
|
-
)
|
|
575
|
-
params[key] = val
|
|
576
|
-
del params['kwargs']
|
|
577
|
-
# verify the required parameter 'body' is set
|
|
578
|
-
if ('body' not in params or
|
|
579
|
-
params['body'] is None):
|
|
580
|
-
raise ValueError("Missing the required parameter `body` when calling `import_parameters`") # noqa: E501
|
|
581
|
-
# verify the required parameter 'version_id' is set
|
|
582
|
-
if ('version_id' not in params or
|
|
583
|
-
params['version_id'] is None):
|
|
584
|
-
raise ValueError("Missing the required parameter `version_id` when calling `import_parameters`") # noqa: E501
|
|
585
|
-
|
|
586
|
-
collection_formats = {}
|
|
587
|
-
|
|
588
|
-
path_params = {}
|
|
589
|
-
if 'version_id' in params:
|
|
590
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
591
|
-
|
|
592
|
-
query_params = []
|
|
593
|
-
|
|
594
|
-
header_params = {}
|
|
595
|
-
|
|
596
|
-
form_params = []
|
|
597
|
-
local_var_files = {}
|
|
598
|
-
|
|
599
|
-
body_params = None
|
|
600
|
-
if 'body' in params:
|
|
601
|
-
body_params = params['body']
|
|
602
|
-
# HTTP header `Accept`
|
|
603
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
604
|
-
['application/json', 'text/json']) # noqa: E501
|
|
605
|
-
|
|
606
|
-
# HTTP header `Content-Type`
|
|
607
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
608
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
609
|
-
|
|
610
|
-
# Authentication setting
|
|
611
|
-
auth_settings = [] # noqa: E501
|
|
612
|
-
|
|
613
|
-
return self.api_client.call_api(
|
|
614
|
-
'/teamdbapi/v2.0/version/{versionId}/parameter/import', 'POST',
|
|
615
|
-
path_params,
|
|
616
|
-
query_params,
|
|
617
|
-
header_params,
|
|
618
|
-
body=body_params,
|
|
619
|
-
post_params=form_params,
|
|
620
|
-
files=local_var_files,
|
|
621
|
-
response_type='ImportParametersResults', # noqa: E501
|
|
622
|
-
auth_settings=auth_settings,
|
|
623
|
-
async_req=params.get('async_req'),
|
|
624
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
625
|
-
_preload_content=params.get('_preload_content', True),
|
|
626
|
-
_request_timeout=params.get('_request_timeout'),
|
|
627
|
-
collection_formats=collection_formats)
|
|
628
|
-
|
|
629
|
-
def move_parameter(self, body, version_id, group_id, **kwargs): # noqa: E501
|
|
630
|
-
"""[Command] Move one or more parameters to a group # noqa: E501
|
|
631
|
-
|
|
632
|
-
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
633
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
634
|
-
asynchronous HTTP request, please pass async_req=True
|
|
635
|
-
>>> thread = api.move_parameter(body, version_id, group_id, async_req=True)
|
|
636
|
-
>>> result = thread.get()
|
|
637
|
-
|
|
638
|
-
:param async_req bool
|
|
639
|
-
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
640
|
-
:param str version_id: The version id on which you are working (required)
|
|
641
|
-
:param str group_id: The destination group id where to move the parameters (required)
|
|
642
|
-
:return: None
|
|
643
|
-
If the method is called asynchronously,
|
|
644
|
-
returns the request thread.
|
|
645
|
-
"""
|
|
646
|
-
kwargs['_return_http_data_only'] = True
|
|
647
|
-
if kwargs.get('async_req'):
|
|
648
|
-
return self.move_parameter_with_http_info(body, version_id, group_id, **kwargs) # noqa: E501
|
|
649
|
-
else:
|
|
650
|
-
(data) = self.move_parameter_with_http_info(body, version_id, group_id, **kwargs) # noqa: E501
|
|
651
|
-
return data
|
|
652
|
-
|
|
653
|
-
def move_parameter_with_http_info(self, body, version_id, group_id, **kwargs): # noqa: E501
|
|
654
|
-
"""[Command] Move one or more parameters to a group # noqa: E501
|
|
655
|
-
|
|
656
|
-
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
657
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
658
|
-
asynchronous HTTP request, please pass async_req=True
|
|
659
|
-
>>> thread = api.move_parameter_with_http_info(body, version_id, group_id, async_req=True)
|
|
660
|
-
>>> result = thread.get()
|
|
661
|
-
|
|
662
|
-
:param async_req bool
|
|
663
|
-
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
664
|
-
:param str version_id: The version id on which you are working (required)
|
|
665
|
-
:param str group_id: The destination group id where to move the parameters (required)
|
|
666
|
-
:return: None
|
|
667
|
-
If the method is called asynchronously,
|
|
668
|
-
returns the request thread.
|
|
669
|
-
"""
|
|
670
|
-
|
|
671
|
-
all_params = ['body', 'version_id', 'group_id'] # noqa: E501
|
|
672
|
-
all_params.append('async_req')
|
|
673
|
-
all_params.append('_return_http_data_only')
|
|
674
|
-
all_params.append('_preload_content')
|
|
675
|
-
all_params.append('_request_timeout')
|
|
676
|
-
|
|
677
|
-
params = locals()
|
|
678
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
679
|
-
if key not in all_params:
|
|
680
|
-
raise TypeError(
|
|
681
|
-
"Got an unexpected keyword argument '%s'"
|
|
682
|
-
" to method move_parameter" % key
|
|
683
|
-
)
|
|
684
|
-
params[key] = val
|
|
685
|
-
del params['kwargs']
|
|
686
|
-
# verify the required parameter 'body' is set
|
|
687
|
-
if ('body' not in params or
|
|
688
|
-
params['body'] is None):
|
|
689
|
-
raise ValueError("Missing the required parameter `body` when calling `move_parameter`") # noqa: E501
|
|
690
|
-
# verify the required parameter 'version_id' is set
|
|
691
|
-
if ('version_id' not in params or
|
|
692
|
-
params['version_id'] is None):
|
|
693
|
-
raise ValueError("Missing the required parameter `version_id` when calling `move_parameter`") # noqa: E501
|
|
694
|
-
# verify the required parameter 'group_id' is set
|
|
695
|
-
if ('group_id' not in params or
|
|
696
|
-
params['group_id'] is None):
|
|
697
|
-
raise ValueError("Missing the required parameter `group_id` when calling `move_parameter`") # noqa: E501
|
|
698
|
-
|
|
699
|
-
collection_formats = {}
|
|
700
|
-
|
|
701
|
-
path_params = {}
|
|
702
|
-
if 'version_id' in params:
|
|
703
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
704
|
-
if 'group_id' in params:
|
|
705
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
706
|
-
|
|
707
|
-
query_params = []
|
|
708
|
-
|
|
709
|
-
header_params = {}
|
|
710
|
-
|
|
711
|
-
form_params = []
|
|
712
|
-
local_var_files = {}
|
|
713
|
-
|
|
714
|
-
body_params = None
|
|
715
|
-
if 'body' in params:
|
|
716
|
-
body_params = params['body']
|
|
717
|
-
# HTTP header `Accept`
|
|
718
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
719
|
-
['application/json', 'text/json']) # noqa: E501
|
|
720
|
-
|
|
721
|
-
# HTTP header `Content-Type`
|
|
722
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
723
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
724
|
-
|
|
725
|
-
# Authentication setting
|
|
726
|
-
auth_settings = [] # noqa: E501
|
|
727
|
-
|
|
728
|
-
return self.api_client.call_api(
|
|
729
|
-
'/teamdbapi/v2.0/version/{versionId}/group/{groupId}/moveparameter', 'POST',
|
|
730
|
-
path_params,
|
|
731
|
-
query_params,
|
|
732
|
-
header_params,
|
|
733
|
-
body=body_params,
|
|
734
|
-
post_params=form_params,
|
|
735
|
-
files=local_var_files,
|
|
736
|
-
response_type=None, # noqa: E501
|
|
737
|
-
auth_settings=auth_settings,
|
|
738
|
-
async_req=params.get('async_req'),
|
|
739
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
740
|
-
_preload_content=params.get('_preload_content', True),
|
|
741
|
-
_request_timeout=params.get('_request_timeout'),
|
|
742
|
-
collection_formats=collection_formats)
|
|
743
|
-
|
|
744
|
-
def move_parameter_update_revision(self, body, reference_assembly_id, version_id, group_id, **kwargs): # noqa: E501
|
|
745
|
-
"""Move a parameter inside a group and update the involved group revisions based on the reference assembly given in argument # noqa: E501
|
|
746
|
-
|
|
747
|
-
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
748
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
749
|
-
asynchronous HTTP request, please pass async_req=True
|
|
750
|
-
>>> thread = api.move_parameter_update_revision(body, reference_assembly_id, version_id, group_id, async_req=True)
|
|
751
|
-
>>> result = thread.get()
|
|
752
|
-
|
|
753
|
-
:param async_req bool
|
|
754
|
-
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
755
|
-
:param str reference_assembly_id: The assembly id used as a reference in order to update the group revision potentially involved in the process. (required)
|
|
756
|
-
:param str version_id: The version id on which you are working (required)
|
|
757
|
-
:param str group_id: The destination group id where to move the parameters (required)
|
|
758
|
-
:return: None
|
|
759
|
-
If the method is called asynchronously,
|
|
760
|
-
returns the request thread.
|
|
761
|
-
"""
|
|
762
|
-
kwargs['_return_http_data_only'] = True
|
|
763
|
-
if kwargs.get('async_req'):
|
|
764
|
-
return self.move_parameter_update_revision_with_http_info(body, reference_assembly_id, version_id, group_id, **kwargs) # noqa: E501
|
|
765
|
-
else:
|
|
766
|
-
(data) = self.move_parameter_update_revision_with_http_info(body, reference_assembly_id, version_id, group_id, **kwargs) # noqa: E501
|
|
767
|
-
return data
|
|
768
|
-
|
|
769
|
-
def move_parameter_update_revision_with_http_info(self, body, reference_assembly_id, version_id, group_id, **kwargs): # noqa: E501
|
|
770
|
-
"""Move a parameter inside a group and update the involved group revisions based on the reference assembly given in argument # noqa: E501
|
|
771
|
-
|
|
772
|
-
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
773
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
774
|
-
asynchronous HTTP request, please pass async_req=True
|
|
775
|
-
>>> thread = api.move_parameter_update_revision_with_http_info(body, reference_assembly_id, version_id, group_id, async_req=True)
|
|
776
|
-
>>> result = thread.get()
|
|
777
|
-
|
|
778
|
-
:param async_req bool
|
|
779
|
-
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
780
|
-
:param str reference_assembly_id: The assembly id used as a reference in order to update the group revision potentially involved in the process. (required)
|
|
781
|
-
:param str version_id: The version id on which you are working (required)
|
|
782
|
-
:param str group_id: The destination group id where to move the parameters (required)
|
|
783
|
-
:return: None
|
|
784
|
-
If the method is called asynchronously,
|
|
785
|
-
returns the request thread.
|
|
786
|
-
"""
|
|
787
|
-
|
|
788
|
-
all_params = ['body', 'reference_assembly_id', 'version_id', 'group_id'] # noqa: E501
|
|
789
|
-
all_params.append('async_req')
|
|
790
|
-
all_params.append('_return_http_data_only')
|
|
791
|
-
all_params.append('_preload_content')
|
|
792
|
-
all_params.append('_request_timeout')
|
|
793
|
-
|
|
794
|
-
params = locals()
|
|
795
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
796
|
-
if key not in all_params:
|
|
797
|
-
raise TypeError(
|
|
798
|
-
"Got an unexpected keyword argument '%s'"
|
|
799
|
-
" to method move_parameter_update_revision" % key
|
|
800
|
-
)
|
|
801
|
-
params[key] = val
|
|
802
|
-
del params['kwargs']
|
|
803
|
-
# verify the required parameter 'body' is set
|
|
804
|
-
if ('body' not in params or
|
|
805
|
-
params['body'] is None):
|
|
806
|
-
raise ValueError("Missing the required parameter `body` when calling `move_parameter_update_revision`") # noqa: E501
|
|
807
|
-
# verify the required parameter 'reference_assembly_id' is set
|
|
808
|
-
if ('reference_assembly_id' not in params or
|
|
809
|
-
params['reference_assembly_id'] is None):
|
|
810
|
-
raise ValueError("Missing the required parameter `reference_assembly_id` when calling `move_parameter_update_revision`") # noqa: E501
|
|
811
|
-
# verify the required parameter 'version_id' is set
|
|
812
|
-
if ('version_id' not in params or
|
|
813
|
-
params['version_id'] is None):
|
|
814
|
-
raise ValueError("Missing the required parameter `version_id` when calling `move_parameter_update_revision`") # noqa: E501
|
|
815
|
-
# verify the required parameter 'group_id' is set
|
|
816
|
-
if ('group_id' not in params or
|
|
817
|
-
params['group_id'] is None):
|
|
818
|
-
raise ValueError("Missing the required parameter `group_id` when calling `move_parameter_update_revision`") # noqa: E501
|
|
819
|
-
|
|
820
|
-
collection_formats = {}
|
|
821
|
-
|
|
822
|
-
path_params = {}
|
|
823
|
-
if 'version_id' in params:
|
|
824
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
825
|
-
if 'group_id' in params:
|
|
826
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
827
|
-
|
|
828
|
-
query_params = []
|
|
829
|
-
if 'reference_assembly_id' in params:
|
|
830
|
-
query_params.append(('referenceAssemblyId', params['reference_assembly_id'])) # noqa: E501
|
|
831
|
-
|
|
832
|
-
header_params = {}
|
|
833
|
-
|
|
834
|
-
form_params = []
|
|
835
|
-
local_var_files = {}
|
|
836
|
-
|
|
837
|
-
body_params = None
|
|
838
|
-
if 'body' in params:
|
|
839
|
-
body_params = params['body']
|
|
840
|
-
# HTTP header `Accept`
|
|
841
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
842
|
-
['application/json', 'text/json']) # noqa: E501
|
|
843
|
-
|
|
844
|
-
# HTTP header `Content-Type`
|
|
845
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
846
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
847
|
-
|
|
848
|
-
# Authentication setting
|
|
849
|
-
auth_settings = [] # noqa: E501
|
|
850
|
-
|
|
851
|
-
return self.api_client.call_api(
|
|
852
|
-
'/teamdbapi/v2.0/version/{versionId}/group/{groupId}/moveparameterupdaterevision', 'POST',
|
|
853
|
-
path_params,
|
|
854
|
-
query_params,
|
|
855
|
-
header_params,
|
|
856
|
-
body=body_params,
|
|
857
|
-
post_params=form_params,
|
|
858
|
-
files=local_var_files,
|
|
859
|
-
response_type=None, # noqa: E501
|
|
860
|
-
auth_settings=auth_settings,
|
|
861
|
-
async_req=params.get('async_req'),
|
|
862
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
863
|
-
_preload_content=params.get('_preload_content', True),
|
|
864
|
-
_request_timeout=params.get('_request_timeout'),
|
|
865
|
-
collection_formats=collection_formats)
|
|
866
|
-
|
|
867
|
-
def reset_responsibles(self, body, version_id, **kwargs): # noqa: E501
|
|
868
|
-
"""Reset the responsibles for a given version and a list of parameters # noqa: E501
|
|
869
|
-
|
|
870
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
871
|
-
asynchronous HTTP request, please pass async_req=True
|
|
872
|
-
>>> thread = api.reset_responsibles(body, version_id, async_req=True)
|
|
873
|
-
>>> result = thread.get()
|
|
874
|
-
|
|
875
|
-
:param async_req bool
|
|
876
|
-
:param list[str] body: The parameters list to which the responsibles will be reseted (required)
|
|
877
|
-
:param str version_id: The version unique id to which the responsibles will be reseted (required)
|
|
878
|
-
:return: None
|
|
879
|
-
If the method is called asynchronously,
|
|
880
|
-
returns the request thread.
|
|
881
|
-
"""
|
|
882
|
-
kwargs['_return_http_data_only'] = True
|
|
883
|
-
if kwargs.get('async_req'):
|
|
884
|
-
return self.reset_responsibles_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
885
|
-
else:
|
|
886
|
-
(data) = self.reset_responsibles_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
887
|
-
return data
|
|
888
|
-
|
|
889
|
-
def reset_responsibles_with_http_info(self, body, version_id, **kwargs): # noqa: E501
|
|
890
|
-
"""Reset the responsibles for a given version and a list of parameters # noqa: E501
|
|
891
|
-
|
|
892
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
893
|
-
asynchronous HTTP request, please pass async_req=True
|
|
894
|
-
>>> thread = api.reset_responsibles_with_http_info(body, version_id, async_req=True)
|
|
895
|
-
>>> result = thread.get()
|
|
896
|
-
|
|
897
|
-
:param async_req bool
|
|
898
|
-
:param list[str] body: The parameters list to which the responsibles will be reseted (required)
|
|
899
|
-
:param str version_id: The version unique id to which the responsibles will be reseted (required)
|
|
900
|
-
:return: None
|
|
901
|
-
If the method is called asynchronously,
|
|
902
|
-
returns the request thread.
|
|
903
|
-
"""
|
|
904
|
-
|
|
905
|
-
all_params = ['body', 'version_id'] # noqa: E501
|
|
906
|
-
all_params.append('async_req')
|
|
907
|
-
all_params.append('_return_http_data_only')
|
|
908
|
-
all_params.append('_preload_content')
|
|
909
|
-
all_params.append('_request_timeout')
|
|
910
|
-
|
|
911
|
-
params = locals()
|
|
912
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
913
|
-
if key not in all_params:
|
|
914
|
-
raise TypeError(
|
|
915
|
-
"Got an unexpected keyword argument '%s'"
|
|
916
|
-
" to method reset_responsibles" % key
|
|
917
|
-
)
|
|
918
|
-
params[key] = val
|
|
919
|
-
del params['kwargs']
|
|
920
|
-
# verify the required parameter 'body' is set
|
|
921
|
-
if ('body' not in params or
|
|
922
|
-
params['body'] is None):
|
|
923
|
-
raise ValueError("Missing the required parameter `body` when calling `reset_responsibles`") # noqa: E501
|
|
924
|
-
# verify the required parameter 'version_id' is set
|
|
925
|
-
if ('version_id' not in params or
|
|
926
|
-
params['version_id'] is None):
|
|
927
|
-
raise ValueError("Missing the required parameter `version_id` when calling `reset_responsibles`") # noqa: E501
|
|
928
|
-
|
|
929
|
-
collection_formats = {}
|
|
930
|
-
|
|
931
|
-
path_params = {}
|
|
932
|
-
if 'version_id' in params:
|
|
933
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
934
|
-
|
|
935
|
-
query_params = []
|
|
936
|
-
|
|
937
|
-
header_params = {}
|
|
938
|
-
|
|
939
|
-
form_params = []
|
|
940
|
-
local_var_files = {}
|
|
941
|
-
|
|
942
|
-
body_params = None
|
|
943
|
-
if 'body' in params:
|
|
944
|
-
body_params = params['body']
|
|
945
|
-
# HTTP header `Accept`
|
|
946
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
947
|
-
['application/json', 'text/json']) # noqa: E501
|
|
948
|
-
|
|
949
|
-
# HTTP header `Content-Type`
|
|
950
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
951
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
952
|
-
|
|
953
|
-
# Authentication setting
|
|
954
|
-
auth_settings = [] # noqa: E501
|
|
955
|
-
|
|
956
|
-
return self.api_client.call_api(
|
|
957
|
-
'/teamdbapi/v2.0/version/{versionId}/parameter/resetresponsible', 'POST',
|
|
958
|
-
path_params,
|
|
959
|
-
query_params,
|
|
960
|
-
header_params,
|
|
961
|
-
body=body_params,
|
|
962
|
-
post_params=form_params,
|
|
963
|
-
files=local_var_files,
|
|
964
|
-
response_type=None, # noqa: E501
|
|
965
|
-
auth_settings=auth_settings,
|
|
966
|
-
async_req=params.get('async_req'),
|
|
967
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
968
|
-
_preload_content=params.get('_preload_content', True),
|
|
969
|
-
_request_timeout=params.get('_request_timeout'),
|
|
970
|
-
collection_formats=collection_formats)
|
|
971
|
-
|
|
972
|
-
def select_parameter_by_id(self, parameter_id, **kwargs): # noqa: E501
|
|
973
|
-
"""[Command] Select the given parameter in the Edit Car Parameters view # noqa: E501
|
|
974
|
-
|
|
975
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
976
|
-
asynchronous HTTP request, please pass async_req=True
|
|
977
|
-
>>> thread = api.select_parameter_by_id(parameter_id, async_req=True)
|
|
978
|
-
>>> result = thread.get()
|
|
979
|
-
|
|
980
|
-
:param async_req bool
|
|
981
|
-
:param str parameter_id: The parameter unique Id to select in the Edit Car Parameters view (required)
|
|
982
|
-
:return: None
|
|
983
|
-
If the method is called asynchronously,
|
|
984
|
-
returns the request thread.
|
|
985
|
-
"""
|
|
986
|
-
kwargs['_return_http_data_only'] = True
|
|
987
|
-
if kwargs.get('async_req'):
|
|
988
|
-
return self.select_parameter_by_id_with_http_info(parameter_id, **kwargs) # noqa: E501
|
|
989
|
-
else:
|
|
990
|
-
(data) = self.select_parameter_by_id_with_http_info(parameter_id, **kwargs) # noqa: E501
|
|
991
|
-
return data
|
|
992
|
-
|
|
993
|
-
def select_parameter_by_id_with_http_info(self, parameter_id, **kwargs): # noqa: E501
|
|
994
|
-
"""[Command] Select the given parameter in the Edit Car Parameters view # noqa: E501
|
|
995
|
-
|
|
996
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
997
|
-
asynchronous HTTP request, please pass async_req=True
|
|
998
|
-
>>> thread = api.select_parameter_by_id_with_http_info(parameter_id, async_req=True)
|
|
999
|
-
>>> result = thread.get()
|
|
1000
|
-
|
|
1001
|
-
:param async_req bool
|
|
1002
|
-
:param str parameter_id: The parameter unique Id to select in the Edit Car Parameters view (required)
|
|
1003
|
-
:return: None
|
|
1004
|
-
If the method is called asynchronously,
|
|
1005
|
-
returns the request thread.
|
|
1006
|
-
"""
|
|
1007
|
-
|
|
1008
|
-
all_params = ['parameter_id'] # noqa: E501
|
|
1009
|
-
all_params.append('async_req')
|
|
1010
|
-
all_params.append('_return_http_data_only')
|
|
1011
|
-
all_params.append('_preload_content')
|
|
1012
|
-
all_params.append('_request_timeout')
|
|
1013
|
-
|
|
1014
|
-
params = locals()
|
|
1015
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1016
|
-
if key not in all_params:
|
|
1017
|
-
raise TypeError(
|
|
1018
|
-
"Got an unexpected keyword argument '%s'"
|
|
1019
|
-
" to method select_parameter_by_id" % key
|
|
1020
|
-
)
|
|
1021
|
-
params[key] = val
|
|
1022
|
-
del params['kwargs']
|
|
1023
|
-
# verify the required parameter 'parameter_id' is set
|
|
1024
|
-
if ('parameter_id' not in params or
|
|
1025
|
-
params['parameter_id'] is None):
|
|
1026
|
-
raise ValueError("Missing the required parameter `parameter_id` when calling `select_parameter_by_id`") # noqa: E501
|
|
1027
|
-
|
|
1028
|
-
collection_formats = {}
|
|
1029
|
-
|
|
1030
|
-
path_params = {}
|
|
1031
|
-
if 'parameter_id' in params:
|
|
1032
|
-
path_params['parameterId'] = params['parameter_id'] # noqa: E501
|
|
1033
|
-
|
|
1034
|
-
query_params = []
|
|
1035
|
-
|
|
1036
|
-
header_params = {}
|
|
1037
|
-
|
|
1038
|
-
form_params = []
|
|
1039
|
-
local_var_files = {}
|
|
1040
|
-
|
|
1041
|
-
body_params = None
|
|
1042
|
-
# HTTP header `Accept`
|
|
1043
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1044
|
-
['application/json', 'text/json']) # noqa: E501
|
|
1045
|
-
|
|
1046
|
-
# Authentication setting
|
|
1047
|
-
auth_settings = [] # noqa: E501
|
|
1048
|
-
|
|
1049
|
-
return self.api_client.call_api(
|
|
1050
|
-
'/teamdbapi/v2.0/parameter/{parameterId}/select', 'POST',
|
|
1051
|
-
path_params,
|
|
1052
|
-
query_params,
|
|
1053
|
-
header_params,
|
|
1054
|
-
body=body_params,
|
|
1055
|
-
post_params=form_params,
|
|
1056
|
-
files=local_var_files,
|
|
1057
|
-
response_type=None, # noqa: E501
|
|
1058
|
-
auth_settings=auth_settings,
|
|
1059
|
-
async_req=params.get('async_req'),
|
|
1060
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1061
|
-
_preload_content=params.get('_preload_content', True),
|
|
1062
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1063
|
-
collection_formats=collection_formats)
|
|
1064
|
-
|
|
1065
|
-
def set_responsibles(self, body, responsibles, version_id, **kwargs): # noqa: E501
|
|
1066
|
-
"""[Command] Set the responsibles for a given version and a list of parameters # noqa: E501
|
|
1067
|
-
|
|
1068
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1069
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1070
|
-
>>> thread = api.set_responsibles(body, responsibles, version_id, async_req=True)
|
|
1071
|
-
>>> result = thread.get()
|
|
1072
|
-
|
|
1073
|
-
:param async_req bool
|
|
1074
|
-
:param list[str] body: The parameters list to which the responsible will be in charge (required)
|
|
1075
|
-
:param str responsibles: The responsibles names. Must be a Teamdb User name. Each responsible should be separated by; (required)
|
|
1076
|
-
:param str version_id: The version unique id to which the responsible will be affected (required)
|
|
1077
|
-
:return: None
|
|
1078
|
-
If the method is called asynchronously,
|
|
1079
|
-
returns the request thread.
|
|
1080
|
-
"""
|
|
1081
|
-
kwargs['_return_http_data_only'] = True
|
|
1082
|
-
if kwargs.get('async_req'):
|
|
1083
|
-
return self.set_responsibles_with_http_info(body, responsibles, version_id, **kwargs) # noqa: E501
|
|
1084
|
-
else:
|
|
1085
|
-
(data) = self.set_responsibles_with_http_info(body, responsibles, version_id, **kwargs) # noqa: E501
|
|
1086
|
-
return data
|
|
1087
|
-
|
|
1088
|
-
def set_responsibles_with_http_info(self, body, responsibles, version_id, **kwargs): # noqa: E501
|
|
1089
|
-
"""[Command] Set the responsibles for a given version and a list of parameters # noqa: E501
|
|
1090
|
-
|
|
1091
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
1092
|
-
asynchronous HTTP request, please pass async_req=True
|
|
1093
|
-
>>> thread = api.set_responsibles_with_http_info(body, responsibles, version_id, async_req=True)
|
|
1094
|
-
>>> result = thread.get()
|
|
1095
|
-
|
|
1096
|
-
:param async_req bool
|
|
1097
|
-
:param list[str] body: The parameters list to which the responsible will be in charge (required)
|
|
1098
|
-
:param str responsibles: The responsibles names. Must be a Teamdb User name. Each responsible should be separated by; (required)
|
|
1099
|
-
:param str version_id: The version unique id to which the responsible will be affected (required)
|
|
1100
|
-
:return: None
|
|
1101
|
-
If the method is called asynchronously,
|
|
1102
|
-
returns the request thread.
|
|
1103
|
-
"""
|
|
1104
|
-
|
|
1105
|
-
all_params = ['body', 'responsibles', 'version_id'] # noqa: E501
|
|
1106
|
-
all_params.append('async_req')
|
|
1107
|
-
all_params.append('_return_http_data_only')
|
|
1108
|
-
all_params.append('_preload_content')
|
|
1109
|
-
all_params.append('_request_timeout')
|
|
1110
|
-
|
|
1111
|
-
params = locals()
|
|
1112
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1113
|
-
if key not in all_params:
|
|
1114
|
-
raise TypeError(
|
|
1115
|
-
"Got an unexpected keyword argument '%s'"
|
|
1116
|
-
" to method set_responsibles" % key
|
|
1117
|
-
)
|
|
1118
|
-
params[key] = val
|
|
1119
|
-
del params['kwargs']
|
|
1120
|
-
# verify the required parameter 'body' is set
|
|
1121
|
-
if ('body' not in params or
|
|
1122
|
-
params['body'] is None):
|
|
1123
|
-
raise ValueError("Missing the required parameter `body` when calling `set_responsibles`") # noqa: E501
|
|
1124
|
-
# verify the required parameter 'responsibles' is set
|
|
1125
|
-
if ('responsibles' not in params or
|
|
1126
|
-
params['responsibles'] is None):
|
|
1127
|
-
raise ValueError("Missing the required parameter `responsibles` when calling `set_responsibles`") # noqa: E501
|
|
1128
|
-
# verify the required parameter 'version_id' is set
|
|
1129
|
-
if ('version_id' not in params or
|
|
1130
|
-
params['version_id'] is None):
|
|
1131
|
-
raise ValueError("Missing the required parameter `version_id` when calling `set_responsibles`") # noqa: E501
|
|
1132
|
-
|
|
1133
|
-
collection_formats = {}
|
|
1134
|
-
|
|
1135
|
-
path_params = {}
|
|
1136
|
-
if 'version_id' in params:
|
|
1137
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
1138
|
-
|
|
1139
|
-
query_params = []
|
|
1140
|
-
if 'responsibles' in params:
|
|
1141
|
-
query_params.append(('responsibles', params['responsibles'])) # noqa: E501
|
|
1142
|
-
|
|
1143
|
-
header_params = {}
|
|
1144
|
-
|
|
1145
|
-
form_params = []
|
|
1146
|
-
local_var_files = {}
|
|
1147
|
-
|
|
1148
|
-
body_params = None
|
|
1149
|
-
if 'body' in params:
|
|
1150
|
-
body_params = params['body']
|
|
1151
|
-
# HTTP header `Accept`
|
|
1152
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1153
|
-
['application/json', 'text/json']) # noqa: E501
|
|
1154
|
-
|
|
1155
|
-
# HTTP header `Content-Type`
|
|
1156
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1157
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
1158
|
-
|
|
1159
|
-
# Authentication setting
|
|
1160
|
-
auth_settings = [] # noqa: E501
|
|
1161
|
-
|
|
1162
|
-
return self.api_client.call_api(
|
|
1163
|
-
'/teamdbapi/v2.0/version/{versionId}/parameter/setresponsible', 'POST',
|
|
1164
|
-
path_params,
|
|
1165
|
-
query_params,
|
|
1166
|
-
header_params,
|
|
1167
|
-
body=body_params,
|
|
1168
|
-
post_params=form_params,
|
|
1169
|
-
files=local_var_files,
|
|
1170
|
-
response_type=None, # noqa: E501
|
|
1171
|
-
auth_settings=auth_settings,
|
|
1172
|
-
async_req=params.get('async_req'),
|
|
1173
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1174
|
-
_preload_content=params.get('_preload_content', True),
|
|
1175
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1176
|
-
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 ParameterApi(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_current_context_parameter_by_name(self, param_name_or_reference, **kwargs): # noqa: E501
|
|
36
|
+
"""Get the parameter for a given parameter name or reference and the current selected version in the Parameters Editor view. # 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_current_context_parameter_by_name(param_name_or_reference, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
45
|
+
:return: Parameter
|
|
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_current_context_parameter_by_name_with_http_info(param_name_or_reference, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.get_current_context_parameter_by_name_with_http_info(param_name_or_reference, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def get_current_context_parameter_by_name_with_http_info(self, param_name_or_reference, **kwargs): # noqa: E501
|
|
57
|
+
"""Get the parameter for a given parameter name or reference and the current selected version in the Parameters Editor view. # 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_current_context_parameter_by_name_with_http_info(param_name_or_reference, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
66
|
+
:return: Parameter
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['param_name_or_reference'] # 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_current_context_parameter_by_name" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'param_name_or_reference' is set
|
|
87
|
+
if ('param_name_or_reference' not in params or
|
|
88
|
+
params['param_name_or_reference'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `param_name_or_reference` when calling `get_current_context_parameter_by_name`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
if 'param_name_or_reference' in params:
|
|
97
|
+
query_params.append(('paramNameOrReference', params['param_name_or_reference'])) # noqa: E501
|
|
98
|
+
|
|
99
|
+
header_params = {}
|
|
100
|
+
|
|
101
|
+
form_params = []
|
|
102
|
+
local_var_files = {}
|
|
103
|
+
|
|
104
|
+
body_params = None
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json', 'text/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# Authentication setting
|
|
110
|
+
auth_settings = [] # noqa: E501
|
|
111
|
+
|
|
112
|
+
return self.api_client.call_api(
|
|
113
|
+
'/teamdbapi/v2.0/currentVersion/parameter', 'GET',
|
|
114
|
+
path_params,
|
|
115
|
+
query_params,
|
|
116
|
+
header_params,
|
|
117
|
+
body=body_params,
|
|
118
|
+
post_params=form_params,
|
|
119
|
+
files=local_var_files,
|
|
120
|
+
response_type='Parameter', # noqa: E501
|
|
121
|
+
auth_settings=auth_settings,
|
|
122
|
+
async_req=params.get('async_req'),
|
|
123
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
124
|
+
_preload_content=params.get('_preload_content', True),
|
|
125
|
+
_request_timeout=params.get('_request_timeout'),
|
|
126
|
+
collection_formats=collection_formats)
|
|
127
|
+
|
|
128
|
+
def get_parameter(self, param_id, version_id, **kwargs): # noqa: E501
|
|
129
|
+
"""Get a parameter for a given version id. A parameter can be linked to different versions with the same definition... or not (for ex: new parameter size, format...). For this reason, you have to specify the version to which you want to get the paramater definition. # noqa: E501
|
|
130
|
+
|
|
131
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
132
|
+
asynchronous HTTP request, please pass async_req=True
|
|
133
|
+
>>> thread = api.get_parameter(param_id, version_id, async_req=True)
|
|
134
|
+
>>> result = thread.get()
|
|
135
|
+
|
|
136
|
+
:param async_req bool
|
|
137
|
+
:param str param_id: The unique parameter id to get. (required)
|
|
138
|
+
:param str version_id: The version id to which you want to get the parameter definition (required)
|
|
139
|
+
:return: Parameter
|
|
140
|
+
If the method is called asynchronously,
|
|
141
|
+
returns the request thread.
|
|
142
|
+
"""
|
|
143
|
+
kwargs['_return_http_data_only'] = True
|
|
144
|
+
if kwargs.get('async_req'):
|
|
145
|
+
return self.get_parameter_with_http_info(param_id, version_id, **kwargs) # noqa: E501
|
|
146
|
+
else:
|
|
147
|
+
(data) = self.get_parameter_with_http_info(param_id, version_id, **kwargs) # noqa: E501
|
|
148
|
+
return data
|
|
149
|
+
|
|
150
|
+
def get_parameter_with_http_info(self, param_id, version_id, **kwargs): # noqa: E501
|
|
151
|
+
"""Get a parameter for a given version id. A parameter can be linked to different versions with the same definition... or not (for ex: new parameter size, format...). For this reason, you have to specify the version to which you want to get the paramater definition. # noqa: E501
|
|
152
|
+
|
|
153
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
154
|
+
asynchronous HTTP request, please pass async_req=True
|
|
155
|
+
>>> thread = api.get_parameter_with_http_info(param_id, version_id, async_req=True)
|
|
156
|
+
>>> result = thread.get()
|
|
157
|
+
|
|
158
|
+
:param async_req bool
|
|
159
|
+
:param str param_id: The unique parameter id to get. (required)
|
|
160
|
+
:param str version_id: The version id to which you want to get the parameter definition (required)
|
|
161
|
+
:return: Parameter
|
|
162
|
+
If the method is called asynchronously,
|
|
163
|
+
returns the request thread.
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
all_params = ['param_id', 'version_id'] # noqa: E501
|
|
167
|
+
all_params.append('async_req')
|
|
168
|
+
all_params.append('_return_http_data_only')
|
|
169
|
+
all_params.append('_preload_content')
|
|
170
|
+
all_params.append('_request_timeout')
|
|
171
|
+
|
|
172
|
+
params = locals()
|
|
173
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
174
|
+
if key not in all_params:
|
|
175
|
+
raise TypeError(
|
|
176
|
+
"Got an unexpected keyword argument '%s'"
|
|
177
|
+
" to method get_parameter" % key
|
|
178
|
+
)
|
|
179
|
+
params[key] = val
|
|
180
|
+
del params['kwargs']
|
|
181
|
+
# verify the required parameter 'param_id' is set
|
|
182
|
+
if ('param_id' not in params or
|
|
183
|
+
params['param_id'] is None):
|
|
184
|
+
raise ValueError("Missing the required parameter `param_id` when calling `get_parameter`") # noqa: E501
|
|
185
|
+
# verify the required parameter 'version_id' is set
|
|
186
|
+
if ('version_id' not in params or
|
|
187
|
+
params['version_id'] is None):
|
|
188
|
+
raise ValueError("Missing the required parameter `version_id` when calling `get_parameter`") # noqa: E501
|
|
189
|
+
|
|
190
|
+
collection_formats = {}
|
|
191
|
+
|
|
192
|
+
path_params = {}
|
|
193
|
+
if 'param_id' in params:
|
|
194
|
+
path_params['paramId'] = params['param_id'] # noqa: E501
|
|
195
|
+
if 'version_id' in params:
|
|
196
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
197
|
+
|
|
198
|
+
query_params = []
|
|
199
|
+
|
|
200
|
+
header_params = {}
|
|
201
|
+
|
|
202
|
+
form_params = []
|
|
203
|
+
local_var_files = {}
|
|
204
|
+
|
|
205
|
+
body_params = None
|
|
206
|
+
# HTTP header `Accept`
|
|
207
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
208
|
+
['application/json', 'text/json']) # noqa: E501
|
|
209
|
+
|
|
210
|
+
# Authentication setting
|
|
211
|
+
auth_settings = [] # noqa: E501
|
|
212
|
+
|
|
213
|
+
return self.api_client.call_api(
|
|
214
|
+
'/teamdbapi/v2.0/version/{versionId}/parameter/{paramId}', 'GET',
|
|
215
|
+
path_params,
|
|
216
|
+
query_params,
|
|
217
|
+
header_params,
|
|
218
|
+
body=body_params,
|
|
219
|
+
post_params=form_params,
|
|
220
|
+
files=local_var_files,
|
|
221
|
+
response_type='Parameter', # noqa: E501
|
|
222
|
+
auth_settings=auth_settings,
|
|
223
|
+
async_req=params.get('async_req'),
|
|
224
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
225
|
+
_preload_content=params.get('_preload_content', True),
|
|
226
|
+
_request_timeout=params.get('_request_timeout'),
|
|
227
|
+
collection_formats=collection_formats)
|
|
228
|
+
|
|
229
|
+
def get_parameter_by_name_for_version(self, version_id, param_name_or_reference, **kwargs): # noqa: E501
|
|
230
|
+
"""Get the parameter for a given parameter name or reference and a version unique id # noqa: E501
|
|
231
|
+
|
|
232
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
233
|
+
asynchronous HTTP request, please pass async_req=True
|
|
234
|
+
>>> thread = api.get_parameter_by_name_for_version(version_id, param_name_or_reference, async_req=True)
|
|
235
|
+
>>> result = thread.get()
|
|
236
|
+
|
|
237
|
+
:param async_req bool
|
|
238
|
+
:param str version_id: The unique version Id containing the parameter (required)
|
|
239
|
+
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
240
|
+
:return: Parameter
|
|
241
|
+
If the method is called asynchronously,
|
|
242
|
+
returns the request thread.
|
|
243
|
+
"""
|
|
244
|
+
kwargs['_return_http_data_only'] = True
|
|
245
|
+
if kwargs.get('async_req'):
|
|
246
|
+
return self.get_parameter_by_name_for_version_with_http_info(version_id, param_name_or_reference, **kwargs) # noqa: E501
|
|
247
|
+
else:
|
|
248
|
+
(data) = self.get_parameter_by_name_for_version_with_http_info(version_id, param_name_or_reference, **kwargs) # noqa: E501
|
|
249
|
+
return data
|
|
250
|
+
|
|
251
|
+
def get_parameter_by_name_for_version_with_http_info(self, version_id, param_name_or_reference, **kwargs): # noqa: E501
|
|
252
|
+
"""Get the parameter for a given parameter name or reference and a version unique id # noqa: E501
|
|
253
|
+
|
|
254
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
255
|
+
asynchronous HTTP request, please pass async_req=True
|
|
256
|
+
>>> thread = api.get_parameter_by_name_for_version_with_http_info(version_id, param_name_or_reference, async_req=True)
|
|
257
|
+
>>> result = thread.get()
|
|
258
|
+
|
|
259
|
+
:param async_req bool
|
|
260
|
+
:param str version_id: The unique version Id containing the parameter (required)
|
|
261
|
+
:param str param_name_or_reference: The parameter name or reference to find. (required)
|
|
262
|
+
:return: Parameter
|
|
263
|
+
If the method is called asynchronously,
|
|
264
|
+
returns the request thread.
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
all_params = ['version_id', 'param_name_or_reference'] # noqa: E501
|
|
268
|
+
all_params.append('async_req')
|
|
269
|
+
all_params.append('_return_http_data_only')
|
|
270
|
+
all_params.append('_preload_content')
|
|
271
|
+
all_params.append('_request_timeout')
|
|
272
|
+
|
|
273
|
+
params = locals()
|
|
274
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
275
|
+
if key not in all_params:
|
|
276
|
+
raise TypeError(
|
|
277
|
+
"Got an unexpected keyword argument '%s'"
|
|
278
|
+
" to method get_parameter_by_name_for_version" % key
|
|
279
|
+
)
|
|
280
|
+
params[key] = val
|
|
281
|
+
del params['kwargs']
|
|
282
|
+
# verify the required parameter 'version_id' is set
|
|
283
|
+
if ('version_id' not in params or
|
|
284
|
+
params['version_id'] is None):
|
|
285
|
+
raise ValueError("Missing the required parameter `version_id` when calling `get_parameter_by_name_for_version`") # noqa: E501
|
|
286
|
+
# verify the required parameter 'param_name_or_reference' is set
|
|
287
|
+
if ('param_name_or_reference' not in params or
|
|
288
|
+
params['param_name_or_reference'] is None):
|
|
289
|
+
raise ValueError("Missing the required parameter `param_name_or_reference` when calling `get_parameter_by_name_for_version`") # noqa: E501
|
|
290
|
+
|
|
291
|
+
collection_formats = {}
|
|
292
|
+
|
|
293
|
+
path_params = {}
|
|
294
|
+
if 'version_id' in params:
|
|
295
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
296
|
+
|
|
297
|
+
query_params = []
|
|
298
|
+
if 'param_name_or_reference' in params:
|
|
299
|
+
query_params.append(('paramNameOrReference', params['param_name_or_reference'])) # noqa: E501
|
|
300
|
+
|
|
301
|
+
header_params = {}
|
|
302
|
+
|
|
303
|
+
form_params = []
|
|
304
|
+
local_var_files = {}
|
|
305
|
+
|
|
306
|
+
body_params = None
|
|
307
|
+
# HTTP header `Accept`
|
|
308
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
309
|
+
['application/json', 'text/json']) # noqa: E501
|
|
310
|
+
|
|
311
|
+
# Authentication setting
|
|
312
|
+
auth_settings = [] # noqa: E501
|
|
313
|
+
|
|
314
|
+
return self.api_client.call_api(
|
|
315
|
+
'/teamdbapi/v2.0/version/{versionId}/parameter', 'GET',
|
|
316
|
+
path_params,
|
|
317
|
+
query_params,
|
|
318
|
+
header_params,
|
|
319
|
+
body=body_params,
|
|
320
|
+
post_params=form_params,
|
|
321
|
+
files=local_var_files,
|
|
322
|
+
response_type='Parameter', # noqa: E501
|
|
323
|
+
auth_settings=auth_settings,
|
|
324
|
+
async_req=params.get('async_req'),
|
|
325
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
326
|
+
_preload_content=params.get('_preload_content', True),
|
|
327
|
+
_request_timeout=params.get('_request_timeout'),
|
|
328
|
+
collection_formats=collection_formats)
|
|
329
|
+
|
|
330
|
+
def get_parameters(self, version_id, **kwargs): # noqa: E501
|
|
331
|
+
"""Get all parameters for a given version # noqa: E501
|
|
332
|
+
|
|
333
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
334
|
+
asynchronous HTTP request, please pass async_req=True
|
|
335
|
+
>>> thread = api.get_parameters(version_id, async_req=True)
|
|
336
|
+
>>> result = thread.get()
|
|
337
|
+
|
|
338
|
+
:param async_req bool
|
|
339
|
+
:param str version_id: The unique version id to which you want the parameters. (required)
|
|
340
|
+
:return: list[Parameter]
|
|
341
|
+
If the method is called asynchronously,
|
|
342
|
+
returns the request thread.
|
|
343
|
+
"""
|
|
344
|
+
kwargs['_return_http_data_only'] = True
|
|
345
|
+
if kwargs.get('async_req'):
|
|
346
|
+
return self.get_parameters_with_http_info(version_id, **kwargs) # noqa: E501
|
|
347
|
+
else:
|
|
348
|
+
(data) = self.get_parameters_with_http_info(version_id, **kwargs) # noqa: E501
|
|
349
|
+
return data
|
|
350
|
+
|
|
351
|
+
def get_parameters_with_http_info(self, version_id, **kwargs): # noqa: E501
|
|
352
|
+
"""Get all parameters for a given version # noqa: E501
|
|
353
|
+
|
|
354
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
355
|
+
asynchronous HTTP request, please pass async_req=True
|
|
356
|
+
>>> thread = api.get_parameters_with_http_info(version_id, async_req=True)
|
|
357
|
+
>>> result = thread.get()
|
|
358
|
+
|
|
359
|
+
:param async_req bool
|
|
360
|
+
:param str version_id: The unique version id to which you want the parameters. (required)
|
|
361
|
+
:return: list[Parameter]
|
|
362
|
+
If the method is called asynchronously,
|
|
363
|
+
returns the request thread.
|
|
364
|
+
"""
|
|
365
|
+
|
|
366
|
+
all_params = ['version_id'] # noqa: E501
|
|
367
|
+
all_params.append('async_req')
|
|
368
|
+
all_params.append('_return_http_data_only')
|
|
369
|
+
all_params.append('_preload_content')
|
|
370
|
+
all_params.append('_request_timeout')
|
|
371
|
+
|
|
372
|
+
params = locals()
|
|
373
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
374
|
+
if key not in all_params:
|
|
375
|
+
raise TypeError(
|
|
376
|
+
"Got an unexpected keyword argument '%s'"
|
|
377
|
+
" to method get_parameters" % key
|
|
378
|
+
)
|
|
379
|
+
params[key] = val
|
|
380
|
+
del params['kwargs']
|
|
381
|
+
# verify the required parameter 'version_id' is set
|
|
382
|
+
if ('version_id' not in params or
|
|
383
|
+
params['version_id'] is None):
|
|
384
|
+
raise ValueError("Missing the required parameter `version_id` when calling `get_parameters`") # noqa: E501
|
|
385
|
+
|
|
386
|
+
collection_formats = {}
|
|
387
|
+
|
|
388
|
+
path_params = {}
|
|
389
|
+
if 'version_id' in params:
|
|
390
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
391
|
+
|
|
392
|
+
query_params = []
|
|
393
|
+
|
|
394
|
+
header_params = {}
|
|
395
|
+
|
|
396
|
+
form_params = []
|
|
397
|
+
local_var_files = {}
|
|
398
|
+
|
|
399
|
+
body_params = None
|
|
400
|
+
# HTTP header `Accept`
|
|
401
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
402
|
+
['application/json', 'text/json']) # noqa: E501
|
|
403
|
+
|
|
404
|
+
# Authentication setting
|
|
405
|
+
auth_settings = [] # noqa: E501
|
|
406
|
+
|
|
407
|
+
return self.api_client.call_api(
|
|
408
|
+
'/teamdbapi/v2.0/version/{versionId}/parameters', 'GET',
|
|
409
|
+
path_params,
|
|
410
|
+
query_params,
|
|
411
|
+
header_params,
|
|
412
|
+
body=body_params,
|
|
413
|
+
post_params=form_params,
|
|
414
|
+
files=local_var_files,
|
|
415
|
+
response_type='list[Parameter]', # noqa: E501
|
|
416
|
+
auth_settings=auth_settings,
|
|
417
|
+
async_req=params.get('async_req'),
|
|
418
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
419
|
+
_preload_content=params.get('_preload_content', True),
|
|
420
|
+
_request_timeout=params.get('_request_timeout'),
|
|
421
|
+
collection_formats=collection_formats)
|
|
422
|
+
|
|
423
|
+
def get_parameters_in_group(self, version_id, group_id, **kwargs): # noqa: E501
|
|
424
|
+
"""Get all parameters contained inside a group, including the parameters inside the child groups # noqa: E501
|
|
425
|
+
|
|
426
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
427
|
+
asynchronous HTTP request, please pass async_req=True
|
|
428
|
+
>>> thread = api.get_parameters_in_group(version_id, group_id, async_req=True)
|
|
429
|
+
>>> result = thread.get()
|
|
430
|
+
|
|
431
|
+
:param async_req bool
|
|
432
|
+
:param str version_id: The unique version id to which the group belongs. (required)
|
|
433
|
+
:param str group_id: The unique group id to which you want the parameters. (required)
|
|
434
|
+
:return: list[Parameter]
|
|
435
|
+
If the method is called asynchronously,
|
|
436
|
+
returns the request thread.
|
|
437
|
+
"""
|
|
438
|
+
kwargs['_return_http_data_only'] = True
|
|
439
|
+
if kwargs.get('async_req'):
|
|
440
|
+
return self.get_parameters_in_group_with_http_info(version_id, group_id, **kwargs) # noqa: E501
|
|
441
|
+
else:
|
|
442
|
+
(data) = self.get_parameters_in_group_with_http_info(version_id, group_id, **kwargs) # noqa: E501
|
|
443
|
+
return data
|
|
444
|
+
|
|
445
|
+
def get_parameters_in_group_with_http_info(self, version_id, group_id, **kwargs): # noqa: E501
|
|
446
|
+
"""Get all parameters contained inside a group, including the parameters inside the child groups # noqa: E501
|
|
447
|
+
|
|
448
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
449
|
+
asynchronous HTTP request, please pass async_req=True
|
|
450
|
+
>>> thread = api.get_parameters_in_group_with_http_info(version_id, group_id, async_req=True)
|
|
451
|
+
>>> result = thread.get()
|
|
452
|
+
|
|
453
|
+
:param async_req bool
|
|
454
|
+
:param str version_id: The unique version id to which the group belongs. (required)
|
|
455
|
+
:param str group_id: The unique group id to which you want the parameters. (required)
|
|
456
|
+
:return: list[Parameter]
|
|
457
|
+
If the method is called asynchronously,
|
|
458
|
+
returns the request thread.
|
|
459
|
+
"""
|
|
460
|
+
|
|
461
|
+
all_params = ['version_id', 'group_id'] # noqa: E501
|
|
462
|
+
all_params.append('async_req')
|
|
463
|
+
all_params.append('_return_http_data_only')
|
|
464
|
+
all_params.append('_preload_content')
|
|
465
|
+
all_params.append('_request_timeout')
|
|
466
|
+
|
|
467
|
+
params = locals()
|
|
468
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
469
|
+
if key not in all_params:
|
|
470
|
+
raise TypeError(
|
|
471
|
+
"Got an unexpected keyword argument '%s'"
|
|
472
|
+
" to method get_parameters_in_group" % key
|
|
473
|
+
)
|
|
474
|
+
params[key] = val
|
|
475
|
+
del params['kwargs']
|
|
476
|
+
# verify the required parameter 'version_id' is set
|
|
477
|
+
if ('version_id' not in params or
|
|
478
|
+
params['version_id'] is None):
|
|
479
|
+
raise ValueError("Missing the required parameter `version_id` when calling `get_parameters_in_group`") # noqa: E501
|
|
480
|
+
# verify the required parameter 'group_id' is set
|
|
481
|
+
if ('group_id' not in params or
|
|
482
|
+
params['group_id'] is None):
|
|
483
|
+
raise ValueError("Missing the required parameter `group_id` when calling `get_parameters_in_group`") # noqa: E501
|
|
484
|
+
|
|
485
|
+
collection_formats = {}
|
|
486
|
+
|
|
487
|
+
path_params = {}
|
|
488
|
+
if 'version_id' in params:
|
|
489
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
490
|
+
if 'group_id' in params:
|
|
491
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
492
|
+
|
|
493
|
+
query_params = []
|
|
494
|
+
|
|
495
|
+
header_params = {}
|
|
496
|
+
|
|
497
|
+
form_params = []
|
|
498
|
+
local_var_files = {}
|
|
499
|
+
|
|
500
|
+
body_params = None
|
|
501
|
+
# HTTP header `Accept`
|
|
502
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
503
|
+
['application/json', 'text/json']) # noqa: E501
|
|
504
|
+
|
|
505
|
+
# Authentication setting
|
|
506
|
+
auth_settings = [] # noqa: E501
|
|
507
|
+
|
|
508
|
+
return self.api_client.call_api(
|
|
509
|
+
'/teamdbapi/v2.0/version/{versionId}/group/{groupId}/parameters', 'GET',
|
|
510
|
+
path_params,
|
|
511
|
+
query_params,
|
|
512
|
+
header_params,
|
|
513
|
+
body=body_params,
|
|
514
|
+
post_params=form_params,
|
|
515
|
+
files=local_var_files,
|
|
516
|
+
response_type='list[Parameter]', # noqa: E501
|
|
517
|
+
auth_settings=auth_settings,
|
|
518
|
+
async_req=params.get('async_req'),
|
|
519
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
520
|
+
_preload_content=params.get('_preload_content', True),
|
|
521
|
+
_request_timeout=params.get('_request_timeout'),
|
|
522
|
+
collection_formats=collection_formats)
|
|
523
|
+
|
|
524
|
+
def import_parameters(self, body, version_id, **kwargs): # noqa: E501
|
|
525
|
+
"""Import parameter files # noqa: E501
|
|
526
|
+
|
|
527
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
528
|
+
asynchronous HTTP request, please pass async_req=True
|
|
529
|
+
>>> thread = api.import_parameters(body, version_id, async_req=True)
|
|
530
|
+
>>> result = thread.get()
|
|
531
|
+
|
|
532
|
+
:param async_req bool
|
|
533
|
+
:param ImportParametersArgs body: The import options (required)
|
|
534
|
+
:param str version_id: The unique id of the version to which the paramterers will be imported. (required)
|
|
535
|
+
:return: ImportParametersResults
|
|
536
|
+
If the method is called asynchronously,
|
|
537
|
+
returns the request thread.
|
|
538
|
+
"""
|
|
539
|
+
kwargs['_return_http_data_only'] = True
|
|
540
|
+
if kwargs.get('async_req'):
|
|
541
|
+
return self.import_parameters_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
542
|
+
else:
|
|
543
|
+
(data) = self.import_parameters_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
544
|
+
return data
|
|
545
|
+
|
|
546
|
+
def import_parameters_with_http_info(self, body, version_id, **kwargs): # noqa: E501
|
|
547
|
+
"""Import parameter files # noqa: E501
|
|
548
|
+
|
|
549
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
550
|
+
asynchronous HTTP request, please pass async_req=True
|
|
551
|
+
>>> thread = api.import_parameters_with_http_info(body, version_id, async_req=True)
|
|
552
|
+
>>> result = thread.get()
|
|
553
|
+
|
|
554
|
+
:param async_req bool
|
|
555
|
+
:param ImportParametersArgs body: The import options (required)
|
|
556
|
+
:param str version_id: The unique id of the version to which the paramterers will be imported. (required)
|
|
557
|
+
:return: ImportParametersResults
|
|
558
|
+
If the method is called asynchronously,
|
|
559
|
+
returns the request thread.
|
|
560
|
+
"""
|
|
561
|
+
|
|
562
|
+
all_params = ['body', 'version_id'] # noqa: E501
|
|
563
|
+
all_params.append('async_req')
|
|
564
|
+
all_params.append('_return_http_data_only')
|
|
565
|
+
all_params.append('_preload_content')
|
|
566
|
+
all_params.append('_request_timeout')
|
|
567
|
+
|
|
568
|
+
params = locals()
|
|
569
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
570
|
+
if key not in all_params:
|
|
571
|
+
raise TypeError(
|
|
572
|
+
"Got an unexpected keyword argument '%s'"
|
|
573
|
+
" to method import_parameters" % key
|
|
574
|
+
)
|
|
575
|
+
params[key] = val
|
|
576
|
+
del params['kwargs']
|
|
577
|
+
# verify the required parameter 'body' is set
|
|
578
|
+
if ('body' not in params or
|
|
579
|
+
params['body'] is None):
|
|
580
|
+
raise ValueError("Missing the required parameter `body` when calling `import_parameters`") # noqa: E501
|
|
581
|
+
# verify the required parameter 'version_id' is set
|
|
582
|
+
if ('version_id' not in params or
|
|
583
|
+
params['version_id'] is None):
|
|
584
|
+
raise ValueError("Missing the required parameter `version_id` when calling `import_parameters`") # noqa: E501
|
|
585
|
+
|
|
586
|
+
collection_formats = {}
|
|
587
|
+
|
|
588
|
+
path_params = {}
|
|
589
|
+
if 'version_id' in params:
|
|
590
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
591
|
+
|
|
592
|
+
query_params = []
|
|
593
|
+
|
|
594
|
+
header_params = {}
|
|
595
|
+
|
|
596
|
+
form_params = []
|
|
597
|
+
local_var_files = {}
|
|
598
|
+
|
|
599
|
+
body_params = None
|
|
600
|
+
if 'body' in params:
|
|
601
|
+
body_params = params['body']
|
|
602
|
+
# HTTP header `Accept`
|
|
603
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
604
|
+
['application/json', 'text/json']) # noqa: E501
|
|
605
|
+
|
|
606
|
+
# HTTP header `Content-Type`
|
|
607
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
608
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
609
|
+
|
|
610
|
+
# Authentication setting
|
|
611
|
+
auth_settings = [] # noqa: E501
|
|
612
|
+
|
|
613
|
+
return self.api_client.call_api(
|
|
614
|
+
'/teamdbapi/v2.0/version/{versionId}/parameter/import', 'POST',
|
|
615
|
+
path_params,
|
|
616
|
+
query_params,
|
|
617
|
+
header_params,
|
|
618
|
+
body=body_params,
|
|
619
|
+
post_params=form_params,
|
|
620
|
+
files=local_var_files,
|
|
621
|
+
response_type='ImportParametersResults', # noqa: E501
|
|
622
|
+
auth_settings=auth_settings,
|
|
623
|
+
async_req=params.get('async_req'),
|
|
624
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
625
|
+
_preload_content=params.get('_preload_content', True),
|
|
626
|
+
_request_timeout=params.get('_request_timeout'),
|
|
627
|
+
collection_formats=collection_formats)
|
|
628
|
+
|
|
629
|
+
def move_parameter(self, body, version_id, group_id, **kwargs): # noqa: E501
|
|
630
|
+
"""[Command] Move one or more parameters to a group # noqa: E501
|
|
631
|
+
|
|
632
|
+
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
633
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
634
|
+
asynchronous HTTP request, please pass async_req=True
|
|
635
|
+
>>> thread = api.move_parameter(body, version_id, group_id, async_req=True)
|
|
636
|
+
>>> result = thread.get()
|
|
637
|
+
|
|
638
|
+
:param async_req bool
|
|
639
|
+
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
640
|
+
:param str version_id: The version id on which you are working (required)
|
|
641
|
+
:param str group_id: The destination group id where to move the parameters (required)
|
|
642
|
+
:return: None
|
|
643
|
+
If the method is called asynchronously,
|
|
644
|
+
returns the request thread.
|
|
645
|
+
"""
|
|
646
|
+
kwargs['_return_http_data_only'] = True
|
|
647
|
+
if kwargs.get('async_req'):
|
|
648
|
+
return self.move_parameter_with_http_info(body, version_id, group_id, **kwargs) # noqa: E501
|
|
649
|
+
else:
|
|
650
|
+
(data) = self.move_parameter_with_http_info(body, version_id, group_id, **kwargs) # noqa: E501
|
|
651
|
+
return data
|
|
652
|
+
|
|
653
|
+
def move_parameter_with_http_info(self, body, version_id, group_id, **kwargs): # noqa: E501
|
|
654
|
+
"""[Command] Move one or more parameters to a group # noqa: E501
|
|
655
|
+
|
|
656
|
+
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
657
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
658
|
+
asynchronous HTTP request, please pass async_req=True
|
|
659
|
+
>>> thread = api.move_parameter_with_http_info(body, version_id, group_id, async_req=True)
|
|
660
|
+
>>> result = thread.get()
|
|
661
|
+
|
|
662
|
+
:param async_req bool
|
|
663
|
+
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
664
|
+
:param str version_id: The version id on which you are working (required)
|
|
665
|
+
:param str group_id: The destination group id where to move the parameters (required)
|
|
666
|
+
:return: None
|
|
667
|
+
If the method is called asynchronously,
|
|
668
|
+
returns the request thread.
|
|
669
|
+
"""
|
|
670
|
+
|
|
671
|
+
all_params = ['body', 'version_id', 'group_id'] # noqa: E501
|
|
672
|
+
all_params.append('async_req')
|
|
673
|
+
all_params.append('_return_http_data_only')
|
|
674
|
+
all_params.append('_preload_content')
|
|
675
|
+
all_params.append('_request_timeout')
|
|
676
|
+
|
|
677
|
+
params = locals()
|
|
678
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
679
|
+
if key not in all_params:
|
|
680
|
+
raise TypeError(
|
|
681
|
+
"Got an unexpected keyword argument '%s'"
|
|
682
|
+
" to method move_parameter" % key
|
|
683
|
+
)
|
|
684
|
+
params[key] = val
|
|
685
|
+
del params['kwargs']
|
|
686
|
+
# verify the required parameter 'body' is set
|
|
687
|
+
if ('body' not in params or
|
|
688
|
+
params['body'] is None):
|
|
689
|
+
raise ValueError("Missing the required parameter `body` when calling `move_parameter`") # noqa: E501
|
|
690
|
+
# verify the required parameter 'version_id' is set
|
|
691
|
+
if ('version_id' not in params or
|
|
692
|
+
params['version_id'] is None):
|
|
693
|
+
raise ValueError("Missing the required parameter `version_id` when calling `move_parameter`") # noqa: E501
|
|
694
|
+
# verify the required parameter 'group_id' is set
|
|
695
|
+
if ('group_id' not in params or
|
|
696
|
+
params['group_id'] is None):
|
|
697
|
+
raise ValueError("Missing the required parameter `group_id` when calling `move_parameter`") # noqa: E501
|
|
698
|
+
|
|
699
|
+
collection_formats = {}
|
|
700
|
+
|
|
701
|
+
path_params = {}
|
|
702
|
+
if 'version_id' in params:
|
|
703
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
704
|
+
if 'group_id' in params:
|
|
705
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
706
|
+
|
|
707
|
+
query_params = []
|
|
708
|
+
|
|
709
|
+
header_params = {}
|
|
710
|
+
|
|
711
|
+
form_params = []
|
|
712
|
+
local_var_files = {}
|
|
713
|
+
|
|
714
|
+
body_params = None
|
|
715
|
+
if 'body' in params:
|
|
716
|
+
body_params = params['body']
|
|
717
|
+
# HTTP header `Accept`
|
|
718
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
719
|
+
['application/json', 'text/json']) # noqa: E501
|
|
720
|
+
|
|
721
|
+
# HTTP header `Content-Type`
|
|
722
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
723
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
724
|
+
|
|
725
|
+
# Authentication setting
|
|
726
|
+
auth_settings = [] # noqa: E501
|
|
727
|
+
|
|
728
|
+
return self.api_client.call_api(
|
|
729
|
+
'/teamdbapi/v2.0/version/{versionId}/group/{groupId}/moveparameter', 'POST',
|
|
730
|
+
path_params,
|
|
731
|
+
query_params,
|
|
732
|
+
header_params,
|
|
733
|
+
body=body_params,
|
|
734
|
+
post_params=form_params,
|
|
735
|
+
files=local_var_files,
|
|
736
|
+
response_type=None, # noqa: E501
|
|
737
|
+
auth_settings=auth_settings,
|
|
738
|
+
async_req=params.get('async_req'),
|
|
739
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
740
|
+
_preload_content=params.get('_preload_content', True),
|
|
741
|
+
_request_timeout=params.get('_request_timeout'),
|
|
742
|
+
collection_formats=collection_formats)
|
|
743
|
+
|
|
744
|
+
def move_parameter_update_revision(self, body, reference_assembly_id, version_id, group_id, **kwargs): # noqa: E501
|
|
745
|
+
"""Move a parameter inside a group and update the involved group revisions based on the reference assembly given in argument # noqa: E501
|
|
746
|
+
|
|
747
|
+
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
748
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
749
|
+
asynchronous HTTP request, please pass async_req=True
|
|
750
|
+
>>> thread = api.move_parameter_update_revision(body, reference_assembly_id, version_id, group_id, async_req=True)
|
|
751
|
+
>>> result = thread.get()
|
|
752
|
+
|
|
753
|
+
:param async_req bool
|
|
754
|
+
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
755
|
+
:param str reference_assembly_id: The assembly id used as a reference in order to update the group revision potentially involved in the process. (required)
|
|
756
|
+
:param str version_id: The version id on which you are working (required)
|
|
757
|
+
:param str group_id: The destination group id where to move the parameters (required)
|
|
758
|
+
:return: None
|
|
759
|
+
If the method is called asynchronously,
|
|
760
|
+
returns the request thread.
|
|
761
|
+
"""
|
|
762
|
+
kwargs['_return_http_data_only'] = True
|
|
763
|
+
if kwargs.get('async_req'):
|
|
764
|
+
return self.move_parameter_update_revision_with_http_info(body, reference_assembly_id, version_id, group_id, **kwargs) # noqa: E501
|
|
765
|
+
else:
|
|
766
|
+
(data) = self.move_parameter_update_revision_with_http_info(body, reference_assembly_id, version_id, group_id, **kwargs) # noqa: E501
|
|
767
|
+
return data
|
|
768
|
+
|
|
769
|
+
def move_parameter_update_revision_with_http_info(self, body, reference_assembly_id, version_id, group_id, **kwargs): # noqa: E501
|
|
770
|
+
"""Move a parameter inside a group and update the involved group revisions based on the reference assembly given in argument # noqa: E501
|
|
771
|
+
|
|
772
|
+
Set groupId to 00000000-0000-0000-0000-000000000000 in order to move the parameter on the root. # noqa: E501
|
|
773
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
774
|
+
asynchronous HTTP request, please pass async_req=True
|
|
775
|
+
>>> thread = api.move_parameter_update_revision_with_http_info(body, reference_assembly_id, version_id, group_id, async_req=True)
|
|
776
|
+
>>> result = thread.get()
|
|
777
|
+
|
|
778
|
+
:param async_req bool
|
|
779
|
+
:param list[str] body: The list of unique parameter ids to move inside the destination group (required)
|
|
780
|
+
:param str reference_assembly_id: The assembly id used as a reference in order to update the group revision potentially involved in the process. (required)
|
|
781
|
+
:param str version_id: The version id on which you are working (required)
|
|
782
|
+
:param str group_id: The destination group id where to move the parameters (required)
|
|
783
|
+
:return: None
|
|
784
|
+
If the method is called asynchronously,
|
|
785
|
+
returns the request thread.
|
|
786
|
+
"""
|
|
787
|
+
|
|
788
|
+
all_params = ['body', 'reference_assembly_id', 'version_id', 'group_id'] # noqa: E501
|
|
789
|
+
all_params.append('async_req')
|
|
790
|
+
all_params.append('_return_http_data_only')
|
|
791
|
+
all_params.append('_preload_content')
|
|
792
|
+
all_params.append('_request_timeout')
|
|
793
|
+
|
|
794
|
+
params = locals()
|
|
795
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
796
|
+
if key not in all_params:
|
|
797
|
+
raise TypeError(
|
|
798
|
+
"Got an unexpected keyword argument '%s'"
|
|
799
|
+
" to method move_parameter_update_revision" % key
|
|
800
|
+
)
|
|
801
|
+
params[key] = val
|
|
802
|
+
del params['kwargs']
|
|
803
|
+
# verify the required parameter 'body' is set
|
|
804
|
+
if ('body' not in params or
|
|
805
|
+
params['body'] is None):
|
|
806
|
+
raise ValueError("Missing the required parameter `body` when calling `move_parameter_update_revision`") # noqa: E501
|
|
807
|
+
# verify the required parameter 'reference_assembly_id' is set
|
|
808
|
+
if ('reference_assembly_id' not in params or
|
|
809
|
+
params['reference_assembly_id'] is None):
|
|
810
|
+
raise ValueError("Missing the required parameter `reference_assembly_id` when calling `move_parameter_update_revision`") # noqa: E501
|
|
811
|
+
# verify the required parameter 'version_id' is set
|
|
812
|
+
if ('version_id' not in params or
|
|
813
|
+
params['version_id'] is None):
|
|
814
|
+
raise ValueError("Missing the required parameter `version_id` when calling `move_parameter_update_revision`") # noqa: E501
|
|
815
|
+
# verify the required parameter 'group_id' is set
|
|
816
|
+
if ('group_id' not in params or
|
|
817
|
+
params['group_id'] is None):
|
|
818
|
+
raise ValueError("Missing the required parameter `group_id` when calling `move_parameter_update_revision`") # noqa: E501
|
|
819
|
+
|
|
820
|
+
collection_formats = {}
|
|
821
|
+
|
|
822
|
+
path_params = {}
|
|
823
|
+
if 'version_id' in params:
|
|
824
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
825
|
+
if 'group_id' in params:
|
|
826
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
827
|
+
|
|
828
|
+
query_params = []
|
|
829
|
+
if 'reference_assembly_id' in params:
|
|
830
|
+
query_params.append(('referenceAssemblyId', params['reference_assembly_id'])) # noqa: E501
|
|
831
|
+
|
|
832
|
+
header_params = {}
|
|
833
|
+
|
|
834
|
+
form_params = []
|
|
835
|
+
local_var_files = {}
|
|
836
|
+
|
|
837
|
+
body_params = None
|
|
838
|
+
if 'body' in params:
|
|
839
|
+
body_params = params['body']
|
|
840
|
+
# HTTP header `Accept`
|
|
841
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
842
|
+
['application/json', 'text/json']) # noqa: E501
|
|
843
|
+
|
|
844
|
+
# HTTP header `Content-Type`
|
|
845
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
846
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
847
|
+
|
|
848
|
+
# Authentication setting
|
|
849
|
+
auth_settings = [] # noqa: E501
|
|
850
|
+
|
|
851
|
+
return self.api_client.call_api(
|
|
852
|
+
'/teamdbapi/v2.0/version/{versionId}/group/{groupId}/moveparameterupdaterevision', 'POST',
|
|
853
|
+
path_params,
|
|
854
|
+
query_params,
|
|
855
|
+
header_params,
|
|
856
|
+
body=body_params,
|
|
857
|
+
post_params=form_params,
|
|
858
|
+
files=local_var_files,
|
|
859
|
+
response_type=None, # noqa: E501
|
|
860
|
+
auth_settings=auth_settings,
|
|
861
|
+
async_req=params.get('async_req'),
|
|
862
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
863
|
+
_preload_content=params.get('_preload_content', True),
|
|
864
|
+
_request_timeout=params.get('_request_timeout'),
|
|
865
|
+
collection_formats=collection_formats)
|
|
866
|
+
|
|
867
|
+
def reset_responsibles(self, body, version_id, **kwargs): # noqa: E501
|
|
868
|
+
"""Reset the responsibles for a given version and a list of parameters # noqa: E501
|
|
869
|
+
|
|
870
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
871
|
+
asynchronous HTTP request, please pass async_req=True
|
|
872
|
+
>>> thread = api.reset_responsibles(body, version_id, async_req=True)
|
|
873
|
+
>>> result = thread.get()
|
|
874
|
+
|
|
875
|
+
:param async_req bool
|
|
876
|
+
:param list[str] body: The parameters list to which the responsibles will be reseted (required)
|
|
877
|
+
:param str version_id: The version unique id to which the responsibles will be reseted (required)
|
|
878
|
+
:return: None
|
|
879
|
+
If the method is called asynchronously,
|
|
880
|
+
returns the request thread.
|
|
881
|
+
"""
|
|
882
|
+
kwargs['_return_http_data_only'] = True
|
|
883
|
+
if kwargs.get('async_req'):
|
|
884
|
+
return self.reset_responsibles_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
885
|
+
else:
|
|
886
|
+
(data) = self.reset_responsibles_with_http_info(body, version_id, **kwargs) # noqa: E501
|
|
887
|
+
return data
|
|
888
|
+
|
|
889
|
+
def reset_responsibles_with_http_info(self, body, version_id, **kwargs): # noqa: E501
|
|
890
|
+
"""Reset the responsibles for a given version and a list of parameters # noqa: E501
|
|
891
|
+
|
|
892
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
893
|
+
asynchronous HTTP request, please pass async_req=True
|
|
894
|
+
>>> thread = api.reset_responsibles_with_http_info(body, version_id, async_req=True)
|
|
895
|
+
>>> result = thread.get()
|
|
896
|
+
|
|
897
|
+
:param async_req bool
|
|
898
|
+
:param list[str] body: The parameters list to which the responsibles will be reseted (required)
|
|
899
|
+
:param str version_id: The version unique id to which the responsibles will be reseted (required)
|
|
900
|
+
:return: None
|
|
901
|
+
If the method is called asynchronously,
|
|
902
|
+
returns the request thread.
|
|
903
|
+
"""
|
|
904
|
+
|
|
905
|
+
all_params = ['body', 'version_id'] # noqa: E501
|
|
906
|
+
all_params.append('async_req')
|
|
907
|
+
all_params.append('_return_http_data_only')
|
|
908
|
+
all_params.append('_preload_content')
|
|
909
|
+
all_params.append('_request_timeout')
|
|
910
|
+
|
|
911
|
+
params = locals()
|
|
912
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
913
|
+
if key not in all_params:
|
|
914
|
+
raise TypeError(
|
|
915
|
+
"Got an unexpected keyword argument '%s'"
|
|
916
|
+
" to method reset_responsibles" % key
|
|
917
|
+
)
|
|
918
|
+
params[key] = val
|
|
919
|
+
del params['kwargs']
|
|
920
|
+
# verify the required parameter 'body' is set
|
|
921
|
+
if ('body' not in params or
|
|
922
|
+
params['body'] is None):
|
|
923
|
+
raise ValueError("Missing the required parameter `body` when calling `reset_responsibles`") # noqa: E501
|
|
924
|
+
# verify the required parameter 'version_id' is set
|
|
925
|
+
if ('version_id' not in params or
|
|
926
|
+
params['version_id'] is None):
|
|
927
|
+
raise ValueError("Missing the required parameter `version_id` when calling `reset_responsibles`") # noqa: E501
|
|
928
|
+
|
|
929
|
+
collection_formats = {}
|
|
930
|
+
|
|
931
|
+
path_params = {}
|
|
932
|
+
if 'version_id' in params:
|
|
933
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
934
|
+
|
|
935
|
+
query_params = []
|
|
936
|
+
|
|
937
|
+
header_params = {}
|
|
938
|
+
|
|
939
|
+
form_params = []
|
|
940
|
+
local_var_files = {}
|
|
941
|
+
|
|
942
|
+
body_params = None
|
|
943
|
+
if 'body' in params:
|
|
944
|
+
body_params = params['body']
|
|
945
|
+
# HTTP header `Accept`
|
|
946
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
947
|
+
['application/json', 'text/json']) # noqa: E501
|
|
948
|
+
|
|
949
|
+
# HTTP header `Content-Type`
|
|
950
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
951
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
952
|
+
|
|
953
|
+
# Authentication setting
|
|
954
|
+
auth_settings = [] # noqa: E501
|
|
955
|
+
|
|
956
|
+
return self.api_client.call_api(
|
|
957
|
+
'/teamdbapi/v2.0/version/{versionId}/parameter/resetresponsible', 'POST',
|
|
958
|
+
path_params,
|
|
959
|
+
query_params,
|
|
960
|
+
header_params,
|
|
961
|
+
body=body_params,
|
|
962
|
+
post_params=form_params,
|
|
963
|
+
files=local_var_files,
|
|
964
|
+
response_type=None, # noqa: E501
|
|
965
|
+
auth_settings=auth_settings,
|
|
966
|
+
async_req=params.get('async_req'),
|
|
967
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
968
|
+
_preload_content=params.get('_preload_content', True),
|
|
969
|
+
_request_timeout=params.get('_request_timeout'),
|
|
970
|
+
collection_formats=collection_formats)
|
|
971
|
+
|
|
972
|
+
def select_parameter_by_id(self, parameter_id, **kwargs): # noqa: E501
|
|
973
|
+
"""[Command] Select the given parameter in the Edit Car Parameters view # noqa: E501
|
|
974
|
+
|
|
975
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
976
|
+
asynchronous HTTP request, please pass async_req=True
|
|
977
|
+
>>> thread = api.select_parameter_by_id(parameter_id, async_req=True)
|
|
978
|
+
>>> result = thread.get()
|
|
979
|
+
|
|
980
|
+
:param async_req bool
|
|
981
|
+
:param str parameter_id: The parameter unique Id to select in the Edit Car Parameters view (required)
|
|
982
|
+
:return: None
|
|
983
|
+
If the method is called asynchronously,
|
|
984
|
+
returns the request thread.
|
|
985
|
+
"""
|
|
986
|
+
kwargs['_return_http_data_only'] = True
|
|
987
|
+
if kwargs.get('async_req'):
|
|
988
|
+
return self.select_parameter_by_id_with_http_info(parameter_id, **kwargs) # noqa: E501
|
|
989
|
+
else:
|
|
990
|
+
(data) = self.select_parameter_by_id_with_http_info(parameter_id, **kwargs) # noqa: E501
|
|
991
|
+
return data
|
|
992
|
+
|
|
993
|
+
def select_parameter_by_id_with_http_info(self, parameter_id, **kwargs): # noqa: E501
|
|
994
|
+
"""[Command] Select the given parameter in the Edit Car Parameters view # noqa: E501
|
|
995
|
+
|
|
996
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
997
|
+
asynchronous HTTP request, please pass async_req=True
|
|
998
|
+
>>> thread = api.select_parameter_by_id_with_http_info(parameter_id, async_req=True)
|
|
999
|
+
>>> result = thread.get()
|
|
1000
|
+
|
|
1001
|
+
:param async_req bool
|
|
1002
|
+
:param str parameter_id: The parameter unique Id to select in the Edit Car Parameters view (required)
|
|
1003
|
+
:return: None
|
|
1004
|
+
If the method is called asynchronously,
|
|
1005
|
+
returns the request thread.
|
|
1006
|
+
"""
|
|
1007
|
+
|
|
1008
|
+
all_params = ['parameter_id'] # noqa: E501
|
|
1009
|
+
all_params.append('async_req')
|
|
1010
|
+
all_params.append('_return_http_data_only')
|
|
1011
|
+
all_params.append('_preload_content')
|
|
1012
|
+
all_params.append('_request_timeout')
|
|
1013
|
+
|
|
1014
|
+
params = locals()
|
|
1015
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1016
|
+
if key not in all_params:
|
|
1017
|
+
raise TypeError(
|
|
1018
|
+
"Got an unexpected keyword argument '%s'"
|
|
1019
|
+
" to method select_parameter_by_id" % key
|
|
1020
|
+
)
|
|
1021
|
+
params[key] = val
|
|
1022
|
+
del params['kwargs']
|
|
1023
|
+
# verify the required parameter 'parameter_id' is set
|
|
1024
|
+
if ('parameter_id' not in params or
|
|
1025
|
+
params['parameter_id'] is None):
|
|
1026
|
+
raise ValueError("Missing the required parameter `parameter_id` when calling `select_parameter_by_id`") # noqa: E501
|
|
1027
|
+
|
|
1028
|
+
collection_formats = {}
|
|
1029
|
+
|
|
1030
|
+
path_params = {}
|
|
1031
|
+
if 'parameter_id' in params:
|
|
1032
|
+
path_params['parameterId'] = params['parameter_id'] # noqa: E501
|
|
1033
|
+
|
|
1034
|
+
query_params = []
|
|
1035
|
+
|
|
1036
|
+
header_params = {}
|
|
1037
|
+
|
|
1038
|
+
form_params = []
|
|
1039
|
+
local_var_files = {}
|
|
1040
|
+
|
|
1041
|
+
body_params = None
|
|
1042
|
+
# HTTP header `Accept`
|
|
1043
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1044
|
+
['application/json', 'text/json']) # noqa: E501
|
|
1045
|
+
|
|
1046
|
+
# Authentication setting
|
|
1047
|
+
auth_settings = [] # noqa: E501
|
|
1048
|
+
|
|
1049
|
+
return self.api_client.call_api(
|
|
1050
|
+
'/teamdbapi/v2.0/parameter/{parameterId}/select', 'POST',
|
|
1051
|
+
path_params,
|
|
1052
|
+
query_params,
|
|
1053
|
+
header_params,
|
|
1054
|
+
body=body_params,
|
|
1055
|
+
post_params=form_params,
|
|
1056
|
+
files=local_var_files,
|
|
1057
|
+
response_type=None, # noqa: E501
|
|
1058
|
+
auth_settings=auth_settings,
|
|
1059
|
+
async_req=params.get('async_req'),
|
|
1060
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1061
|
+
_preload_content=params.get('_preload_content', True),
|
|
1062
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1063
|
+
collection_formats=collection_formats)
|
|
1064
|
+
|
|
1065
|
+
def set_responsibles(self, body, responsibles, version_id, **kwargs): # noqa: E501
|
|
1066
|
+
"""[Command] Set the responsibles for a given version and a list of parameters # noqa: E501
|
|
1067
|
+
|
|
1068
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1069
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1070
|
+
>>> thread = api.set_responsibles(body, responsibles, version_id, async_req=True)
|
|
1071
|
+
>>> result = thread.get()
|
|
1072
|
+
|
|
1073
|
+
:param async_req bool
|
|
1074
|
+
:param list[str] body: The parameters list to which the responsible will be in charge (required)
|
|
1075
|
+
:param str responsibles: The responsibles names. Must be a Teamdb User name. Each responsible should be separated by; (required)
|
|
1076
|
+
:param str version_id: The version unique id to which the responsible will be affected (required)
|
|
1077
|
+
:return: None
|
|
1078
|
+
If the method is called asynchronously,
|
|
1079
|
+
returns the request thread.
|
|
1080
|
+
"""
|
|
1081
|
+
kwargs['_return_http_data_only'] = True
|
|
1082
|
+
if kwargs.get('async_req'):
|
|
1083
|
+
return self.set_responsibles_with_http_info(body, responsibles, version_id, **kwargs) # noqa: E501
|
|
1084
|
+
else:
|
|
1085
|
+
(data) = self.set_responsibles_with_http_info(body, responsibles, version_id, **kwargs) # noqa: E501
|
|
1086
|
+
return data
|
|
1087
|
+
|
|
1088
|
+
def set_responsibles_with_http_info(self, body, responsibles, version_id, **kwargs): # noqa: E501
|
|
1089
|
+
"""[Command] Set the responsibles for a given version and a list of parameters # noqa: E501
|
|
1090
|
+
|
|
1091
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1092
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1093
|
+
>>> thread = api.set_responsibles_with_http_info(body, responsibles, version_id, async_req=True)
|
|
1094
|
+
>>> result = thread.get()
|
|
1095
|
+
|
|
1096
|
+
:param async_req bool
|
|
1097
|
+
:param list[str] body: The parameters list to which the responsible will be in charge (required)
|
|
1098
|
+
:param str responsibles: The responsibles names. Must be a Teamdb User name. Each responsible should be separated by; (required)
|
|
1099
|
+
:param str version_id: The version unique id to which the responsible will be affected (required)
|
|
1100
|
+
:return: None
|
|
1101
|
+
If the method is called asynchronously,
|
|
1102
|
+
returns the request thread.
|
|
1103
|
+
"""
|
|
1104
|
+
|
|
1105
|
+
all_params = ['body', 'responsibles', 'version_id'] # noqa: E501
|
|
1106
|
+
all_params.append('async_req')
|
|
1107
|
+
all_params.append('_return_http_data_only')
|
|
1108
|
+
all_params.append('_preload_content')
|
|
1109
|
+
all_params.append('_request_timeout')
|
|
1110
|
+
|
|
1111
|
+
params = locals()
|
|
1112
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1113
|
+
if key not in all_params:
|
|
1114
|
+
raise TypeError(
|
|
1115
|
+
"Got an unexpected keyword argument '%s'"
|
|
1116
|
+
" to method set_responsibles" % key
|
|
1117
|
+
)
|
|
1118
|
+
params[key] = val
|
|
1119
|
+
del params['kwargs']
|
|
1120
|
+
# verify the required parameter 'body' is set
|
|
1121
|
+
if ('body' not in params or
|
|
1122
|
+
params['body'] is None):
|
|
1123
|
+
raise ValueError("Missing the required parameter `body` when calling `set_responsibles`") # noqa: E501
|
|
1124
|
+
# verify the required parameter 'responsibles' is set
|
|
1125
|
+
if ('responsibles' not in params or
|
|
1126
|
+
params['responsibles'] is None):
|
|
1127
|
+
raise ValueError("Missing the required parameter `responsibles` when calling `set_responsibles`") # noqa: E501
|
|
1128
|
+
# verify the required parameter 'version_id' is set
|
|
1129
|
+
if ('version_id' not in params or
|
|
1130
|
+
params['version_id'] is None):
|
|
1131
|
+
raise ValueError("Missing the required parameter `version_id` when calling `set_responsibles`") # noqa: E501
|
|
1132
|
+
|
|
1133
|
+
collection_formats = {}
|
|
1134
|
+
|
|
1135
|
+
path_params = {}
|
|
1136
|
+
if 'version_id' in params:
|
|
1137
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
1138
|
+
|
|
1139
|
+
query_params = []
|
|
1140
|
+
if 'responsibles' in params:
|
|
1141
|
+
query_params.append(('responsibles', params['responsibles'])) # noqa: E501
|
|
1142
|
+
|
|
1143
|
+
header_params = {}
|
|
1144
|
+
|
|
1145
|
+
form_params = []
|
|
1146
|
+
local_var_files = {}
|
|
1147
|
+
|
|
1148
|
+
body_params = None
|
|
1149
|
+
if 'body' in params:
|
|
1150
|
+
body_params = params['body']
|
|
1151
|
+
# HTTP header `Accept`
|
|
1152
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1153
|
+
['application/json', 'text/json']) # noqa: E501
|
|
1154
|
+
|
|
1155
|
+
# HTTP header `Content-Type`
|
|
1156
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1157
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
1158
|
+
|
|
1159
|
+
# Authentication setting
|
|
1160
|
+
auth_settings = [] # noqa: E501
|
|
1161
|
+
|
|
1162
|
+
return self.api_client.call_api(
|
|
1163
|
+
'/teamdbapi/v2.0/version/{versionId}/parameter/setresponsible', 'POST',
|
|
1164
|
+
path_params,
|
|
1165
|
+
query_params,
|
|
1166
|
+
header_params,
|
|
1167
|
+
body=body_params,
|
|
1168
|
+
post_params=form_params,
|
|
1169
|
+
files=local_var_files,
|
|
1170
|
+
response_type=None, # noqa: E501
|
|
1171
|
+
auth_settings=auth_settings,
|
|
1172
|
+
async_req=params.get('async_req'),
|
|
1173
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1174
|
+
_preload_content=params.get('_preload_content', True),
|
|
1175
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1176
|
+
collection_formats=collection_formats)
|