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/group_api.py
CHANGED
|
@@ -1,609 +1,609 @@
|
|
|
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 GroupApi(object):
|
|
24
|
-
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
-
|
|
26
|
-
Do not edit the class manually.
|
|
27
|
-
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
def __init__(self, api_client=None):
|
|
31
|
-
if api_client is None:
|
|
32
|
-
api_client = ApiClient()
|
|
33
|
-
self.api_client = api_client
|
|
34
|
-
|
|
35
|
-
def create_group(self, body, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a group # noqa: E501
|
|
37
|
-
|
|
38
|
-
Set Group.Id to Guid.Empty (00000000-0000-0000-0000-000000000000) in order to create a new group. The id will be generated by the server. # noqa: E501
|
|
39
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
-
asynchronous HTTP request, please pass async_req=True
|
|
41
|
-
>>> thread = api.create_group(body, async_req=True)
|
|
42
|
-
>>> result = thread.get()
|
|
43
|
-
|
|
44
|
-
:param async_req bool
|
|
45
|
-
:param Group body: The group to create. (required)
|
|
46
|
-
:return: Group
|
|
47
|
-
If the method is called asynchronously,
|
|
48
|
-
returns the request thread.
|
|
49
|
-
"""
|
|
50
|
-
kwargs['_return_http_data_only'] = True
|
|
51
|
-
if kwargs.get('async_req'):
|
|
52
|
-
return self.create_group_with_http_info(body, **kwargs) # noqa: E501
|
|
53
|
-
else:
|
|
54
|
-
(data) = self.create_group_with_http_info(body, **kwargs) # noqa: E501
|
|
55
|
-
return data
|
|
56
|
-
|
|
57
|
-
def create_group_with_http_info(self, body, **kwargs): # noqa: E501
|
|
58
|
-
"""Create a group # noqa: E501
|
|
59
|
-
|
|
60
|
-
Set Group.Id to Guid.Empty (00000000-0000-0000-0000-000000000000) in order to create a new group. The id will be generated by the server. # noqa: E501
|
|
61
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
-
asynchronous HTTP request, please pass async_req=True
|
|
63
|
-
>>> thread = api.create_group_with_http_info(body, async_req=True)
|
|
64
|
-
>>> result = thread.get()
|
|
65
|
-
|
|
66
|
-
:param async_req bool
|
|
67
|
-
:param Group body: The group to create. (required)
|
|
68
|
-
:return: Group
|
|
69
|
-
If the method is called asynchronously,
|
|
70
|
-
returns the request thread.
|
|
71
|
-
"""
|
|
72
|
-
|
|
73
|
-
all_params = ['body'] # noqa: E501
|
|
74
|
-
all_params.append('async_req')
|
|
75
|
-
all_params.append('_return_http_data_only')
|
|
76
|
-
all_params.append('_preload_content')
|
|
77
|
-
all_params.append('_request_timeout')
|
|
78
|
-
|
|
79
|
-
params = locals()
|
|
80
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
-
if key not in all_params:
|
|
82
|
-
raise TypeError(
|
|
83
|
-
"Got an unexpected keyword argument '%s'"
|
|
84
|
-
" to method create_group" % key
|
|
85
|
-
)
|
|
86
|
-
params[key] = val
|
|
87
|
-
del params['kwargs']
|
|
88
|
-
# verify the required parameter 'body' is set
|
|
89
|
-
if ('body' not in params or
|
|
90
|
-
params['body'] is None):
|
|
91
|
-
raise ValueError("Missing the required parameter `body` when calling `create_group`") # noqa: E501
|
|
92
|
-
|
|
93
|
-
collection_formats = {}
|
|
94
|
-
|
|
95
|
-
path_params = {}
|
|
96
|
-
|
|
97
|
-
query_params = []
|
|
98
|
-
|
|
99
|
-
header_params = {}
|
|
100
|
-
|
|
101
|
-
form_params = []
|
|
102
|
-
local_var_files = {}
|
|
103
|
-
|
|
104
|
-
body_params = None
|
|
105
|
-
if 'body' in params:
|
|
106
|
-
body_params = params['body']
|
|
107
|
-
# HTTP header `Accept`
|
|
108
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
109
|
-
['application/json', 'text/json']) # noqa: E501
|
|
110
|
-
|
|
111
|
-
# HTTP header `Content-Type`
|
|
112
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
113
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
114
|
-
|
|
115
|
-
# Authentication setting
|
|
116
|
-
auth_settings = [] # noqa: E501
|
|
117
|
-
|
|
118
|
-
return self.api_client.call_api(
|
|
119
|
-
'/teamdbapi/v2.0/group', 'POST',
|
|
120
|
-
path_params,
|
|
121
|
-
query_params,
|
|
122
|
-
header_params,
|
|
123
|
-
body=body_params,
|
|
124
|
-
post_params=form_params,
|
|
125
|
-
files=local_var_files,
|
|
126
|
-
response_type='Group', # noqa: E501
|
|
127
|
-
auth_settings=auth_settings,
|
|
128
|
-
async_req=params.get('async_req'),
|
|
129
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
130
|
-
_preload_content=params.get('_preload_content', True),
|
|
131
|
-
_request_timeout=params.get('_request_timeout'),
|
|
132
|
-
collection_formats=collection_formats)
|
|
133
|
-
|
|
134
|
-
def delete_group(self, group_id, **kwargs): # noqa: E501
|
|
135
|
-
"""Delete a group corresponding to an Id. # noqa: E501
|
|
136
|
-
|
|
137
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
138
|
-
asynchronous HTTP request, please pass async_req=True
|
|
139
|
-
>>> thread = api.delete_group(group_id, async_req=True)
|
|
140
|
-
>>> result = thread.get()
|
|
141
|
-
|
|
142
|
-
:param async_req bool
|
|
143
|
-
:param str group_id: The unique group id corresponding to the group to delete (required)
|
|
144
|
-
:return: None
|
|
145
|
-
If the method is called asynchronously,
|
|
146
|
-
returns the request thread.
|
|
147
|
-
"""
|
|
148
|
-
kwargs['_return_http_data_only'] = True
|
|
149
|
-
if kwargs.get('async_req'):
|
|
150
|
-
return self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
151
|
-
else:
|
|
152
|
-
(data) = self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
153
|
-
return data
|
|
154
|
-
|
|
155
|
-
def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
156
|
-
"""Delete a group corresponding to an Id. # noqa: E501
|
|
157
|
-
|
|
158
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
159
|
-
asynchronous HTTP request, please pass async_req=True
|
|
160
|
-
>>> thread = api.delete_group_with_http_info(group_id, async_req=True)
|
|
161
|
-
>>> result = thread.get()
|
|
162
|
-
|
|
163
|
-
:param async_req bool
|
|
164
|
-
:param str group_id: The unique group id corresponding to the group to delete (required)
|
|
165
|
-
:return: None
|
|
166
|
-
If the method is called asynchronously,
|
|
167
|
-
returns the request thread.
|
|
168
|
-
"""
|
|
169
|
-
|
|
170
|
-
all_params = ['group_id'] # noqa: E501
|
|
171
|
-
all_params.append('async_req')
|
|
172
|
-
all_params.append('_return_http_data_only')
|
|
173
|
-
all_params.append('_preload_content')
|
|
174
|
-
all_params.append('_request_timeout')
|
|
175
|
-
|
|
176
|
-
params = locals()
|
|
177
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
178
|
-
if key not in all_params:
|
|
179
|
-
raise TypeError(
|
|
180
|
-
"Got an unexpected keyword argument '%s'"
|
|
181
|
-
" to method delete_group" % key
|
|
182
|
-
)
|
|
183
|
-
params[key] = val
|
|
184
|
-
del params['kwargs']
|
|
185
|
-
# verify the required parameter 'group_id' is set
|
|
186
|
-
if ('group_id' not in params or
|
|
187
|
-
params['group_id'] is None):
|
|
188
|
-
raise ValueError("Missing the required parameter `group_id` when calling `delete_group`") # noqa: E501
|
|
189
|
-
|
|
190
|
-
collection_formats = {}
|
|
191
|
-
|
|
192
|
-
path_params = {}
|
|
193
|
-
if 'group_id' in params:
|
|
194
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
195
|
-
|
|
196
|
-
query_params = []
|
|
197
|
-
|
|
198
|
-
header_params = {}
|
|
199
|
-
|
|
200
|
-
form_params = []
|
|
201
|
-
local_var_files = {}
|
|
202
|
-
|
|
203
|
-
body_params = None
|
|
204
|
-
# HTTP header `Accept`
|
|
205
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
206
|
-
['application/json', 'text/json']) # noqa: E501
|
|
207
|
-
|
|
208
|
-
# Authentication setting
|
|
209
|
-
auth_settings = [] # noqa: E501
|
|
210
|
-
|
|
211
|
-
return self.api_client.call_api(
|
|
212
|
-
'/teamdbapi/v2.0/group/{groupId}', 'DELETE',
|
|
213
|
-
path_params,
|
|
214
|
-
query_params,
|
|
215
|
-
header_params,
|
|
216
|
-
body=body_params,
|
|
217
|
-
post_params=form_params,
|
|
218
|
-
files=local_var_files,
|
|
219
|
-
response_type=None, # noqa: E501
|
|
220
|
-
auth_settings=auth_settings,
|
|
221
|
-
async_req=params.get('async_req'),
|
|
222
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
223
|
-
_preload_content=params.get('_preload_content', True),
|
|
224
|
-
_request_timeout=params.get('_request_timeout'),
|
|
225
|
-
collection_formats=collection_formats)
|
|
226
|
-
|
|
227
|
-
def get_group(self, group_id, **kwargs): # noqa: E501
|
|
228
|
-
"""Get a group via its Id # noqa: E501
|
|
229
|
-
|
|
230
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
231
|
-
asynchronous HTTP request, please pass async_req=True
|
|
232
|
-
>>> thread = api.get_group(group_id, async_req=True)
|
|
233
|
-
>>> result = thread.get()
|
|
234
|
-
|
|
235
|
-
:param async_req bool
|
|
236
|
-
:param str group_id: The unique group id to which you want to get the group (required)
|
|
237
|
-
:return: Group
|
|
238
|
-
If the method is called asynchronously,
|
|
239
|
-
returns the request thread.
|
|
240
|
-
"""
|
|
241
|
-
kwargs['_return_http_data_only'] = True
|
|
242
|
-
if kwargs.get('async_req'):
|
|
243
|
-
return self.get_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
244
|
-
else:
|
|
245
|
-
(data) = self.get_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
246
|
-
return data
|
|
247
|
-
|
|
248
|
-
def get_group_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
249
|
-
"""Get a group via its Id # noqa: E501
|
|
250
|
-
|
|
251
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
252
|
-
asynchronous HTTP request, please pass async_req=True
|
|
253
|
-
>>> thread = api.get_group_with_http_info(group_id, async_req=True)
|
|
254
|
-
>>> result = thread.get()
|
|
255
|
-
|
|
256
|
-
:param async_req bool
|
|
257
|
-
:param str group_id: The unique group id to which you want to get the group (required)
|
|
258
|
-
:return: Group
|
|
259
|
-
If the method is called asynchronously,
|
|
260
|
-
returns the request thread.
|
|
261
|
-
"""
|
|
262
|
-
|
|
263
|
-
all_params = ['group_id'] # noqa: E501
|
|
264
|
-
all_params.append('async_req')
|
|
265
|
-
all_params.append('_return_http_data_only')
|
|
266
|
-
all_params.append('_preload_content')
|
|
267
|
-
all_params.append('_request_timeout')
|
|
268
|
-
|
|
269
|
-
params = locals()
|
|
270
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
271
|
-
if key not in all_params:
|
|
272
|
-
raise TypeError(
|
|
273
|
-
"Got an unexpected keyword argument '%s'"
|
|
274
|
-
" to method get_group" % key
|
|
275
|
-
)
|
|
276
|
-
params[key] = val
|
|
277
|
-
del params['kwargs']
|
|
278
|
-
# verify the required parameter 'group_id' is set
|
|
279
|
-
if ('group_id' not in params or
|
|
280
|
-
params['group_id'] is None):
|
|
281
|
-
raise ValueError("Missing the required parameter `group_id` when calling `get_group`") # noqa: E501
|
|
282
|
-
|
|
283
|
-
collection_formats = {}
|
|
284
|
-
|
|
285
|
-
path_params = {}
|
|
286
|
-
if 'group_id' in params:
|
|
287
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
288
|
-
|
|
289
|
-
query_params = []
|
|
290
|
-
|
|
291
|
-
header_params = {}
|
|
292
|
-
|
|
293
|
-
form_params = []
|
|
294
|
-
local_var_files = {}
|
|
295
|
-
|
|
296
|
-
body_params = None
|
|
297
|
-
# HTTP header `Accept`
|
|
298
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
299
|
-
['application/json', 'text/json']) # noqa: E501
|
|
300
|
-
|
|
301
|
-
# Authentication setting
|
|
302
|
-
auth_settings = [] # noqa: E501
|
|
303
|
-
|
|
304
|
-
return self.api_client.call_api(
|
|
305
|
-
'/teamdbapi/v2.0/group/{groupId}', 'GET',
|
|
306
|
-
path_params,
|
|
307
|
-
query_params,
|
|
308
|
-
header_params,
|
|
309
|
-
body=body_params,
|
|
310
|
-
post_params=form_params,
|
|
311
|
-
files=local_var_files,
|
|
312
|
-
response_type='Group', # noqa: E501
|
|
313
|
-
auth_settings=auth_settings,
|
|
314
|
-
async_req=params.get('async_req'),
|
|
315
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
316
|
-
_preload_content=params.get('_preload_content', True),
|
|
317
|
-
_request_timeout=params.get('_request_timeout'),
|
|
318
|
-
collection_formats=collection_formats)
|
|
319
|
-
|
|
320
|
-
def get_group_full_path(self, group_id, **kwargs): # noqa: E501
|
|
321
|
-
"""Get the full path of a group via its Id # noqa: E501
|
|
322
|
-
|
|
323
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
324
|
-
asynchronous HTTP request, please pass async_req=True
|
|
325
|
-
>>> thread = api.get_group_full_path(group_id, async_req=True)
|
|
326
|
-
>>> result = thread.get()
|
|
327
|
-
|
|
328
|
-
:param async_req bool
|
|
329
|
-
:param str group_id: The unique group id to which you want the full path. (required)
|
|
330
|
-
:return: str
|
|
331
|
-
If the method is called asynchronously,
|
|
332
|
-
returns the request thread.
|
|
333
|
-
"""
|
|
334
|
-
kwargs['_return_http_data_only'] = True
|
|
335
|
-
if kwargs.get('async_req'):
|
|
336
|
-
return self.get_group_full_path_with_http_info(group_id, **kwargs) # noqa: E501
|
|
337
|
-
else:
|
|
338
|
-
(data) = self.get_group_full_path_with_http_info(group_id, **kwargs) # noqa: E501
|
|
339
|
-
return data
|
|
340
|
-
|
|
341
|
-
def get_group_full_path_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
342
|
-
"""Get the full path of a group via its Id # noqa: E501
|
|
343
|
-
|
|
344
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
345
|
-
asynchronous HTTP request, please pass async_req=True
|
|
346
|
-
>>> thread = api.get_group_full_path_with_http_info(group_id, async_req=True)
|
|
347
|
-
>>> result = thread.get()
|
|
348
|
-
|
|
349
|
-
:param async_req bool
|
|
350
|
-
:param str group_id: The unique group id to which you want the full path. (required)
|
|
351
|
-
:return: str
|
|
352
|
-
If the method is called asynchronously,
|
|
353
|
-
returns the request thread.
|
|
354
|
-
"""
|
|
355
|
-
|
|
356
|
-
all_params = ['group_id'] # noqa: E501
|
|
357
|
-
all_params.append('async_req')
|
|
358
|
-
all_params.append('_return_http_data_only')
|
|
359
|
-
all_params.append('_preload_content')
|
|
360
|
-
all_params.append('_request_timeout')
|
|
361
|
-
|
|
362
|
-
params = locals()
|
|
363
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
364
|
-
if key not in all_params:
|
|
365
|
-
raise TypeError(
|
|
366
|
-
"Got an unexpected keyword argument '%s'"
|
|
367
|
-
" to method get_group_full_path" % key
|
|
368
|
-
)
|
|
369
|
-
params[key] = val
|
|
370
|
-
del params['kwargs']
|
|
371
|
-
# verify the required parameter 'group_id' is set
|
|
372
|
-
if ('group_id' not in params or
|
|
373
|
-
params['group_id'] is None):
|
|
374
|
-
raise ValueError("Missing the required parameter `group_id` when calling `get_group_full_path`") # noqa: E501
|
|
375
|
-
|
|
376
|
-
collection_formats = {}
|
|
377
|
-
|
|
378
|
-
path_params = {}
|
|
379
|
-
if 'group_id' in params:
|
|
380
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
381
|
-
|
|
382
|
-
query_params = []
|
|
383
|
-
|
|
384
|
-
header_params = {}
|
|
385
|
-
|
|
386
|
-
form_params = []
|
|
387
|
-
local_var_files = {}
|
|
388
|
-
|
|
389
|
-
body_params = None
|
|
390
|
-
# HTTP header `Accept`
|
|
391
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
392
|
-
['application/json', 'text/json']) # noqa: E501
|
|
393
|
-
|
|
394
|
-
# Authentication setting
|
|
395
|
-
auth_settings = [] # noqa: E501
|
|
396
|
-
|
|
397
|
-
return self.api_client.call_api(
|
|
398
|
-
'/teamdbapi/v2.0/group/{groupId}/fullpath', 'GET',
|
|
399
|
-
path_params,
|
|
400
|
-
query_params,
|
|
401
|
-
header_params,
|
|
402
|
-
body=body_params,
|
|
403
|
-
post_params=form_params,
|
|
404
|
-
files=local_var_files,
|
|
405
|
-
response_type='str', # noqa: E501
|
|
406
|
-
auth_settings=auth_settings,
|
|
407
|
-
async_req=params.get('async_req'),
|
|
408
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
409
|
-
_preload_content=params.get('_preload_content', True),
|
|
410
|
-
_request_timeout=params.get('_request_timeout'),
|
|
411
|
-
collection_formats=collection_formats)
|
|
412
|
-
|
|
413
|
-
def get_groups(self, version_id, **kwargs): # noqa: E501
|
|
414
|
-
"""Get all groups for a given version # noqa: E501
|
|
415
|
-
|
|
416
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
417
|
-
asynchronous HTTP request, please pass async_req=True
|
|
418
|
-
>>> thread = api.get_groups(version_id, async_req=True)
|
|
419
|
-
>>> result = thread.get()
|
|
420
|
-
|
|
421
|
-
:param async_req bool
|
|
422
|
-
:param str version_id: The unique version id to which you want the groups. (required)
|
|
423
|
-
:return: list[Group]
|
|
424
|
-
If the method is called asynchronously,
|
|
425
|
-
returns the request thread.
|
|
426
|
-
"""
|
|
427
|
-
kwargs['_return_http_data_only'] = True
|
|
428
|
-
if kwargs.get('async_req'):
|
|
429
|
-
return self.get_groups_with_http_info(version_id, **kwargs) # noqa: E501
|
|
430
|
-
else:
|
|
431
|
-
(data) = self.get_groups_with_http_info(version_id, **kwargs) # noqa: E501
|
|
432
|
-
return data
|
|
433
|
-
|
|
434
|
-
def get_groups_with_http_info(self, version_id, **kwargs): # noqa: E501
|
|
435
|
-
"""Get all groups for a given version # noqa: E501
|
|
436
|
-
|
|
437
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
438
|
-
asynchronous HTTP request, please pass async_req=True
|
|
439
|
-
>>> thread = api.get_groups_with_http_info(version_id, async_req=True)
|
|
440
|
-
>>> result = thread.get()
|
|
441
|
-
|
|
442
|
-
:param async_req bool
|
|
443
|
-
:param str version_id: The unique version id to which you want the groups. (required)
|
|
444
|
-
:return: list[Group]
|
|
445
|
-
If the method is called asynchronously,
|
|
446
|
-
returns the request thread.
|
|
447
|
-
"""
|
|
448
|
-
|
|
449
|
-
all_params = ['version_id'] # noqa: E501
|
|
450
|
-
all_params.append('async_req')
|
|
451
|
-
all_params.append('_return_http_data_only')
|
|
452
|
-
all_params.append('_preload_content')
|
|
453
|
-
all_params.append('_request_timeout')
|
|
454
|
-
|
|
455
|
-
params = locals()
|
|
456
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
457
|
-
if key not in all_params:
|
|
458
|
-
raise TypeError(
|
|
459
|
-
"Got an unexpected keyword argument '%s'"
|
|
460
|
-
" to method get_groups" % key
|
|
461
|
-
)
|
|
462
|
-
params[key] = val
|
|
463
|
-
del params['kwargs']
|
|
464
|
-
# verify the required parameter 'version_id' is set
|
|
465
|
-
if ('version_id' not in params or
|
|
466
|
-
params['version_id'] is None):
|
|
467
|
-
raise ValueError("Missing the required parameter `version_id` when calling `get_groups`") # noqa: E501
|
|
468
|
-
|
|
469
|
-
collection_formats = {}
|
|
470
|
-
|
|
471
|
-
path_params = {}
|
|
472
|
-
if 'version_id' in params:
|
|
473
|
-
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
474
|
-
|
|
475
|
-
query_params = []
|
|
476
|
-
|
|
477
|
-
header_params = {}
|
|
478
|
-
|
|
479
|
-
form_params = []
|
|
480
|
-
local_var_files = {}
|
|
481
|
-
|
|
482
|
-
body_params = None
|
|
483
|
-
# HTTP header `Accept`
|
|
484
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
485
|
-
['application/json', 'text/json']) # noqa: E501
|
|
486
|
-
|
|
487
|
-
# Authentication setting
|
|
488
|
-
auth_settings = [] # noqa: E501
|
|
489
|
-
|
|
490
|
-
return self.api_client.call_api(
|
|
491
|
-
'/teamdbapi/v2.0/version/{versionId}/groups', 'GET',
|
|
492
|
-
path_params,
|
|
493
|
-
query_params,
|
|
494
|
-
header_params,
|
|
495
|
-
body=body_params,
|
|
496
|
-
post_params=form_params,
|
|
497
|
-
files=local_var_files,
|
|
498
|
-
response_type='list[Group]', # noqa: E501
|
|
499
|
-
auth_settings=auth_settings,
|
|
500
|
-
async_req=params.get('async_req'),
|
|
501
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
502
|
-
_preload_content=params.get('_preload_content', True),
|
|
503
|
-
_request_timeout=params.get('_request_timeout'),
|
|
504
|
-
collection_formats=collection_formats)
|
|
505
|
-
|
|
506
|
-
def update_group(self, body, group_id, **kwargs): # noqa: E501
|
|
507
|
-
"""Update a group # noqa: E501
|
|
508
|
-
|
|
509
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
510
|
-
asynchronous HTTP request, please pass async_req=True
|
|
511
|
-
>>> thread = api.update_group(body, group_id, async_req=True)
|
|
512
|
-
>>> result = thread.get()
|
|
513
|
-
|
|
514
|
-
:param async_req bool
|
|
515
|
-
:param Group body: The group to update. (required)
|
|
516
|
-
:param str group_id: The group id corresponding to the group you want to update. (required)
|
|
517
|
-
:return: Group
|
|
518
|
-
If the method is called asynchronously,
|
|
519
|
-
returns the request thread.
|
|
520
|
-
"""
|
|
521
|
-
kwargs['_return_http_data_only'] = True
|
|
522
|
-
if kwargs.get('async_req'):
|
|
523
|
-
return self.update_group_with_http_info(body, group_id, **kwargs) # noqa: E501
|
|
524
|
-
else:
|
|
525
|
-
(data) = self.update_group_with_http_info(body, group_id, **kwargs) # noqa: E501
|
|
526
|
-
return data
|
|
527
|
-
|
|
528
|
-
def update_group_with_http_info(self, body, group_id, **kwargs): # noqa: E501
|
|
529
|
-
"""Update a group # noqa: E501
|
|
530
|
-
|
|
531
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
532
|
-
asynchronous HTTP request, please pass async_req=True
|
|
533
|
-
>>> thread = api.update_group_with_http_info(body, group_id, async_req=True)
|
|
534
|
-
>>> result = thread.get()
|
|
535
|
-
|
|
536
|
-
:param async_req bool
|
|
537
|
-
:param Group body: The group to update. (required)
|
|
538
|
-
:param str group_id: The group id corresponding to the group you want to update. (required)
|
|
539
|
-
:return: Group
|
|
540
|
-
If the method is called asynchronously,
|
|
541
|
-
returns the request thread.
|
|
542
|
-
"""
|
|
543
|
-
|
|
544
|
-
all_params = ['body', 'group_id'] # noqa: E501
|
|
545
|
-
all_params.append('async_req')
|
|
546
|
-
all_params.append('_return_http_data_only')
|
|
547
|
-
all_params.append('_preload_content')
|
|
548
|
-
all_params.append('_request_timeout')
|
|
549
|
-
|
|
550
|
-
params = locals()
|
|
551
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
552
|
-
if key not in all_params:
|
|
553
|
-
raise TypeError(
|
|
554
|
-
"Got an unexpected keyword argument '%s'"
|
|
555
|
-
" to method update_group" % key
|
|
556
|
-
)
|
|
557
|
-
params[key] = val
|
|
558
|
-
del params['kwargs']
|
|
559
|
-
# verify the required parameter 'body' is set
|
|
560
|
-
if ('body' not in params or
|
|
561
|
-
params['body'] is None):
|
|
562
|
-
raise ValueError("Missing the required parameter `body` when calling `update_group`") # noqa: E501
|
|
563
|
-
# verify the required parameter 'group_id' is set
|
|
564
|
-
if ('group_id' not in params or
|
|
565
|
-
params['group_id'] is None):
|
|
566
|
-
raise ValueError("Missing the required parameter `group_id` when calling `update_group`") # noqa: E501
|
|
567
|
-
|
|
568
|
-
collection_formats = {}
|
|
569
|
-
|
|
570
|
-
path_params = {}
|
|
571
|
-
if 'group_id' in params:
|
|
572
|
-
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
573
|
-
|
|
574
|
-
query_params = []
|
|
575
|
-
|
|
576
|
-
header_params = {}
|
|
577
|
-
|
|
578
|
-
form_params = []
|
|
579
|
-
local_var_files = {}
|
|
580
|
-
|
|
581
|
-
body_params = None
|
|
582
|
-
if 'body' in params:
|
|
583
|
-
body_params = params['body']
|
|
584
|
-
# HTTP header `Accept`
|
|
585
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
586
|
-
['application/json', 'text/json']) # noqa: E501
|
|
587
|
-
|
|
588
|
-
# HTTP header `Content-Type`
|
|
589
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
590
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
591
|
-
|
|
592
|
-
# Authentication setting
|
|
593
|
-
auth_settings = [] # noqa: E501
|
|
594
|
-
|
|
595
|
-
return self.api_client.call_api(
|
|
596
|
-
'/teamdbapi/v2.0/group/{groupId}', 'PUT',
|
|
597
|
-
path_params,
|
|
598
|
-
query_params,
|
|
599
|
-
header_params,
|
|
600
|
-
body=body_params,
|
|
601
|
-
post_params=form_params,
|
|
602
|
-
files=local_var_files,
|
|
603
|
-
response_type='Group', # noqa: E501
|
|
604
|
-
auth_settings=auth_settings,
|
|
605
|
-
async_req=params.get('async_req'),
|
|
606
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
607
|
-
_preload_content=params.get('_preload_content', True),
|
|
608
|
-
_request_timeout=params.get('_request_timeout'),
|
|
609
|
-
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 GroupApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def create_group(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a group # noqa: E501
|
|
37
|
+
|
|
38
|
+
Set Group.Id to Guid.Empty (00000000-0000-0000-0000-000000000000) in order to create a new group. The id will be generated by the server. # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.create_group(body, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param Group body: The group to create. (required)
|
|
46
|
+
:return: Group
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.create_group_with_http_info(body, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.create_group_with_http_info(body, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def create_group_with_http_info(self, body, **kwargs): # noqa: E501
|
|
58
|
+
"""Create a group # noqa: E501
|
|
59
|
+
|
|
60
|
+
Set Group.Id to Guid.Empty (00000000-0000-0000-0000-000000000000) in order to create a new group. The id will be generated by the server. # noqa: E501
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.create_group_with_http_info(body, async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param Group body: The group to create. (required)
|
|
68
|
+
:return: Group
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['body'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method create_group" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter 'body' is set
|
|
89
|
+
if ('body' not in params or
|
|
90
|
+
params['body'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `body` when calling `create_group`") # noqa: E501
|
|
92
|
+
|
|
93
|
+
collection_formats = {}
|
|
94
|
+
|
|
95
|
+
path_params = {}
|
|
96
|
+
|
|
97
|
+
query_params = []
|
|
98
|
+
|
|
99
|
+
header_params = {}
|
|
100
|
+
|
|
101
|
+
form_params = []
|
|
102
|
+
local_var_files = {}
|
|
103
|
+
|
|
104
|
+
body_params = None
|
|
105
|
+
if 'body' in params:
|
|
106
|
+
body_params = params['body']
|
|
107
|
+
# HTTP header `Accept`
|
|
108
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
109
|
+
['application/json', 'text/json']) # noqa: E501
|
|
110
|
+
|
|
111
|
+
# HTTP header `Content-Type`
|
|
112
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
113
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
114
|
+
|
|
115
|
+
# Authentication setting
|
|
116
|
+
auth_settings = [] # noqa: E501
|
|
117
|
+
|
|
118
|
+
return self.api_client.call_api(
|
|
119
|
+
'/teamdbapi/v2.0/group', 'POST',
|
|
120
|
+
path_params,
|
|
121
|
+
query_params,
|
|
122
|
+
header_params,
|
|
123
|
+
body=body_params,
|
|
124
|
+
post_params=form_params,
|
|
125
|
+
files=local_var_files,
|
|
126
|
+
response_type='Group', # noqa: E501
|
|
127
|
+
auth_settings=auth_settings,
|
|
128
|
+
async_req=params.get('async_req'),
|
|
129
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
130
|
+
_preload_content=params.get('_preload_content', True),
|
|
131
|
+
_request_timeout=params.get('_request_timeout'),
|
|
132
|
+
collection_formats=collection_formats)
|
|
133
|
+
|
|
134
|
+
def delete_group(self, group_id, **kwargs): # noqa: E501
|
|
135
|
+
"""Delete a group corresponding to an Id. # noqa: E501
|
|
136
|
+
|
|
137
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
138
|
+
asynchronous HTTP request, please pass async_req=True
|
|
139
|
+
>>> thread = api.delete_group(group_id, async_req=True)
|
|
140
|
+
>>> result = thread.get()
|
|
141
|
+
|
|
142
|
+
:param async_req bool
|
|
143
|
+
:param str group_id: The unique group id corresponding to the group to delete (required)
|
|
144
|
+
:return: None
|
|
145
|
+
If the method is called asynchronously,
|
|
146
|
+
returns the request thread.
|
|
147
|
+
"""
|
|
148
|
+
kwargs['_return_http_data_only'] = True
|
|
149
|
+
if kwargs.get('async_req'):
|
|
150
|
+
return self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
151
|
+
else:
|
|
152
|
+
(data) = self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
153
|
+
return data
|
|
154
|
+
|
|
155
|
+
def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
156
|
+
"""Delete a group corresponding to an Id. # noqa: E501
|
|
157
|
+
|
|
158
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
159
|
+
asynchronous HTTP request, please pass async_req=True
|
|
160
|
+
>>> thread = api.delete_group_with_http_info(group_id, async_req=True)
|
|
161
|
+
>>> result = thread.get()
|
|
162
|
+
|
|
163
|
+
:param async_req bool
|
|
164
|
+
:param str group_id: The unique group id corresponding to the group to delete (required)
|
|
165
|
+
:return: None
|
|
166
|
+
If the method is called asynchronously,
|
|
167
|
+
returns the request thread.
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
all_params = ['group_id'] # noqa: E501
|
|
171
|
+
all_params.append('async_req')
|
|
172
|
+
all_params.append('_return_http_data_only')
|
|
173
|
+
all_params.append('_preload_content')
|
|
174
|
+
all_params.append('_request_timeout')
|
|
175
|
+
|
|
176
|
+
params = locals()
|
|
177
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
178
|
+
if key not in all_params:
|
|
179
|
+
raise TypeError(
|
|
180
|
+
"Got an unexpected keyword argument '%s'"
|
|
181
|
+
" to method delete_group" % key
|
|
182
|
+
)
|
|
183
|
+
params[key] = val
|
|
184
|
+
del params['kwargs']
|
|
185
|
+
# verify the required parameter 'group_id' is set
|
|
186
|
+
if ('group_id' not in params or
|
|
187
|
+
params['group_id'] is None):
|
|
188
|
+
raise ValueError("Missing the required parameter `group_id` when calling `delete_group`") # noqa: E501
|
|
189
|
+
|
|
190
|
+
collection_formats = {}
|
|
191
|
+
|
|
192
|
+
path_params = {}
|
|
193
|
+
if 'group_id' in params:
|
|
194
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
195
|
+
|
|
196
|
+
query_params = []
|
|
197
|
+
|
|
198
|
+
header_params = {}
|
|
199
|
+
|
|
200
|
+
form_params = []
|
|
201
|
+
local_var_files = {}
|
|
202
|
+
|
|
203
|
+
body_params = None
|
|
204
|
+
# HTTP header `Accept`
|
|
205
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
206
|
+
['application/json', 'text/json']) # noqa: E501
|
|
207
|
+
|
|
208
|
+
# Authentication setting
|
|
209
|
+
auth_settings = [] # noqa: E501
|
|
210
|
+
|
|
211
|
+
return self.api_client.call_api(
|
|
212
|
+
'/teamdbapi/v2.0/group/{groupId}', 'DELETE',
|
|
213
|
+
path_params,
|
|
214
|
+
query_params,
|
|
215
|
+
header_params,
|
|
216
|
+
body=body_params,
|
|
217
|
+
post_params=form_params,
|
|
218
|
+
files=local_var_files,
|
|
219
|
+
response_type=None, # noqa: E501
|
|
220
|
+
auth_settings=auth_settings,
|
|
221
|
+
async_req=params.get('async_req'),
|
|
222
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
223
|
+
_preload_content=params.get('_preload_content', True),
|
|
224
|
+
_request_timeout=params.get('_request_timeout'),
|
|
225
|
+
collection_formats=collection_formats)
|
|
226
|
+
|
|
227
|
+
def get_group(self, group_id, **kwargs): # noqa: E501
|
|
228
|
+
"""Get a group via its Id # noqa: E501
|
|
229
|
+
|
|
230
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
231
|
+
asynchronous HTTP request, please pass async_req=True
|
|
232
|
+
>>> thread = api.get_group(group_id, async_req=True)
|
|
233
|
+
>>> result = thread.get()
|
|
234
|
+
|
|
235
|
+
:param async_req bool
|
|
236
|
+
:param str group_id: The unique group id to which you want to get the group (required)
|
|
237
|
+
:return: Group
|
|
238
|
+
If the method is called asynchronously,
|
|
239
|
+
returns the request thread.
|
|
240
|
+
"""
|
|
241
|
+
kwargs['_return_http_data_only'] = True
|
|
242
|
+
if kwargs.get('async_req'):
|
|
243
|
+
return self.get_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
244
|
+
else:
|
|
245
|
+
(data) = self.get_group_with_http_info(group_id, **kwargs) # noqa: E501
|
|
246
|
+
return data
|
|
247
|
+
|
|
248
|
+
def get_group_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
249
|
+
"""Get a group via its Id # noqa: E501
|
|
250
|
+
|
|
251
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
252
|
+
asynchronous HTTP request, please pass async_req=True
|
|
253
|
+
>>> thread = api.get_group_with_http_info(group_id, async_req=True)
|
|
254
|
+
>>> result = thread.get()
|
|
255
|
+
|
|
256
|
+
:param async_req bool
|
|
257
|
+
:param str group_id: The unique group id to which you want to get the group (required)
|
|
258
|
+
:return: Group
|
|
259
|
+
If the method is called asynchronously,
|
|
260
|
+
returns the request thread.
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
all_params = ['group_id'] # noqa: E501
|
|
264
|
+
all_params.append('async_req')
|
|
265
|
+
all_params.append('_return_http_data_only')
|
|
266
|
+
all_params.append('_preload_content')
|
|
267
|
+
all_params.append('_request_timeout')
|
|
268
|
+
|
|
269
|
+
params = locals()
|
|
270
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
271
|
+
if key not in all_params:
|
|
272
|
+
raise TypeError(
|
|
273
|
+
"Got an unexpected keyword argument '%s'"
|
|
274
|
+
" to method get_group" % key
|
|
275
|
+
)
|
|
276
|
+
params[key] = val
|
|
277
|
+
del params['kwargs']
|
|
278
|
+
# verify the required parameter 'group_id' is set
|
|
279
|
+
if ('group_id' not in params or
|
|
280
|
+
params['group_id'] is None):
|
|
281
|
+
raise ValueError("Missing the required parameter `group_id` when calling `get_group`") # noqa: E501
|
|
282
|
+
|
|
283
|
+
collection_formats = {}
|
|
284
|
+
|
|
285
|
+
path_params = {}
|
|
286
|
+
if 'group_id' in params:
|
|
287
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
288
|
+
|
|
289
|
+
query_params = []
|
|
290
|
+
|
|
291
|
+
header_params = {}
|
|
292
|
+
|
|
293
|
+
form_params = []
|
|
294
|
+
local_var_files = {}
|
|
295
|
+
|
|
296
|
+
body_params = None
|
|
297
|
+
# HTTP header `Accept`
|
|
298
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
299
|
+
['application/json', 'text/json']) # noqa: E501
|
|
300
|
+
|
|
301
|
+
# Authentication setting
|
|
302
|
+
auth_settings = [] # noqa: E501
|
|
303
|
+
|
|
304
|
+
return self.api_client.call_api(
|
|
305
|
+
'/teamdbapi/v2.0/group/{groupId}', 'GET',
|
|
306
|
+
path_params,
|
|
307
|
+
query_params,
|
|
308
|
+
header_params,
|
|
309
|
+
body=body_params,
|
|
310
|
+
post_params=form_params,
|
|
311
|
+
files=local_var_files,
|
|
312
|
+
response_type='Group', # noqa: E501
|
|
313
|
+
auth_settings=auth_settings,
|
|
314
|
+
async_req=params.get('async_req'),
|
|
315
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
316
|
+
_preload_content=params.get('_preload_content', True),
|
|
317
|
+
_request_timeout=params.get('_request_timeout'),
|
|
318
|
+
collection_formats=collection_formats)
|
|
319
|
+
|
|
320
|
+
def get_group_full_path(self, group_id, **kwargs): # noqa: E501
|
|
321
|
+
"""Get the full path of a group via its Id # noqa: E501
|
|
322
|
+
|
|
323
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
324
|
+
asynchronous HTTP request, please pass async_req=True
|
|
325
|
+
>>> thread = api.get_group_full_path(group_id, async_req=True)
|
|
326
|
+
>>> result = thread.get()
|
|
327
|
+
|
|
328
|
+
:param async_req bool
|
|
329
|
+
:param str group_id: The unique group id to which you want the full path. (required)
|
|
330
|
+
:return: str
|
|
331
|
+
If the method is called asynchronously,
|
|
332
|
+
returns the request thread.
|
|
333
|
+
"""
|
|
334
|
+
kwargs['_return_http_data_only'] = True
|
|
335
|
+
if kwargs.get('async_req'):
|
|
336
|
+
return self.get_group_full_path_with_http_info(group_id, **kwargs) # noqa: E501
|
|
337
|
+
else:
|
|
338
|
+
(data) = self.get_group_full_path_with_http_info(group_id, **kwargs) # noqa: E501
|
|
339
|
+
return data
|
|
340
|
+
|
|
341
|
+
def get_group_full_path_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
342
|
+
"""Get the full path of a group via its Id # noqa: E501
|
|
343
|
+
|
|
344
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
345
|
+
asynchronous HTTP request, please pass async_req=True
|
|
346
|
+
>>> thread = api.get_group_full_path_with_http_info(group_id, async_req=True)
|
|
347
|
+
>>> result = thread.get()
|
|
348
|
+
|
|
349
|
+
:param async_req bool
|
|
350
|
+
:param str group_id: The unique group id to which you want the full path. (required)
|
|
351
|
+
:return: str
|
|
352
|
+
If the method is called asynchronously,
|
|
353
|
+
returns the request thread.
|
|
354
|
+
"""
|
|
355
|
+
|
|
356
|
+
all_params = ['group_id'] # noqa: E501
|
|
357
|
+
all_params.append('async_req')
|
|
358
|
+
all_params.append('_return_http_data_only')
|
|
359
|
+
all_params.append('_preload_content')
|
|
360
|
+
all_params.append('_request_timeout')
|
|
361
|
+
|
|
362
|
+
params = locals()
|
|
363
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
364
|
+
if key not in all_params:
|
|
365
|
+
raise TypeError(
|
|
366
|
+
"Got an unexpected keyword argument '%s'"
|
|
367
|
+
" to method get_group_full_path" % key
|
|
368
|
+
)
|
|
369
|
+
params[key] = val
|
|
370
|
+
del params['kwargs']
|
|
371
|
+
# verify the required parameter 'group_id' is set
|
|
372
|
+
if ('group_id' not in params or
|
|
373
|
+
params['group_id'] is None):
|
|
374
|
+
raise ValueError("Missing the required parameter `group_id` when calling `get_group_full_path`") # noqa: E501
|
|
375
|
+
|
|
376
|
+
collection_formats = {}
|
|
377
|
+
|
|
378
|
+
path_params = {}
|
|
379
|
+
if 'group_id' in params:
|
|
380
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
381
|
+
|
|
382
|
+
query_params = []
|
|
383
|
+
|
|
384
|
+
header_params = {}
|
|
385
|
+
|
|
386
|
+
form_params = []
|
|
387
|
+
local_var_files = {}
|
|
388
|
+
|
|
389
|
+
body_params = None
|
|
390
|
+
# HTTP header `Accept`
|
|
391
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
392
|
+
['application/json', 'text/json']) # noqa: E501
|
|
393
|
+
|
|
394
|
+
# Authentication setting
|
|
395
|
+
auth_settings = [] # noqa: E501
|
|
396
|
+
|
|
397
|
+
return self.api_client.call_api(
|
|
398
|
+
'/teamdbapi/v2.0/group/{groupId}/fullpath', 'GET',
|
|
399
|
+
path_params,
|
|
400
|
+
query_params,
|
|
401
|
+
header_params,
|
|
402
|
+
body=body_params,
|
|
403
|
+
post_params=form_params,
|
|
404
|
+
files=local_var_files,
|
|
405
|
+
response_type='str', # noqa: E501
|
|
406
|
+
auth_settings=auth_settings,
|
|
407
|
+
async_req=params.get('async_req'),
|
|
408
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
409
|
+
_preload_content=params.get('_preload_content', True),
|
|
410
|
+
_request_timeout=params.get('_request_timeout'),
|
|
411
|
+
collection_formats=collection_formats)
|
|
412
|
+
|
|
413
|
+
def get_groups(self, version_id, **kwargs): # noqa: E501
|
|
414
|
+
"""Get all groups for a given version # noqa: E501
|
|
415
|
+
|
|
416
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
417
|
+
asynchronous HTTP request, please pass async_req=True
|
|
418
|
+
>>> thread = api.get_groups(version_id, async_req=True)
|
|
419
|
+
>>> result = thread.get()
|
|
420
|
+
|
|
421
|
+
:param async_req bool
|
|
422
|
+
:param str version_id: The unique version id to which you want the groups. (required)
|
|
423
|
+
:return: list[Group]
|
|
424
|
+
If the method is called asynchronously,
|
|
425
|
+
returns the request thread.
|
|
426
|
+
"""
|
|
427
|
+
kwargs['_return_http_data_only'] = True
|
|
428
|
+
if kwargs.get('async_req'):
|
|
429
|
+
return self.get_groups_with_http_info(version_id, **kwargs) # noqa: E501
|
|
430
|
+
else:
|
|
431
|
+
(data) = self.get_groups_with_http_info(version_id, **kwargs) # noqa: E501
|
|
432
|
+
return data
|
|
433
|
+
|
|
434
|
+
def get_groups_with_http_info(self, version_id, **kwargs): # noqa: E501
|
|
435
|
+
"""Get all groups for a given version # noqa: E501
|
|
436
|
+
|
|
437
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
438
|
+
asynchronous HTTP request, please pass async_req=True
|
|
439
|
+
>>> thread = api.get_groups_with_http_info(version_id, async_req=True)
|
|
440
|
+
>>> result = thread.get()
|
|
441
|
+
|
|
442
|
+
:param async_req bool
|
|
443
|
+
:param str version_id: The unique version id to which you want the groups. (required)
|
|
444
|
+
:return: list[Group]
|
|
445
|
+
If the method is called asynchronously,
|
|
446
|
+
returns the request thread.
|
|
447
|
+
"""
|
|
448
|
+
|
|
449
|
+
all_params = ['version_id'] # noqa: E501
|
|
450
|
+
all_params.append('async_req')
|
|
451
|
+
all_params.append('_return_http_data_only')
|
|
452
|
+
all_params.append('_preload_content')
|
|
453
|
+
all_params.append('_request_timeout')
|
|
454
|
+
|
|
455
|
+
params = locals()
|
|
456
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
457
|
+
if key not in all_params:
|
|
458
|
+
raise TypeError(
|
|
459
|
+
"Got an unexpected keyword argument '%s'"
|
|
460
|
+
" to method get_groups" % key
|
|
461
|
+
)
|
|
462
|
+
params[key] = val
|
|
463
|
+
del params['kwargs']
|
|
464
|
+
# verify the required parameter 'version_id' is set
|
|
465
|
+
if ('version_id' not in params or
|
|
466
|
+
params['version_id'] is None):
|
|
467
|
+
raise ValueError("Missing the required parameter `version_id` when calling `get_groups`") # noqa: E501
|
|
468
|
+
|
|
469
|
+
collection_formats = {}
|
|
470
|
+
|
|
471
|
+
path_params = {}
|
|
472
|
+
if 'version_id' in params:
|
|
473
|
+
path_params['versionId'] = params['version_id'] # noqa: E501
|
|
474
|
+
|
|
475
|
+
query_params = []
|
|
476
|
+
|
|
477
|
+
header_params = {}
|
|
478
|
+
|
|
479
|
+
form_params = []
|
|
480
|
+
local_var_files = {}
|
|
481
|
+
|
|
482
|
+
body_params = None
|
|
483
|
+
# HTTP header `Accept`
|
|
484
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
485
|
+
['application/json', 'text/json']) # noqa: E501
|
|
486
|
+
|
|
487
|
+
# Authentication setting
|
|
488
|
+
auth_settings = [] # noqa: E501
|
|
489
|
+
|
|
490
|
+
return self.api_client.call_api(
|
|
491
|
+
'/teamdbapi/v2.0/version/{versionId}/groups', 'GET',
|
|
492
|
+
path_params,
|
|
493
|
+
query_params,
|
|
494
|
+
header_params,
|
|
495
|
+
body=body_params,
|
|
496
|
+
post_params=form_params,
|
|
497
|
+
files=local_var_files,
|
|
498
|
+
response_type='list[Group]', # noqa: E501
|
|
499
|
+
auth_settings=auth_settings,
|
|
500
|
+
async_req=params.get('async_req'),
|
|
501
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
502
|
+
_preload_content=params.get('_preload_content', True),
|
|
503
|
+
_request_timeout=params.get('_request_timeout'),
|
|
504
|
+
collection_formats=collection_formats)
|
|
505
|
+
|
|
506
|
+
def update_group(self, body, group_id, **kwargs): # noqa: E501
|
|
507
|
+
"""Update a group # noqa: E501
|
|
508
|
+
|
|
509
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
510
|
+
asynchronous HTTP request, please pass async_req=True
|
|
511
|
+
>>> thread = api.update_group(body, group_id, async_req=True)
|
|
512
|
+
>>> result = thread.get()
|
|
513
|
+
|
|
514
|
+
:param async_req bool
|
|
515
|
+
:param Group body: The group to update. (required)
|
|
516
|
+
:param str group_id: The group id corresponding to the group you want to update. (required)
|
|
517
|
+
:return: Group
|
|
518
|
+
If the method is called asynchronously,
|
|
519
|
+
returns the request thread.
|
|
520
|
+
"""
|
|
521
|
+
kwargs['_return_http_data_only'] = True
|
|
522
|
+
if kwargs.get('async_req'):
|
|
523
|
+
return self.update_group_with_http_info(body, group_id, **kwargs) # noqa: E501
|
|
524
|
+
else:
|
|
525
|
+
(data) = self.update_group_with_http_info(body, group_id, **kwargs) # noqa: E501
|
|
526
|
+
return data
|
|
527
|
+
|
|
528
|
+
def update_group_with_http_info(self, body, group_id, **kwargs): # noqa: E501
|
|
529
|
+
"""Update a group # noqa: E501
|
|
530
|
+
|
|
531
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
532
|
+
asynchronous HTTP request, please pass async_req=True
|
|
533
|
+
>>> thread = api.update_group_with_http_info(body, group_id, async_req=True)
|
|
534
|
+
>>> result = thread.get()
|
|
535
|
+
|
|
536
|
+
:param async_req bool
|
|
537
|
+
:param Group body: The group to update. (required)
|
|
538
|
+
:param str group_id: The group id corresponding to the group you want to update. (required)
|
|
539
|
+
:return: Group
|
|
540
|
+
If the method is called asynchronously,
|
|
541
|
+
returns the request thread.
|
|
542
|
+
"""
|
|
543
|
+
|
|
544
|
+
all_params = ['body', 'group_id'] # noqa: E501
|
|
545
|
+
all_params.append('async_req')
|
|
546
|
+
all_params.append('_return_http_data_only')
|
|
547
|
+
all_params.append('_preload_content')
|
|
548
|
+
all_params.append('_request_timeout')
|
|
549
|
+
|
|
550
|
+
params = locals()
|
|
551
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
552
|
+
if key not in all_params:
|
|
553
|
+
raise TypeError(
|
|
554
|
+
"Got an unexpected keyword argument '%s'"
|
|
555
|
+
" to method update_group" % key
|
|
556
|
+
)
|
|
557
|
+
params[key] = val
|
|
558
|
+
del params['kwargs']
|
|
559
|
+
# verify the required parameter 'body' is set
|
|
560
|
+
if ('body' not in params or
|
|
561
|
+
params['body'] is None):
|
|
562
|
+
raise ValueError("Missing the required parameter `body` when calling `update_group`") # noqa: E501
|
|
563
|
+
# verify the required parameter 'group_id' is set
|
|
564
|
+
if ('group_id' not in params or
|
|
565
|
+
params['group_id'] is None):
|
|
566
|
+
raise ValueError("Missing the required parameter `group_id` when calling `update_group`") # noqa: E501
|
|
567
|
+
|
|
568
|
+
collection_formats = {}
|
|
569
|
+
|
|
570
|
+
path_params = {}
|
|
571
|
+
if 'group_id' in params:
|
|
572
|
+
path_params['groupId'] = params['group_id'] # noqa: E501
|
|
573
|
+
|
|
574
|
+
query_params = []
|
|
575
|
+
|
|
576
|
+
header_params = {}
|
|
577
|
+
|
|
578
|
+
form_params = []
|
|
579
|
+
local_var_files = {}
|
|
580
|
+
|
|
581
|
+
body_params = None
|
|
582
|
+
if 'body' in params:
|
|
583
|
+
body_params = params['body']
|
|
584
|
+
# HTTP header `Accept`
|
|
585
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
586
|
+
['application/json', 'text/json']) # noqa: E501
|
|
587
|
+
|
|
588
|
+
# HTTP header `Content-Type`
|
|
589
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
590
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
591
|
+
|
|
592
|
+
# Authentication setting
|
|
593
|
+
auth_settings = [] # noqa: E501
|
|
594
|
+
|
|
595
|
+
return self.api_client.call_api(
|
|
596
|
+
'/teamdbapi/v2.0/group/{groupId}', 'PUT',
|
|
597
|
+
path_params,
|
|
598
|
+
query_params,
|
|
599
|
+
header_params,
|
|
600
|
+
body=body_params,
|
|
601
|
+
post_params=form_params,
|
|
602
|
+
files=local_var_files,
|
|
603
|
+
response_type='Group', # noqa: E501
|
|
604
|
+
auth_settings=auth_settings,
|
|
605
|
+
async_req=params.get('async_req'),
|
|
606
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
607
|
+
_preload_content=params.get('_preload_content', True),
|
|
608
|
+
_request_timeout=params.get('_request_timeout'),
|
|
609
|
+
collection_formats=collection_formats)
|