tesla-api-sdk 1.0.1__tar.gz → 1.0.3__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.
Files changed (135) hide show
  1. {tesla_api_sdk-1.0.1/tesla_api_sdk.egg-info → tesla_api_sdk-1.0.3}/PKG-INFO +35 -35
  2. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/README.md +34 -34
  3. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/pyproject.toml +1 -1
  4. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3/tesla_api_sdk.egg-info}/PKG-INFO +35 -35
  5. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/tesla_api_sdk.egg-info/SOURCES.txt +2 -2
  6. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/configuration.py +13 -11
  7. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/base_controller.py +1 -1
  8. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/charging_controller.py +5 -5
  9. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/energy_controller.py +13 -13
  10. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/o_auth_authorization_controller.py +10 -10
  11. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/partner_controller.py +6 -6
  12. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/user_controller.py +6 -6
  13. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/vehicle_commands_controller.py +23 -23
  14. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/vehicles_controller.py +23 -23
  15. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/auth/__init__.py +1 -1
  16. tesla_api_sdk-1.0.1/teslafleetmanagementapi/http/auth/oauth_2.py → tesla_api_sdk-1.0.3/teslafleetmanagementapi/http/auth/thirdpartytoken.py +10 -10
  17. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/__init__.py +1 -1
  18. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/o_auth_scope_oauth_2.py → tesla_api_sdk-1.0.3/teslafleetmanagementapi/models/o_auth_scope_thirdpartytoken.py +2 -2
  19. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/teslafleetmanagementapi_client.py +10 -9
  20. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/LICENSE +0 -0
  21. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/MANIFEST.in +0 -0
  22. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/setup.cfg +0 -0
  23. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/tesla_api_sdk.egg-info/dependency_links.txt +0 -0
  24. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/tesla_api_sdk.egg-info/requires.txt +0 -0
  25. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/tesla_api_sdk.egg-info/top_level.txt +0 -0
  26. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/__init__.py +0 -0
  27. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/api_helper.py +0 -0
  28. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/controllers/__init__.py +0 -0
  29. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/exceptions/__init__.py +0 -0
  30. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/exceptions/api_exception.py +0 -0
  31. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/exceptions/o_auth_provider_exception.py +0 -0
  32. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/__init__.py +0 -0
  33. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/api_response.py +0 -0
  34. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/auth/bearer_auth.py +0 -0
  35. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/http_call_back.py +0 -0
  36. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/http_client_provider.py +0 -0
  37. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/http_method_enum.py +0 -0
  38. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/http_request.py +0 -0
  39. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/http_response.py +0 -0
  40. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/http/proxy_settings.py +0 -0
  41. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/logging/__init__.py +0 -0
  42. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/logging/configuration/__init__.py +0 -0
  43. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/logging/configuration/api_logging_configuration.py +0 -0
  44. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/logging/sdk_logger.py +0 -0
  45. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/actuate_trunk_request.py +0 -0
  46. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/add_charge_schedule_request.py +0 -0
  47. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/add_precondition_schedule_request.py +0 -0
  48. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/adjust_volume_request.py +0 -0
  49. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_dx_vehicles_options_response.py +0 -0
  50. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_dx_warranty_details_response.py +0 -0
  51. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_vehicles_mobile_enabled_response.py +0 -0
  52. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_vehicles_nearby_charging_sites_response.py +0 -0
  53. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_vehicles_response.py +0 -0
  54. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_vehicles_response_get_vehicle.py +0 -0
  55. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/api_1_vehicles_wake_up_response.py +0 -0
  56. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/backup_request.py +0 -0
  57. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/backup_response.py +0 -0
  58. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/calendar_history_response.py +0 -0
  59. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charge_duration.py +0 -0
  60. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charge_history.py +0 -0
  61. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charge_history_response.py +0 -0
  62. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charge_start_time.py +0 -0
  63. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_dimension.py +0 -0
  64. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_fee.py +0 -0
  65. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_history_data.py +0 -0
  66. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_history_item.py +0 -0
  67. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_history_response.py +0 -0
  68. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_invoice.py +0 -0
  69. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_location.py +0 -0
  70. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_period.py +0 -0
  71. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_session.py +0 -0
  72. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_sessions_data.py +0 -0
  73. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/charging_sessions_response.py +0 -0
  74. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/command_response.py +0 -0
  75. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/command_result.py +0 -0
  76. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/default_real_mode.py +0 -0
  77. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/driver.py +0 -0
  78. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/drivers_response.py +0 -0
  79. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/enterprise_payer_request.py +0 -0
  80. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/event.py +0 -0
  81. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/fleet_status_request.py +0 -0
  82. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/fleet_telemetry_error.py +0 -0
  83. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/fleet_telemetry_errors_response.py +0 -0
  84. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/fleet_telemetry_jws_request.py +0 -0
  85. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/generic_update_response.py +0 -0
  86. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/guest_mode_request.py +0 -0
  87. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/kind.py +0 -0
  88. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/kind_get_wall_connector_charging_history.py +0 -0
  89. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/live_status_response.py +0 -0
  90. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/location.py +0 -0
  91. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/location_1.py +0 -0
  92. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/me_response.py +0 -0
  93. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/mobile_enabled.py +0 -0
  94. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/o_auth_provider_error.py +0 -0
  95. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/o_auth_token.py +0 -0
  96. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py +0 -0
  97. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/operation_request.py +0 -0
  98. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/orders_response.py +0 -0
  99. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/pagination.py +0 -0
  100. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/price_component.py +0 -0
  101. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/products_response.py +0 -0
  102. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/public_key_response.py +0 -0
  103. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/region_response.py +0 -0
  104. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/register_partner_request.py +0 -0
  105. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/register_partner_response.py +0 -0
  106. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response.py +0 -0
  107. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_1.py +0 -0
  108. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_2.py +0 -0
  109. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_3.py +0 -0
  110. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_api_1_dx_vehicles_options_response.py +0 -0
  111. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_api_1_dx_warranty_details_response.py +0 -0
  112. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_calendar_history_response.py +0 -0
  113. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_charge_history_response.py +0 -0
  114. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_fleet_telemetry_errors_response.py +0 -0
  115. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_live_status_response.py +0 -0
  116. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_me_response.py +0 -0
  117. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_orders_response.py +0 -0
  118. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_public_key_response.py +0 -0
  119. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_region_response.py +0 -0
  120. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/response_register_partner_response.py +0 -0
  121. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/signaling.py +0 -0
  122. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/simple_ok_response.py +0 -0
  123. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/site_info_response.py +0 -0
  124. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/storm_mode_request.py +0 -0
  125. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/tariff_element.py +0 -0
  126. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/tariffs.py +0 -0
  127. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/time_of_use_settings_request.py +0 -0
  128. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/total_cost.py +0 -0
  129. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/tou_settings.py +0 -0
  130. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/vehicle_base.py +0 -0
  131. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/vehicle_option.py +0 -0
  132. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/warranty_item.py +0 -0
  133. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/models/which_trunk.py +0 -0
  134. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/utilities/__init__.py +0 -0
  135. {tesla_api_sdk-1.0.1 → tesla_api_sdk-1.0.3}/teslafleetmanagementapi/utilities/file_wrapper.py +0 -0
@@ -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.3
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.3
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.3
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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/doc/controllers/vehicle-commands.md)
122
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/charging.md)
123
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/energy.md)
124
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/partner.md)
125
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/user.md)
126
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/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.3/doc/proxy-settings.md)
133
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/environment-based-client-initialization.md)
134
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/abstract-logger.md)
135
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/logging-configuration.md)
136
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/request-logging-configuration.md)
137
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/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.3/doc/http-response.md)
142
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/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.3/doc/api-response.md)
147
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/api-helper.md)
148
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/http-date-time.md)
149
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/rfc3339-date-time.md)
150
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/unix-date-time.md)
151
151
 
@@ -11,15 +11,15 @@ The package is compatible with Python versions `3.7+`.
11
11
  Install the package from PyPi using the following pip command:
12
12
 
13
13
  ```bash
14
- pip install tesla-api-sdk==1.0.1
14
+ pip install tesla-api-sdk==1.0.3
15
15
  ```
16
16
 
17
17
  You can also view the package at:
18
- https://pypi.python.org/pypi/tesla-api-sdk/1.0.1
18
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.3
19
19
 
20
20
  ## Initialize the API Client
21
21
 
22
- **_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)
22
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/client.md)
23
23
 
24
24
  The following parameters are configurable for the API Client:
25
25
 
@@ -34,10 +34,10 @@ The following parameters are configurable for the API Client:
34
34
  | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
35
35
  | 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]** |
36
36
  | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
37
- | 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. |
38
- | 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 |
39
- | 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 |
40
- | 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 |
37
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
38
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/logging-configuration.md) | The SDK logging configuration for API calls |
39
+ | bearer_auth_credentials | [`BearerAuthCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
40
+ | thirdpartytoken_credentials | [`ThirdpartytokenCredentials`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
41
41
 
42
42
  The API client can be initialized as follows:
43
43
 
@@ -48,24 +48,24 @@ import logging
48
48
 
49
49
  from teslafleetmanagementapi.configuration import Environment
50
50
  from teslafleetmanagementapi.http.auth.bearer_auth import BearerAuthCredentials
51
- from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
51
+ from teslafleetmanagementapi.http.auth.thirdpartytoken import ThirdpartytokenCredentials
52
52
  from teslafleetmanagementapi.logging.configuration.api_logging_configuration import LoggingConfiguration
53
53
  from teslafleetmanagementapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
54
54
  from teslafleetmanagementapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
55
- from teslafleetmanagementapi.models.o_auth_scope_oauth_2 import OAuthScopeOauth2
55
+ from teslafleetmanagementapi.models.o_auth_scope_thirdpartytoken import OAuthScopeThirdpartytoken
56
56
  from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
57
57
 
58
58
  client = TeslafleetmanagementapiClient(
59
59
  bearer_auth_credentials=BearerAuthCredentials(
60
60
  access_token='AccessToken'
61
61
  ),
62
- oauth_2_credentials=Oauth2Credentials(
62
+ thirdpartytoken_credentials=ThirdpartytokenCredentials(
63
63
  o_auth_client_id='OAuthClientId',
64
64
  o_auth_client_secret='OAuthClientSecret',
65
65
  o_auth_redirect_uri='OAuthRedirectUri',
66
66
  o_auth_scopes=[
67
- OAuthScopeOauth2.OPENID,
68
- OAuthScopeOauth2.OFFLINE_ACCESS
67
+ OAuthScopeThirdpartytoken.OPENID,
68
+ OAuthScopeThirdpartytoken.OFFLINE_ACCESS
69
69
  ]
70
70
  ),
71
71
  environment=Environment.PRODUCTION,
@@ -90,45 +90,45 @@ from teslafleetmanagementapi.teslafleetmanagementapi_client import Teslafleetman
90
90
  client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
91
91
  ```
92
92
 
93
- 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.
93
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/environment-based-client-initialization.md) section for details.
94
94
 
95
95
  ## Authorization
96
96
 
97
97
  This API uses the following authentication schemes.
98
98
 
99
- * [`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)
100
- * [`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)
99
+ * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/auth/oauth-2-bearer-token.md)
100
+ * [`thirdpartytoken (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/auth/oauth-2-authorization-code-grant.md)
101
101
 
102
102
  ## List of APIs
103
103
 
104
- * [Vehicle Commands](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/vehicle-commands.md)
105
- * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/charging.md)
106
- * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/energy.md)
107
- * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/partner.md)
108
- * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/user.md)
109
- * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/controllers/vehicles.md)
104
+ * [Vehicle Commands](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/vehicle-commands.md)
105
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/charging.md)
106
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/energy.md)
107
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/partner.md)
108
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/user.md)
109
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/vehicles.md)
110
110
 
111
111
  ## SDK Infrastructure
112
112
 
113
113
  ### Configuration
114
114
 
115
- * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/proxy-settings.md)
116
- * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/environment-based-client-initialization.md)
117
- * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/abstract-logger.md)
118
- * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/logging-configuration.md)
119
- * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/request-logging-configuration.md)
120
- * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/response-logging-configuration.md)
115
+ * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/proxy-settings.md)
116
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/environment-based-client-initialization.md)
117
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/abstract-logger.md)
118
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/logging-configuration.md)
119
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/request-logging-configuration.md)
120
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/response-logging-configuration.md)
121
121
 
122
122
  ### HTTP
123
123
 
124
- * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/http-response.md)
125
- * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/http-request.md)
124
+ * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/http-response.md)
125
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/http-request.md)
126
126
 
127
127
  ### Utilities
128
128
 
129
- * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/api-response.md)
130
- * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/api-helper.md)
131
- * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/http-date-time.md)
132
- * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/rfc3339-date-time.md)
133
- * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.1/doc/unix-date-time.md)
129
+ * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/api-response.md)
130
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/api-helper.md)
131
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/http-date-time.md)
132
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/rfc3339-date-time.md)
133
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/unix-date-time.md)
134
134
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
  [project]
5
5
  name = "tesla-api-sdk"
6
6
  description = "Tesla-API SDK"
7
- version = "1.0.1"
7
+ version = "1.0.3"
8
8
  readme = "README.md"
9
9
  keywords = []
10
10
  dependencies = ["apimatic-core~=0.2.0, >= 0.2.24", "apimatic-core-interfaces~=0.1.0, >= 0.1.8", "apimatic-requests-client-adapter~=0.1.0, >= 0.1.10", "python-dotenv>=0.21, <2.0"]
@@ -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.3
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.3
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.3
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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/doc/controllers/vehicle-commands.md)
122
+ * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/charging.md)
123
+ * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/energy.md)
124
+ * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/partner.md)
125
+ * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/controllers/user.md)
126
+ * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/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.3/doc/proxy-settings.md)
133
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/environment-based-client-initialization.md)
134
+ * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/abstract-logger.md)
135
+ * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/logging-configuration.md)
136
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/request-logging-configuration.md)
137
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/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.3/doc/http-response.md)
142
+ * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/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.3/doc/api-response.md)
147
+ * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/api-helper.md)
148
+ * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/http-date-time.md)
149
+ * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/rfc3339-date-time.md)
150
+ * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.3/doc/unix-date-time.md)
151
151
 
@@ -34,7 +34,7 @@ teslafleetmanagementapi/http/http_response.py
34
34
  teslafleetmanagementapi/http/proxy_settings.py
35
35
  teslafleetmanagementapi/http/auth/__init__.py
36
36
  teslafleetmanagementapi/http/auth/bearer_auth.py
37
- teslafleetmanagementapi/http/auth/oauth_2.py
37
+ teslafleetmanagementapi/http/auth/thirdpartytoken.py
38
38
  teslafleetmanagementapi/logging/__init__.py
39
39
  teslafleetmanagementapi/logging/sdk_logger.py
40
40
  teslafleetmanagementapi/logging/configuration/__init__.py
@@ -90,7 +90,7 @@ teslafleetmanagementapi/models/location_1.py
90
90
  teslafleetmanagementapi/models/me_response.py
91
91
  teslafleetmanagementapi/models/mobile_enabled.py
92
92
  teslafleetmanagementapi/models/o_auth_provider_error.py
93
- teslafleetmanagementapi/models/o_auth_scope_oauth_2.py
93
+ teslafleetmanagementapi/models/o_auth_scope_thirdpartytoken.py
94
94
  teslafleetmanagementapi/models/o_auth_token.py
95
95
  teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py
96
96
  teslafleetmanagementapi/models/operation_request.py
@@ -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.3, on OS {os-info}"
34
34
 
35
35
  @staticmethod
36
36
  def user_agent_parameters():
@@ -4,8 +4,8 @@ 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,
7
+ from apimatic_core.authentication.multiple.or_auth_group import (
8
+ Or,
9
9
  )
10
10
  from apimatic_core.authentication.multiple.single_auth import (
11
11
  Single,
@@ -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(Or(Single("thirdpartytoken"), Single("bearerAuth"))),
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(Or(Single("thirdpartytoken"), Single("bearerAuth"))),
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(Or(Single("thirdpartytoken"), Single("bearerAuth"))),
138
138
  ).response(
139
139
  ResponseHandler()
140
140
  .deserializer(APIHelper.json_deserialize)