tesla-api-sdk 1.0.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tesla-api-sdk
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Tesla-API SDK
5
5
  Author-email: Muhammad Rafay <muhammad.rafay@apimatic.io>
6
6
  Project-URL: Documentation, https://developer.tesla.com/
@@ -28,15 +28,15 @@ The package is compatible with Python versions `3.7+`.
28
28
  Install the package from PyPi using the following pip command:
29
29
 
30
30
  ```bash
31
- pip install tesla-api-sdk==1.0.1
31
+ pip install tesla-api-sdk==1.0.2
32
32
  ```
33
33
 
34
34
  You can also view the package at:
35
- https://pypi.python.org/pypi/tesla-api-sdk/1.0.1
35
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.2
36
36
 
37
37
  ## Initialize the API Client
38
38
 
39
- **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/client.md)
39
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/client.md)
40
40
 
41
41
  The following parameters are configurable for the API Client:
42
42
 
@@ -51,10 +51,10 @@ The following parameters are configurable for the API Client:
51
51
  | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
52
52
  | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
53
53
  | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
54
- | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
55
- | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/logging-configuration.md) | The SDK logging configuration for API calls |
56
- | bearer_auth_credentials | [`BearerAuthCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
57
- | oauth_2_credentials | [`Oauth2Credentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
54
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
55
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/logging-configuration.md) | The SDK logging configuration for API calls |
56
+ | bearer_auth_credentials | [`BearerAuthCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
57
+ | thirdpartytoken_credentials | [`ThirdpartytokenCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
58
58
 
59
59
  The API client can be initialized as follows:
60
60
 
@@ -65,24 +65,24 @@ import logging
65
65
 
66
66
  from teslafleetmanagementapi.configuration import Environment
67
67
  from teslafleetmanagementapi.http.auth.bearer_auth import BearerAuthCredentials
68
- from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
68
+ from teslafleetmanagementapi.http.auth.thirdpartytoken import ThirdpartytokenCredentials
69
69
  from teslafleetmanagementapi.logging.configuration.api_logging_configuration import LoggingConfiguration
70
70
  from teslafleetmanagementapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
71
71
  from teslafleetmanagementapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
72
- from teslafleetmanagementapi.models.o_auth_scope_oauth_2 import OAuthScopeOauth2
72
+ from teslafleetmanagementapi.models.o_auth_scope_thirdpartytoken import OAuthScopeThirdpartytoken
73
73
  from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
74
74
 
75
75
  client = TeslafleetmanagementapiClient(
76
76
  bearer_auth_credentials=BearerAuthCredentials(
77
77
  access_token='AccessToken'
78
78
  ),
79
- oauth_2_credentials=Oauth2Credentials(
79
+ thirdpartytoken_credentials=ThirdpartytokenCredentials(
80
80
  o_auth_client_id='OAuthClientId',
81
81
  o_auth_client_secret='OAuthClientSecret',
82
82
  o_auth_redirect_uri='OAuthRedirectUri',
83
83
  o_auth_scopes=[
84
- OAuthScopeOauth2.OPENID,
85
- OAuthScopeOauth2.OFFLINE_ACCESS
84
+ OAuthScopeThirdpartytoken.OPENID,
85
+ OAuthScopeThirdpartytoken.OFFLINE_ACCESS
86
86
  ]
87
87
  ),
88
88
  environment=Environment.PRODUCTION,
@@ -107,45 +107,45 @@ from teslafleetmanagementapi.teslafleetmanagementapi_client import Teslafleetman
107
107
  client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
108
108
  ```
109
109
 
110
- See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/environment-based-client-initialization.md) section for details.
110
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/environment-based-client-initialization.md) section for details.
111
111
 
112
112
  ## Authorization
113
113
 
114
114
  This API uses the following authentication schemes.
115
115
 
116
- * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/auth/oauth-2-bearer-token.md)
117
- * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/auth/oauth-2-authorization-code-grant.md)
116
+ * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/auth/oauth-2-bearer-token.md)
117
+ * [`thirdpartytoken (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/auth/oauth-2-authorization-code-grant.md)
118
118
 
119
119
  ## List of APIs
120
120
 
121
- * [Vehicle Commands](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/vehicle-commands.md)
122
- * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/charging.md)
123
- * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/energy.md)
124
- * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/partner.md)
125
- * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/user.md)
126
- * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/vehicles.md)
121
+ * [Vehicle Commands](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/controllers/vehicle-commands.md)
122
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/controllers/charging.md)
123
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/controllers/energy.md)
124
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/controllers/partner.md)
125
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/controllers/user.md)
126
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/controllers/vehicles.md)
127
127
 
128
128
  ## SDK Infrastructure
129
129
 
130
130
  ### Configuration
131
131
 
132
- * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/proxy-settings.md)
133
- * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/environment-based-client-initialization.md)
134
- * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/abstract-logger.md)
135
- * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/logging-configuration.md)
136
- * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/request-logging-configuration.md)
137
- * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/response-logging-configuration.md)
132
+ * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/proxy-settings.md)
133
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/environment-based-client-initialization.md)
134
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/abstract-logger.md)
135
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/logging-configuration.md)
136
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/request-logging-configuration.md)
137
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/response-logging-configuration.md)
138
138
 
139
139
  ### HTTP
140
140
 
141
- * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/http-response.md)
142
- * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/http-request.md)
141
+ * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/http-response.md)
142
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/http-request.md)
143
143
 
144
144
  ### Utilities
145
145
 
146
- * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/api-response.md)
147
- * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/api-helper.md)
148
- * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/http-date-time.md)
149
- * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/rfc3339-date-time.md)
150
- * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/unix-date-time.md)
146
+ * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/api-response.md)
147
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/api-helper.md)
148
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/http-date-time.md)
149
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/rfc3339-date-time.md)
150
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.2/doc/unix-date-time.md)
151
151
 
@@ -1,17 +1,17 @@
1
- tesla_api_sdk-1.0.1.dist-info/licenses/LICENSE,sha256=o5qrSek4x1g9YArvhgZmSORdSoQn7unl7I44zmz7iBc,1213
1
+ tesla_api_sdk-1.0.2.dist-info/licenses/LICENSE,sha256=o5qrSek4x1g9YArvhgZmSORdSoQn7unl7I44zmz7iBc,1213
2
2
  teslafleetmanagementapi/__init__.py,sha256=E7NIgboxbvRm8fOqogNH8Y2yjDuOiGW5FAfLtPqbW-A,301
3
3
  teslafleetmanagementapi/api_helper.py,sha256=oS6aPLpKimVdkHpVaoYwgutBH3gYAK01f76Edkxiwvg,551
4
- teslafleetmanagementapi/configuration.py,sha256=XZSTjcAjgEnO6FcofdNtEhuFhu4AZAMPiHUvTGqki2M,10305
5
- teslafleetmanagementapi/teslafleetmanagementapi_client.py,sha256=qhwP7mhvlQmkN2EchAaqKQA-EnKjtINXZ3JyK6-_cms,5030
4
+ teslafleetmanagementapi/configuration.py,sha256=675WvUO1TGB7Pcx6bFqN-mK_Xy6QPfred1mb03S3rck,10464
5
+ teslafleetmanagementapi/teslafleetmanagementapi_client.py,sha256=u0gtwvb6hi_aManch1SW745hQ0_bsR57QwwvWk7idDw,5128
6
6
  teslafleetmanagementapi/controllers/__init__.py,sha256=mkqIbaivL00VyN-OTregSFpS4z1ZcHsUqRxnVnU4vec,353
7
- teslafleetmanagementapi/controllers/base_controller.py,sha256=-22myiAulWM7C5csOD74VLvPEQ45xh-038U7k3JAdWw,2126
8
- teslafleetmanagementapi/controllers/charging_controller.py,sha256=ZNPgNFRgWrzTr0B_jmLoZ_6F3B_LTpWNTbB3j2EBfsY,5353
9
- teslafleetmanagementapi/controllers/energy_controller.py,sha256=Ge5-P3hZ5lmfjU-2YTAF1xPhhHGROQUNamihyHCQIDk,23887
10
- teslafleetmanagementapi/controllers/o_auth_authorization_controller.py,sha256=WTbALAeUd5_-9DtlAJNC1R2CJpp2c9dEucsEzdl1b50,6464
11
- teslafleetmanagementapi/controllers/partner_controller.py,sha256=wNOHeOFPQdd1HCaiXAzQx-LnqEYlwyu1ZKqXSsPrWwE,7074
12
- teslafleetmanagementapi/controllers/user_controller.py,sha256=WpuzMDgDTyzFArWDt7stD6Su4snMHNNE483Fx9IC4F4,6099
13
- teslafleetmanagementapi/controllers/vehicle_commands_controller.py,sha256=-nlxN6ZFgeW1XiBWk44cXahJyzMspiGEOQCiGtkfaqQ,36078
14
- teslafleetmanagementapi/controllers/vehicles_controller.py,sha256=tKkY3tLibVk09LCQoKXoeL2ls3L2LtXbVMgC7K9ubLE,33421
7
+ teslafleetmanagementapi/controllers/base_controller.py,sha256=IKmBrJPPNBwc711eZMH9YZbr_l2ZrWEyRcyLc_zlDHU,2126
8
+ teslafleetmanagementapi/controllers/charging_controller.py,sha256=2ctWtywf-qCjduWflK9udnZRSiYQLL2cUrdZPfAGMYU,5380
9
+ teslafleetmanagementapi/controllers/energy_controller.py,sha256=vy6HNtowryBzMS47KGBC_sDyhClgimpe8U4GnFxJLFA,23986
10
+ teslafleetmanagementapi/controllers/o_auth_authorization_controller.py,sha256=SDNgcUAHN11vJfg3qrtzJCN0sNiLMwY4vSzXz7yf68U,6544
11
+ teslafleetmanagementapi/controllers/partner_controller.py,sha256=oo50aN56rOOxQOJrdyEoJw5dJnEe6ifKMEsTSsLwHiM,7110
12
+ teslafleetmanagementapi/controllers/user_controller.py,sha256=JEOL20-aApYXd7j2EaEn6e6gaGxb-ZFEKlr6vd2U67M,6135
13
+ teslafleetmanagementapi/controllers/vehicle_commands_controller.py,sha256=fKAo4uoxEjfzrbskN5xIDXjXpd8efiSiPhTkDhAmwSc,36267
14
+ teslafleetmanagementapi/controllers/vehicles_controller.py,sha256=dxoFtVoOdUfJLpikSTQffStMg6ju5ObGPrwinYkTXgQ,33610
15
15
  teslafleetmanagementapi/exceptions/__init__.py,sha256=LjTxubZQwse_ZeMvelEdRHUKQtmdZW68kMSVJZ_O7xw,176
16
16
  teslafleetmanagementapi/exceptions/api_exception.py,sha256=Rc05JwUFjiUadBv5xl37mEcXcFKjBLk37HCBIGshOmE,1102
17
17
  teslafleetmanagementapi/exceptions/o_auth_provider_exception.py,sha256=zczgkfdqH4FgS2ckftkKEjV3stNkDmrFeNMjETwEiZk,2399
@@ -23,14 +23,14 @@ teslafleetmanagementapi/http/http_method_enum.py,sha256=OrxdWAVCuUarb9b6BJ03n3lc
23
23
  teslafleetmanagementapi/http/http_request.py,sha256=3OoJDXjFp0zqXeX7-lCJQZE-a1Tgxz78Cac0gWpI4tQ,1892
24
24
  teslafleetmanagementapi/http/http_response.py,sha256=tWcc-lKAkqiEpcg_OGzhHx-ArUiOk4pRGvgKc23Pza8,1487
25
25
  teslafleetmanagementapi/http/proxy_settings.py,sha256=iOH0xt_BPsbv6AmRuQ0IJd2dYgGfxQwNiZJMj4gOthk,1466
26
- teslafleetmanagementapi/http/auth/__init__.py,sha256=VknVQfXv9tjwq8-puTp8mBF1jHPALWKPmJT6KIDEnqg,156
26
+ teslafleetmanagementapi/http/auth/__init__.py,sha256=T5vIcJzixkdICcatNBhm08rlxGIf6Yo5x4SH5vBuQsc,164
27
27
  teslafleetmanagementapi/http/auth/bearer_auth.py,sha256=ruiUc8_uHrJiGOJVUcnGkSsFOa2dMKEWwnjpQEInOZE,2769
28
- teslafleetmanagementapi/http/auth/oauth_2.py,sha256=Qj7cXyhCQ_MyCQAL6DOyJ1rHuHNNLWIaQBdPLPAW1ow,11645
28
+ teslafleetmanagementapi/http/auth/thirdpartytoken.py,sha256=OWpPPCl0VpA-rZ8NuT8dDyET0DG4po4Z08wLn2XxEVc,11729
29
29
  teslafleetmanagementapi/logging/__init__.py,sha256=1T_Geb9czAiw7EJDOWfKErjKAmWTkaWBEZBk54UU5bY,161
30
30
  teslafleetmanagementapi/logging/sdk_logger.py,sha256=JT1bAsa1zlMfc-EOhZI_ugcY8jgiaORqukxYf9_OuPs,685
31
31
  teslafleetmanagementapi/logging/configuration/__init__.py,sha256=HTzMD3CB83jTxGL56Xt5PCqAmFN9GWO6LxcdZ7tN-DA,154
32
32
  teslafleetmanagementapi/logging/configuration/api_logging_configuration.py,sha256=kWmsRvS2GbpNKk9QW1qslW4DPjCbg7DpabR3tQqam_E,15459
33
- teslafleetmanagementapi/models/__init__.py,sha256=cGG7Z76SgfcNnwqboqAhoKmf-pQllQTR5AXAF63wz8I,2773
33
+ teslafleetmanagementapi/models/__init__.py,sha256=M-FI5XVRpOy6WcZ9eduqtQY1hS2QUjzeOTLcYO_zqM8,2781
34
34
  teslafleetmanagementapi/models/actuate_trunk_request.py,sha256=B0ihIVFtWu7jSoJr-y3FtvDWCratLVvRk9pzvzJTREk,2950
35
35
  teslafleetmanagementapi/models/add_charge_schedule_request.py,sha256=71Q0MiVwFlKZfdPgBCFf5tmscWgBz0yn10XQy2MOiAo,8624
36
36
  teslafleetmanagementapi/models/add_precondition_schedule_request.py,sha256=WACbHy1t4GnLzRhu-TGsCbxzRvK1VebeUPAgV-jlGeE,6455
@@ -81,7 +81,7 @@ teslafleetmanagementapi/models/location_1.py,sha256=HZtosA2yx2q0bQWule16BX6jKmev
81
81
  teslafleetmanagementapi/models/me_response.py,sha256=tB0B25UXRzQ82qhm6nuJIc61yLT0Oy9GdToi354JJBQ,3017
82
82
  teslafleetmanagementapi/models/mobile_enabled.py,sha256=KnYNrLvfn3hVy1MF9ZGK0COdoftC7_ERLvP0fm0Xy1Y,3788
83
83
  teslafleetmanagementapi/models/o_auth_provider_error.py,sha256=5FMCFT9_olDm8hCpuxaI0bJ5ZGH3h8skuAUr7M-tjOk,2536
84
- teslafleetmanagementapi/models/o_auth_scope_oauth_2.py,sha256=eLwsfqjpPCj9PMvuhYGIplBj6-lToXzgw9OcfIweKCA,3024
84
+ teslafleetmanagementapi/models/o_auth_scope_thirdpartytoken.py,sha256=4TaM_QLszQ-KKhtCOlJqYICJhjN-_GXjVj7dgwrhLqA,3042
85
85
  teslafleetmanagementapi/models/o_auth_token.py,sha256=ukMdwkVfuxMdZeeCD4kH1GjU_SaSxg6hmgO1EGqPjhE,3610
86
86
  teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py,sha256=qhT_QjrTZD0zyAgPxaNrhQiZPtoTRYn0_3jeZ8t_7D4,3565
87
87
  teslafleetmanagementapi/models/operation_request.py,sha256=gl2GNqrT_nhtyecg1sjDTq39ZkuCsMnQh7Em1lkuClI,3071
@@ -123,7 +123,7 @@ teslafleetmanagementapi/models/warranty_item.py,sha256=cBa4FwySUhIO9AgxOSfvMYYJU
123
123
  teslafleetmanagementapi/models/which_trunk.py,sha256=FrYSgT9Is0ftYjY55CEYUHn4PiFwwtkjzBT3b7mbKPI,1297
124
124
  teslafleetmanagementapi/utilities/__init__.py,sha256=pq3szt1E0U5M7qGCe9Vdl_jAM7wSgi8mj-UB-Flp6Ow,160
125
125
  teslafleetmanagementapi/utilities/file_wrapper.py,sha256=uyOflQkVT3YGWBy3oKE716gTwCqECcx67ilKbRWDAWQ,1438
126
- tesla_api_sdk-1.0.1.dist-info/METADATA,sha256=ropOlh_GsM4Mjm9Ex9H75PHxQpUNdw1EH5UaGivaep4,7864
127
- tesla_api_sdk-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
128
- tesla_api_sdk-1.0.1.dist-info/top_level.txt,sha256=7DyijchnTRcw5IUZYf9ehvyCZApnY0d-PLaq6b3Le3g,24
129
- tesla_api_sdk-1.0.1.dist-info/RECORD,,
126
+ tesla_api_sdk-1.0.2.dist-info/METADATA,sha256=pGVThmVwD2oV8Fyh8tM0KqdrER0FCJ-tI68jRDg0RrI,7959
127
+ tesla_api_sdk-1.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
128
+ tesla_api_sdk-1.0.2.dist-info/top_level.txt,sha256=7DyijchnTRcw5IUZYf9ehvyCZApnY0d-PLaq6b3Le3g,24
129
+ tesla_api_sdk-1.0.2.dist-info/RECORD,,
@@ -107,16 +107,16 @@ class Configuration(HttpClientConfiguration):
107
107
  return self._bearer_auth_credentials
108
108
 
109
109
  @property
110
- def oauth_2_credentials(self):
111
- """Return current oauth_2_credentials."""
112
- return self._oauth_2_credentials
110
+ def thirdpartytoken_credentials(self):
111
+ """Return current thirdpartytoken_credentials."""
112
+ return self._thirdpartytoken_credentials
113
113
 
114
114
  def __init__(self, http_client_instance=None,
115
115
  override_http_client_configuration=False, http_call_back=None,
116
116
  timeout=60, max_retries=0, backoff_factor=2, retry_statuses=None,
117
117
  retry_methods=None, proxy_settings=None, logging_configuration=None,
118
118
  environment=Environment.PRODUCTION, bearer_auth_credentials=None,
119
- oauth_2_credentials=None):
119
+ thirdpartytoken_credentials=None):
120
120
  """Initialize Configuration object."""
121
121
  if retry_methods is None:
122
122
  retry_methods = ["GET", "PUT"]
@@ -142,7 +142,7 @@ class Configuration(HttpClientConfiguration):
142
142
  self._bearer_auth_credentials = bearer_auth_credentials
143
143
 
144
144
  # The object holding OAuth 2 Authorization Code Grant credentials
145
- self._oauth_2_credentials = oauth_2_credentials
145
+ self._thirdpartytoken_credentials = thirdpartytoken_credentials
146
146
 
147
147
  # The Http Client to use for making requests.
148
148
  self.set_http_client(self.create_http_client())
@@ -152,7 +152,7 @@ class Configuration(HttpClientConfiguration):
152
152
  timeout=None, max_retries=None, backoff_factor=None,
153
153
  retry_statuses=None, retry_methods=None, proxy_settings=None,
154
154
  logging_configuration=None, environment=None,
155
- bearer_auth_credentials=None, oauth_2_credentials=None):
155
+ bearer_auth_credentials=None, thirdpartytoken_credentials=None):
156
156
  """Clone configuration with overrides."""
157
157
  http_client_instance = http_client_instance or self.http_client_instance
158
158
  override_http_client_configuration =\
@@ -170,7 +170,9 @@ class Configuration(HttpClientConfiguration):
170
170
  bearer_auth_credentials =\
171
171
  (bearer_auth_credentials
172
172
  or self.bearer_auth_credentials)
173
- oauth_2_credentials = oauth_2_credentials or self.oauth_2_credentials
173
+ thirdpartytoken_credentials =\
174
+ (thirdpartytoken_credentials
175
+ or self.thirdpartytoken_credentials)
174
176
  return Configuration(
175
177
  http_client_instance=http_client_instance,
176
178
  override_http_client_configuration=override_http_client_configuration,
@@ -179,7 +181,7 @@ class Configuration(HttpClientConfiguration):
179
181
  retry_methods=retry_methods, proxy_settings=proxy_settings,
180
182
  logging_configuration=logging_configuration, environment=environment,
181
183
  bearer_auth_credentials=bearer_auth_credentials,
182
- oauth_2_credentials=oauth_2_credentials,
184
+ thirdpartytoken_credentials=thirdpartytoken_credentials,
183
185
  )
184
186
 
185
187
  def create_http_client(self):
@@ -248,8 +250,8 @@ class Configuration(HttpClientConfiguration):
248
250
  from teslafleetmanagementapi.http.auth.bearer_auth import (
249
251
  BearerAuthCredentials,
250
252
  )
251
- from teslafleetmanagementapi.http.auth.oauth_2 import (
252
- Oauth2Credentials,
253
+ from teslafleetmanagementapi.http.auth.thirdpartytoken import (
254
+ ThirdpartytokenCredentials,
253
255
  )
254
256
 
255
257
  # Preparing default configuration
@@ -264,7 +266,7 @@ class Configuration(HttpClientConfiguration):
264
266
  proxy_settings=ProxySettings.from_environment(),
265
267
  logging_configuration=LoggingConfiguration.from_environment(),
266
268
  bearer_auth_credentials=BearerAuthCredentials.from_environment(),
267
- oauth_2_credentials=Oauth2Credentials.from_environment(),
269
+ thirdpartytoken_credentials=ThirdpartytokenCredentials.from_environment(),
268
270
  )
269
271
 
270
272
  return default_config.clone_with(**overrides)
@@ -30,7 +30,7 @@ class BaseController(object):
30
30
  @staticmethod
31
31
  def user_agent():
32
32
  """Return UserAgent value."""
33
- return "Python SDK, Version: 1.0.1, on OS {os-info}"
33
+ return "Python SDK, Version: 1.0.2, on OS {os-info}"
34
34
 
35
35
  @staticmethod
36
36
  def user_agent_parameters():
@@ -64,7 +64,7 @@ class ChargingController(BaseController):
64
64
  .header_param(Parameter()
65
65
  .key("accept")
66
66
  .value("application/json"))
67
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
67
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
68
68
  ).response(
69
69
  ResponseHandler()
70
70
  .deserializer(APIHelper.json_deserialize)
@@ -103,7 +103,7 @@ class ChargingController(BaseController):
103
103
  .header_param(Parameter()
104
104
  .key("accept")
105
105
  .value("application/json"))
106
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
106
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
107
107
  ).response(
108
108
  ResponseHandler()
109
109
  .deserializer(APIHelper.dynamic_deserialize)
@@ -134,7 +134,7 @@ class ChargingController(BaseController):
134
134
  .header_param(Parameter()
135
135
  .key("accept")
136
136
  .value("application/json"))
137
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
137
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
138
138
  ).response(
139
139
  ResponseHandler()
140
140
  .deserializer(APIHelper.json_deserialize)
@@ -95,7 +95,7 @@ class EnergyController(BaseController):
95
95
  .key("accept")
96
96
  .value("application/json"))
97
97
  .body_serializer(APIHelper.json_serialize)
98
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
98
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
99
99
  ).response(
100
100
  ResponseHandler()
101
101
  .deserializer(APIHelper.json_deserialize)
@@ -163,7 +163,7 @@ class EnergyController(BaseController):
163
163
  .header_param(Parameter()
164
164
  .key("accept")
165
165
  .value("application/json"))
166
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
166
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
167
167
  ).response(
168
168
  ResponseHandler()
169
169
  .deserializer(APIHelper.json_deserialize)
@@ -227,7 +227,7 @@ class EnergyController(BaseController):
227
227
  .header_param(Parameter()
228
228
  .key("accept")
229
229
  .value("application/json"))
230
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
230
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
231
231
  ).response(
232
232
  ResponseHandler()
233
233
  .deserializer(APIHelper.json_deserialize)
@@ -265,7 +265,7 @@ class EnergyController(BaseController):
265
265
  .header_param(Parameter()
266
266
  .key("accept")
267
267
  .value("application/json"))
268
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
268
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
269
269
  ).response(
270
270
  ResponseHandler()
271
271
  .deserializer(APIHelper.json_deserialize)
@@ -312,7 +312,7 @@ class EnergyController(BaseController):
312
312
  .key("accept")
313
313
  .value("application/json"))
314
314
  .body_serializer(APIHelper.json_serialize)
315
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
315
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
316
316
  ).response(
317
317
  ResponseHandler()
318
318
  .deserializer(APIHelper.json_deserialize)
@@ -359,7 +359,7 @@ class EnergyController(BaseController):
359
359
  .key("accept")
360
360
  .value("application/json"))
361
361
  .body_serializer(APIHelper.json_serialize)
362
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
362
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
363
363
  ).response(
364
364
  ResponseHandler()
365
365
  .deserializer(APIHelper.json_deserialize)
@@ -406,7 +406,7 @@ class EnergyController(BaseController):
406
406
  .key("accept")
407
407
  .value("application/json"))
408
408
  .body_serializer(APIHelper.json_serialize)
409
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
409
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
410
410
  ).response(
411
411
  ResponseHandler()
412
412
  .deserializer(APIHelper.json_deserialize)
@@ -453,7 +453,7 @@ class EnergyController(BaseController):
453
453
  .key("accept")
454
454
  .value("application/json"))
455
455
  .body_serializer(APIHelper.json_serialize)
456
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
456
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
457
457
  ).response(
458
458
  ResponseHandler()
459
459
  .deserializer(APIHelper.json_deserialize)
@@ -500,7 +500,7 @@ class EnergyController(BaseController):
500
500
  .key("accept")
501
501
  .value("application/json"))
502
502
  .body_serializer(APIHelper.json_serialize)
503
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
503
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
504
504
  ).response(
505
505
  ResponseHandler()
506
506
  .deserializer(APIHelper.json_deserialize)
@@ -528,7 +528,7 @@ class EnergyController(BaseController):
528
528
  .header_param(Parameter()
529
529
  .key("accept")
530
530
  .value("application/json"))
531
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
531
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
532
532
  ).response(
533
533
  ResponseHandler()
534
534
  .deserializer(APIHelper.json_deserialize)
@@ -566,7 +566,7 @@ class EnergyController(BaseController):
566
566
  .header_param(Parameter()
567
567
  .key("accept")
568
568
  .value("application/json"))
569
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
569
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
570
570
  ).response(
571
571
  ResponseHandler()
572
572
  .deserializer(APIHelper.json_deserialize)
@@ -35,11 +35,11 @@ class OAuthAuthorizationController(BaseController):
35
35
  """Initialize OAuthAuthorizationController object."""
36
36
  super(OAuthAuthorizationController, self).__init__(config)
37
37
 
38
- def request_token_oauth_2(self,
39
- authorization,
40
- code,
41
- redirect_uri,
42
- _optional_form_parameters=None):
38
+ def request_token_thirdpartytoken(self,
39
+ authorization,
40
+ code,
41
+ redirect_uri,
42
+ _optional_form_parameters=None):
43
43
  """Perform a POST request to /token.
44
44
 
45
45
  Create a new OAuth 2 token.
@@ -100,11 +100,11 @@ class OAuthAuthorizationController(BaseController):
100
100
  OAuthProviderException),
101
101
  ).execute()
102
102
 
103
- def refresh_token_oauth_2(self,
104
- authorization,
105
- refresh_token,
106
- scope=None,
107
- _optional_form_parameters=None):
103
+ def refresh_token_thirdpartytoken(self,
104
+ authorization,
105
+ refresh_token,
106
+ scope=None,
107
+ _optional_form_parameters=None):
108
108
  """Perform a POST request to /token.
109
109
 
110
110
  Obtain a new access token using a refresh token
@@ -69,7 +69,7 @@ class PartnerController(BaseController):
69
69
  .header_param(Parameter()
70
70
  .key("accept")
71
71
  .value("application/json"))
72
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
72
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
73
73
  ).response(
74
74
  ResponseHandler()
75
75
  .deserializer(APIHelper.json_deserialize)
@@ -99,7 +99,7 @@ class PartnerController(BaseController):
99
99
  .header_param(Parameter()
100
100
  .key("accept")
101
101
  .value("application/json"))
102
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
102
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
103
103
  ).response(
104
104
  ResponseHandler()
105
105
  .deserializer(APIHelper.json_deserialize)
@@ -135,7 +135,7 @@ class PartnerController(BaseController):
135
135
  .header_param(Parameter()
136
136
  .key("accept")
137
137
  .value("application/json"))
138
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
138
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
139
139
  ).response(
140
140
  ResponseHandler()
141
141
  .deserializer(APIHelper.json_deserialize)
@@ -175,7 +175,7 @@ class PartnerController(BaseController):
175
175
  .key("accept")
176
176
  .value("application/json"))
177
177
  .body_serializer(APIHelper.json_serialize)
178
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
178
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
179
179
  ).response(
180
180
  ResponseHandler()
181
181
  .deserializer(APIHelper.json_deserialize)
@@ -67,7 +67,7 @@ class UserController(BaseController):
67
67
  .header_param(Parameter()
68
68
  .key("accept")
69
69
  .value("application/json"))
70
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
70
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
71
71
  ).response(
72
72
  ResponseHandler()
73
73
  .deserializer(APIHelper.json_deserialize)
@@ -95,7 +95,7 @@ class UserController(BaseController):
95
95
  .header_param(Parameter()
96
96
  .key("accept")
97
97
  .value("application/json"))
98
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
98
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
99
99
  ).response(
100
100
  ResponseHandler()
101
101
  .deserializer(APIHelper.json_deserialize)
@@ -123,7 +123,7 @@ class UserController(BaseController):
123
123
  .header_param(Parameter()
124
124
  .key("accept")
125
125
  .value("application/json"))
126
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
126
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
127
127
  ).response(
128
128
  ResponseHandler()
129
129
  .deserializer(APIHelper.json_deserialize)
@@ -152,7 +152,7 @@ class UserController(BaseController):
152
152
  .header_param(Parameter()
153
153
  .key("accept")
154
154
  .value("application/json"))
155
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
155
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
156
156
  ).response(
157
157
  ResponseHandler()
158
158
  .deserializer(APIHelper.json_deserialize)
@@ -79,7 +79,7 @@ class VehicleCommandsController(BaseController):
79
79
  .key("accept")
80
80
  .value("application/json"))
81
81
  .body_serializer(APIHelper.json_serialize)
82
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
82
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
83
83
  ).response(
84
84
  ResponseHandler()
85
85
  .deserializer(APIHelper.json_deserialize)
@@ -126,7 +126,7 @@ class VehicleCommandsController(BaseController):
126
126
  .key("accept")
127
127
  .value("application/json"))
128
128
  .body_serializer(APIHelper.json_serialize)
129
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
129
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
130
130
  ).response(
131
131
  ResponseHandler()
132
132
  .deserializer(APIHelper.json_deserialize)
@@ -173,7 +173,7 @@ class VehicleCommandsController(BaseController):
173
173
  .key("accept")
174
174
  .value("application/json"))
175
175
  .body_serializer(APIHelper.json_serialize)
176
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
176
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
177
177
  ).response(
178
178
  ResponseHandler()
179
179
  .deserializer(APIHelper.json_deserialize)
@@ -220,7 +220,7 @@ class VehicleCommandsController(BaseController):
220
220
  .key("accept")
221
221
  .value("application/json"))
222
222
  .body_serializer(APIHelper.json_serialize)
223
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
223
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
224
224
  ).response(
225
225
  ResponseHandler()
226
226
  .deserializer(APIHelper.json_deserialize)
@@ -258,7 +258,7 @@ class VehicleCommandsController(BaseController):
258
258
  .header_param(Parameter()
259
259
  .key("accept")
260
260
  .value("application/json"))
261
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
261
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
262
262
  ).response(
263
263
  ResponseHandler()
264
264
  .deserializer(APIHelper.json_deserialize)
@@ -296,7 +296,7 @@ class VehicleCommandsController(BaseController):
296
296
  .header_param(Parameter()
297
297
  .key("accept")
298
298
  .value("application/json"))
299
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
299
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
300
300
  ).response(
301
301
  ResponseHandler()
302
302
  .deserializer(APIHelper.json_deserialize)
@@ -334,7 +334,7 @@ class VehicleCommandsController(BaseController):
334
334
  .header_param(Parameter()
335
335
  .key("accept")
336
336
  .value("application/json"))
337
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
337
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
338
338
  ).response(
339
339
  ResponseHandler()
340
340
  .deserializer(APIHelper.json_deserialize)
@@ -372,7 +372,7 @@ class VehicleCommandsController(BaseController):
372
372
  .header_param(Parameter()
373
373
  .key("accept")
374
374
  .value("application/json"))
375
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
375
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
376
376
  ).response(
377
377
  ResponseHandler()
378
378
  .deserializer(APIHelper.json_deserialize)
@@ -410,7 +410,7 @@ class VehicleCommandsController(BaseController):
410
410
  .header_param(Parameter()
411
411
  .key("accept")
412
412
  .value("application/json"))
413
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
413
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
414
414
  ).response(
415
415
  ResponseHandler()
416
416
  .deserializer(APIHelper.json_deserialize)
@@ -448,7 +448,7 @@ class VehicleCommandsController(BaseController):
448
448
  .header_param(Parameter()
449
449
  .key("accept")
450
450
  .value("application/json"))
451
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
451
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
452
452
  ).response(
453
453
  ResponseHandler()
454
454
  .deserializer(APIHelper.json_deserialize)
@@ -486,7 +486,7 @@ class VehicleCommandsController(BaseController):
486
486
  .header_param(Parameter()
487
487
  .key("accept")
488
488
  .value("application/json"))
489
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
489
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
490
490
  ).response(
491
491
  ResponseHandler()
492
492
  .deserializer(APIHelper.json_deserialize)
@@ -524,7 +524,7 @@ class VehicleCommandsController(BaseController):
524
524
  .header_param(Parameter()
525
525
  .key("accept")
526
526
  .value("application/json"))
527
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
527
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
528
528
  ).response(
529
529
  ResponseHandler()
530
530
  .deserializer(APIHelper.json_deserialize)
@@ -562,7 +562,7 @@ class VehicleCommandsController(BaseController):
562
562
  .header_param(Parameter()
563
563
  .key("accept")
564
564
  .value("application/json"))
565
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
565
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
566
566
  ).response(
567
567
  ResponseHandler()
568
568
  .deserializer(APIHelper.json_deserialize)
@@ -603,7 +603,7 @@ class VehicleCommandsController(BaseController):
603
603
  .header_param(Parameter()
604
604
  .key("accept")
605
605
  .value("application/json"))
606
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
606
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
607
607
  ).response(
608
608
  ResponseHandler()
609
609
  .deserializer(APIHelper.json_deserialize)
@@ -641,7 +641,7 @@ class VehicleCommandsController(BaseController):
641
641
  .header_param(Parameter()
642
642
  .key("accept")
643
643
  .value("application/json"))
644
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
644
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
645
645
  ).response(
646
646
  ResponseHandler()
647
647
  .deserializer(APIHelper.json_deserialize)
@@ -679,7 +679,7 @@ class VehicleCommandsController(BaseController):
679
679
  .header_param(Parameter()
680
680
  .key("accept")
681
681
  .value("application/json"))
682
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
682
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
683
683
  ).response(
684
684
  ResponseHandler()
685
685
  .deserializer(APIHelper.json_deserialize)
@@ -719,7 +719,7 @@ class VehicleCommandsController(BaseController):
719
719
  .header_param(Parameter()
720
720
  .key("accept")
721
721
  .value("application/json"))
722
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
722
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
723
723
  ).response(
724
724
  ResponseHandler()
725
725
  .deserializer(APIHelper.json_deserialize)
@@ -759,7 +759,7 @@ class VehicleCommandsController(BaseController):
759
759
  .header_param(Parameter()
760
760
  .key("accept")
761
761
  .value("application/json"))
762
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
762
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
763
763
  ).response(
764
764
  ResponseHandler()
765
765
  .deserializer(APIHelper.json_deserialize)
@@ -806,7 +806,7 @@ class VehicleCommandsController(BaseController):
806
806
  .key("accept")
807
807
  .value("application/json"))
808
808
  .body_serializer(APIHelper.json_serialize)
809
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
809
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
810
810
  ).response(
811
811
  ResponseHandler()
812
812
  .deserializer(APIHelper.json_deserialize)
@@ -844,7 +844,7 @@ class VehicleCommandsController(BaseController):
844
844
  .header_param(Parameter()
845
845
  .key("accept")
846
846
  .value("application/json"))
847
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
847
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
848
848
  ).response(
849
849
  ResponseHandler()
850
850
  .deserializer(APIHelper.json_deserialize)
@@ -882,7 +882,7 @@ class VehicleCommandsController(BaseController):
882
882
  .header_param(Parameter()
883
883
  .key("accept")
884
884
  .value("application/json"))
885
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
885
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
886
886
  ).response(
887
887
  ResponseHandler()
888
888
  .deserializer(APIHelper.json_deserialize)
@@ -85,7 +85,7 @@ class VehiclesController(BaseController):
85
85
  .header_param(Parameter()
86
86
  .key("accept")
87
87
  .value("application/json"))
88
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
88
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
89
89
  ).response(
90
90
  ResponseHandler()
91
91
  .deserializer(APIHelper.json_deserialize)
@@ -122,7 +122,7 @@ class VehiclesController(BaseController):
122
122
  .header_param(Parameter()
123
123
  .key("accept")
124
124
  .value("application/json"))
125
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
125
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
126
126
  ).response(
127
127
  ResponseHandler()
128
128
  .deserializer(APIHelper.json_deserialize)
@@ -160,7 +160,7 @@ class VehiclesController(BaseController):
160
160
  .header_param(Parameter()
161
161
  .key("accept")
162
162
  .value("application/json"))
163
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
163
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
164
164
  ).response(
165
165
  ResponseHandler()
166
166
  .deserializer(APIHelper.json_deserialize)
@@ -198,7 +198,7 @@ class VehiclesController(BaseController):
198
198
  .header_param(Parameter()
199
199
  .key("accept")
200
200
  .value("application/json"))
201
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
201
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
202
202
  ).response(
203
203
  ResponseHandler()
204
204
  .deserializer(APIHelper.json_deserialize)
@@ -235,7 +235,7 @@ class VehiclesController(BaseController):
235
235
  .header_param(Parameter()
236
236
  .key("accept")
237
237
  .value("application/json"))
238
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
238
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
239
239
  ).response(
240
240
  ResponseHandler()
241
241
  .deserializer(APIHelper.json_deserialize)
@@ -272,7 +272,7 @@ class VehiclesController(BaseController):
272
272
  .header_param(Parameter()
273
273
  .key("accept")
274
274
  .value("application/json"))
275
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
275
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
276
276
  ).response(
277
277
  ResponseHandler()
278
278
  .deserializer(APIHelper.json_deserialize)
@@ -309,7 +309,7 @@ class VehiclesController(BaseController):
309
309
  .header_param(Parameter()
310
310
  .key("accept")
311
311
  .value("application/json"))
312
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
312
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
313
313
  ).response(
314
314
  ResponseHandler()
315
315
  .deserializer(APIHelper.json_deserialize)
@@ -345,7 +345,7 @@ class VehiclesController(BaseController):
345
345
  .header_param(Parameter()
346
346
  .key("accept")
347
347
  .value("application/json"))
348
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
348
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
349
349
  ).response(
350
350
  ResponseHandler()
351
351
  .deserializer(APIHelper.json_deserialize)
@@ -373,7 +373,7 @@ class VehiclesController(BaseController):
373
373
  .header_param(Parameter()
374
374
  .key("accept")
375
375
  .value("application/json"))
376
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
376
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
377
377
  ).response(
378
378
  ResponseHandler()
379
379
  .deserializer(APIHelper.json_deserialize)
@@ -410,7 +410,7 @@ class VehiclesController(BaseController):
410
410
  .header_param(Parameter()
411
411
  .key("accept")
412
412
  .value("application/json"))
413
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
413
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
414
414
  ).response(
415
415
  ResponseHandler()
416
416
  .deserializer(APIHelper.json_deserialize)
@@ -447,7 +447,7 @@ class VehiclesController(BaseController):
447
447
  .header_param(Parameter()
448
448
  .key("accept")
449
449
  .value("application/json"))
450
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
450
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
451
451
  ).response(
452
452
  ResponseHandler()
453
453
  .deserializer(APIHelper.json_deserialize)
@@ -484,7 +484,7 @@ class VehiclesController(BaseController):
484
484
  .header_param(Parameter()
485
485
  .key("accept")
486
486
  .value("application/json"))
487
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
487
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
488
488
  ).response(
489
489
  ResponseHandler()
490
490
  .deserializer(APIHelper.json_deserialize)
@@ -520,7 +520,7 @@ class VehiclesController(BaseController):
520
520
  .header_param(Parameter()
521
521
  .key("accept")
522
522
  .value("application/json"))
523
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
523
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
524
524
  ).response(
525
525
  ResponseHandler()
526
526
  .deserializer(APIHelper.json_deserialize)
@@ -563,7 +563,7 @@ class VehiclesController(BaseController):
563
563
  .value(body)
564
564
  .is_required(True))
565
565
  .body_serializer(APIHelper.json_serialize)
566
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
566
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
567
567
  ).response(
568
568
  ResponseHandler()
569
569
  .is_api_response(True),
@@ -598,7 +598,7 @@ class VehiclesController(BaseController):
598
598
  .header_param(Parameter()
599
599
  .key("accept")
600
600
  .value("application/json"))
601
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
601
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
602
602
  ).response(
603
603
  ResponseHandler()
604
604
  .deserializer(APIHelper.json_deserialize)
@@ -636,7 +636,7 @@ class VehiclesController(BaseController):
636
636
  .key("accept")
637
637
  .value("application/json"))
638
638
  .body_serializer(APIHelper.json_serialize)
639
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
639
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
640
640
  ).response(
641
641
  ResponseHandler()
642
642
  .deserializer(APIHelper.json_deserialize)
@@ -675,7 +675,7 @@ class VehiclesController(BaseController):
675
675
  .key("accept")
676
676
  .value("application/json"))
677
677
  .body_serializer(APIHelper.json_serialize)
678
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
678
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
679
679
  ).response(
680
680
  ResponseHandler()
681
681
  .deserializer(APIHelper.json_deserialize)
@@ -713,7 +713,7 @@ class VehiclesController(BaseController):
713
713
  .header_param(Parameter()
714
714
  .key("accept")
715
715
  .value("application/json"))
716
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
716
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
717
717
  ).response(
718
718
  ResponseHandler()
719
719
  .deserializer(APIHelper.json_deserialize)
@@ -750,7 +750,7 @@ class VehiclesController(BaseController):
750
750
  .header_param(Parameter()
751
751
  .key("accept")
752
752
  .value("application/json"))
753
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
753
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
754
754
  ).response(
755
755
  ResponseHandler()
756
756
  .deserializer(APIHelper.json_deserialize)
@@ -790,7 +790,7 @@ class VehiclesController(BaseController):
790
790
  .key("accept")
791
791
  .value("application/json"))
792
792
  .body_serializer(APIHelper.json_serialize)
793
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
793
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
794
794
  ).response(
795
795
  ResponseHandler()
796
796
  .deserializer(APIHelper.json_deserialize)
@@ -827,7 +827,7 @@ class VehiclesController(BaseController):
827
827
  .header_param(Parameter()
828
828
  .key("accept")
829
829
  .value("application/json"))
830
- .auth(And(Single("bearerAuth"), Single("oauth2"))),
830
+ .auth(And(Single("bearerAuth"), Single("thirdpartytoken"))),
831
831
  ).response(
832
832
  ResponseHandler()
833
833
  .deserializer(APIHelper.json_deserialize)
@@ -2,5 +2,5 @@
2
2
  # ruff: noqa: RUF022 | `__all__` is not sorted
3
3
  __all__ = [
4
4
  "bearer_auth",
5
- "oauth_2",
5
+ "thirdpartytoken",
6
6
  ]
@@ -29,7 +29,7 @@ from teslafleetmanagementapi.models.o_auth_token import (
29
29
  )
30
30
 
31
31
 
32
- class Oauth2(HeaderAuth):
32
+ class Thirdpartytoken(HeaderAuth):
33
33
  """
34
34
  An authentication handler that applies `AuthorizationCodeAuth` to
35
35
  outgoing requests. It constructs the required credential values and integrates
@@ -39,7 +39,7 @@ class Oauth2(HeaderAuth):
39
39
  @property
40
40
  def error_message(self):
41
41
  """Return reason about the authentication failure."""
42
- return "Oauth2: OAuthToken is undefined or expired."
42
+ return "Thirdpartytoken: OAuthToken is undefined or expired."
43
43
 
44
44
  def __init__(self, auth_credentials_model, config):
45
45
  """
@@ -146,7 +146,7 @@ class Oauth2(HeaderAuth):
146
146
  OAuthToken: The OAuth token.
147
147
 
148
148
  """
149
- token = self._o_auth_api.request_token_oauth_2(
149
+ token = self._o_auth_api.request_token_thirdpartytoken(
150
150
  self.build_basic_auth_header(),
151
151
  auth_code,
152
152
  self._o_auth_redirect_uri,
@@ -191,7 +191,7 @@ class Oauth2(HeaderAuth):
191
191
  OAuthToken: The refreshed OAuth token.
192
192
 
193
193
  """
194
- token = self._o_auth_api.refresh_token_oauth_2(
194
+ token = self._o_auth_api.refresh_token_thirdpartytoken(
195
195
  self.build_basic_auth_header(),
196
196
  self._o_auth_token.refresh_token,
197
197
  " ".join(self._o_auth_scopes) if self._o_auth_scopes else None,
@@ -206,7 +206,7 @@ class Oauth2(HeaderAuth):
206
206
  return token
207
207
 
208
208
 
209
- class Oauth2Credentials:
209
+ class ThirdpartytokenCredentials:
210
210
  """
211
211
  A model for authentication credentials. Provides simple validation,
212
212
  cloning support, and optional construction from environment variables.
@@ -290,7 +290,7 @@ class Oauth2Credentials:
290
290
  o_auth_scopes: The o_auth_scopes property value to set.
291
291
 
292
292
  """
293
- return Oauth2Credentials(
293
+ return ThirdpartytokenCredentials(
294
294
  o_auth_client_id or self.o_auth_client_id,
295
295
  o_auth_client_secret or self.o_auth_client_secret,
296
296
  o_auth_redirect_uri or self.o_auth_redirect_uri,
@@ -307,19 +307,19 @@ class Oauth2Credentials:
307
307
 
308
308
  """
309
309
  o_auth_client_id = os.getenv(
310
- "OAUTH_2_O_AUTH_CLIENT_ID",
310
+ "THIRDPARTYTOKEN_O_AUTH_CLIENT_ID",
311
311
  None,
312
312
  )
313
313
  o_auth_client_secret = os.getenv(
314
- "OAUTH_2_O_AUTH_CLIENT_SECRET",
314
+ "THIRDPARTYTOKEN_O_AUTH_CLIENT_SECRET",
315
315
  None,
316
316
  )
317
317
  o_auth_redirect_uri = os.getenv(
318
- "OAUTH_2_O_AUTH_REDIRECT_URI",
318
+ "THIRDPARTYTOKEN_O_AUTH_REDIRECT_URI",
319
319
  None,
320
320
  )
321
321
  o_auth_scopes = os.getenv(
322
- "OAUTH_2_O_AUTH_SCOPES",
322
+ "THIRDPARTYTOKEN_O_AUTH_SCOPES",
323
323
  None,
324
324
  )
325
325
 
@@ -51,7 +51,7 @@ __all__ = [
51
51
  "me_response",
52
52
  "mobile_enabled",
53
53
  "o_auth_provider_error",
54
- "o_auth_scope_oauth_2",
54
+ "o_auth_scope_thirdpartytoken",
55
55
  "o_auth_token",
56
56
  "off_grid_vehicle_charging_reserve_request",
57
57
  "operation_request",
@@ -5,8 +5,8 @@ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io
5
5
 
6
6
  # ruff: noqa: E501
7
7
 
8
- class OAuthScopeOauth2(object):
9
- """Implementation of the 'OAuth ScopeOauth2' enum.
8
+ class OAuthScopeThirdpartytoken(object):
9
+ """Implementation of the 'OAuth ScopeThirdpartytoken' enum.
10
10
 
11
11
  OAuth 2 scopes supported by the API
12
12
 
@@ -42,8 +42,8 @@ from teslafleetmanagementapi.controllers.vehicles_controller import (
42
42
  from teslafleetmanagementapi.http.auth.bearer_auth import (
43
43
  BearerAuth,
44
44
  )
45
- from teslafleetmanagementapi.http.auth.oauth_2 import (
46
- Oauth2,
45
+ from teslafleetmanagementapi.http.auth.thirdpartytoken import (
46
+ Thirdpartytoken,
47
47
  )
48
48
 
49
49
 
@@ -86,16 +86,16 @@ class TeslafleetmanagementapiClient(object):
86
86
  return OAuthAuthorizationController(self.global_configuration)
87
87
 
88
88
  @property
89
- def oauth_2(self):
90
- """Provide access to the Oauth2 auth manager."""
91
- return self.auth_managers["oauth2"]
89
+ def thirdpartytoken(self):
90
+ """Provide access to the Thirdpartytoken auth manager."""
91
+ return self.auth_managers["thirdpartytoken"]
92
92
 
93
93
  def __init__(self, http_client_instance=None,
94
94
  override_http_client_configuration=False, http_call_back=None,
95
95
  timeout=60, max_retries=0, backoff_factor=2,
96
96
  retry_statuses=None, retry_methods=None, proxy_settings=None,
97
97
  logging_configuration=None, environment=Environment.PRODUCTION,
98
- bearer_auth_credentials=None, oauth_2_credentials=None,
98
+ bearer_auth_credentials=None, thirdpartytoken_credentials=None,
99
99
  config=None):
100
100
  """Initialize a new instance of TeslafleetmanagementapiClient."""
101
101
  self.config = config or Configuration(
@@ -108,7 +108,7 @@ class TeslafleetmanagementapiClient(object):
108
108
  logging_configuration=logging_configuration,
109
109
  environment=environment,
110
110
  bearer_auth_credentials=bearer_auth_credentials,
111
- oauth_2_credentials=oauth_2_credentials)
111
+ thirdpartytoken_credentials=thirdpartytoken_credentials)
112
112
 
113
113
  self.global_configuration = GlobalConfiguration(self.config)\
114
114
  .global_errors(BaseController.global_errors())\
@@ -118,8 +118,9 @@ class TeslafleetmanagementapiClient(object):
118
118
 
119
119
  self.auth_managers = {
120
120
  "bearerAuth": BearerAuth(self.config.bearer_auth_credentials),
121
- "oauth2": Oauth2(self.config.oauth_2_credentials,
122
- self.global_configuration),
121
+ "thirdpartytoken": Thirdpartytoken(
122
+ self.config.thirdpartytoken_credentials,
123
+ self.global_configuration),
123
124
  }
124
125
  self.global_configuration =\
125
126
  self.global_configuration.auth_managers(self.auth_managers)