teamdbapi 3.3.0__py3-none-any.whl → 3.4.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 CHANGED
@@ -31,7 +31,9 @@ from teamdbapi.api.lap_report_api import LapReportApi
31
31
  from teamdbapi.api.model_field_api import ModelFieldApi
32
32
  from teamdbapi.api.mounting_api import MountingApi
33
33
  from teamdbapi.api.notes_authorization_api import NotesAuthorizationApi
34
+ from teamdbapi.api.overall_api import OverallApi
34
35
  from teamdbapi.api.parameter_api import ParameterApi
36
+ from teamdbapi.api.parameter_binding_api import ParameterBindingApi
35
37
  from teamdbapi.api.part_api import PartApi
36
38
  from teamdbapi.api.report_api import ReportApi
37
39
  from teamdbapi.api.revision_api import RevisionApi
@@ -94,7 +96,9 @@ from teamdbapi.models.model_field_authorization import ModelFieldAuthorization
94
96
  from teamdbapi.models.mounting import Mounting
95
97
  from teamdbapi.models.notes_authorization import NotesAuthorization
96
98
  from teamdbapi.models.notes_context import NotesContext
99
+ from teamdbapi.models.overall import Overall
97
100
  from teamdbapi.models.parameter import Parameter
101
+ from teamdbapi.models.parameter_binding import ParameterBinding
98
102
  from teamdbapi.models.parameter_cross_table import ParameterCrossTable
99
103
  from teamdbapi.models.part import Part
100
104
  from teamdbapi.models.part_car_parameters import PartCarParameters
teamdbapi/api/__init__.py CHANGED
@@ -19,7 +19,9 @@ from teamdbapi.api.lap_report_api import LapReportApi
19
19
  from teamdbapi.api.model_field_api import ModelFieldApi
20
20
  from teamdbapi.api.mounting_api import MountingApi
21
21
  from teamdbapi.api.notes_authorization_api import NotesAuthorizationApi
22
+ from teamdbapi.api.overall_api import OverallApi
22
23
  from teamdbapi.api.parameter_api import ParameterApi
24
+ from teamdbapi.api.parameter_binding_api import ParameterBindingApi
23
25
  from teamdbapi.api.part_api import PartApi
24
26
  from teamdbapi.api.report_api import ReportApi
25
27
  from teamdbapi.api.revision_api import RevisionApi
@@ -957,6 +957,91 @@ class ComponentApi(object):
957
957
  _request_timeout=params.get('_request_timeout'),
958
958
  collection_formats=collection_formats)
959
959
 
960
+ def trigger_lifing_export_components(self, **kwargs): # noqa: E501
961
+ """[Command] Trigger the lifing export components. The export concerns the components lifed linked to a mountinng and updated during the N last days (depending on the server configuration option: Export lifing component period) # noqa: E501
962
+
963
+ This method makes a synchronous HTTP request by default. To make an
964
+ asynchronous HTTP request, please pass async_req=True
965
+ >>> thread = api.trigger_lifing_export_components(async_req=True)
966
+ >>> result = thread.get()
967
+
968
+ :param async_req bool
969
+ :return: None
970
+ If the method is called asynchronously,
971
+ returns the request thread.
972
+ """
973
+ kwargs['_return_http_data_only'] = True
974
+ if kwargs.get('async_req'):
975
+ return self.trigger_lifing_export_components_with_http_info(**kwargs) # noqa: E501
976
+ else:
977
+ (data) = self.trigger_lifing_export_components_with_http_info(**kwargs) # noqa: E501
978
+ return data
979
+
980
+ def trigger_lifing_export_components_with_http_info(self, **kwargs): # noqa: E501
981
+ """[Command] Trigger the lifing export components. The export concerns the components lifed linked to a mountinng and updated during the N last days (depending on the server configuration option: Export lifing component period) # noqa: E501
982
+
983
+ This method makes a synchronous HTTP request by default. To make an
984
+ asynchronous HTTP request, please pass async_req=True
985
+ >>> thread = api.trigger_lifing_export_components_with_http_info(async_req=True)
986
+ >>> result = thread.get()
987
+
988
+ :param async_req bool
989
+ :return: None
990
+ If the method is called asynchronously,
991
+ returns the request thread.
992
+ """
993
+
994
+ all_params = [] # noqa: E501
995
+ all_params.append('async_req')
996
+ all_params.append('_return_http_data_only')
997
+ all_params.append('_preload_content')
998
+ all_params.append('_request_timeout')
999
+
1000
+ params = locals()
1001
+ for key, val in six.iteritems(params['kwargs']):
1002
+ if key not in all_params:
1003
+ raise TypeError(
1004
+ "Got an unexpected keyword argument '%s'"
1005
+ " to method trigger_lifing_export_components" % key
1006
+ )
1007
+ params[key] = val
1008
+ del params['kwargs']
1009
+
1010
+ collection_formats = {}
1011
+
1012
+ path_params = {}
1013
+
1014
+ query_params = []
1015
+
1016
+ header_params = {}
1017
+
1018
+ form_params = []
1019
+ local_var_files = {}
1020
+
1021
+ body_params = None
1022
+ # HTTP header `Accept`
1023
+ header_params['Accept'] = self.api_client.select_header_accept(
1024
+ ['application/json', 'text/json']) # noqa: E501
1025
+
1026
+ # Authentication setting
1027
+ auth_settings = [] # noqa: E501
1028
+
1029
+ return self.api_client.call_api(
1030
+ '/teamdbapi/v2.0/component/export', 'POST',
1031
+ path_params,
1032
+ query_params,
1033
+ header_params,
1034
+ body=body_params,
1035
+ post_params=form_params,
1036
+ files=local_var_files,
1037
+ response_type=None, # noqa: E501
1038
+ auth_settings=auth_settings,
1039
+ async_req=params.get('async_req'),
1040
+ _return_http_data_only=params.get('_return_http_data_only'),
1041
+ _preload_content=params.get('_preload_content', True),
1042
+ _request_timeout=params.get('_request_timeout'),
1043
+ collection_formats=collection_formats)
1044
+
960
1045
  def update_component_revision(self, component_id, revision_id, **kwargs): # noqa: E501
961
1046
  """Update a component revision from it's unique identifiers. # noqa: E501
962
1047
 
@@ -0,0 +1,118 @@
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 OverallApi(object):
24
+ """NOTE: This class is auto generated by the swagger code generator program.
25
+
26
+ Do not edit the class manually.
27
+ Ref: https://github.com/swagger-api/swagger-codegen
28
+ """
29
+
30
+ def __init__(self, api_client=None):
31
+ if api_client is None:
32
+ api_client = ApiClient()
33
+ self.api_client = api_client
34
+
35
+ def get_current_overall(self, **kwargs): # noqa: E501
36
+ """Get the current Overall. # noqa: E501
37
+
38
+ This method makes a synchronous HTTP request by default. To make an
39
+ asynchronous HTTP request, please pass async_req=True
40
+ >>> thread = api.get_current_overall(async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :return: Overall
45
+ If the method is called asynchronously,
46
+ returns the request thread.
47
+ """
48
+ kwargs['_return_http_data_only'] = True
49
+ if kwargs.get('async_req'):
50
+ return self.get_current_overall_with_http_info(**kwargs) # noqa: E501
51
+ else:
52
+ (data) = self.get_current_overall_with_http_info(**kwargs) # noqa: E501
53
+ return data
54
+
55
+ def get_current_overall_with_http_info(self, **kwargs): # noqa: E501
56
+ """Get the current Overall. # noqa: E501
57
+
58
+ This method makes a synchronous HTTP request by default. To make an
59
+ asynchronous HTTP request, please pass async_req=True
60
+ >>> thread = api.get_current_overall_with_http_info(async_req=True)
61
+ >>> result = thread.get()
62
+
63
+ :param async_req bool
64
+ :return: Overall
65
+ If the method is called asynchronously,
66
+ returns the request thread.
67
+ """
68
+
69
+ all_params = [] # noqa: E501
70
+ all_params.append('async_req')
71
+ all_params.append('_return_http_data_only')
72
+ all_params.append('_preload_content')
73
+ all_params.append('_request_timeout')
74
+
75
+ params = locals()
76
+ for key, val in six.iteritems(params['kwargs']):
77
+ if key not in all_params:
78
+ raise TypeError(
79
+ "Got an unexpected keyword argument '%s'"
80
+ " to method get_current_overall" % key
81
+ )
82
+ params[key] = val
83
+ del params['kwargs']
84
+
85
+ collection_formats = {}
86
+
87
+ path_params = {}
88
+
89
+ query_params = []
90
+
91
+ header_params = {}
92
+
93
+ form_params = []
94
+ local_var_files = {}
95
+
96
+ body_params = None
97
+ # HTTP header `Accept`
98
+ header_params['Accept'] = self.api_client.select_header_accept(
99
+ ['application/json', 'text/json']) # noqa: E501
100
+
101
+ # Authentication setting
102
+ auth_settings = [] # noqa: E501
103
+
104
+ return self.api_client.call_api(
105
+ '/teamdbapi/v2.0/overall/current', 'GET',
106
+ path_params,
107
+ query_params,
108
+ header_params,
109
+ body=body_params,
110
+ post_params=form_params,
111
+ files=local_var_files,
112
+ response_type='Overall', # noqa: E501
113
+ auth_settings=auth_settings,
114
+ async_req=params.get('async_req'),
115
+ _return_http_data_only=params.get('_return_http_data_only'),
116
+ _preload_content=params.get('_preload_content', True),
117
+ _request_timeout=params.get('_request_timeout'),
118
+ collection_formats=collection_formats)