teamdbapi 3.3.0__tar.gz → 3.4.0__tar.gz
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-3.3.0 → teamdbapi-3.4.0}/PKG-INFO +3 -3
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/README.md +2 -2
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/pyproject.toml +1 -1
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/__init__.py +4 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/__init__.py +2 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/component_api.py +85 -0
- teamdbapi-3.4.0/teamdbapi/api/overall_api.py +118 -0
- teamdbapi-3.4.0/teamdbapi/api/parameter_binding_api.py +508 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/value_field_api.py +101 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/__init__.py +2 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/component.py +31 -3
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/criteria.py +2 -2
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/fixed_field.py +1 -1
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/model_field.py +1 -1
- teamdbapi-3.4.0/teamdbapi/models/overall.py +198 -0
- teamdbapi-3.4.0/teamdbapi/models/parameter_binding.py +401 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/target.py +31 -3
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/LICENSE +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/assembly_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/car_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/config_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/criteria_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/edit_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/event_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/fixed_field_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/group_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/import_export_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/issue_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/lap_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/lap_report_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/model_field_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/mounting_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/notes_authorization_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/parameter_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/part_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/report_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/revision_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/revision_editor_selector_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/run_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/script_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/session_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/target_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/team_db_list_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/team_db_view_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/tire_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/tire_set_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/track_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/track_layout_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/update_request_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/user_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api/version_api.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/api_client.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/configuration.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/add_part_car_parameter_arg.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/assembly.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/bleed_adjustment.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/calibration.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/car.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/car_parameters_context.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/compare_options.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/compare_result.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/compare_result_detail.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/copy_from_tags_args.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/couple_guid_text.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/criteria_value.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/event.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/file_revision_info.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/group.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/import_parameters_args.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/import_parameters_results.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/import_revisions_args.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/import_revisions_info.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/import_revisions_results.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_custom_field_value.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_priority.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_project.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_sector.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_status.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_type.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/issue_workflow.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/item_value.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/item_value_key.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/lap.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/lap_report_options.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/model_field_authorization.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/mounting.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/notes_authorization.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/notes_context.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/parameter.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/parameter_cross_table.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/part.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/part_car_parameters.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/part_count.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/problem_details.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/revision.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/revision_value.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/run.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/script.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/session.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/string_with_font_style.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/team_db_list.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/team_db_list_item.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/tire.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/tire_set.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/track.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/track_layout.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/user.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/user_group.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/value_field.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/models/version.py +0 -0
- {teamdbapi-3.3.0 → teamdbapi-3.4.0}/teamdbapi/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: teamdbapi
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.4.0
|
|
4
4
|
Summary: Easily access the TeamDB Web API.
|
|
5
5
|
Keywords: teamdbapi,Trackside,Trackside Software,TeamDB
|
|
6
6
|
Author-email: Trackside Software <support@trackside.fr>
|
|
@@ -19,13 +19,13 @@ Project-URL: Homepage, https://www.tracksidesoftware.fr/teamdb
|
|
|
19
19
|
# teamdbapi
|
|
20
20
|
This module enables you to easily access the TeamDB Web API.
|
|
21
21
|
|
|
22
|
-
- Package version: 3.
|
|
22
|
+
- Package version: 3.4.0
|
|
23
23
|
- TeamDB Web API version: 2.0
|
|
24
24
|
|
|
25
25
|
## Requirements.
|
|
26
26
|
|
|
27
27
|
- Python 3.4+
|
|
28
|
-
- TeamDB 3.
|
|
28
|
+
- TeamDB 3.4.0
|
|
29
29
|
|
|
30
30
|
## Installation and usage
|
|
31
31
|
### pip install
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# teamdbapi
|
|
2
2
|
This module enables you to easily access the TeamDB Web API.
|
|
3
3
|
|
|
4
|
-
- Package version: 3.
|
|
4
|
+
- Package version: 3.4.0
|
|
5
5
|
- TeamDB Web API version: 2.0
|
|
6
6
|
|
|
7
7
|
## Requirements.
|
|
8
8
|
|
|
9
9
|
- Python 3.4+
|
|
10
|
-
- TeamDB 3.
|
|
10
|
+
- TeamDB 3.4.0
|
|
11
11
|
|
|
12
12
|
## Installation and usage
|
|
13
13
|
### pip install
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "teamdbapi"
|
|
7
|
-
version = "3.
|
|
7
|
+
version = "3.4.0"
|
|
8
8
|
description = "Easily access the TeamDB Web API."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Trackside Software", email = "support@trackside.fr" }]
|
|
@@ -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
|
|
@@ -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)
|