tesla-api-sdk 1.0.0__py3-none-any.whl → 1.0.2__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.
- {tesla_api_sdk-1.0.0.dist-info → tesla_api_sdk-1.0.2.dist-info}/METADATA +40 -34
- {tesla_api_sdk-1.0.0.dist-info → tesla_api_sdk-1.0.2.dist-info}/RECORD +34 -24
- {tesla_api_sdk-1.0.0.dist-info → tesla_api_sdk-1.0.2.dist-info}/WHEEL +1 -1
- teslafleetmanagementapi/configuration.py +13 -11
- teslafleetmanagementapi/controllers/__init__.py +2 -1
- teslafleetmanagementapi/controllers/base_controller.py +1 -1
- teslafleetmanagementapi/controllers/charging_controller.py +6 -3
- teslafleetmanagementapi/controllers/energy_controller.py +14 -11
- teslafleetmanagementapi/controllers/{oauth_authorization_controller.py → o_auth_authorization_controller.py} +24 -24
- teslafleetmanagementapi/controllers/partner_controller.py +7 -4
- teslafleetmanagementapi/controllers/user_controller.py +7 -4
- teslafleetmanagementapi/controllers/vehicle_commands_controller.py +891 -0
- teslafleetmanagementapi/controllers/vehicles_controller.py +24 -21
- teslafleetmanagementapi/exceptions/__init__.py +1 -1
- teslafleetmanagementapi/exceptions/{oauth_provider_exception.py → o_auth_provider_exception.py} +3 -3
- teslafleetmanagementapi/http/auth/__init__.py +1 -1
- teslafleetmanagementapi/http/auth/{oauth_2.py → thirdpartytoken.py} +111 -82
- teslafleetmanagementapi/models/__init__.py +12 -3
- teslafleetmanagementapi/models/actuate_trunk_request.py +92 -0
- teslafleetmanagementapi/models/add_charge_schedule_request.py +272 -0
- teslafleetmanagementapi/models/add_precondition_schedule_request.py +203 -0
- teslafleetmanagementapi/models/adjust_volume_request.py +92 -0
- teslafleetmanagementapi/models/api_1_vehicles_response_get_vehicle.py +1 -1
- teslafleetmanagementapi/models/command_response.py +109 -0
- teslafleetmanagementapi/models/command_result.py +105 -0
- teslafleetmanagementapi/models/guest_mode_request.py +92 -0
- teslafleetmanagementapi/models/kind_get_wall_connector_charging_history.py +1 -1
- teslafleetmanagementapi/models/{oauth_provider_error.py → o_auth_provider_error.py} +1 -1
- teslafleetmanagementapi/models/o_auth_scope_thirdpartytoken.py +84 -0
- teslafleetmanagementapi/models/{oauth_token.py → o_auth_token.py} +2 -2
- teslafleetmanagementapi/models/which_trunk.py +45 -0
- teslafleetmanagementapi/teslafleetmanagementapi_client.py +23 -14
- {tesla_api_sdk-1.0.0.dist-info → tesla_api_sdk-1.0.2.dist-info}/licenses/LICENSE +0 -0
- {tesla_api_sdk-1.0.0.dist-info → tesla_api_sdk-1.0.2.dist-info}/top_level.txt +0 -0
|
@@ -4,6 +4,9 @@ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.and_auth_group import (
|
|
8
|
+
And,
|
|
9
|
+
)
|
|
7
10
|
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
11
|
Single,
|
|
9
12
|
)
|
|
@@ -66,7 +69,7 @@ class PartnerController(BaseController):
|
|
|
66
69
|
.header_param(Parameter()
|
|
67
70
|
.key("accept")
|
|
68
71
|
.value("application/json"))
|
|
69
|
-
.auth(Single("bearerAuth")),
|
|
72
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
70
73
|
).response(
|
|
71
74
|
ResponseHandler()
|
|
72
75
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -96,7 +99,7 @@ class PartnerController(BaseController):
|
|
|
96
99
|
.header_param(Parameter()
|
|
97
100
|
.key("accept")
|
|
98
101
|
.value("application/json"))
|
|
99
|
-
.auth(Single("bearerAuth")),
|
|
102
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
100
103
|
).response(
|
|
101
104
|
ResponseHandler()
|
|
102
105
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -132,7 +135,7 @@ class PartnerController(BaseController):
|
|
|
132
135
|
.header_param(Parameter()
|
|
133
136
|
.key("accept")
|
|
134
137
|
.value("application/json"))
|
|
135
|
-
.auth(Single("bearerAuth")),
|
|
138
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
136
139
|
).response(
|
|
137
140
|
ResponseHandler()
|
|
138
141
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -172,7 +175,7 @@ class PartnerController(BaseController):
|
|
|
172
175
|
.key("accept")
|
|
173
176
|
.value("application/json"))
|
|
174
177
|
.body_serializer(APIHelper.json_serialize)
|
|
175
|
-
.auth(Single("bearerAuth")),
|
|
178
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
176
179
|
).response(
|
|
177
180
|
ResponseHandler()
|
|
178
181
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -4,6 +4,9 @@ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
# ruff: noqa: D410, E501, E101, D206
|
|
7
|
+
from apimatic_core.authentication.multiple.and_auth_group import (
|
|
8
|
+
And,
|
|
9
|
+
)
|
|
7
10
|
from apimatic_core.authentication.multiple.single_auth import (
|
|
8
11
|
Single,
|
|
9
12
|
)
|
|
@@ -64,7 +67,7 @@ class UserController(BaseController):
|
|
|
64
67
|
.header_param(Parameter()
|
|
65
68
|
.key("accept")
|
|
66
69
|
.value("application/json"))
|
|
67
|
-
.auth(Single("bearerAuth")),
|
|
70
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
68
71
|
).response(
|
|
69
72
|
ResponseHandler()
|
|
70
73
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -92,7 +95,7 @@ class UserController(BaseController):
|
|
|
92
95
|
.header_param(Parameter()
|
|
93
96
|
.key("accept")
|
|
94
97
|
.value("application/json"))
|
|
95
|
-
.auth(Single("bearerAuth")),
|
|
98
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
96
99
|
).response(
|
|
97
100
|
ResponseHandler()
|
|
98
101
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -120,7 +123,7 @@ class UserController(BaseController):
|
|
|
120
123
|
.header_param(Parameter()
|
|
121
124
|
.key("accept")
|
|
122
125
|
.value("application/json"))
|
|
123
|
-
.auth(Single("bearerAuth")),
|
|
126
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
124
127
|
).response(
|
|
125
128
|
ResponseHandler()
|
|
126
129
|
.deserializer(APIHelper.json_deserialize)
|
|
@@ -149,7 +152,7 @@ class UserController(BaseController):
|
|
|
149
152
|
.header_param(Parameter()
|
|
150
153
|
.key("accept")
|
|
151
154
|
.value("application/json"))
|
|
152
|
-
.auth(Single("bearerAuth")),
|
|
155
|
+
.auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
|
|
153
156
|
).response(
|
|
154
157
|
ResponseHandler()
|
|
155
158
|
.deserializer(APIHelper.json_deserialize)
|