ocpplab 0.2.3__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. {ocpplab-0.2.3 → ocpplab-0.3.0}/PKG-INFO +1 -1
  2. {ocpplab-0.2.3 → ocpplab-0.3.0}/pyproject.toml +1 -1
  3. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/client_wrapper.py +2 -2
  4. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/__init__.py +6 -6
  5. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/client.py +13 -13
  6. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/location/client.py +12 -12
  7. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/location/raw_client.py +12 -10
  8. {ocpplab-0.2.3/src/ocpplab/ocpp/deployment_runtime_ops → ocpplab-0.3.0/src/ocpplab/ocpp/runtime}/__init__.py +3 -3
  9. {ocpplab-0.2.3/src/ocpplab/ocpp/deployment_runtime_ops → ocpplab-0.3.0/src/ocpplab/ocpp/runtime}/client.py +16 -16
  10. {ocpplab-0.2.3/src/ocpplab/ocpp/deployment_runtime_ops → ocpplab-0.3.0/src/ocpplab/ocpp/runtime}/raw_client.py +11 -11
  11. {ocpplab-0.2.3/src/ocpplab/ocpp/deployment_runtime_ops → ocpplab-0.3.0/src/ocpplab/ocpp/runtime}/types/__init__.py +3 -5
  12. ocpplab-0.2.3/src/ocpplab/ocpp/deployment_runtime_ops/types/operate_deployment_runtime_ops_response.py → ocpplab-0.3.0/src/ocpplab/ocpp/runtime/types/operate_runtime_response.py +1 -1
  13. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/deployment_runtime_ops_result.py +1 -1
  14. {ocpplab-0.2.3 → ocpplab-0.3.0}/README.md +0 -0
  15. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/__init__.py +0 -0
  16. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/_default_clients.py +0 -0
  17. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/client.py +0 -0
  18. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/__init__.py +0 -0
  19. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/api_error.py +0 -0
  20. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/datetime_utils.py +0 -0
  21. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/file.py +0 -0
  22. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/force_multipart.py +0 -0
  23. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_client.py +0 -0
  24. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_response.py +0 -0
  25. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_sse/__init__.py +0 -0
  26. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_sse/_api.py +0 -0
  27. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_sse/_decoders.py +0 -0
  28. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_sse/_exceptions.py +0 -0
  29. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/http_sse/_models.py +0 -0
  30. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/jsonable_encoder.py +0 -0
  31. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/logging.py +0 -0
  32. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/parse_error.py +0 -0
  33. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/pydantic_utilities.py +0 -0
  34. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/query_encoder.py +0 -0
  35. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/remove_none_from_dict.py +0 -0
  36. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/request_options.py +0 -0
  37. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/core/serialization.py +0 -0
  38. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/errors/__init__.py +0 -0
  39. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/errors/bad_request_error.py +0 -0
  40. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/errors/internal_server_error.py +0 -0
  41. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/errors/not_found_error.py +0 -0
  42. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/errors/unprocessable_entity_error.py +0 -0
  43. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/health/__init__.py +0 -0
  44. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/health/client.py +0 -0
  45. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/health/raw_client.py +0 -0
  46. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/__init__.py +0 -0
  47. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/client.py +0 -0
  48. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/cpo/__init__.py +0 -0
  49. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/cpo/client.py +0 -0
  50. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/cpo/raw_client.py +0 -0
  51. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/__init__.py +0 -0
  52. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/client.py +0 -0
  53. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/raw_client.py +0 -0
  54. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/types/__init__.py +0 -0
  55. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/types/create_ocpi_cpo_location_request_ocpi_version.py +0 -0
  56. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/types/create_ocpi_cpo_location_request_ocpp_version.py +0 -0
  57. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/location/types/delete_location_request_ocpi_version.py +0 -0
  58. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/raw_client.py +0 -0
  59. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/templates/__init__.py +0 -0
  60. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/templates/client.py +0 -0
  61. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/templates/raw_client.py +0 -0
  62. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/templates/types/__init__.py +0 -0
  63. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/templates/types/list_templates_request_ocpi_version.py +0 -0
  64. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpi/templates/types/list_templates_request_ocpp_version.py +0 -0
  65. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/catalog/__init__.py +0 -0
  66. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/catalog/client.py +0 -0
  67. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/catalog/raw_client.py +0 -0
  68. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/commands/__init__.py +0 -0
  69. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/commands/client.py +0 -0
  70. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/commands/raw_client.py +0 -0
  71. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/deployment/__init__.py +0 -0
  72. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/deployment/client.py +0 -0
  73. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/deployment/raw_client.py +0 -0
  74. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/location/__init__.py +0 -0
  75. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/logs/__init__.py +0 -0
  76. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/logs/client.py +0 -0
  77. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/logs/raw_client.py +0 -0
  78. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/logs/types/__init__.py +0 -0
  79. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/logs/types/delete_logs_request_action_item.py +0 -0
  80. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/logs/types/list_logs_request_action_item.py +0 -0
  81. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/raw_client.py +0 -0
  82. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/templates/__init__.py +0 -0
  83. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/templates/client.py +0 -0
  84. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/templates/raw_client.py +0 -0
  85. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/templates/types/__init__.py +0 -0
  86. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/templates/types/list_templates_request_ocpi_version.py +0 -0
  87. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/ocpp/templates/types/list_templates_request_ocpp_version.py +0 -0
  88. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/py.typed +0 -0
  89. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/__init__.py +0 -0
  90. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/accepted_response.py +0 -0
  91. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/authorize_id_tag_payload.py +0 -0
  92. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/brand_response.py +0 -0
  93. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/charger_input.py +0 -0
  94. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/charger_input_ocpp_version.py +0 -0
  95. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/charger_log_entry.py +0 -0
  96. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/command_target.py +0 -0
  97. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/configuration_change_payload.py +0 -0
  98. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/connector_input.py +0 -0
  99. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/connector_input_format.py +0 -0
  100. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/connector_input_power_type.py +0 -0
  101. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/connector_payload.py +0 -0
  102. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/cpo_location_details_input.py +0 -0
  103. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/deployment_runtime_action.py +0 -0
  104. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/deployment_runtime_ops_result_status.py +0 -0
  105. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/empty_command_payload.py +0 -0
  106. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/evse_input.py +0 -0
  107. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/fault_clear_payload.py +0 -0
  108. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/fault_injection_payload.py +0 -0
  109. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/http_error_response.py +0 -0
  110. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/http_validation_error.py +0 -0
  111. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/local_auth_list_entry.py +0 -0
  112. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/local_auth_list_payload.py +0 -0
  113. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/local_auth_list_payload_update_type.py +0 -0
  114. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/location_command_failure.py +0 -0
  115. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/location_queued_command_result.py +0 -0
  116. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_business_details.py +0 -0
  117. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_coordinates.py +0 -0
  118. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_location_template_list_response.py +0 -0
  119. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_location_template_response.py +0 -0
  120. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_partner_input.py +0 -0
  121. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_partner_input_role.py +0 -0
  122. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_partner_response.py +0 -0
  123. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpi_template_filters_response.py +0 -0
  124. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_brand_list_response.py +0 -0
  125. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_connector_command_request.py +0 -0
  126. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_deployment_runtime_ops_response.py +0 -0
  127. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_deployment_runtime_ops_response_target_type.py +0 -0
  128. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_empty_command_request.py +0 -0
  129. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_location_command_response.py +0 -0
  130. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_location_template_list_response.py +0 -0
  131. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_location_template_response.py +0 -0
  132. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_log_list_response.py +0 -0
  133. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_model_list_response.py +0 -0
  134. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_model_response.py +0 -0
  135. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_template_filters_response.py +0 -0
  136. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/ocpp_virtual_deployment_response.py +0 -0
  137. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/power_update_payload.py +0 -0
  138. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/proxy_message_payload.py +0 -0
  139. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/queued_command_response.py +0 -0
  140. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/start_session_payload.py +0 -0
  141. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/stop_session_payload.py +0 -0
  142. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/validation_error.py +0 -0
  143. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/validation_error_loc_item.py +0 -0
  144. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/virtual_location_charger_item.py +0 -0
  145. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/types/virtual_location_coordinates.py +0 -0
  146. {ocpplab-0.2.3 → ocpplab-0.3.0}/src/ocpplab/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ocpplab
3
- Version: 0.2.3
3
+ Version: 0.3.0
4
4
  Summary:
5
5
  Keywords: ev,ocpp,sdk,api,charging
6
6
  Requires-Python: >=3.10,<4.0
@@ -4,7 +4,7 @@ dynamic = ["version"]
4
4
 
5
5
  [tool.poetry]
6
6
  name = "ocpplab"
7
- version = "0.2.3"
7
+ version = "0.3.0"
8
8
  description = ""
9
9
  readme = "README.md"
10
10
  authors = []
@@ -27,12 +27,12 @@ class BaseClientWrapper:
27
27
  import platform
28
28
 
29
29
  headers: typing.Dict[str, str] = {
30
- "User-Agent": "ocpplab/0.2.3",
30
+ "User-Agent": "ocpplab/0.3.0",
31
31
  "X-Fern-Language": "Python",
32
32
  "X-Fern-Runtime": f"python/{platform.python_version()}",
33
33
  "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
34
34
  "X-Fern-SDK-Name": "ocpplab",
35
- "X-Fern-SDK-Version": "0.2.3",
35
+ "X-Fern-SDK-Version": "0.3.0",
36
36
  **(self.get_custom_headers() or {}),
37
37
  }
38
38
  token = self._get_token()
@@ -6,22 +6,22 @@ import typing
6
6
  from importlib import import_module
7
7
 
8
8
  if typing.TYPE_CHECKING:
9
- from . import catalog, commands, deployment, deployment_runtime_ops, location, logs, templates
10
- from .deployment_runtime_ops import OperateDeploymentRuntimeOpsResponse
9
+ from . import catalog, commands, deployment, location, logs, runtime, templates
11
10
  from .logs import DeleteLogsRequestActionItem, ListLogsRequestActionItem
11
+ from .runtime import OperateRuntimeResponse
12
12
  from .templates import ListTemplatesRequestOcpiVersion, ListTemplatesRequestOcppVersion
13
13
  _dynamic_imports: typing.Dict[str, str] = {
14
14
  "DeleteLogsRequestActionItem": ".logs",
15
15
  "ListLogsRequestActionItem": ".logs",
16
16
  "ListTemplatesRequestOcpiVersion": ".templates",
17
17
  "ListTemplatesRequestOcppVersion": ".templates",
18
- "OperateDeploymentRuntimeOpsResponse": ".deployment_runtime_ops",
18
+ "OperateRuntimeResponse": ".runtime",
19
19
  "catalog": ".catalog",
20
20
  "commands": ".commands",
21
21
  "deployment": ".deployment",
22
- "deployment_runtime_ops": ".deployment_runtime_ops",
23
22
  "location": ".location",
24
23
  "logs": ".logs",
24
+ "runtime": ".runtime",
25
25
  "templates": ".templates",
26
26
  }
27
27
 
@@ -52,12 +52,12 @@ __all__ = [
52
52
  "ListLogsRequestActionItem",
53
53
  "ListTemplatesRequestOcpiVersion",
54
54
  "ListTemplatesRequestOcppVersion",
55
- "OperateDeploymentRuntimeOpsResponse",
55
+ "OperateRuntimeResponse",
56
56
  "catalog",
57
57
  "commands",
58
58
  "deployment",
59
- "deployment_runtime_ops",
60
59
  "location",
61
60
  "logs",
61
+ "runtime",
62
62
  "templates",
63
63
  ]
@@ -11,9 +11,9 @@ if typing.TYPE_CHECKING:
11
11
  from .catalog.client import AsyncCatalogClient, CatalogClient
12
12
  from .commands.client import AsyncCommandsClient, CommandsClient
13
13
  from .deployment.client import AsyncDeploymentClient, DeploymentClient
14
- from .deployment_runtime_ops.client import AsyncDeploymentRuntimeOpsClient, DeploymentRuntimeOpsClient
15
14
  from .location.client import AsyncLocationClient, LocationClient
16
15
  from .logs.client import AsyncLogsClient, LogsClient
16
+ from .runtime.client import AsyncRuntimeClient, RuntimeClient
17
17
  from .templates.client import AsyncTemplatesClient, TemplatesClient
18
18
 
19
19
 
@@ -25,7 +25,7 @@ class OcppClient:
25
25
  self._templates: typing.Optional[TemplatesClient] = None
26
26
  self._deployment: typing.Optional[DeploymentClient] = None
27
27
  self._location: typing.Optional[LocationClient] = None
28
- self._deployment_runtime_ops: typing.Optional[DeploymentRuntimeOpsClient] = None
28
+ self._runtime: typing.Optional[RuntimeClient] = None
29
29
  self._commands: typing.Optional[CommandsClient] = None
30
30
  self._logs: typing.Optional[LogsClient] = None
31
31
 
@@ -73,12 +73,12 @@ class OcppClient:
73
73
  return self._location
74
74
 
75
75
  @property
76
- def deployment_runtime_ops(self):
77
- if self._deployment_runtime_ops is None:
78
- from .deployment_runtime_ops.client import DeploymentRuntimeOpsClient # noqa: E402
76
+ def runtime(self):
77
+ if self._runtime is None:
78
+ from .runtime.client import RuntimeClient # noqa: E402
79
79
 
80
- self._deployment_runtime_ops = DeploymentRuntimeOpsClient(client_wrapper=self._client_wrapper)
81
- return self._deployment_runtime_ops
80
+ self._runtime = RuntimeClient(client_wrapper=self._client_wrapper)
81
+ return self._runtime
82
82
 
83
83
  @property
84
84
  def commands(self):
@@ -105,7 +105,7 @@ class AsyncOcppClient:
105
105
  self._templates: typing.Optional[AsyncTemplatesClient] = None
106
106
  self._deployment: typing.Optional[AsyncDeploymentClient] = None
107
107
  self._location: typing.Optional[AsyncLocationClient] = None
108
- self._deployment_runtime_ops: typing.Optional[AsyncDeploymentRuntimeOpsClient] = None
108
+ self._runtime: typing.Optional[AsyncRuntimeClient] = None
109
109
  self._commands: typing.Optional[AsyncCommandsClient] = None
110
110
  self._logs: typing.Optional[AsyncLogsClient] = None
111
111
 
@@ -153,12 +153,12 @@ class AsyncOcppClient:
153
153
  return self._location
154
154
 
155
155
  @property
156
- def deployment_runtime_ops(self):
157
- if self._deployment_runtime_ops is None:
158
- from .deployment_runtime_ops.client import AsyncDeploymentRuntimeOpsClient # noqa: E402
156
+ def runtime(self):
157
+ if self._runtime is None:
158
+ from .runtime.client import AsyncRuntimeClient # noqa: E402
159
159
 
160
- self._deployment_runtime_ops = AsyncDeploymentRuntimeOpsClient(client_wrapper=self._client_wrapper)
161
- return self._deployment_runtime_ops
160
+ self._runtime = AsyncRuntimeClient(client_wrapper=self._client_wrapper)
161
+ return self._runtime
162
162
 
163
163
  @property
164
164
  def commands(self):
@@ -123,14 +123,14 @@ class LocationClient:
123
123
  )
124
124
  return _response.data
125
125
 
126
- def delete(self, *, slug: str, request_options: typing.Optional[RequestOptions] = None) -> None:
126
+ def delete(self, *, location_id: str, request_options: typing.Optional[RequestOptions] = None) -> None:
127
127
  """
128
- Hard-deletes a runnable virtual location and its chargers, identified by slug. Organization ID is derived from the Bearer JWT.
128
+ Hard-deletes a runnable virtual location and its chargers, identified by location_id
129
129
 
130
130
  Parameters
131
131
  ----------
132
- slug : str
133
- Virtual location slug to delete.
132
+ location_id : str
133
+ Virtual location location_id to delete.
134
134
 
135
135
  request_options : typing.Optional[RequestOptions]
136
136
  Request-specific configuration.
@@ -148,10 +148,10 @@ class LocationClient:
148
148
  base_url="https://yourhost.com/path/to/api",
149
149
  )
150
150
  client.ocpp.location.delete(
151
- slug="slug",
151
+ location_id="location_id",
152
152
  )
153
153
  """
154
- _response = self._raw_client.delete(slug=slug, request_options=request_options)
154
+ _response = self._raw_client.delete(location_id=location_id, request_options=request_options)
155
155
  return _response.data
156
156
 
157
157
 
@@ -273,14 +273,14 @@ class AsyncLocationClient:
273
273
  )
274
274
  return _response.data
275
275
 
276
- async def delete(self, *, slug: str, request_options: typing.Optional[RequestOptions] = None) -> None:
276
+ async def delete(self, *, location_id: str, request_options: typing.Optional[RequestOptions] = None) -> None:
277
277
  """
278
- Hard-deletes a runnable virtual location and its chargers, identified by slug. Organization ID is derived from the Bearer JWT.
278
+ Hard-deletes a runnable virtual location and its chargers, identified by location_id
279
279
 
280
280
  Parameters
281
281
  ----------
282
- slug : str
283
- Virtual location slug to delete.
282
+ location_id : str
283
+ Virtual location location_id to delete.
284
284
 
285
285
  request_options : typing.Optional[RequestOptions]
286
286
  Request-specific configuration.
@@ -303,11 +303,11 @@ class AsyncLocationClient:
303
303
 
304
304
  async def main() -> None:
305
305
  await client.ocpp.location.delete(
306
- slug="slug",
306
+ location_id="location_id",
307
307
  )
308
308
 
309
309
 
310
310
  asyncio.run(main())
311
311
  """
312
- _response = await self._raw_client.delete(slug=slug, request_options=request_options)
312
+ _response = await self._raw_client.delete(location_id=location_id, request_options=request_options)
313
313
  return _response.data
@@ -129,14 +129,16 @@ class RawLocationClient:
129
129
  )
130
130
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
131
131
 
132
- def delete(self, *, slug: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[None]:
132
+ def delete(
133
+ self, *, location_id: str, request_options: typing.Optional[RequestOptions] = None
134
+ ) -> HttpResponse[None]:
133
135
  """
134
- Hard-deletes a runnable virtual location and its chargers, identified by slug. Organization ID is derived from the Bearer JWT.
136
+ Hard-deletes a runnable virtual location and its chargers, identified by location_id
135
137
 
136
138
  Parameters
137
139
  ----------
138
- slug : str
139
- Virtual location slug to delete.
140
+ location_id : str
141
+ Virtual location location_id to delete.
140
142
 
141
143
  request_options : typing.Optional[RequestOptions]
142
144
  Request-specific configuration.
@@ -149,7 +151,7 @@ class RawLocationClient:
149
151
  "ocpp/location",
150
152
  method="DELETE",
151
153
  params={
152
- "slug": slug,
154
+ "location_id": location_id,
153
155
  },
154
156
  request_options=request_options,
155
157
  )
@@ -295,15 +297,15 @@ class AsyncRawLocationClient:
295
297
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
296
298
 
297
299
  async def delete(
298
- self, *, slug: str, request_options: typing.Optional[RequestOptions] = None
300
+ self, *, location_id: str, request_options: typing.Optional[RequestOptions] = None
299
301
  ) -> AsyncHttpResponse[None]:
300
302
  """
301
- Hard-deletes a runnable virtual location and its chargers, identified by slug. Organization ID is derived from the Bearer JWT.
303
+ Hard-deletes a runnable virtual location and its chargers, identified by location_id
302
304
 
303
305
  Parameters
304
306
  ----------
305
- slug : str
306
- Virtual location slug to delete.
307
+ location_id : str
308
+ Virtual location location_id to delete.
307
309
 
308
310
  request_options : typing.Optional[RequestOptions]
309
311
  Request-specific configuration.
@@ -316,7 +318,7 @@ class AsyncRawLocationClient:
316
318
  "ocpp/location",
317
319
  method="DELETE",
318
320
  params={
319
- "slug": slug,
321
+ "location_id": location_id,
320
322
  },
321
323
  request_options=request_options,
322
324
  )
@@ -6,8 +6,8 @@ import typing
6
6
  from importlib import import_module
7
7
 
8
8
  if typing.TYPE_CHECKING:
9
- from .types import OperateDeploymentRuntimeOpsResponse
10
- _dynamic_imports: typing.Dict[str, str] = {"OperateDeploymentRuntimeOpsResponse": ".types"}
9
+ from .types import OperateRuntimeResponse
10
+ _dynamic_imports: typing.Dict[str, str] = {"OperateRuntimeResponse": ".types"}
11
11
 
12
12
 
13
13
  def __getattr__(attr_name: str) -> typing.Any:
@@ -31,4 +31,4 @@ def __dir__():
31
31
  return sorted(lazy_attrs)
32
32
 
33
33
 
34
- __all__ = ["OperateDeploymentRuntimeOpsResponse"]
34
+ __all__ = ["OperateRuntimeResponse"]
@@ -5,25 +5,25 @@ import typing
5
5
  from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
6
6
  from ...core.request_options import RequestOptions
7
7
  from ...types.deployment_runtime_action import DeploymentRuntimeAction
8
- from .raw_client import AsyncRawDeploymentRuntimeOpsClient, RawDeploymentRuntimeOpsClient
9
- from .types.operate_deployment_runtime_ops_response import OperateDeploymentRuntimeOpsResponse
8
+ from .raw_client import AsyncRawRuntimeClient, RawRuntimeClient
9
+ from .types.operate_runtime_response import OperateRuntimeResponse
10
10
 
11
11
  # this is used as the default value for optional parameters
12
12
  OMIT = typing.cast(typing.Any, ...)
13
13
 
14
14
 
15
- class DeploymentRuntimeOpsClient:
15
+ class RuntimeClient:
16
16
  def __init__(self, *, client_wrapper: SyncClientWrapper):
17
- self._raw_client = RawDeploymentRuntimeOpsClient(client_wrapper=client_wrapper)
17
+ self._raw_client = RawRuntimeClient(client_wrapper=client_wrapper)
18
18
 
19
19
  @property
20
- def with_raw_response(self) -> RawDeploymentRuntimeOpsClient:
20
+ def with_raw_response(self) -> RawRuntimeClient:
21
21
  """
22
22
  Retrieves a raw implementation of this client that returns raw responses.
23
23
 
24
24
  Returns
25
25
  -------
26
- RawDeploymentRuntimeOpsClient
26
+ RawRuntimeClient
27
27
  """
28
28
  return self._raw_client
29
29
 
@@ -34,7 +34,7 @@ class DeploymentRuntimeOpsClient:
34
34
  deployment_id: typing.Optional[str] = OMIT,
35
35
  location_id: typing.Optional[str] = OMIT,
36
36
  request_options: typing.Optional[RequestOptions] = None,
37
- ) -> OperateDeploymentRuntimeOpsResponse:
37
+ ) -> OperateRuntimeResponse:
38
38
  """
39
39
  A single deployment_id runs synchronously and returns per-charger results. A location_id fans out over every charger in the location, which is slow, so it runs in the background and returns 202 immediately. Background work is not durable across restarts.
40
40
 
@@ -54,7 +54,7 @@ class DeploymentRuntimeOpsClient:
54
54
 
55
55
  Returns
56
56
  -------
57
- OperateDeploymentRuntimeOpsResponse
57
+ OperateRuntimeResponse
58
58
  Successful Response
59
59
 
60
60
  Examples
@@ -65,7 +65,7 @@ class DeploymentRuntimeOpsClient:
65
65
  token="YOUR_TOKEN",
66
66
  base_url="https://yourhost.com/path/to/api",
67
67
  )
68
- client.ocpp.deployment_runtime_ops.operate(
68
+ client.ocpp.runtime.operate(
69
69
  action="restart",
70
70
  deployment_id="dep-123",
71
71
  )
@@ -76,18 +76,18 @@ class DeploymentRuntimeOpsClient:
76
76
  return _response.data
77
77
 
78
78
 
79
- class AsyncDeploymentRuntimeOpsClient:
79
+ class AsyncRuntimeClient:
80
80
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
81
- self._raw_client = AsyncRawDeploymentRuntimeOpsClient(client_wrapper=client_wrapper)
81
+ self._raw_client = AsyncRawRuntimeClient(client_wrapper=client_wrapper)
82
82
 
83
83
  @property
84
- def with_raw_response(self) -> AsyncRawDeploymentRuntimeOpsClient:
84
+ def with_raw_response(self) -> AsyncRawRuntimeClient:
85
85
  """
86
86
  Retrieves a raw implementation of this client that returns raw responses.
87
87
 
88
88
  Returns
89
89
  -------
90
- AsyncRawDeploymentRuntimeOpsClient
90
+ AsyncRawRuntimeClient
91
91
  """
92
92
  return self._raw_client
93
93
 
@@ -98,7 +98,7 @@ class AsyncDeploymentRuntimeOpsClient:
98
98
  deployment_id: typing.Optional[str] = OMIT,
99
99
  location_id: typing.Optional[str] = OMIT,
100
100
  request_options: typing.Optional[RequestOptions] = None,
101
- ) -> OperateDeploymentRuntimeOpsResponse:
101
+ ) -> OperateRuntimeResponse:
102
102
  """
103
103
  A single deployment_id runs synchronously and returns per-charger results. A location_id fans out over every charger in the location, which is slow, so it runs in the background and returns 202 immediately. Background work is not durable across restarts.
104
104
 
@@ -118,7 +118,7 @@ class AsyncDeploymentRuntimeOpsClient:
118
118
 
119
119
  Returns
120
120
  -------
121
- OperateDeploymentRuntimeOpsResponse
121
+ OperateRuntimeResponse
122
122
  Successful Response
123
123
 
124
124
  Examples
@@ -134,7 +134,7 @@ class AsyncDeploymentRuntimeOpsClient:
134
134
 
135
135
 
136
136
  async def main() -> None:
137
- await client.ocpp.deployment_runtime_ops.operate(
137
+ await client.ocpp.runtime.operate(
138
138
  action="restart",
139
139
  deployment_id="dep-123",
140
140
  )
@@ -12,14 +12,14 @@ from ...core.request_options import RequestOptions
12
12
  from ...errors.unprocessable_entity_error import UnprocessableEntityError
13
13
  from ...types.deployment_runtime_action import DeploymentRuntimeAction
14
14
  from ...types.http_validation_error import HttpValidationError
15
- from .types.operate_deployment_runtime_ops_response import OperateDeploymentRuntimeOpsResponse
15
+ from .types.operate_runtime_response import OperateRuntimeResponse
16
16
  from pydantic import ValidationError
17
17
 
18
18
  # this is used as the default value for optional parameters
19
19
  OMIT = typing.cast(typing.Any, ...)
20
20
 
21
21
 
22
- class RawDeploymentRuntimeOpsClient:
22
+ class RawRuntimeClient:
23
23
  def __init__(self, *, client_wrapper: SyncClientWrapper):
24
24
  self._client_wrapper = client_wrapper
25
25
 
@@ -30,7 +30,7 @@ class RawDeploymentRuntimeOpsClient:
30
30
  deployment_id: typing.Optional[str] = OMIT,
31
31
  location_id: typing.Optional[str] = OMIT,
32
32
  request_options: typing.Optional[RequestOptions] = None,
33
- ) -> HttpResponse[OperateDeploymentRuntimeOpsResponse]:
33
+ ) -> HttpResponse[OperateRuntimeResponse]:
34
34
  """
35
35
  A single deployment_id runs synchronously and returns per-charger results. A location_id fans out over every charger in the location, which is slow, so it runs in the background and returns 202 immediately. Background work is not durable across restarts.
36
36
 
@@ -50,7 +50,7 @@ class RawDeploymentRuntimeOpsClient:
50
50
 
51
51
  Returns
52
52
  -------
53
- HttpResponse[OperateDeploymentRuntimeOpsResponse]
53
+ HttpResponse[OperateRuntimeResponse]
54
54
  Successful Response
55
55
  """
56
56
  _response = self._client_wrapper.httpx_client.request(
@@ -70,9 +70,9 @@ class RawDeploymentRuntimeOpsClient:
70
70
  try:
71
71
  if 200 <= _response.status_code < 300:
72
72
  _data = typing.cast(
73
- OperateDeploymentRuntimeOpsResponse,
73
+ OperateRuntimeResponse,
74
74
  parse_obj_as(
75
- type_=OperateDeploymentRuntimeOpsResponse, # type: ignore
75
+ type_=OperateRuntimeResponse, # type: ignore
76
76
  object_=_response.json(),
77
77
  ),
78
78
  )
@@ -98,7 +98,7 @@ class RawDeploymentRuntimeOpsClient:
98
98
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
99
99
 
100
100
 
101
- class AsyncRawDeploymentRuntimeOpsClient:
101
+ class AsyncRawRuntimeClient:
102
102
  def __init__(self, *, client_wrapper: AsyncClientWrapper):
103
103
  self._client_wrapper = client_wrapper
104
104
 
@@ -109,7 +109,7 @@ class AsyncRawDeploymentRuntimeOpsClient:
109
109
  deployment_id: typing.Optional[str] = OMIT,
110
110
  location_id: typing.Optional[str] = OMIT,
111
111
  request_options: typing.Optional[RequestOptions] = None,
112
- ) -> AsyncHttpResponse[OperateDeploymentRuntimeOpsResponse]:
112
+ ) -> AsyncHttpResponse[OperateRuntimeResponse]:
113
113
  """
114
114
  A single deployment_id runs synchronously and returns per-charger results. A location_id fans out over every charger in the location, which is slow, so it runs in the background and returns 202 immediately. Background work is not durable across restarts.
115
115
 
@@ -129,7 +129,7 @@ class AsyncRawDeploymentRuntimeOpsClient:
129
129
 
130
130
  Returns
131
131
  -------
132
- AsyncHttpResponse[OperateDeploymentRuntimeOpsResponse]
132
+ AsyncHttpResponse[OperateRuntimeResponse]
133
133
  Successful Response
134
134
  """
135
135
  _response = await self._client_wrapper.httpx_client.request(
@@ -149,9 +149,9 @@ class AsyncRawDeploymentRuntimeOpsClient:
149
149
  try:
150
150
  if 200 <= _response.status_code < 300:
151
151
  _data = typing.cast(
152
- OperateDeploymentRuntimeOpsResponse,
152
+ OperateRuntimeResponse,
153
153
  parse_obj_as(
154
- type_=OperateDeploymentRuntimeOpsResponse, # type: ignore
154
+ type_=OperateRuntimeResponse, # type: ignore
155
155
  object_=_response.json(),
156
156
  ),
157
157
  )
@@ -6,10 +6,8 @@ import typing
6
6
  from importlib import import_module
7
7
 
8
8
  if typing.TYPE_CHECKING:
9
- from .operate_deployment_runtime_ops_response import OperateDeploymentRuntimeOpsResponse
10
- _dynamic_imports: typing.Dict[str, str] = {
11
- "OperateDeploymentRuntimeOpsResponse": ".operate_deployment_runtime_ops_response"
12
- }
9
+ from .operate_runtime_response import OperateRuntimeResponse
10
+ _dynamic_imports: typing.Dict[str, str] = {"OperateRuntimeResponse": ".operate_runtime_response"}
13
11
 
14
12
 
15
13
  def __getattr__(attr_name: str) -> typing.Any:
@@ -33,4 +31,4 @@ def __dir__():
33
31
  return sorted(lazy_attrs)
34
32
 
35
33
 
36
- __all__ = ["OperateDeploymentRuntimeOpsResponse"]
34
+ __all__ = ["OperateRuntimeResponse"]
@@ -5,4 +5,4 @@ import typing
5
5
  from ....types.accepted_response import AcceptedResponse
6
6
  from ....types.ocpp_deployment_runtime_ops_response import OcppDeploymentRuntimeOpsResponse
7
7
 
8
- OperateDeploymentRuntimeOpsResponse = typing.Union[OcppDeploymentRuntimeOpsResponse, AcceptedResponse]
8
+ OperateRuntimeResponse = typing.Union[OcppDeploymentRuntimeOpsResponse, AcceptedResponse]
@@ -16,7 +16,7 @@ class DeploymentRuntimeOpsResult(UniversalBaseModel):
16
16
  status: DeploymentRuntimeOpsResultStatus
17
17
  response: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
18
18
  """
19
- JSON response returned by the aws-ops Edge Function.
19
+ JSON response returned by the ocpp-k3s-ops Edge Function.
20
20
  """
21
21
 
22
22
  error: typing.Optional[str] = None
File without changes
File without changes
File without changes
File without changes
File without changes