tesla-api-sdk 1.0.0__tar.gz → 1.0.1__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.0/tesla_api_sdk.egg-info → tesla_api_sdk-1.0.1}/PKG-INFO +38 -32
  2. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/README.md +37 -31
  3. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/pyproject.toml +1 -1
  4. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1/tesla_api_sdk.egg-info}/PKG-INFO +38 -32
  5. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/tesla_api_sdk.egg-info/SOURCES.txt +14 -4
  6. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/__init__.py +2 -1
  7. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/base_controller.py +1 -1
  8. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/charging_controller.py +6 -3
  9. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/energy_controller.py +14 -11
  10. tesla_api_sdk-1.0.0/teslafleetmanagementapi/controllers/oauth_authorization_controller.py → tesla_api_sdk-1.0.1/teslafleetmanagementapi/controllers/o_auth_authorization_controller.py +13 -13
  11. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/partner_controller.py +7 -4
  12. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/user_controller.py +7 -4
  13. tesla_api_sdk-1.0.1/teslafleetmanagementapi/controllers/vehicle_commands_controller.py +891 -0
  14. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/controllers/vehicles_controller.py +24 -21
  15. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/exceptions/__init__.py +1 -1
  16. tesla_api_sdk-1.0.0/teslafleetmanagementapi/exceptions/oauth_provider_exception.py → tesla_api_sdk-1.0.1/teslafleetmanagementapi/exceptions/o_auth_provider_exception.py +3 -3
  17. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/auth/oauth_2.py +105 -76
  18. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/__init__.py +12 -3
  19. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/actuate_trunk_request.py +92 -0
  20. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/add_charge_schedule_request.py +272 -0
  21. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/add_precondition_schedule_request.py +203 -0
  22. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/adjust_volume_request.py +92 -0
  23. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_vehicles_response_get_vehicle.py +1 -1
  24. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/command_response.py +109 -0
  25. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/command_result.py +105 -0
  26. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/guest_mode_request.py +92 -0
  27. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/kind_get_wall_connector_charging_history.py +1 -1
  28. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/oauth_provider_error.py → tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/o_auth_provider_error.py +1 -1
  29. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/o_auth_scope_oauth_2.py +84 -0
  30. tesla_api_sdk-1.0.0/teslafleetmanagementapi/models/oauth_token.py → tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/o_auth_token.py +2 -2
  31. tesla_api_sdk-1.0.1/teslafleetmanagementapi/models/which_trunk.py +45 -0
  32. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/teslafleetmanagementapi_client.py +13 -5
  33. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/LICENSE +0 -0
  34. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/MANIFEST.in +0 -0
  35. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/setup.cfg +0 -0
  36. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/tesla_api_sdk.egg-info/dependency_links.txt +0 -0
  37. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/tesla_api_sdk.egg-info/requires.txt +0 -0
  38. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/tesla_api_sdk.egg-info/top_level.txt +0 -0
  39. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/__init__.py +0 -0
  40. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/api_helper.py +0 -0
  41. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/configuration.py +0 -0
  42. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/exceptions/api_exception.py +0 -0
  43. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/__init__.py +0 -0
  44. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/api_response.py +0 -0
  45. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/auth/__init__.py +0 -0
  46. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/auth/bearer_auth.py +0 -0
  47. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/http_call_back.py +0 -0
  48. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/http_client_provider.py +0 -0
  49. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/http_method_enum.py +0 -0
  50. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/http_request.py +0 -0
  51. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/http_response.py +0 -0
  52. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/http/proxy_settings.py +0 -0
  53. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/logging/__init__.py +0 -0
  54. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/logging/configuration/__init__.py +0 -0
  55. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/logging/configuration/api_logging_configuration.py +0 -0
  56. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/logging/sdk_logger.py +0 -0
  57. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_dx_vehicles_options_response.py +0 -0
  58. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_dx_warranty_details_response.py +0 -0
  59. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_vehicles_mobile_enabled_response.py +0 -0
  60. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_vehicles_nearby_charging_sites_response.py +0 -0
  61. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_vehicles_response.py +0 -0
  62. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/api_1_vehicles_wake_up_response.py +0 -0
  63. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/backup_request.py +0 -0
  64. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/backup_response.py +0 -0
  65. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/calendar_history_response.py +0 -0
  66. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charge_duration.py +0 -0
  67. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charge_history.py +0 -0
  68. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charge_history_response.py +0 -0
  69. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charge_start_time.py +0 -0
  70. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_dimension.py +0 -0
  71. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_fee.py +0 -0
  72. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_history_data.py +0 -0
  73. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_history_item.py +0 -0
  74. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_history_response.py +0 -0
  75. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_invoice.py +0 -0
  76. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_location.py +0 -0
  77. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_period.py +0 -0
  78. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_session.py +0 -0
  79. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_sessions_data.py +0 -0
  80. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/charging_sessions_response.py +0 -0
  81. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/default_real_mode.py +0 -0
  82. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/driver.py +0 -0
  83. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/drivers_response.py +0 -0
  84. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/enterprise_payer_request.py +0 -0
  85. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/event.py +0 -0
  86. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/fleet_status_request.py +0 -0
  87. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/fleet_telemetry_error.py +0 -0
  88. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/fleet_telemetry_errors_response.py +0 -0
  89. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/fleet_telemetry_jws_request.py +0 -0
  90. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/generic_update_response.py +0 -0
  91. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/kind.py +0 -0
  92. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/live_status_response.py +0 -0
  93. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/location.py +0 -0
  94. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/location_1.py +0 -0
  95. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/me_response.py +0 -0
  96. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/mobile_enabled.py +0 -0
  97. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py +0 -0
  98. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/operation_request.py +0 -0
  99. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/orders_response.py +0 -0
  100. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/pagination.py +0 -0
  101. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/price_component.py +0 -0
  102. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/products_response.py +0 -0
  103. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/public_key_response.py +0 -0
  104. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/region_response.py +0 -0
  105. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/register_partner_request.py +0 -0
  106. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/register_partner_response.py +0 -0
  107. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response.py +0 -0
  108. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_1.py +0 -0
  109. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_2.py +0 -0
  110. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_3.py +0 -0
  111. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_api_1_dx_vehicles_options_response.py +0 -0
  112. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_api_1_dx_warranty_details_response.py +0 -0
  113. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_calendar_history_response.py +0 -0
  114. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_charge_history_response.py +0 -0
  115. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_fleet_telemetry_errors_response.py +0 -0
  116. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_live_status_response.py +0 -0
  117. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_me_response.py +0 -0
  118. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_orders_response.py +0 -0
  119. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_public_key_response.py +0 -0
  120. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_region_response.py +0 -0
  121. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/response_register_partner_response.py +0 -0
  122. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/signaling.py +0 -0
  123. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/simple_ok_response.py +0 -0
  124. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/site_info_response.py +0 -0
  125. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/storm_mode_request.py +0 -0
  126. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/tariff_element.py +0 -0
  127. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/tariffs.py +0 -0
  128. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/time_of_use_settings_request.py +0 -0
  129. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/total_cost.py +0 -0
  130. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/tou_settings.py +0 -0
  131. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/vehicle_base.py +0 -0
  132. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/vehicle_option.py +0 -0
  133. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/models/warranty_item.py +0 -0
  134. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/teslafleetmanagementapi/utilities/__init__.py +0 -0
  135. {tesla_api_sdk-1.0.0 → tesla_api_sdk-1.0.1}/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.0
3
+ Version: 1.0.1
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.0
31
+ pip install tesla-api-sdk==1.0.1
32
32
  ```
33
33
 
34
34
  You can also view the package at:
35
- https://pypi.python.org/pypi/tesla-api-sdk/1.0.0
35
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.1
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.0/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.1/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.0/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.0/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.0/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.0/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.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 |
58
58
 
59
59
  The API client can be initialized as follows:
60
60
 
@@ -69,6 +69,7 @@ from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
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
73
  from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
73
74
 
74
75
  client = TeslafleetmanagementapiClient(
@@ -76,9 +77,13 @@ client = TeslafleetmanagementapiClient(
76
77
  access_token='AccessToken'
77
78
  ),
78
79
  oauth_2_credentials=Oauth2Credentials(
79
- oauth_client_id='OAuthClientId',
80
- oauth_client_secret='OAuthClientSecret',
81
- oauth_redirect_uri='OAuthRedirectUri'
80
+ o_auth_client_id='OAuthClientId',
81
+ o_auth_client_secret='OAuthClientSecret',
82
+ o_auth_redirect_uri='OAuthRedirectUri',
83
+ o_auth_scopes=[
84
+ OAuthScopeOauth2.OPENID,
85
+ OAuthScopeOauth2.OFFLINE_ACCESS
86
+ ]
82
87
  ),
83
88
  environment=Environment.PRODUCTION,
84
89
  logging_configuration=LoggingConfiguration(
@@ -102,44 +107,45 @@ from teslafleetmanagementapi.teslafleetmanagementapi_client import Teslafleetman
102
107
  client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
103
108
  ```
104
109
 
105
- See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/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.1/doc/environment-based-client-initialization.md) section for details.
106
111
 
107
112
  ## Authorization
108
113
 
109
114
  This API uses the following authentication schemes.
110
115
 
111
- * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md)
112
- * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/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.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)
113
118
 
114
119
  ## List of APIs
115
120
 
116
- * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/charging.md)
117
- * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/energy.md)
118
- * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/partner.md)
119
- * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/user.md)
120
- * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/vehicles.md)
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
127
 
122
128
  ## SDK Infrastructure
123
129
 
124
130
  ### Configuration
125
131
 
126
- * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md)
127
- * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
128
- * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/abstract-logger.md)
129
- * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md)
130
- * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
131
- * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
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
138
 
133
139
  ### HTTP
134
140
 
135
- * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-response.md)
136
- * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-request.md)
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)
137
143
 
138
144
  ### Utilities
139
145
 
140
- * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-response.md)
141
- * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-helper.md)
142
- * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-date-time.md)
143
- * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
144
- * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/unix-date-time.md)
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)
145
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.0
14
+ pip install tesla-api-sdk==1.0.1
15
15
  ```
16
16
 
17
17
  You can also view the package at:
18
- https://pypi.python.org/pypi/tesla-api-sdk/1.0.0
18
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.1
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.0/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.1/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.0/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.0/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.0/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.0/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.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 |
41
41
 
42
42
  The API client can be initialized as follows:
43
43
 
@@ -52,6 +52,7 @@ from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
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
56
  from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
56
57
 
57
58
  client = TeslafleetmanagementapiClient(
@@ -59,9 +60,13 @@ client = TeslafleetmanagementapiClient(
59
60
  access_token='AccessToken'
60
61
  ),
61
62
  oauth_2_credentials=Oauth2Credentials(
62
- oauth_client_id='OAuthClientId',
63
- oauth_client_secret='OAuthClientSecret',
64
- oauth_redirect_uri='OAuthRedirectUri'
63
+ o_auth_client_id='OAuthClientId',
64
+ o_auth_client_secret='OAuthClientSecret',
65
+ o_auth_redirect_uri='OAuthRedirectUri',
66
+ o_auth_scopes=[
67
+ OAuthScopeOauth2.OPENID,
68
+ OAuthScopeOauth2.OFFLINE_ACCESS
69
+ ]
65
70
  ),
66
71
  environment=Environment.PRODUCTION,
67
72
  logging_configuration=LoggingConfiguration(
@@ -85,44 +90,45 @@ from teslafleetmanagementapi.teslafleetmanagementapi_client import Teslafleetman
85
90
  client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
86
91
  ```
87
92
 
88
- See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/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.1/doc/environment-based-client-initialization.md) section for details.
89
94
 
90
95
  ## Authorization
91
96
 
92
97
  This API uses the following authentication schemes.
93
98
 
94
- * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md)
95
- * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/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.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)
96
101
 
97
102
  ## List of APIs
98
103
 
99
- * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/charging.md)
100
- * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/energy.md)
101
- * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/partner.md)
102
- * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/user.md)
103
- * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/vehicles.md)
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
110
 
105
111
  ## SDK Infrastructure
106
112
 
107
113
  ### Configuration
108
114
 
109
- * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md)
110
- * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
111
- * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/abstract-logger.md)
112
- * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md)
113
- * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
114
- * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
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
121
 
116
122
  ### HTTP
117
123
 
118
- * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-response.md)
119
- * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-request.md)
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)
120
126
 
121
127
  ### Utilities
122
128
 
123
- * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-response.md)
124
- * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-helper.md)
125
- * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-date-time.md)
126
- * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
127
- * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/unix-date-time.md)
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)
128
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.0"
7
+ version = "1.0.1"
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.0
3
+ Version: 1.0.1
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.0
31
+ pip install tesla-api-sdk==1.0.1
32
32
  ```
33
33
 
34
34
  You can also view the package at:
35
- https://pypi.python.org/pypi/tesla-api-sdk/1.0.0
35
+ https://pypi.python.org/pypi/tesla-api-sdk/1.0.1
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.0/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.1/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.0/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.0/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.0/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.0/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.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 |
58
58
 
59
59
  The API client can be initialized as follows:
60
60
 
@@ -69,6 +69,7 @@ from teslafleetmanagementapi.http.auth.oauth_2 import Oauth2Credentials
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
73
  from teslafleetmanagementapi.teslafleetmanagementapi_client import TeslafleetmanagementapiClient
73
74
 
74
75
  client = TeslafleetmanagementapiClient(
@@ -76,9 +77,13 @@ client = TeslafleetmanagementapiClient(
76
77
  access_token='AccessToken'
77
78
  ),
78
79
  oauth_2_credentials=Oauth2Credentials(
79
- oauth_client_id='OAuthClientId',
80
- oauth_client_secret='OAuthClientSecret',
81
- oauth_redirect_uri='OAuthRedirectUri'
80
+ o_auth_client_id='OAuthClientId',
81
+ o_auth_client_secret='OAuthClientSecret',
82
+ o_auth_redirect_uri='OAuthRedirectUri',
83
+ o_auth_scopes=[
84
+ OAuthScopeOauth2.OPENID,
85
+ OAuthScopeOauth2.OFFLINE_ACCESS
86
+ ]
82
87
  ),
83
88
  environment=Environment.PRODUCTION,
84
89
  logging_configuration=LoggingConfiguration(
@@ -102,44 +107,45 @@ from teslafleetmanagementapi.teslafleetmanagementapi_client import Teslafleetman
102
107
  client = TeslafleetmanagementapiClient.from_environment(dotenv_path='/path/to/.env')
103
108
  ```
104
109
 
105
- See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/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.1/doc/environment-based-client-initialization.md) section for details.
106
111
 
107
112
  ## Authorization
108
113
 
109
114
  This API uses the following authentication schemes.
110
115
 
111
- * [`bearerAuth (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/auth/oauth-2-bearer-token.md)
112
- * [`oauth2 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/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.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)
113
118
 
114
119
  ## List of APIs
115
120
 
116
- * [Charging](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/charging.md)
117
- * [Energy](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/energy.md)
118
- * [Partner](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/partner.md)
119
- * [User](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/user.md)
120
- * [Vehicles](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/controllers/vehicles.md)
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
127
 
122
128
  ## SDK Infrastructure
123
129
 
124
130
  ### Configuration
125
131
 
126
- * [ProxySettings](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/proxy-settings.md)
127
- * [Environment-Based Client Initialization](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
128
- * [AbstractLogger](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/abstract-logger.md)
129
- * [LoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/logging-configuration.md)
130
- * [RequestLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
131
- * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
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
138
 
133
139
  ### HTTP
134
140
 
135
- * [HttpResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-response.md)
136
- * [HttpRequest](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-request.md)
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)
137
143
 
138
144
  ### Utilities
139
145
 
140
- * [ApiResponse](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-response.md)
141
- * [ApiHelper](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/api-helper.md)
142
- * [HttpDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/http-date-time.md)
143
- * [RFC3339DateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
144
- * [UnixDateTime](https://www.github.com/sdks-io/tesla-api-python-sdk/tree/1.0.0/doc/unix-date-time.md)
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)
145
151
 
@@ -16,13 +16,14 @@ teslafleetmanagementapi/controllers/__init__.py
16
16
  teslafleetmanagementapi/controllers/base_controller.py
17
17
  teslafleetmanagementapi/controllers/charging_controller.py
18
18
  teslafleetmanagementapi/controllers/energy_controller.py
19
- teslafleetmanagementapi/controllers/oauth_authorization_controller.py
19
+ teslafleetmanagementapi/controllers/o_auth_authorization_controller.py
20
20
  teslafleetmanagementapi/controllers/partner_controller.py
21
21
  teslafleetmanagementapi/controllers/user_controller.py
22
+ teslafleetmanagementapi/controllers/vehicle_commands_controller.py
22
23
  teslafleetmanagementapi/controllers/vehicles_controller.py
23
24
  teslafleetmanagementapi/exceptions/__init__.py
24
25
  teslafleetmanagementapi/exceptions/api_exception.py
25
- teslafleetmanagementapi/exceptions/oauth_provider_exception.py
26
+ teslafleetmanagementapi/exceptions/o_auth_provider_exception.py
26
27
  teslafleetmanagementapi/http/__init__.py
27
28
  teslafleetmanagementapi/http/api_response.py
28
29
  teslafleetmanagementapi/http/http_call_back.py
@@ -39,6 +40,10 @@ teslafleetmanagementapi/logging/sdk_logger.py
39
40
  teslafleetmanagementapi/logging/configuration/__init__.py
40
41
  teslafleetmanagementapi/logging/configuration/api_logging_configuration.py
41
42
  teslafleetmanagementapi/models/__init__.py
43
+ teslafleetmanagementapi/models/actuate_trunk_request.py
44
+ teslafleetmanagementapi/models/add_charge_schedule_request.py
45
+ teslafleetmanagementapi/models/add_precondition_schedule_request.py
46
+ teslafleetmanagementapi/models/adjust_volume_request.py
42
47
  teslafleetmanagementapi/models/api_1_dx_vehicles_options_response.py
43
48
  teslafleetmanagementapi/models/api_1_dx_warranty_details_response.py
44
49
  teslafleetmanagementapi/models/api_1_vehicles_mobile_enabled_response.py
@@ -64,6 +69,8 @@ teslafleetmanagementapi/models/charging_period.py
64
69
  teslafleetmanagementapi/models/charging_session.py
65
70
  teslafleetmanagementapi/models/charging_sessions_data.py
66
71
  teslafleetmanagementapi/models/charging_sessions_response.py
72
+ teslafleetmanagementapi/models/command_response.py
73
+ teslafleetmanagementapi/models/command_result.py
67
74
  teslafleetmanagementapi/models/default_real_mode.py
68
75
  teslafleetmanagementapi/models/driver.py
69
76
  teslafleetmanagementapi/models/drivers_response.py
@@ -74,6 +81,7 @@ teslafleetmanagementapi/models/fleet_telemetry_error.py
74
81
  teslafleetmanagementapi/models/fleet_telemetry_errors_response.py
75
82
  teslafleetmanagementapi/models/fleet_telemetry_jws_request.py
76
83
  teslafleetmanagementapi/models/generic_update_response.py
84
+ teslafleetmanagementapi/models/guest_mode_request.py
77
85
  teslafleetmanagementapi/models/kind.py
78
86
  teslafleetmanagementapi/models/kind_get_wall_connector_charging_history.py
79
87
  teslafleetmanagementapi/models/live_status_response.py
@@ -81,8 +89,9 @@ teslafleetmanagementapi/models/location.py
81
89
  teslafleetmanagementapi/models/location_1.py
82
90
  teslafleetmanagementapi/models/me_response.py
83
91
  teslafleetmanagementapi/models/mobile_enabled.py
84
- teslafleetmanagementapi/models/oauth_provider_error.py
85
- teslafleetmanagementapi/models/oauth_token.py
92
+ teslafleetmanagementapi/models/o_auth_provider_error.py
93
+ teslafleetmanagementapi/models/o_auth_scope_oauth_2.py
94
+ teslafleetmanagementapi/models/o_auth_token.py
86
95
  teslafleetmanagementapi/models/off_grid_vehicle_charging_reserve_request.py
87
96
  teslafleetmanagementapi/models/operation_request.py
88
97
  teslafleetmanagementapi/models/orders_response.py
@@ -120,5 +129,6 @@ teslafleetmanagementapi/models/tou_settings.py
120
129
  teslafleetmanagementapi/models/vehicle_base.py
121
130
  teslafleetmanagementapi/models/vehicle_option.py
122
131
  teslafleetmanagementapi/models/warranty_item.py
132
+ teslafleetmanagementapi/models/which_trunk.py
123
133
  teslafleetmanagementapi/utilities/__init__.py
124
134
  teslafleetmanagementapi/utilities/file_wrapper.py
@@ -4,8 +4,9 @@ __all__ = [
4
4
  "base_controller",
5
5
  "charging_controller",
6
6
  "energy_controller",
7
- "oauth_authorization_controller",
7
+ "o_auth_authorization_controller",
8
8
  "partner_controller",
9
9
  "user_controller",
10
+ "vehicle_commands_controller",
10
11
  "vehicles_controller",
11
12
  ]
@@ -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.0, on OS {os-info}"
33
+ return "Python SDK, Version: 1.0.1, on OS {os-info}"
34
34
 
35
35
  @staticmethod
36
36
  def user_agent_parameters():
@@ -4,6 +4,9 @@ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io
4
4
  """
5
5
 
6
6
  # ruff: noqa: D410, E501, E101, D206
7
+ from apimatic_core.authentication.multiple.and_auth_group import (
8
+ And,
9
+ )
7
10
  from apimatic_core.authentication.multiple.single_auth import (
8
11
  Single,
9
12
  )
@@ -61,7 +64,7 @@ class ChargingController(BaseController):
61
64
  .header_param(Parameter()
62
65
  .key("accept")
63
66
  .value("application/json"))
64
- .auth(Single("bearerAuth")),
67
+ .auth(And(Single("bearerAuth"), Single("oauth2"))),
65
68
  ).response(
66
69
  ResponseHandler()
67
70
  .deserializer(APIHelper.json_deserialize)
@@ -100,7 +103,7 @@ class ChargingController(BaseController):
100
103
  .header_param(Parameter()
101
104
  .key("accept")
102
105
  .value("application/json"))
103
- .auth(Single("bearerAuth")),
106
+ .auth(And(Single("bearerAuth"), Single("oauth2"))),
104
107
  ).response(
105
108
  ResponseHandler()
106
109
  .deserializer(APIHelper.dynamic_deserialize)
@@ -131,7 +134,7 @@ class ChargingController(BaseController):
131
134
  .header_param(Parameter()
132
135
  .key("accept")
133
136
  .value("application/json"))
134
- .auth(Single("bearerAuth")),
137
+ .auth(And(Single("bearerAuth"), Single("oauth2"))),
135
138
  ).response(
136
139
  ResponseHandler()
137
140
  .deserializer(APIHelper.json_deserialize)