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.
Files changed (94) hide show
  1. teamdbapi/__init__.py +11 -0
  2. teamdbapi/api/__init__.py +39 -34
  3. teamdbapi/api/assembly_api.py +2108 -2108
  4. teamdbapi/api/car_api.py +874 -874
  5. teamdbapi/api/component_api.py +954 -0
  6. teamdbapi/api/config_api.py +118 -118
  7. teamdbapi/api/criteria_api.py +126 -0
  8. teamdbapi/api/edit_api.py +433 -433
  9. teamdbapi/api/event_api.py +878 -878
  10. teamdbapi/api/fixed_field_api.py +320 -320
  11. teamdbapi/api/group_api.py +609 -609
  12. teamdbapi/api/import_export_api.py +828 -743
  13. teamdbapi/api/lap_api.py +708 -708
  14. teamdbapi/api/lap_report_api.py +490 -486
  15. teamdbapi/api/model_field_api.py +708 -708
  16. teamdbapi/api/mounting_api.py +219 -0
  17. teamdbapi/api/notes_authorization_api.py +324 -324
  18. teamdbapi/api/parameter_api.py +1176 -1176
  19. teamdbapi/api/part_api.py +304 -0
  20. teamdbapi/api/report_api.py +142 -142
  21. teamdbapi/api/revision_api.py +1420 -1420
  22. teamdbapi/api/revision_editor_selector_api.py +990 -990
  23. teamdbapi/api/run_api.py +603 -603
  24. teamdbapi/api/script_api.py +490 -490
  25. teamdbapi/api/session_api.py +720 -720
  26. teamdbapi/api/target_api.py +415 -415
  27. teamdbapi/api/team_db_list_api.py +987 -987
  28. teamdbapi/api/team_db_view_api.py +482 -482
  29. teamdbapi/api/tire_api.py +599 -599
  30. teamdbapi/api/tire_set_api.py +514 -514
  31. teamdbapi/api/track_api.py +506 -506
  32. teamdbapi/api/track_layout_api.py +514 -514
  33. teamdbapi/api/update_request_api.py +235 -0
  34. teamdbapi/api/user_api.py +474 -474
  35. teamdbapi/api/value_field_api.py +558 -558
  36. teamdbapi/api/version_api.py +449 -449
  37. teamdbapi/api_client.py +4 -8
  38. teamdbapi/configuration.py +6 -13
  39. teamdbapi/models/__init__.py +6 -0
  40. teamdbapi/models/assembly.py +1 -0
  41. teamdbapi/models/bleed_adjustment.py +1 -0
  42. teamdbapi/models/calibration.py +1 -0
  43. teamdbapi/models/car.py +1 -0
  44. teamdbapi/models/car_parameters_context.py +1 -0
  45. teamdbapi/models/compare_options.py +1 -0
  46. teamdbapi/models/compare_result.py +1 -0
  47. teamdbapi/models/compare_result_detail.py +2 -0
  48. teamdbapi/models/component.py +1217 -0
  49. teamdbapi/models/copy_from_tags_args.py +2 -0
  50. teamdbapi/models/couple_guid_text.py +1 -0
  51. teamdbapi/models/criteria.py +430 -0
  52. teamdbapi/models/criteria_value.py +197 -0
  53. teamdbapi/models/event.py +1 -0
  54. teamdbapi/models/fixed_field.py +2 -1
  55. teamdbapi/models/group.py +1 -0
  56. teamdbapi/models/import_parameters_args.py +1 -0
  57. teamdbapi/models/import_parameters_results.py +2 -0
  58. teamdbapi/models/item_value.py +1 -0
  59. teamdbapi/models/item_value_key.py +1 -0
  60. teamdbapi/models/lap.py +1 -0
  61. teamdbapi/models/lap_report_options.py +1 -0
  62. teamdbapi/models/model_field.py +3 -1
  63. teamdbapi/models/model_field_authorization.py +1 -0
  64. teamdbapi/models/mounting.py +489 -0
  65. teamdbapi/models/notes_authorization.py +1 -0
  66. teamdbapi/models/notes_context.py +1 -0
  67. teamdbapi/models/parameter.py +2 -0
  68. teamdbapi/models/parameter_cross_table.py +1 -0
  69. teamdbapi/models/part.py +963 -0
  70. teamdbapi/models/part_count.py +228 -0
  71. teamdbapi/models/problem_details.py +2 -6
  72. teamdbapi/models/revision.py +88 -3
  73. teamdbapi/models/revision_value.py +1 -0
  74. teamdbapi/models/run.py +1 -0
  75. teamdbapi/models/script.py +1 -0
  76. teamdbapi/models/session.py +1 -0
  77. teamdbapi/models/string_with_font_style.py +1 -0
  78. teamdbapi/models/target.py +64 -7
  79. teamdbapi/models/team_db_list.py +1 -0
  80. teamdbapi/models/team_db_list_item.py +1 -0
  81. teamdbapi/models/tire.py +2 -0
  82. teamdbapi/models/tire_set.py +2 -0
  83. teamdbapi/models/track.py +1 -0
  84. teamdbapi/models/track_layout.py +1 -0
  85. teamdbapi/models/user.py +1 -0
  86. teamdbapi/models/user_group.py +1 -0
  87. teamdbapi/models/value_field.py +1 -0
  88. teamdbapi/models/version.py +1 -0
  89. teamdbapi/rest.py +6 -1
  90. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +5 -5
  91. teamdbapi-3.0.0.dist-info/RECORD +93 -0
  92. teamdbapi-2.37.1.dist-info/RECORD +0 -82
  93. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
  94. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
@@ -1,490 +1,490 @@
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 ScriptApi(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 execute_script(self, id, **kwargs): # noqa: E501
36
- """[Command] Execute a Python script corresponding to a unique id # noqa: E501
37
-
38
- This method makes a synchronous HTTP request by default. To make an
39
- asynchronous HTTP request, please pass async_req=True
40
- >>> thread = api.execute_script(id, async_req=True)
41
- >>> result = thread.get()
42
-
43
- :param async_req bool
44
- :param str id: The unique Python script id that corresponds to the searched script (required)
45
- :return: Script
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.execute_script_with_http_info(id, **kwargs) # noqa: E501
52
- else:
53
- (data) = self.execute_script_with_http_info(id, **kwargs) # noqa: E501
54
- return data
55
-
56
- def execute_script_with_http_info(self, id, **kwargs): # noqa: E501
57
- """[Command] Execute a Python script corresponding to a unique id # noqa: E501
58
-
59
- This method makes a synchronous HTTP request by default. To make an
60
- asynchronous HTTP request, please pass async_req=True
61
- >>> thread = api.execute_script_with_http_info(id, async_req=True)
62
- >>> result = thread.get()
63
-
64
- :param async_req bool
65
- :param str id: The unique Python script id that corresponds to the searched script (required)
66
- :return: Script
67
- If the method is called asynchronously,
68
- returns the request thread.
69
- """
70
-
71
- all_params = ['id'] # 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 execute_script" % key
83
- )
84
- params[key] = val
85
- del params['kwargs']
86
- # verify the required parameter 'id' is set
87
- if ('id' not in params or
88
- params['id'] is None):
89
- raise ValueError("Missing the required parameter `id` when calling `execute_script`") # noqa: E501
90
-
91
- collection_formats = {}
92
-
93
- path_params = {}
94
- if 'id' in params:
95
- path_params['id'] = params['id'] # noqa: E501
96
-
97
- query_params = []
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/script/{id}/execute', 'POST',
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='Script', # 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 execute_script_by_name(self, name, **kwargs): # noqa: E501
129
- """Execute a Python script corresponding to the given name # 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.execute_script_by_name(name, async_req=True)
134
- >>> result = thread.get()
135
-
136
- :param async_req bool
137
- :param str name: The Python script unique name that corresponds to the searched script (required)
138
- :return: Script
139
- If the method is called asynchronously,
140
- returns the request thread.
141
- """
142
- kwargs['_return_http_data_only'] = True
143
- if kwargs.get('async_req'):
144
- return self.execute_script_by_name_with_http_info(name, **kwargs) # noqa: E501
145
- else:
146
- (data) = self.execute_script_by_name_with_http_info(name, **kwargs) # noqa: E501
147
- return data
148
-
149
- def execute_script_by_name_with_http_info(self, name, **kwargs): # noqa: E501
150
- """Execute a Python script corresponding to the given name # noqa: E501
151
-
152
- This method makes a synchronous HTTP request by default. To make an
153
- asynchronous HTTP request, please pass async_req=True
154
- >>> thread = api.execute_script_by_name_with_http_info(name, async_req=True)
155
- >>> result = thread.get()
156
-
157
- :param async_req bool
158
- :param str name: The Python script unique name that corresponds to the searched script (required)
159
- :return: Script
160
- If the method is called asynchronously,
161
- returns the request thread.
162
- """
163
-
164
- all_params = ['name'] # noqa: E501
165
- all_params.append('async_req')
166
- all_params.append('_return_http_data_only')
167
- all_params.append('_preload_content')
168
- all_params.append('_request_timeout')
169
-
170
- params = locals()
171
- for key, val in six.iteritems(params['kwargs']):
172
- if key not in all_params:
173
- raise TypeError(
174
- "Got an unexpected keyword argument '%s'"
175
- " to method execute_script_by_name" % key
176
- )
177
- params[key] = val
178
- del params['kwargs']
179
- # verify the required parameter 'name' is set
180
- if ('name' not in params or
181
- params['name'] is None):
182
- raise ValueError("Missing the required parameter `name` when calling `execute_script_by_name`") # noqa: E501
183
-
184
- collection_formats = {}
185
-
186
- path_params = {}
187
-
188
- query_params = []
189
- if 'name' in params:
190
- query_params.append(('name', params['name'])) # noqa: E501
191
-
192
- header_params = {}
193
-
194
- form_params = []
195
- local_var_files = {}
196
-
197
- body_params = None
198
- # HTTP header `Accept`
199
- header_params['Accept'] = self.api_client.select_header_accept(
200
- ['application/json', 'text/json']) # noqa: E501
201
-
202
- # Authentication setting
203
- auth_settings = [] # noqa: E501
204
-
205
- return self.api_client.call_api(
206
- '/teamdbapi/v2.0/script/executebyname', 'POST',
207
- path_params,
208
- query_params,
209
- header_params,
210
- body=body_params,
211
- post_params=form_params,
212
- files=local_var_files,
213
- response_type='Script', # noqa: E501
214
- auth_settings=auth_settings,
215
- async_req=params.get('async_req'),
216
- _return_http_data_only=params.get('_return_http_data_only'),
217
- _preload_content=params.get('_preload_content', True),
218
- _request_timeout=params.get('_request_timeout'),
219
- collection_formats=collection_formats)
220
-
221
- def get_script(self, id, **kwargs): # noqa: E501
222
- """Get a Python script corresponding to a unique id # noqa: E501
223
-
224
- This method makes a synchronous HTTP request by default. To make an
225
- asynchronous HTTP request, please pass async_req=True
226
- >>> thread = api.get_script(id, async_req=True)
227
- >>> result = thread.get()
228
-
229
- :param async_req bool
230
- :param str id: The unique Python script id that corresponds to the searched script (required)
231
- :return: Script
232
- If the method is called asynchronously,
233
- returns the request thread.
234
- """
235
- kwargs['_return_http_data_only'] = True
236
- if kwargs.get('async_req'):
237
- return self.get_script_with_http_info(id, **kwargs) # noqa: E501
238
- else:
239
- (data) = self.get_script_with_http_info(id, **kwargs) # noqa: E501
240
- return data
241
-
242
- def get_script_with_http_info(self, id, **kwargs): # noqa: E501
243
- """Get a Python script corresponding to a unique id # noqa: E501
244
-
245
- This method makes a synchronous HTTP request by default. To make an
246
- asynchronous HTTP request, please pass async_req=True
247
- >>> thread = api.get_script_with_http_info(id, async_req=True)
248
- >>> result = thread.get()
249
-
250
- :param async_req bool
251
- :param str id: The unique Python script id that corresponds to the searched script (required)
252
- :return: Script
253
- If the method is called asynchronously,
254
- returns the request thread.
255
- """
256
-
257
- all_params = ['id'] # noqa: E501
258
- all_params.append('async_req')
259
- all_params.append('_return_http_data_only')
260
- all_params.append('_preload_content')
261
- all_params.append('_request_timeout')
262
-
263
- params = locals()
264
- for key, val in six.iteritems(params['kwargs']):
265
- if key not in all_params:
266
- raise TypeError(
267
- "Got an unexpected keyword argument '%s'"
268
- " to method get_script" % key
269
- )
270
- params[key] = val
271
- del params['kwargs']
272
- # verify the required parameter 'id' is set
273
- if ('id' not in params or
274
- params['id'] is None):
275
- raise ValueError("Missing the required parameter `id` when calling `get_script`") # noqa: E501
276
-
277
- collection_formats = {}
278
-
279
- path_params = {}
280
- if 'id' in params:
281
- path_params['id'] = params['id'] # noqa: E501
282
-
283
- query_params = []
284
-
285
- header_params = {}
286
-
287
- form_params = []
288
- local_var_files = {}
289
-
290
- body_params = None
291
- # HTTP header `Accept`
292
- header_params['Accept'] = self.api_client.select_header_accept(
293
- ['application/json', 'text/json']) # noqa: E501
294
-
295
- # Authentication setting
296
- auth_settings = [] # noqa: E501
297
-
298
- return self.api_client.call_api(
299
- '/teamdbapi/v2.0/script/{id}', 'GET',
300
- path_params,
301
- query_params,
302
- header_params,
303
- body=body_params,
304
- post_params=form_params,
305
- files=local_var_files,
306
- response_type='Script', # noqa: E501
307
- auth_settings=auth_settings,
308
- async_req=params.get('async_req'),
309
- _return_http_data_only=params.get('_return_http_data_only'),
310
- _preload_content=params.get('_preload_content', True),
311
- _request_timeout=params.get('_request_timeout'),
312
- collection_formats=collection_formats)
313
-
314
- def get_script_by_name(self, name, **kwargs): # noqa: E501
315
- """Get a Python script corresponding to the given name # noqa: E501
316
-
317
- This method makes a synchronous HTTP request by default. To make an
318
- asynchronous HTTP request, please pass async_req=True
319
- >>> thread = api.get_script_by_name(name, async_req=True)
320
- >>> result = thread.get()
321
-
322
- :param async_req bool
323
- :param str name: The Python script unique name that corresponds to the searched script (required)
324
- :return: Script
325
- If the method is called asynchronously,
326
- returns the request thread.
327
- """
328
- kwargs['_return_http_data_only'] = True
329
- if kwargs.get('async_req'):
330
- return self.get_script_by_name_with_http_info(name, **kwargs) # noqa: E501
331
- else:
332
- (data) = self.get_script_by_name_with_http_info(name, **kwargs) # noqa: E501
333
- return data
334
-
335
- def get_script_by_name_with_http_info(self, name, **kwargs): # noqa: E501
336
- """Get a Python script corresponding to the given name # noqa: E501
337
-
338
- This method makes a synchronous HTTP request by default. To make an
339
- asynchronous HTTP request, please pass async_req=True
340
- >>> thread = api.get_script_by_name_with_http_info(name, async_req=True)
341
- >>> result = thread.get()
342
-
343
- :param async_req bool
344
- :param str name: The Python script unique name that corresponds to the searched script (required)
345
- :return: Script
346
- If the method is called asynchronously,
347
- returns the request thread.
348
- """
349
-
350
- all_params = ['name'] # noqa: E501
351
- all_params.append('async_req')
352
- all_params.append('_return_http_data_only')
353
- all_params.append('_preload_content')
354
- all_params.append('_request_timeout')
355
-
356
- params = locals()
357
- for key, val in six.iteritems(params['kwargs']):
358
- if key not in all_params:
359
- raise TypeError(
360
- "Got an unexpected keyword argument '%s'"
361
- " to method get_script_by_name" % key
362
- )
363
- params[key] = val
364
- del params['kwargs']
365
- # verify the required parameter 'name' is set
366
- if ('name' not in params or
367
- params['name'] is None):
368
- raise ValueError("Missing the required parameter `name` when calling `get_script_by_name`") # noqa: E501
369
-
370
- collection_formats = {}
371
-
372
- path_params = {}
373
-
374
- query_params = []
375
- if 'name' in params:
376
- query_params.append(('name', params['name'])) # noqa: E501
377
-
378
- header_params = {}
379
-
380
- form_params = []
381
- local_var_files = {}
382
-
383
- body_params = None
384
- # HTTP header `Accept`
385
- header_params['Accept'] = self.api_client.select_header_accept(
386
- ['application/json', 'text/json']) # noqa: E501
387
-
388
- # Authentication setting
389
- auth_settings = [] # noqa: E501
390
-
391
- return self.api_client.call_api(
392
- '/teamdbapi/v2.0/script', 'GET',
393
- path_params,
394
- query_params,
395
- header_params,
396
- body=body_params,
397
- post_params=form_params,
398
- files=local_var_files,
399
- response_type='Script', # noqa: E501
400
- auth_settings=auth_settings,
401
- async_req=params.get('async_req'),
402
- _return_http_data_only=params.get('_return_http_data_only'),
403
- _preload_content=params.get('_preload_content', True),
404
- _request_timeout=params.get('_request_timeout'),
405
- collection_formats=collection_formats)
406
-
407
- def get_scripts(self, **kwargs): # noqa: E501
408
- """Get the list of all Python scripts allowed to be executed from the API. # noqa: E501
409
-
410
- This method makes a synchronous HTTP request by default. To make an
411
- asynchronous HTTP request, please pass async_req=True
412
- >>> thread = api.get_scripts(async_req=True)
413
- >>> result = thread.get()
414
-
415
- :param async_req bool
416
- :return: list[Script]
417
- If the method is called asynchronously,
418
- returns the request thread.
419
- """
420
- kwargs['_return_http_data_only'] = True
421
- if kwargs.get('async_req'):
422
- return self.get_scripts_with_http_info(**kwargs) # noqa: E501
423
- else:
424
- (data) = self.get_scripts_with_http_info(**kwargs) # noqa: E501
425
- return data
426
-
427
- def get_scripts_with_http_info(self, **kwargs): # noqa: E501
428
- """Get the list of all Python scripts allowed to be executed from the API. # noqa: E501
429
-
430
- This method makes a synchronous HTTP request by default. To make an
431
- asynchronous HTTP request, please pass async_req=True
432
- >>> thread = api.get_scripts_with_http_info(async_req=True)
433
- >>> result = thread.get()
434
-
435
- :param async_req bool
436
- :return: list[Script]
437
- If the method is called asynchronously,
438
- returns the request thread.
439
- """
440
-
441
- all_params = [] # noqa: E501
442
- all_params.append('async_req')
443
- all_params.append('_return_http_data_only')
444
- all_params.append('_preload_content')
445
- all_params.append('_request_timeout')
446
-
447
- params = locals()
448
- for key, val in six.iteritems(params['kwargs']):
449
- if key not in all_params:
450
- raise TypeError(
451
- "Got an unexpected keyword argument '%s'"
452
- " to method get_scripts" % key
453
- )
454
- params[key] = val
455
- del params['kwargs']
456
-
457
- collection_formats = {}
458
-
459
- path_params = {}
460
-
461
- query_params = []
462
-
463
- header_params = {}
464
-
465
- form_params = []
466
- local_var_files = {}
467
-
468
- body_params = None
469
- # HTTP header `Accept`
470
- header_params['Accept'] = self.api_client.select_header_accept(
471
- ['application/json', 'text/json']) # noqa: E501
472
-
473
- # Authentication setting
474
- auth_settings = [] # noqa: E501
475
-
476
- return self.api_client.call_api(
477
- '/teamdbapi/v2.0/scripts', 'GET',
478
- path_params,
479
- query_params,
480
- header_params,
481
- body=body_params,
482
- post_params=form_params,
483
- files=local_var_files,
484
- response_type='list[Script]', # noqa: E501
485
- auth_settings=auth_settings,
486
- async_req=params.get('async_req'),
487
- _return_http_data_only=params.get('_return_http_data_only'),
488
- _preload_content=params.get('_preload_content', True),
489
- _request_timeout=params.get('_request_timeout'),
490
- 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 ScriptApi(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 execute_script(self, id, **kwargs): # noqa: E501
36
+ """[Command] Execute a Python script corresponding to a unique id # noqa: E501
37
+
38
+ This method makes a synchronous HTTP request by default. To make an
39
+ asynchronous HTTP request, please pass async_req=True
40
+ >>> thread = api.execute_script(id, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param str id: The unique Python script id that corresponds to the searched script (required)
45
+ :return: Script
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.execute_script_with_http_info(id, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.execute_script_with_http_info(id, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def execute_script_with_http_info(self, id, **kwargs): # noqa: E501
57
+ """[Command] Execute a Python script corresponding to a unique id # noqa: E501
58
+
59
+ This method makes a synchronous HTTP request by default. To make an
60
+ asynchronous HTTP request, please pass async_req=True
61
+ >>> thread = api.execute_script_with_http_info(id, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param str id: The unique Python script id that corresponds to the searched script (required)
66
+ :return: Script
67
+ If the method is called asynchronously,
68
+ returns the request thread.
69
+ """
70
+
71
+ all_params = ['id'] # 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 execute_script" % key
83
+ )
84
+ params[key] = val
85
+ del params['kwargs']
86
+ # verify the required parameter 'id' is set
87
+ if ('id' not in params or
88
+ params['id'] is None):
89
+ raise ValueError("Missing the required parameter `id` when calling `execute_script`") # noqa: E501
90
+
91
+ collection_formats = {}
92
+
93
+ path_params = {}
94
+ if 'id' in params:
95
+ path_params['id'] = params['id'] # noqa: E501
96
+
97
+ query_params = []
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/script/{id}/execute', 'POST',
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='Script', # 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 execute_script_by_name(self, name, **kwargs): # noqa: E501
129
+ """Execute a Python script corresponding to the given name # 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.execute_script_by_name(name, async_req=True)
134
+ >>> result = thread.get()
135
+
136
+ :param async_req bool
137
+ :param str name: The Python script unique name that corresponds to the searched script (required)
138
+ :return: Script
139
+ If the method is called asynchronously,
140
+ returns the request thread.
141
+ """
142
+ kwargs['_return_http_data_only'] = True
143
+ if kwargs.get('async_req'):
144
+ return self.execute_script_by_name_with_http_info(name, **kwargs) # noqa: E501
145
+ else:
146
+ (data) = self.execute_script_by_name_with_http_info(name, **kwargs) # noqa: E501
147
+ return data
148
+
149
+ def execute_script_by_name_with_http_info(self, name, **kwargs): # noqa: E501
150
+ """Execute a Python script corresponding to the given name # noqa: E501
151
+
152
+ This method makes a synchronous HTTP request by default. To make an
153
+ asynchronous HTTP request, please pass async_req=True
154
+ >>> thread = api.execute_script_by_name_with_http_info(name, async_req=True)
155
+ >>> result = thread.get()
156
+
157
+ :param async_req bool
158
+ :param str name: The Python script unique name that corresponds to the searched script (required)
159
+ :return: Script
160
+ If the method is called asynchronously,
161
+ returns the request thread.
162
+ """
163
+
164
+ all_params = ['name'] # noqa: E501
165
+ all_params.append('async_req')
166
+ all_params.append('_return_http_data_only')
167
+ all_params.append('_preload_content')
168
+ all_params.append('_request_timeout')
169
+
170
+ params = locals()
171
+ for key, val in six.iteritems(params['kwargs']):
172
+ if key not in all_params:
173
+ raise TypeError(
174
+ "Got an unexpected keyword argument '%s'"
175
+ " to method execute_script_by_name" % key
176
+ )
177
+ params[key] = val
178
+ del params['kwargs']
179
+ # verify the required parameter 'name' is set
180
+ if ('name' not in params or
181
+ params['name'] is None):
182
+ raise ValueError("Missing the required parameter `name` when calling `execute_script_by_name`") # noqa: E501
183
+
184
+ collection_formats = {}
185
+
186
+ path_params = {}
187
+
188
+ query_params = []
189
+ if 'name' in params:
190
+ query_params.append(('name', params['name'])) # noqa: E501
191
+
192
+ header_params = {}
193
+
194
+ form_params = []
195
+ local_var_files = {}
196
+
197
+ body_params = None
198
+ # HTTP header `Accept`
199
+ header_params['Accept'] = self.api_client.select_header_accept(
200
+ ['application/json', 'text/json']) # noqa: E501
201
+
202
+ # Authentication setting
203
+ auth_settings = [] # noqa: E501
204
+
205
+ return self.api_client.call_api(
206
+ '/teamdbapi/v2.0/script/executebyname', 'POST',
207
+ path_params,
208
+ query_params,
209
+ header_params,
210
+ body=body_params,
211
+ post_params=form_params,
212
+ files=local_var_files,
213
+ response_type='Script', # noqa: E501
214
+ auth_settings=auth_settings,
215
+ async_req=params.get('async_req'),
216
+ _return_http_data_only=params.get('_return_http_data_only'),
217
+ _preload_content=params.get('_preload_content', True),
218
+ _request_timeout=params.get('_request_timeout'),
219
+ collection_formats=collection_formats)
220
+
221
+ def get_script(self, id, **kwargs): # noqa: E501
222
+ """Get a Python script corresponding to a unique id # noqa: E501
223
+
224
+ This method makes a synchronous HTTP request by default. To make an
225
+ asynchronous HTTP request, please pass async_req=True
226
+ >>> thread = api.get_script(id, async_req=True)
227
+ >>> result = thread.get()
228
+
229
+ :param async_req bool
230
+ :param str id: The unique Python script id that corresponds to the searched script (required)
231
+ :return: Script
232
+ If the method is called asynchronously,
233
+ returns the request thread.
234
+ """
235
+ kwargs['_return_http_data_only'] = True
236
+ if kwargs.get('async_req'):
237
+ return self.get_script_with_http_info(id, **kwargs) # noqa: E501
238
+ else:
239
+ (data) = self.get_script_with_http_info(id, **kwargs) # noqa: E501
240
+ return data
241
+
242
+ def get_script_with_http_info(self, id, **kwargs): # noqa: E501
243
+ """Get a Python script corresponding to a unique id # noqa: E501
244
+
245
+ This method makes a synchronous HTTP request by default. To make an
246
+ asynchronous HTTP request, please pass async_req=True
247
+ >>> thread = api.get_script_with_http_info(id, async_req=True)
248
+ >>> result = thread.get()
249
+
250
+ :param async_req bool
251
+ :param str id: The unique Python script id that corresponds to the searched script (required)
252
+ :return: Script
253
+ If the method is called asynchronously,
254
+ returns the request thread.
255
+ """
256
+
257
+ all_params = ['id'] # noqa: E501
258
+ all_params.append('async_req')
259
+ all_params.append('_return_http_data_only')
260
+ all_params.append('_preload_content')
261
+ all_params.append('_request_timeout')
262
+
263
+ params = locals()
264
+ for key, val in six.iteritems(params['kwargs']):
265
+ if key not in all_params:
266
+ raise TypeError(
267
+ "Got an unexpected keyword argument '%s'"
268
+ " to method get_script" % key
269
+ )
270
+ params[key] = val
271
+ del params['kwargs']
272
+ # verify the required parameter 'id' is set
273
+ if ('id' not in params or
274
+ params['id'] is None):
275
+ raise ValueError("Missing the required parameter `id` when calling `get_script`") # noqa: E501
276
+
277
+ collection_formats = {}
278
+
279
+ path_params = {}
280
+ if 'id' in params:
281
+ path_params['id'] = params['id'] # noqa: E501
282
+
283
+ query_params = []
284
+
285
+ header_params = {}
286
+
287
+ form_params = []
288
+ local_var_files = {}
289
+
290
+ body_params = None
291
+ # HTTP header `Accept`
292
+ header_params['Accept'] = self.api_client.select_header_accept(
293
+ ['application/json', 'text/json']) # noqa: E501
294
+
295
+ # Authentication setting
296
+ auth_settings = [] # noqa: E501
297
+
298
+ return self.api_client.call_api(
299
+ '/teamdbapi/v2.0/script/{id}', 'GET',
300
+ path_params,
301
+ query_params,
302
+ header_params,
303
+ body=body_params,
304
+ post_params=form_params,
305
+ files=local_var_files,
306
+ response_type='Script', # noqa: E501
307
+ auth_settings=auth_settings,
308
+ async_req=params.get('async_req'),
309
+ _return_http_data_only=params.get('_return_http_data_only'),
310
+ _preload_content=params.get('_preload_content', True),
311
+ _request_timeout=params.get('_request_timeout'),
312
+ collection_formats=collection_formats)
313
+
314
+ def get_script_by_name(self, name, **kwargs): # noqa: E501
315
+ """Get a Python script corresponding to the given name # noqa: E501
316
+
317
+ This method makes a synchronous HTTP request by default. To make an
318
+ asynchronous HTTP request, please pass async_req=True
319
+ >>> thread = api.get_script_by_name(name, async_req=True)
320
+ >>> result = thread.get()
321
+
322
+ :param async_req bool
323
+ :param str name: The Python script unique name that corresponds to the searched script (required)
324
+ :return: Script
325
+ If the method is called asynchronously,
326
+ returns the request thread.
327
+ """
328
+ kwargs['_return_http_data_only'] = True
329
+ if kwargs.get('async_req'):
330
+ return self.get_script_by_name_with_http_info(name, **kwargs) # noqa: E501
331
+ else:
332
+ (data) = self.get_script_by_name_with_http_info(name, **kwargs) # noqa: E501
333
+ return data
334
+
335
+ def get_script_by_name_with_http_info(self, name, **kwargs): # noqa: E501
336
+ """Get a Python script corresponding to the given name # noqa: E501
337
+
338
+ This method makes a synchronous HTTP request by default. To make an
339
+ asynchronous HTTP request, please pass async_req=True
340
+ >>> thread = api.get_script_by_name_with_http_info(name, async_req=True)
341
+ >>> result = thread.get()
342
+
343
+ :param async_req bool
344
+ :param str name: The Python script unique name that corresponds to the searched script (required)
345
+ :return: Script
346
+ If the method is called asynchronously,
347
+ returns the request thread.
348
+ """
349
+
350
+ all_params = ['name'] # noqa: E501
351
+ all_params.append('async_req')
352
+ all_params.append('_return_http_data_only')
353
+ all_params.append('_preload_content')
354
+ all_params.append('_request_timeout')
355
+
356
+ params = locals()
357
+ for key, val in six.iteritems(params['kwargs']):
358
+ if key not in all_params:
359
+ raise TypeError(
360
+ "Got an unexpected keyword argument '%s'"
361
+ " to method get_script_by_name" % key
362
+ )
363
+ params[key] = val
364
+ del params['kwargs']
365
+ # verify the required parameter 'name' is set
366
+ if ('name' not in params or
367
+ params['name'] is None):
368
+ raise ValueError("Missing the required parameter `name` when calling `get_script_by_name`") # noqa: E501
369
+
370
+ collection_formats = {}
371
+
372
+ path_params = {}
373
+
374
+ query_params = []
375
+ if 'name' in params:
376
+ query_params.append(('name', params['name'])) # noqa: E501
377
+
378
+ header_params = {}
379
+
380
+ form_params = []
381
+ local_var_files = {}
382
+
383
+ body_params = None
384
+ # HTTP header `Accept`
385
+ header_params['Accept'] = self.api_client.select_header_accept(
386
+ ['application/json', 'text/json']) # noqa: E501
387
+
388
+ # Authentication setting
389
+ auth_settings = [] # noqa: E501
390
+
391
+ return self.api_client.call_api(
392
+ '/teamdbapi/v2.0/script', 'GET',
393
+ path_params,
394
+ query_params,
395
+ header_params,
396
+ body=body_params,
397
+ post_params=form_params,
398
+ files=local_var_files,
399
+ response_type='Script', # noqa: E501
400
+ auth_settings=auth_settings,
401
+ async_req=params.get('async_req'),
402
+ _return_http_data_only=params.get('_return_http_data_only'),
403
+ _preload_content=params.get('_preload_content', True),
404
+ _request_timeout=params.get('_request_timeout'),
405
+ collection_formats=collection_formats)
406
+
407
+ def get_scripts(self, **kwargs): # noqa: E501
408
+ """Get the list of all Python scripts allowed to be executed from the API. # noqa: E501
409
+
410
+ This method makes a synchronous HTTP request by default. To make an
411
+ asynchronous HTTP request, please pass async_req=True
412
+ >>> thread = api.get_scripts(async_req=True)
413
+ >>> result = thread.get()
414
+
415
+ :param async_req bool
416
+ :return: list[Script]
417
+ If the method is called asynchronously,
418
+ returns the request thread.
419
+ """
420
+ kwargs['_return_http_data_only'] = True
421
+ if kwargs.get('async_req'):
422
+ return self.get_scripts_with_http_info(**kwargs) # noqa: E501
423
+ else:
424
+ (data) = self.get_scripts_with_http_info(**kwargs) # noqa: E501
425
+ return data
426
+
427
+ def get_scripts_with_http_info(self, **kwargs): # noqa: E501
428
+ """Get the list of all Python scripts allowed to be executed from the API. # noqa: E501
429
+
430
+ This method makes a synchronous HTTP request by default. To make an
431
+ asynchronous HTTP request, please pass async_req=True
432
+ >>> thread = api.get_scripts_with_http_info(async_req=True)
433
+ >>> result = thread.get()
434
+
435
+ :param async_req bool
436
+ :return: list[Script]
437
+ If the method is called asynchronously,
438
+ returns the request thread.
439
+ """
440
+
441
+ all_params = [] # noqa: E501
442
+ all_params.append('async_req')
443
+ all_params.append('_return_http_data_only')
444
+ all_params.append('_preload_content')
445
+ all_params.append('_request_timeout')
446
+
447
+ params = locals()
448
+ for key, val in six.iteritems(params['kwargs']):
449
+ if key not in all_params:
450
+ raise TypeError(
451
+ "Got an unexpected keyword argument '%s'"
452
+ " to method get_scripts" % key
453
+ )
454
+ params[key] = val
455
+ del params['kwargs']
456
+
457
+ collection_formats = {}
458
+
459
+ path_params = {}
460
+
461
+ query_params = []
462
+
463
+ header_params = {}
464
+
465
+ form_params = []
466
+ local_var_files = {}
467
+
468
+ body_params = None
469
+ # HTTP header `Accept`
470
+ header_params['Accept'] = self.api_client.select_header_accept(
471
+ ['application/json', 'text/json']) # noqa: E501
472
+
473
+ # Authentication setting
474
+ auth_settings = [] # noqa: E501
475
+
476
+ return self.api_client.call_api(
477
+ '/teamdbapi/v2.0/scripts', 'GET',
478
+ path_params,
479
+ query_params,
480
+ header_params,
481
+ body=body_params,
482
+ post_params=form_params,
483
+ files=local_var_files,
484
+ response_type='list[Script]', # noqa: E501
485
+ auth_settings=auth_settings,
486
+ async_req=params.get('async_req'),
487
+ _return_http_data_only=params.get('_return_http_data_only'),
488
+ _preload_content=params.get('_preload_content', True),
489
+ _request_timeout=params.get('_request_timeout'),
490
+ collection_formats=collection_formats)