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,482 +1,482 @@
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 TeamDBViewApi(object):
24
- """NOTE: This class is auto generated by the swagger code generator program.
25
-
26
- Do not edit the class manually.
27
- Ref: https://github.com/swagger-api/swagger-codegen
28
- """
29
-
30
- def __init__(self, api_client=None):
31
- if api_client is None:
32
- api_client = ApiClient()
33
- self.api_client = api_client
34
-
35
- def get_fields_in_view(self, view_id, **kwargs): # noqa: E501
36
- """Get the list of all fields contained inside a view # noqa: E501
37
-
38
- This method makes a synchronous HTTP request by default. To make an
39
- asynchronous HTTP request, please pass async_req=True
40
- >>> thread = api.get_fields_in_view(view_id, async_req=True)
41
- >>> result = thread.get()
42
-
43
- :param async_req bool
44
- :param str view_id: The view id for which you want the fields list (required)
45
- :param bool find_in_subviews: True if you want to include the fields that are contained in the subviews
46
- :return: list[CoupleGuidText]
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.get_fields_in_view_with_http_info(view_id, **kwargs) # noqa: E501
53
- else:
54
- (data) = self.get_fields_in_view_with_http_info(view_id, **kwargs) # noqa: E501
55
- return data
56
-
57
- def get_fields_in_view_with_http_info(self, view_id, **kwargs): # noqa: E501
58
- """Get the list of all fields contained inside a view # noqa: E501
59
-
60
- This method makes a synchronous HTTP request by default. To make an
61
- asynchronous HTTP request, please pass async_req=True
62
- >>> thread = api.get_fields_in_view_with_http_info(view_id, async_req=True)
63
- >>> result = thread.get()
64
-
65
- :param async_req bool
66
- :param str view_id: The view id for which you want the fields list (required)
67
- :param bool find_in_subviews: True if you want to include the fields that are contained in the subviews
68
- :return: list[CoupleGuidText]
69
- If the method is called asynchronously,
70
- returns the request thread.
71
- """
72
-
73
- all_params = ['view_id', 'find_in_subviews'] # 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 get_fields_in_view" % key
85
- )
86
- params[key] = val
87
- del params['kwargs']
88
- # verify the required parameter 'view_id' is set
89
- if ('view_id' not in params or
90
- params['view_id'] is None):
91
- raise ValueError("Missing the required parameter `view_id` when calling `get_fields_in_view`") # noqa: E501
92
-
93
- collection_formats = {}
94
-
95
- path_params = {}
96
-
97
- query_params = []
98
- if 'view_id' in params:
99
- query_params.append(('viewId', params['view_id'])) # noqa: E501
100
- if 'find_in_subviews' in params:
101
- query_params.append(('findInSubviews', params['find_in_subviews'])) # noqa: E501
102
-
103
- header_params = {}
104
-
105
- form_params = []
106
- local_var_files = {}
107
-
108
- body_params = None
109
- # HTTP header `Accept`
110
- header_params['Accept'] = self.api_client.select_header_accept(
111
- ['application/json', 'text/json']) # noqa: E501
112
-
113
- # Authentication setting
114
- auth_settings = [] # noqa: E501
115
-
116
- return self.api_client.call_api(
117
- '/teamdbapi/v2.0/fieldsinsideview', 'GET',
118
- path_params,
119
- query_params,
120
- header_params,
121
- body=body_params,
122
- post_params=form_params,
123
- files=local_var_files,
124
- response_type='list[CoupleGuidText]', # noqa: E501
125
- auth_settings=auth_settings,
126
- async_req=params.get('async_req'),
127
- _return_http_data_only=params.get('_return_http_data_only'),
128
- _preload_content=params.get('_preload_content', True),
129
- _request_timeout=params.get('_request_timeout'),
130
- collection_formats=collection_formats)
131
-
132
- def get_layouts(self, **kwargs): # noqa: E501
133
- """Get the list of all layouts # noqa: E501
134
-
135
- This method makes a synchronous HTTP request by default. To make an
136
- asynchronous HTTP request, please pass async_req=True
137
- >>> thread = api.get_layouts(async_req=True)
138
- >>> result = thread.get()
139
-
140
- :param async_req bool
141
- :return: list[CoupleGuidText]
142
- If the method is called asynchronously,
143
- returns the request thread.
144
- """
145
- kwargs['_return_http_data_only'] = True
146
- if kwargs.get('async_req'):
147
- return self.get_layouts_with_http_info(**kwargs) # noqa: E501
148
- else:
149
- (data) = self.get_layouts_with_http_info(**kwargs) # noqa: E501
150
- return data
151
-
152
- def get_layouts_with_http_info(self, **kwargs): # noqa: E501
153
- """Get the list of all layouts # noqa: E501
154
-
155
- This method makes a synchronous HTTP request by default. To make an
156
- asynchronous HTTP request, please pass async_req=True
157
- >>> thread = api.get_layouts_with_http_info(async_req=True)
158
- >>> result = thread.get()
159
-
160
- :param async_req bool
161
- :return: list[CoupleGuidText]
162
- If the method is called asynchronously,
163
- returns the request thread.
164
- """
165
-
166
- all_params = [] # noqa: E501
167
- all_params.append('async_req')
168
- all_params.append('_return_http_data_only')
169
- all_params.append('_preload_content')
170
- all_params.append('_request_timeout')
171
-
172
- params = locals()
173
- for key, val in six.iteritems(params['kwargs']):
174
- if key not in all_params:
175
- raise TypeError(
176
- "Got an unexpected keyword argument '%s'"
177
- " to method get_layouts" % key
178
- )
179
- params[key] = val
180
- del params['kwargs']
181
-
182
- collection_formats = {}
183
-
184
- path_params = {}
185
-
186
- query_params = []
187
-
188
- header_params = {}
189
-
190
- form_params = []
191
- local_var_files = {}
192
-
193
- body_params = None
194
- # HTTP header `Accept`
195
- header_params['Accept'] = self.api_client.select_header_accept(
196
- ['application/json', 'text/json']) # noqa: E501
197
-
198
- # Authentication setting
199
- auth_settings = [] # noqa: E501
200
-
201
- return self.api_client.call_api(
202
- '/teamdbapi/v2.0/layouts', 'GET',
203
- path_params,
204
- query_params,
205
- header_params,
206
- body=body_params,
207
- post_params=form_params,
208
- files=local_var_files,
209
- response_type='list[CoupleGuidText]', # noqa: E501
210
- auth_settings=auth_settings,
211
- async_req=params.get('async_req'),
212
- _return_http_data_only=params.get('_return_http_data_only'),
213
- _preload_content=params.get('_preload_content', True),
214
- _request_timeout=params.get('_request_timeout'),
215
- collection_formats=collection_formats)
216
-
217
- def get_views(self, **kwargs): # noqa: E501
218
- """Get the list of all views you are allowed to access # noqa: E501
219
-
220
- This method makes a synchronous HTTP request by default. To make an
221
- asynchronous HTTP request, please pass async_req=True
222
- >>> thread = api.get_views(async_req=True)
223
- >>> result = thread.get()
224
-
225
- :param async_req bool
226
- :return: list[CoupleGuidText]
227
- If the method is called asynchronously,
228
- returns the request thread.
229
- """
230
- kwargs['_return_http_data_only'] = True
231
- if kwargs.get('async_req'):
232
- return self.get_views_with_http_info(**kwargs) # noqa: E501
233
- else:
234
- (data) = self.get_views_with_http_info(**kwargs) # noqa: E501
235
- return data
236
-
237
- def get_views_with_http_info(self, **kwargs): # noqa: E501
238
- """Get the list of all views you are allowed to access # noqa: E501
239
-
240
- This method makes a synchronous HTTP request by default. To make an
241
- asynchronous HTTP request, please pass async_req=True
242
- >>> thread = api.get_views_with_http_info(async_req=True)
243
- >>> result = thread.get()
244
-
245
- :param async_req bool
246
- :return: list[CoupleGuidText]
247
- If the method is called asynchronously,
248
- returns the request thread.
249
- """
250
-
251
- all_params = [] # noqa: E501
252
- all_params.append('async_req')
253
- all_params.append('_return_http_data_only')
254
- all_params.append('_preload_content')
255
- all_params.append('_request_timeout')
256
-
257
- params = locals()
258
- for key, val in six.iteritems(params['kwargs']):
259
- if key not in all_params:
260
- raise TypeError(
261
- "Got an unexpected keyword argument '%s'"
262
- " to method get_views" % key
263
- )
264
- params[key] = val
265
- del params['kwargs']
266
-
267
- collection_formats = {}
268
-
269
- path_params = {}
270
-
271
- query_params = []
272
-
273
- header_params = {}
274
-
275
- form_params = []
276
- local_var_files = {}
277
-
278
- body_params = None
279
- # HTTP header `Accept`
280
- header_params['Accept'] = self.api_client.select_header_accept(
281
- ['application/json', 'text/json']) # noqa: E501
282
-
283
- # Authentication setting
284
- auth_settings = [] # noqa: E501
285
-
286
- return self.api_client.call_api(
287
- '/teamdbapi/v2.0/views', 'GET',
288
- path_params,
289
- query_params,
290
- header_params,
291
- body=body_params,
292
- post_params=form_params,
293
- files=local_var_files,
294
- response_type='list[CoupleGuidText]', # noqa: E501
295
- auth_settings=auth_settings,
296
- async_req=params.get('async_req'),
297
- _return_http_data_only=params.get('_return_http_data_only'),
298
- _preload_content=params.get('_preload_content', True),
299
- _request_timeout=params.get('_request_timeout'),
300
- collection_formats=collection_formats)
301
-
302
- def get_views_from_layout(self, layout_id, **kwargs): # noqa: E501
303
- """Get the list of all TeamDB views displayed in a layout # noqa: E501
304
-
305
- This method makes a synchronous HTTP request by default. To make an
306
- asynchronous HTTP request, please pass async_req=True
307
- >>> thread = api.get_views_from_layout(layout_id, async_req=True)
308
- >>> result = thread.get()
309
-
310
- :param async_req bool
311
- :param str layout_id: The TeamDB Layout unique identifier (required)
312
- :return: list[CoupleGuidText]
313
- If the method is called asynchronously,
314
- returns the request thread.
315
- """
316
- kwargs['_return_http_data_only'] = True
317
- if kwargs.get('async_req'):
318
- return self.get_views_from_layout_with_http_info(layout_id, **kwargs) # noqa: E501
319
- else:
320
- (data) = self.get_views_from_layout_with_http_info(layout_id, **kwargs) # noqa: E501
321
- return data
322
-
323
- def get_views_from_layout_with_http_info(self, layout_id, **kwargs): # noqa: E501
324
- """Get the list of all TeamDB views displayed in a layout # noqa: E501
325
-
326
- This method makes a synchronous HTTP request by default. To make an
327
- asynchronous HTTP request, please pass async_req=True
328
- >>> thread = api.get_views_from_layout_with_http_info(layout_id, async_req=True)
329
- >>> result = thread.get()
330
-
331
- :param async_req bool
332
- :param str layout_id: The TeamDB Layout unique identifier (required)
333
- :return: list[CoupleGuidText]
334
- If the method is called asynchronously,
335
- returns the request thread.
336
- """
337
-
338
- all_params = ['layout_id'] # noqa: E501
339
- all_params.append('async_req')
340
- all_params.append('_return_http_data_only')
341
- all_params.append('_preload_content')
342
- all_params.append('_request_timeout')
343
-
344
- params = locals()
345
- for key, val in six.iteritems(params['kwargs']):
346
- if key not in all_params:
347
- raise TypeError(
348
- "Got an unexpected keyword argument '%s'"
349
- " to method get_views_from_layout" % key
350
- )
351
- params[key] = val
352
- del params['kwargs']
353
- # verify the required parameter 'layout_id' is set
354
- if ('layout_id' not in params or
355
- params['layout_id'] is None):
356
- raise ValueError("Missing the required parameter `layout_id` when calling `get_views_from_layout`") # noqa: E501
357
-
358
- collection_formats = {}
359
-
360
- path_params = {}
361
- if 'layout_id' in params:
362
- path_params['layoutId'] = params['layout_id'] # noqa: E501
363
-
364
- query_params = []
365
-
366
- header_params = {}
367
-
368
- form_params = []
369
- local_var_files = {}
370
-
371
- body_params = None
372
- # HTTP header `Accept`
373
- header_params['Accept'] = self.api_client.select_header_accept(
374
- ['application/json', 'text/json']) # noqa: E501
375
-
376
- # Authentication setting
377
- auth_settings = [] # noqa: E501
378
-
379
- return self.api_client.call_api(
380
- '/teamdbapi/v2.0/layout/{layoutId}/views', 'GET',
381
- path_params,
382
- query_params,
383
- header_params,
384
- body=body_params,
385
- post_params=form_params,
386
- files=local_var_files,
387
- response_type='list[CoupleGuidText]', # noqa: E501
388
- auth_settings=auth_settings,
389
- async_req=params.get('async_req'),
390
- _return_http_data_only=params.get('_return_http_data_only'),
391
- _preload_content=params.get('_preload_content', True),
392
- _request_timeout=params.get('_request_timeout'),
393
- collection_formats=collection_formats)
394
-
395
- def get_views_using_field(self, **kwargs): # noqa: E501
396
- """Get the list of all views using a given modelfield # noqa: E501
397
-
398
- This method makes a synchronous HTTP request by default. To make an
399
- asynchronous HTTP request, please pass async_req=True
400
- >>> thread = api.get_views_using_field(async_req=True)
401
- >>> result = thread.get()
402
-
403
- :param async_req bool
404
- :param str field_id: The field id for which you want the views list
405
- :return: list[CoupleGuidText]
406
- If the method is called asynchronously,
407
- returns the request thread.
408
- """
409
- kwargs['_return_http_data_only'] = True
410
- if kwargs.get('async_req'):
411
- return self.get_views_using_field_with_http_info(**kwargs) # noqa: E501
412
- else:
413
- (data) = self.get_views_using_field_with_http_info(**kwargs) # noqa: E501
414
- return data
415
-
416
- def get_views_using_field_with_http_info(self, **kwargs): # noqa: E501
417
- """Get the list of all views using a given modelfield # noqa: E501
418
-
419
- This method makes a synchronous HTTP request by default. To make an
420
- asynchronous HTTP request, please pass async_req=True
421
- >>> thread = api.get_views_using_field_with_http_info(async_req=True)
422
- >>> result = thread.get()
423
-
424
- :param async_req bool
425
- :param str field_id: The field id for which you want the views list
426
- :return: list[CoupleGuidText]
427
- If the method is called asynchronously,
428
- returns the request thread.
429
- """
430
-
431
- all_params = ['field_id'] # noqa: E501
432
- all_params.append('async_req')
433
- all_params.append('_return_http_data_only')
434
- all_params.append('_preload_content')
435
- all_params.append('_request_timeout')
436
-
437
- params = locals()
438
- for key, val in six.iteritems(params['kwargs']):
439
- if key not in all_params:
440
- raise TypeError(
441
- "Got an unexpected keyword argument '%s'"
442
- " to method get_views_using_field" % key
443
- )
444
- params[key] = val
445
- del params['kwargs']
446
-
447
- collection_formats = {}
448
-
449
- path_params = {}
450
-
451
- query_params = []
452
- if 'field_id' in params:
453
- query_params.append(('fieldId', params['field_id'])) # noqa: E501
454
-
455
- header_params = {}
456
-
457
- form_params = []
458
- local_var_files = {}
459
-
460
- body_params = None
461
- # HTTP header `Accept`
462
- header_params['Accept'] = self.api_client.select_header_accept(
463
- ['application/json', 'text/json']) # noqa: E501
464
-
465
- # Authentication setting
466
- auth_settings = [] # noqa: E501
467
-
468
- return self.api_client.call_api(
469
- '/teamdbapi/v2.0/viewusingfield', 'GET',
470
- path_params,
471
- query_params,
472
- header_params,
473
- body=body_params,
474
- post_params=form_params,
475
- files=local_var_files,
476
- response_type='list[CoupleGuidText]', # noqa: E501
477
- auth_settings=auth_settings,
478
- async_req=params.get('async_req'),
479
- _return_http_data_only=params.get('_return_http_data_only'),
480
- _preload_content=params.get('_preload_content', True),
481
- _request_timeout=params.get('_request_timeout'),
482
- 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 TeamDBViewApi(object):
24
+ """NOTE: This class is auto generated by the swagger code generator program.
25
+
26
+ Do not edit the class manually.
27
+ Ref: https://github.com/swagger-api/swagger-codegen
28
+ """
29
+
30
+ def __init__(self, api_client=None):
31
+ if api_client is None:
32
+ api_client = ApiClient()
33
+ self.api_client = api_client
34
+
35
+ def get_fields_in_view(self, view_id, **kwargs): # noqa: E501
36
+ """Get the list of all fields contained inside a view # noqa: E501
37
+
38
+ This method makes a synchronous HTTP request by default. To make an
39
+ asynchronous HTTP request, please pass async_req=True
40
+ >>> thread = api.get_fields_in_view(view_id, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param str view_id: The view id for which you want the fields list (required)
45
+ :param bool find_in_subviews: True if you want to include the fields that are contained in the subviews
46
+ :return: list[CoupleGuidText]
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.get_fields_in_view_with_http_info(view_id, **kwargs) # noqa: E501
53
+ else:
54
+ (data) = self.get_fields_in_view_with_http_info(view_id, **kwargs) # noqa: E501
55
+ return data
56
+
57
+ def get_fields_in_view_with_http_info(self, view_id, **kwargs): # noqa: E501
58
+ """Get the list of all fields contained inside a view # noqa: E501
59
+
60
+ This method makes a synchronous HTTP request by default. To make an
61
+ asynchronous HTTP request, please pass async_req=True
62
+ >>> thread = api.get_fields_in_view_with_http_info(view_id, async_req=True)
63
+ >>> result = thread.get()
64
+
65
+ :param async_req bool
66
+ :param str view_id: The view id for which you want the fields list (required)
67
+ :param bool find_in_subviews: True if you want to include the fields that are contained in the subviews
68
+ :return: list[CoupleGuidText]
69
+ If the method is called asynchronously,
70
+ returns the request thread.
71
+ """
72
+
73
+ all_params = ['view_id', 'find_in_subviews'] # 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 get_fields_in_view" % key
85
+ )
86
+ params[key] = val
87
+ del params['kwargs']
88
+ # verify the required parameter 'view_id' is set
89
+ if ('view_id' not in params or
90
+ params['view_id'] is None):
91
+ raise ValueError("Missing the required parameter `view_id` when calling `get_fields_in_view`") # noqa: E501
92
+
93
+ collection_formats = {}
94
+
95
+ path_params = {}
96
+
97
+ query_params = []
98
+ if 'view_id' in params:
99
+ query_params.append(('viewId', params['view_id'])) # noqa: E501
100
+ if 'find_in_subviews' in params:
101
+ query_params.append(('findInSubviews', params['find_in_subviews'])) # noqa: E501
102
+
103
+ header_params = {}
104
+
105
+ form_params = []
106
+ local_var_files = {}
107
+
108
+ body_params = None
109
+ # HTTP header `Accept`
110
+ header_params['Accept'] = self.api_client.select_header_accept(
111
+ ['application/json', 'text/json']) # noqa: E501
112
+
113
+ # Authentication setting
114
+ auth_settings = [] # noqa: E501
115
+
116
+ return self.api_client.call_api(
117
+ '/teamdbapi/v2.0/fieldsinsideview', 'GET',
118
+ path_params,
119
+ query_params,
120
+ header_params,
121
+ body=body_params,
122
+ post_params=form_params,
123
+ files=local_var_files,
124
+ response_type='list[CoupleGuidText]', # noqa: E501
125
+ auth_settings=auth_settings,
126
+ async_req=params.get('async_req'),
127
+ _return_http_data_only=params.get('_return_http_data_only'),
128
+ _preload_content=params.get('_preload_content', True),
129
+ _request_timeout=params.get('_request_timeout'),
130
+ collection_formats=collection_formats)
131
+
132
+ def get_layouts(self, **kwargs): # noqa: E501
133
+ """Get the list of all layouts # noqa: E501
134
+
135
+ This method makes a synchronous HTTP request by default. To make an
136
+ asynchronous HTTP request, please pass async_req=True
137
+ >>> thread = api.get_layouts(async_req=True)
138
+ >>> result = thread.get()
139
+
140
+ :param async_req bool
141
+ :return: list[CoupleGuidText]
142
+ If the method is called asynchronously,
143
+ returns the request thread.
144
+ """
145
+ kwargs['_return_http_data_only'] = True
146
+ if kwargs.get('async_req'):
147
+ return self.get_layouts_with_http_info(**kwargs) # noqa: E501
148
+ else:
149
+ (data) = self.get_layouts_with_http_info(**kwargs) # noqa: E501
150
+ return data
151
+
152
+ def get_layouts_with_http_info(self, **kwargs): # noqa: E501
153
+ """Get the list of all layouts # noqa: E501
154
+
155
+ This method makes a synchronous HTTP request by default. To make an
156
+ asynchronous HTTP request, please pass async_req=True
157
+ >>> thread = api.get_layouts_with_http_info(async_req=True)
158
+ >>> result = thread.get()
159
+
160
+ :param async_req bool
161
+ :return: list[CoupleGuidText]
162
+ If the method is called asynchronously,
163
+ returns the request thread.
164
+ """
165
+
166
+ all_params = [] # noqa: E501
167
+ all_params.append('async_req')
168
+ all_params.append('_return_http_data_only')
169
+ all_params.append('_preload_content')
170
+ all_params.append('_request_timeout')
171
+
172
+ params = locals()
173
+ for key, val in six.iteritems(params['kwargs']):
174
+ if key not in all_params:
175
+ raise TypeError(
176
+ "Got an unexpected keyword argument '%s'"
177
+ " to method get_layouts" % key
178
+ )
179
+ params[key] = val
180
+ del params['kwargs']
181
+
182
+ collection_formats = {}
183
+
184
+ path_params = {}
185
+
186
+ query_params = []
187
+
188
+ header_params = {}
189
+
190
+ form_params = []
191
+ local_var_files = {}
192
+
193
+ body_params = None
194
+ # HTTP header `Accept`
195
+ header_params['Accept'] = self.api_client.select_header_accept(
196
+ ['application/json', 'text/json']) # noqa: E501
197
+
198
+ # Authentication setting
199
+ auth_settings = [] # noqa: E501
200
+
201
+ return self.api_client.call_api(
202
+ '/teamdbapi/v2.0/layouts', 'GET',
203
+ path_params,
204
+ query_params,
205
+ header_params,
206
+ body=body_params,
207
+ post_params=form_params,
208
+ files=local_var_files,
209
+ response_type='list[CoupleGuidText]', # noqa: E501
210
+ auth_settings=auth_settings,
211
+ async_req=params.get('async_req'),
212
+ _return_http_data_only=params.get('_return_http_data_only'),
213
+ _preload_content=params.get('_preload_content', True),
214
+ _request_timeout=params.get('_request_timeout'),
215
+ collection_formats=collection_formats)
216
+
217
+ def get_views(self, **kwargs): # noqa: E501
218
+ """Get the list of all views you are allowed to access # noqa: E501
219
+
220
+ This method makes a synchronous HTTP request by default. To make an
221
+ asynchronous HTTP request, please pass async_req=True
222
+ >>> thread = api.get_views(async_req=True)
223
+ >>> result = thread.get()
224
+
225
+ :param async_req bool
226
+ :return: list[CoupleGuidText]
227
+ If the method is called asynchronously,
228
+ returns the request thread.
229
+ """
230
+ kwargs['_return_http_data_only'] = True
231
+ if kwargs.get('async_req'):
232
+ return self.get_views_with_http_info(**kwargs) # noqa: E501
233
+ else:
234
+ (data) = self.get_views_with_http_info(**kwargs) # noqa: E501
235
+ return data
236
+
237
+ def get_views_with_http_info(self, **kwargs): # noqa: E501
238
+ """Get the list of all views you are allowed to access # noqa: E501
239
+
240
+ This method makes a synchronous HTTP request by default. To make an
241
+ asynchronous HTTP request, please pass async_req=True
242
+ >>> thread = api.get_views_with_http_info(async_req=True)
243
+ >>> result = thread.get()
244
+
245
+ :param async_req bool
246
+ :return: list[CoupleGuidText]
247
+ If the method is called asynchronously,
248
+ returns the request thread.
249
+ """
250
+
251
+ all_params = [] # noqa: E501
252
+ all_params.append('async_req')
253
+ all_params.append('_return_http_data_only')
254
+ all_params.append('_preload_content')
255
+ all_params.append('_request_timeout')
256
+
257
+ params = locals()
258
+ for key, val in six.iteritems(params['kwargs']):
259
+ if key not in all_params:
260
+ raise TypeError(
261
+ "Got an unexpected keyword argument '%s'"
262
+ " to method get_views" % key
263
+ )
264
+ params[key] = val
265
+ del params['kwargs']
266
+
267
+ collection_formats = {}
268
+
269
+ path_params = {}
270
+
271
+ query_params = []
272
+
273
+ header_params = {}
274
+
275
+ form_params = []
276
+ local_var_files = {}
277
+
278
+ body_params = None
279
+ # HTTP header `Accept`
280
+ header_params['Accept'] = self.api_client.select_header_accept(
281
+ ['application/json', 'text/json']) # noqa: E501
282
+
283
+ # Authentication setting
284
+ auth_settings = [] # noqa: E501
285
+
286
+ return self.api_client.call_api(
287
+ '/teamdbapi/v2.0/views', 'GET',
288
+ path_params,
289
+ query_params,
290
+ header_params,
291
+ body=body_params,
292
+ post_params=form_params,
293
+ files=local_var_files,
294
+ response_type='list[CoupleGuidText]', # noqa: E501
295
+ auth_settings=auth_settings,
296
+ async_req=params.get('async_req'),
297
+ _return_http_data_only=params.get('_return_http_data_only'),
298
+ _preload_content=params.get('_preload_content', True),
299
+ _request_timeout=params.get('_request_timeout'),
300
+ collection_formats=collection_formats)
301
+
302
+ def get_views_from_layout(self, layout_id, **kwargs): # noqa: E501
303
+ """Get the list of all TeamDB views displayed in a layout # noqa: E501
304
+
305
+ This method makes a synchronous HTTP request by default. To make an
306
+ asynchronous HTTP request, please pass async_req=True
307
+ >>> thread = api.get_views_from_layout(layout_id, async_req=True)
308
+ >>> result = thread.get()
309
+
310
+ :param async_req bool
311
+ :param str layout_id: The TeamDB Layout unique identifier (required)
312
+ :return: list[CoupleGuidText]
313
+ If the method is called asynchronously,
314
+ returns the request thread.
315
+ """
316
+ kwargs['_return_http_data_only'] = True
317
+ if kwargs.get('async_req'):
318
+ return self.get_views_from_layout_with_http_info(layout_id, **kwargs) # noqa: E501
319
+ else:
320
+ (data) = self.get_views_from_layout_with_http_info(layout_id, **kwargs) # noqa: E501
321
+ return data
322
+
323
+ def get_views_from_layout_with_http_info(self, layout_id, **kwargs): # noqa: E501
324
+ """Get the list of all TeamDB views displayed in a layout # noqa: E501
325
+
326
+ This method makes a synchronous HTTP request by default. To make an
327
+ asynchronous HTTP request, please pass async_req=True
328
+ >>> thread = api.get_views_from_layout_with_http_info(layout_id, async_req=True)
329
+ >>> result = thread.get()
330
+
331
+ :param async_req bool
332
+ :param str layout_id: The TeamDB Layout unique identifier (required)
333
+ :return: list[CoupleGuidText]
334
+ If the method is called asynchronously,
335
+ returns the request thread.
336
+ """
337
+
338
+ all_params = ['layout_id'] # noqa: E501
339
+ all_params.append('async_req')
340
+ all_params.append('_return_http_data_only')
341
+ all_params.append('_preload_content')
342
+ all_params.append('_request_timeout')
343
+
344
+ params = locals()
345
+ for key, val in six.iteritems(params['kwargs']):
346
+ if key not in all_params:
347
+ raise TypeError(
348
+ "Got an unexpected keyword argument '%s'"
349
+ " to method get_views_from_layout" % key
350
+ )
351
+ params[key] = val
352
+ del params['kwargs']
353
+ # verify the required parameter 'layout_id' is set
354
+ if ('layout_id' not in params or
355
+ params['layout_id'] is None):
356
+ raise ValueError("Missing the required parameter `layout_id` when calling `get_views_from_layout`") # noqa: E501
357
+
358
+ collection_formats = {}
359
+
360
+ path_params = {}
361
+ if 'layout_id' in params:
362
+ path_params['layoutId'] = params['layout_id'] # noqa: E501
363
+
364
+ query_params = []
365
+
366
+ header_params = {}
367
+
368
+ form_params = []
369
+ local_var_files = {}
370
+
371
+ body_params = None
372
+ # HTTP header `Accept`
373
+ header_params['Accept'] = self.api_client.select_header_accept(
374
+ ['application/json', 'text/json']) # noqa: E501
375
+
376
+ # Authentication setting
377
+ auth_settings = [] # noqa: E501
378
+
379
+ return self.api_client.call_api(
380
+ '/teamdbapi/v2.0/layout/{layoutId}/views', 'GET',
381
+ path_params,
382
+ query_params,
383
+ header_params,
384
+ body=body_params,
385
+ post_params=form_params,
386
+ files=local_var_files,
387
+ response_type='list[CoupleGuidText]', # noqa: E501
388
+ auth_settings=auth_settings,
389
+ async_req=params.get('async_req'),
390
+ _return_http_data_only=params.get('_return_http_data_only'),
391
+ _preload_content=params.get('_preload_content', True),
392
+ _request_timeout=params.get('_request_timeout'),
393
+ collection_formats=collection_formats)
394
+
395
+ def get_views_using_field(self, **kwargs): # noqa: E501
396
+ """Get the list of all views using a given modelfield # noqa: E501
397
+
398
+ This method makes a synchronous HTTP request by default. To make an
399
+ asynchronous HTTP request, please pass async_req=True
400
+ >>> thread = api.get_views_using_field(async_req=True)
401
+ >>> result = thread.get()
402
+
403
+ :param async_req bool
404
+ :param str field_id: The field id for which you want the views list
405
+ :return: list[CoupleGuidText]
406
+ If the method is called asynchronously,
407
+ returns the request thread.
408
+ """
409
+ kwargs['_return_http_data_only'] = True
410
+ if kwargs.get('async_req'):
411
+ return self.get_views_using_field_with_http_info(**kwargs) # noqa: E501
412
+ else:
413
+ (data) = self.get_views_using_field_with_http_info(**kwargs) # noqa: E501
414
+ return data
415
+
416
+ def get_views_using_field_with_http_info(self, **kwargs): # noqa: E501
417
+ """Get the list of all views using a given modelfield # noqa: E501
418
+
419
+ This method makes a synchronous HTTP request by default. To make an
420
+ asynchronous HTTP request, please pass async_req=True
421
+ >>> thread = api.get_views_using_field_with_http_info(async_req=True)
422
+ >>> result = thread.get()
423
+
424
+ :param async_req bool
425
+ :param str field_id: The field id for which you want the views list
426
+ :return: list[CoupleGuidText]
427
+ If the method is called asynchronously,
428
+ returns the request thread.
429
+ """
430
+
431
+ all_params = ['field_id'] # noqa: E501
432
+ all_params.append('async_req')
433
+ all_params.append('_return_http_data_only')
434
+ all_params.append('_preload_content')
435
+ all_params.append('_request_timeout')
436
+
437
+ params = locals()
438
+ for key, val in six.iteritems(params['kwargs']):
439
+ if key not in all_params:
440
+ raise TypeError(
441
+ "Got an unexpected keyword argument '%s'"
442
+ " to method get_views_using_field" % key
443
+ )
444
+ params[key] = val
445
+ del params['kwargs']
446
+
447
+ collection_formats = {}
448
+
449
+ path_params = {}
450
+
451
+ query_params = []
452
+ if 'field_id' in params:
453
+ query_params.append(('fieldId', params['field_id'])) # noqa: E501
454
+
455
+ header_params = {}
456
+
457
+ form_params = []
458
+ local_var_files = {}
459
+
460
+ body_params = None
461
+ # HTTP header `Accept`
462
+ header_params['Accept'] = self.api_client.select_header_accept(
463
+ ['application/json', 'text/json']) # noqa: E501
464
+
465
+ # Authentication setting
466
+ auth_settings = [] # noqa: E501
467
+
468
+ return self.api_client.call_api(
469
+ '/teamdbapi/v2.0/viewusingfield', 'GET',
470
+ path_params,
471
+ query_params,
472
+ header_params,
473
+ body=body_params,
474
+ post_params=form_params,
475
+ files=local_var_files,
476
+ response_type='list[CoupleGuidText]', # noqa: E501
477
+ auth_settings=auth_settings,
478
+ async_req=params.get('async_req'),
479
+ _return_http_data_only=params.get('_return_http_data_only'),
480
+ _preload_content=params.get('_preload_content', True),
481
+ _request_timeout=params.get('_request_timeout'),
482
+ collection_formats=collection_formats)