evcloud 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. evcloud/__init__.py +802 -0
  2. evcloud/_default_clients.py +30 -0
  3. evcloud/client.py +200 -0
  4. evcloud/core/__init__.py +67 -0
  5. evcloud/core/api_error.py +23 -0
  6. evcloud/core/client_wrapper.py +108 -0
  7. evcloud/core/datetime_utils.py +70 -0
  8. evcloud/core/file.py +67 -0
  9. evcloud/core/force_multipart.py +18 -0
  10. evcloud/core/http_client.py +840 -0
  11. evcloud/core/http_response.py +59 -0
  12. evcloud/core/http_sse/__init__.py +9 -0
  13. evcloud/core/http_sse/_api.py +112 -0
  14. evcloud/core/http_sse/_decoders.py +61 -0
  15. evcloud/core/http_sse/_exceptions.py +7 -0
  16. evcloud/core/http_sse/_models.py +17 -0
  17. evcloud/core/jsonable_encoder.py +120 -0
  18. evcloud/core/logging.py +107 -0
  19. evcloud/core/pagination.py +82 -0
  20. evcloud/core/parse_error.py +36 -0
  21. evcloud/core/pydantic_utilities.py +634 -0
  22. evcloud/core/query_encoder.py +58 -0
  23. evcloud/core/remove_none_from_dict.py +11 -0
  24. evcloud/core/request_options.py +35 -0
  25. evcloud/core/serialization.py +276 -0
  26. evcloud/cpo/__init__.py +31 -0
  27. evcloud/cpo/cdrs/__init__.py +4 -0
  28. evcloud/cpo/cdrs/client.py +311 -0
  29. evcloud/cpo/cdrs/raw_client.py +592 -0
  30. evcloud/cpo/charge_points/__init__.py +7 -0
  31. evcloud/cpo/charge_points/client.py +1436 -0
  32. evcloud/cpo/charge_points/raw_client.py +2809 -0
  33. evcloud/cpo/charge_points/types/__init__.py +7 -0
  34. evcloud/cpo/charge_points/types/list_charge_points_request_ocpp_version.py +5 -0
  35. evcloud/cpo/client.py +62 -0
  36. evcloud/cpo/connectors/__init__.py +4 -0
  37. evcloud/cpo/connectors/client.py +698 -0
  38. evcloud/cpo/connectors/raw_client.py +1457 -0
  39. evcloud/cpo/evses/__init__.py +4 -0
  40. evcloud/cpo/evses/client.py +691 -0
  41. evcloud/cpo/evses/raw_client.py +1457 -0
  42. evcloud/cpo/health/__init__.py +4 -0
  43. evcloud/cpo/health/client.py +100 -0
  44. evcloud/cpo/health/raw_client.py +192 -0
  45. evcloud/cpo/locations/__init__.py +4 -0
  46. evcloud/cpo/locations/client.py +1021 -0
  47. evcloud/cpo/locations/raw_client.py +1887 -0
  48. evcloud/cpo/raw_client.py +13 -0
  49. evcloud/cpo/sessions/__init__.py +7 -0
  50. evcloud/cpo/sessions/client.py +430 -0
  51. evcloud/cpo/sessions/raw_client.py +889 -0
  52. evcloud/cpo/sessions/types/__init__.py +8 -0
  53. evcloud/cpo/sessions/types/list_sessions_request_billing_state.py +5 -0
  54. evcloud/cpo/sessions/types/list_sessions_request_status.py +7 -0
  55. evcloud/cpo/tariffs/__init__.py +17 -0
  56. evcloud/cpo/tariffs/client.py +1232 -0
  57. evcloud/cpo/tariffs/raw_client.py +2526 -0
  58. evcloud/cpo/tariffs/types/__init__.py +15 -0
  59. evcloud/cpo/tariffs/types/list_tariffs_request_type.py +7 -0
  60. evcloud/cpo/tariffs/types/tariff_create_ocpi_version.py +5 -0
  61. evcloud/cpo/tariffs/types/tariff_create_preauthorize_amount.py +5 -0
  62. evcloud/cpo/tariffs/types/tariff_patch_preauthorize_amount.py +5 -0
  63. evcloud/emsp/__init__.py +55 -0
  64. evcloud/emsp/cdrs/__init__.py +4 -0
  65. evcloud/emsp/cdrs/client.py +300 -0
  66. evcloud/emsp/cdrs/raw_client.py +610 -0
  67. evcloud/emsp/chargers/__init__.py +7 -0
  68. evcloud/emsp/chargers/client.py +167 -0
  69. evcloud/emsp/chargers/raw_client.py +331 -0
  70. evcloud/emsp/chargers/types/__init__.py +11 -0
  71. evcloud/emsp/chargers/types/resolve_chargers_response.py +53 -0
  72. evcloud/emsp/client.py +77 -0
  73. evcloud/emsp/commands/__init__.py +7 -0
  74. evcloud/emsp/commands/client.py +516 -0
  75. evcloud/emsp/commands/raw_client.py +979 -0
  76. evcloud/emsp/commands/types/__init__.py +7 -0
  77. evcloud/emsp/commands/types/send_commands_request_command.py +7 -0
  78. evcloud/emsp/emp_identities/__init__.py +4 -0
  79. evcloud/emsp/emp_identities/client.py +548 -0
  80. evcloud/emsp/emp_identities/raw_client.py +1277 -0
  81. evcloud/emsp/evses/__init__.py +4 -0
  82. evcloud/emsp/evses/client.py +154 -0
  83. evcloud/emsp/evses/raw_client.py +288 -0
  84. evcloud/emsp/health/__init__.py +4 -0
  85. evcloud/emsp/health/client.py +100 -0
  86. evcloud/emsp/health/raw_client.py +192 -0
  87. evcloud/emsp/locations/__init__.py +4 -0
  88. evcloud/emsp/locations/client.py +1386 -0
  89. evcloud/emsp/locations/raw_client.py +2903 -0
  90. evcloud/emsp/networks/__init__.py +7 -0
  91. evcloud/emsp/networks/client.py +1615 -0
  92. evcloud/emsp/networks/raw_client.py +3725 -0
  93. evcloud/emsp/networks/types/__init__.py +9 -0
  94. evcloud/emsp/networks/types/list_networks_request_network_type.py +5 -0
  95. evcloud/emsp/networks/types/list_rules_networks_request_validity.py +5 -0
  96. evcloud/emsp/networks/types/network_rule_create_request_rule_type.py +5 -0
  97. evcloud/emsp/raw_client.py +13 -0
  98. evcloud/emsp/sessions/__init__.py +4 -0
  99. evcloud/emsp/sessions/client.py +300 -0
  100. evcloud/emsp/sessions/raw_client.py +610 -0
  101. evcloud/emsp/tariffs/__init__.py +7 -0
  102. evcloud/emsp/tariffs/client.py +421 -0
  103. evcloud/emsp/tariffs/raw_client.py +883 -0
  104. evcloud/emsp/tariffs/types/__init__.py +8 -0
  105. evcloud/emsp/tariffs/types/estimate_request_kwh.py +5 -0
  106. evcloud/emsp/tariffs/types/estimate_request_minutes.py +5 -0
  107. evcloud/emsp/tenant/__init__.py +4 -0
  108. evcloud/emsp/tenant/client.py +328 -0
  109. evcloud/emsp/tenant/raw_client.py +869 -0
  110. evcloud/emsp/token_groups/__init__.py +7 -0
  111. evcloud/emsp/token_groups/client.py +1256 -0
  112. evcloud/emsp/token_groups/raw_client.py +3288 -0
  113. evcloud/emsp/token_groups/types/__init__.py +7 -0
  114. evcloud/emsp/token_groups/types/remove_token_token_groups_request_type.py +5 -0
  115. evcloud/emsp/tokens/__init__.py +7 -0
  116. evcloud/emsp/tokens/client.py +1298 -0
  117. evcloud/emsp/tokens/raw_client.py +2947 -0
  118. evcloud/emsp/tokens/types/__init__.py +10 -0
  119. evcloud/emsp/tokens/types/list_tokens_request_status.py +7 -0
  120. evcloud/emsp/tokens/types/list_tokens_request_type.py +5 -0
  121. evcloud/emsp/tokens/types/token_update_default_profile_type.py +5 -0
  122. evcloud/emsp/tokens/types/token_update_whitelist.py +5 -0
  123. evcloud/energy/__init__.py +8 -0
  124. evcloud/energy/client.py +47 -0
  125. evcloud/energy/control_requests/__init__.py +7 -0
  126. evcloud/energy/control_requests/client.py +399 -0
  127. evcloud/energy/control_requests/raw_client.py +835 -0
  128. evcloud/energy/control_requests/types/__init__.py +7 -0
  129. evcloud/energy/control_requests/types/list_control_requests_request_result.py +15 -0
  130. evcloud/energy/health/__init__.py +4 -0
  131. evcloud/energy/health/client.py +100 -0
  132. evcloud/energy/health/raw_client.py +192 -0
  133. evcloud/energy/power_measurements/__init__.py +4 -0
  134. evcloud/energy/power_measurements/client.py +254 -0
  135. evcloud/energy/power_measurements/raw_client.py +527 -0
  136. evcloud/energy/raw_client.py +13 -0
  137. evcloud/environment.py +7 -0
  138. evcloud/errors/__init__.py +25 -0
  139. evcloud/errors/bad_gateway_error.py +11 -0
  140. evcloud/errors/bad_request_error.py +11 -0
  141. evcloud/errors/conflict_error.py +11 -0
  142. evcloud/errors/forbidden_error.py +11 -0
  143. evcloud/errors/gateway_timeout_error.py +11 -0
  144. evcloud/errors/not_found_error.py +11 -0
  145. evcloud/errors/too_many_requests_error.py +11 -0
  146. evcloud/errors/unauthorized_error.py +11 -0
  147. evcloud/errors/unprocessable_entity_error.py +11 -0
  148. evcloud/health/__init__.py +4 -0
  149. evcloud/health/client.py +99 -0
  150. evcloud/health/raw_client.py +100 -0
  151. evcloud/ocpi/__init__.py +123 -0
  152. evcloud/ocpi/client.py +56 -0
  153. evcloud/ocpi/cpo_data/__init__.py +31 -0
  154. evcloud/ocpi/cpo_data/client.py +1553 -0
  155. evcloud/ocpi/cpo_data/raw_client.py +3119 -0
  156. evcloud/ocpi/cpo_data/types/__init__.py +29 -0
  157. evcloud/ocpi/cpo_data/types/cancel_reservation_cpo_data_request_version.py +5 -0
  158. evcloud/ocpi/cpo_data/types/create_cdr_cpo_data_request_version.py +5 -0
  159. evcloud/ocpi/cpo_data/types/delete_tariff_cpo_data_request_version.py +5 -0
  160. evcloud/ocpi/cpo_data/types/send_active_charging_profile_cpo_data_request_version.py +5 -0
  161. evcloud/ocpi/cpo_data/types/update_connector_cpo_data_request_version.py +5 -0
  162. evcloud/ocpi/cpo_data/types/update_evse_status_cpo_data_request_version.py +5 -0
  163. evcloud/ocpi/cpo_data/types/update_location_cpo_data_request_version.py +5 -0
  164. evcloud/ocpi/cpo_data/types/update_session_cpo_data_request_version.py +5 -0
  165. evcloud/ocpi/cpo_data/types/upsert_location_cpo_data_request_version.py +5 -0
  166. evcloud/ocpi/cpo_data/types/upsert_session_cpo_data_request_version.py +5 -0
  167. evcloud/ocpi/cpo_data/types/upsert_tariff_cpo_data_request_version.py +5 -0
  168. evcloud/ocpi/credentials/__init__.py +31 -0
  169. evcloud/ocpi/credentials/client.py +750 -0
  170. evcloud/ocpi/credentials/raw_client.py +1537 -0
  171. evcloud/ocpi/credentials/types/__init__.py +29 -0
  172. evcloud/ocpi/credentials/types/partner_versions_pull_request_partner_token_encoding.py +5 -0
  173. evcloud/ocpi/credentials/types/pull_versions_credentials_request_role.py +5 -0
  174. evcloud/ocpi/credentials/types/pull_versions_credentials_request_version.py +5 -0
  175. evcloud/ocpi/credentials/types/rotate_credentials_request_role.py +5 -0
  176. evcloud/ocpi/credentials/types/rotate_credentials_request_version.py +5 -0
  177. evcloud/ocpi/credentials/types/start_handshake_credentials_request_role.py +5 -0
  178. evcloud/ocpi/credentials/types/start_handshake_credentials_request_version.py +5 -0
  179. evcloud/ocpi/credentials/types/status_credentials_request_role.py +5 -0
  180. evcloud/ocpi/credentials/types/status_credentials_request_version.py +5 -0
  181. evcloud/ocpi/credentials/types/unregister_credentials_request_role.py +5 -0
  182. evcloud/ocpi/credentials/types/unregister_credentials_request_version.py +5 -0
  183. evcloud/ocpi/emsp/__init__.py +27 -0
  184. evcloud/ocpi/emsp/client.py +1142 -0
  185. evcloud/ocpi/emsp/raw_client.py +2209 -0
  186. evcloud/ocpi/emsp/types/__init__.py +25 -0
  187. evcloud/ocpi/emsp/types/charging_preferences_request_profile_type.py +5 -0
  188. evcloud/ocpi/emsp/types/clear_charging_profile_emsp_request_version.py +5 -0
  189. evcloud/ocpi/emsp/types/get_active_charging_profile_emsp_request_version.py +5 -0
  190. evcloud/ocpi/emsp/types/send_command_emsp_request_command.py +7 -0
  191. evcloud/ocpi/emsp/types/send_command_emsp_request_version.py +5 -0
  192. evcloud/ocpi/emsp/types/set_charging_preferences_emsp_request_version.py +5 -0
  193. evcloud/ocpi/emsp/types/set_charging_profile_emsp_request_version.py +5 -0
  194. evcloud/ocpi/emsp/types/update_token_emsp_request_version.py +5 -0
  195. evcloud/ocpi/emsp/types/upsert_token_emsp_request_version.py +5 -0
  196. evcloud/ocpi/invites/__init__.py +19 -0
  197. evcloud/ocpi/invites/client.py +385 -0
  198. evcloud/ocpi/invites/raw_client.py +887 -0
  199. evcloud/ocpi/invites/types/__init__.py +17 -0
  200. evcloud/ocpi/invites/types/partner_invite_create_request_gateway_role.py +5 -0
  201. evcloud/ocpi/invites/types/partner_invite_create_request_role.py +5 -0
  202. evcloud/ocpi/invites/types/partner_invite_create_request_version.py +5 -0
  203. evcloud/ocpi/invites/types/partner_invite_update_request_gateway_role.py +5 -0
  204. evcloud/ocpi/invites/types/partner_invite_update_request_version.py +5 -0
  205. evcloud/ocpi/partners/__init__.py +7 -0
  206. evcloud/ocpi/partners/client.py +581 -0
  207. evcloud/ocpi/partners/raw_client.py +1340 -0
  208. evcloud/ocpi/partners/types/__init__.py +8 -0
  209. evcloud/ocpi/partners/types/partner_register_request_ocpi_version.py +5 -0
  210. evcloud/ocpi/partners/types/partner_update_request_ocpi_version.py +5 -0
  211. evcloud/ocpi/raw_client.py +13 -0
  212. evcloud/ocpi/sync/__init__.py +33 -0
  213. evcloud/ocpi/sync/client.py +1701 -0
  214. evcloud/ocpi/sync/raw_client.py +3685 -0
  215. evcloud/ocpi/sync/types/__init__.py +31 -0
  216. evcloud/ocpi/sync/types/pull_cdrs_sync_request_version.py +5 -0
  217. evcloud/ocpi/sync/types/pull_hub_client_info_as_cpo_sync_request_version.py +5 -0
  218. evcloud/ocpi/sync/types/pull_hub_client_info_as_emsp_sync_request_version.py +5 -0
  219. evcloud/ocpi/sync/types/pull_locations_sync_request_version.py +5 -0
  220. evcloud/ocpi/sync/types/pull_sessions_sync_request_version.py +5 -0
  221. evcloud/ocpi/sync/types/pull_tariffs_sync_request_version.py +5 -0
  222. evcloud/ocpi/sync/types/pull_tokens_sync_request_version.py +5 -0
  223. evcloud/ocpi/sync/types/push_cdr_sync_request_version.py +5 -0
  224. evcloud/ocpi/sync/types/push_location_sync_request_version.py +5 -0
  225. evcloud/ocpi/sync/types/push_session_sync_request_version.py +5 -0
  226. evcloud/ocpi/sync/types/push_tariff_sync_request_version.py +5 -0
  227. evcloud/ocpi/sync/types/push_token_sync_request_version.py +5 -0
  228. evcloud/py.typed +0 -0
  229. evcloud/types/__init__.py +759 -0
  230. evcloud/types/access_mode.py +5 -0
  231. evcloud/types/asset_connector.py +26 -0
  232. evcloud/types/asset_updated_event.py +29 -0
  233. evcloud/types/availability_page.py +26 -0
  234. evcloud/types/batch_response.py +26 -0
  235. evcloud/types/batch_response_missing_item.py +7 -0
  236. evcloud/types/cdr_event.py +41 -0
  237. evcloud/types/cdr_out.py +75 -0
  238. evcloud/types/cdr_out_auth_method.py +7 -0
  239. evcloud/types/cdr_out_auth_method_zero.py +5 -0
  240. evcloud/types/cdr_out_origin.py +7 -0
  241. evcloud/types/cdr_out_origin_zero.py +5 -0
  242. evcloud/types/cdr_page.py +27 -0
  243. evcloud/types/cdr_write_response.py +26 -0
  244. evcloud/types/charge_point_created_out.py +74 -0
  245. evcloud/types/charge_point_created_out_access_mode.py +7 -0
  246. evcloud/types/charge_point_created_out_access_mode_zero.py +5 -0
  247. evcloud/types/charge_point_created_out_pricing.py +7 -0
  248. evcloud/types/charge_point_created_out_pricing_zero.py +5 -0
  249. evcloud/types/charge_point_created_out_site_type.py +7 -0
  250. evcloud/types/charge_point_created_out_site_type_zero.py +5 -0
  251. evcloud/types/charge_point_out.py +73 -0
  252. evcloud/types/charge_point_out_access_mode.py +7 -0
  253. evcloud/types/charge_point_out_access_mode_zero.py +5 -0
  254. evcloud/types/charge_point_out_pricing.py +7 -0
  255. evcloud/types/charge_point_out_pricing_zero.py +5 -0
  256. evcloud/types/charge_point_out_site_type.py +7 -0
  257. evcloud/types/charge_point_out_site_type_zero.py +5 -0
  258. evcloud/types/charge_point_page.py +27 -0
  259. evcloud/types/charging_preferences_response.py +28 -0
  260. evcloud/types/charging_preferences_response_result.py +10 -0
  261. evcloud/types/charging_profile.py +30 -0
  262. evcloud/types/charging_profile_charging_rate_unit.py +5 -0
  263. evcloud/types/charging_profile_period.py +31 -0
  264. evcloud/types/charging_profile_response.py +32 -0
  265. evcloud/types/cluster_page.py +26 -0
  266. evcloud/types/command_accepted.py +30 -0
  267. evcloud/types/command_accepted_route.py +53 -0
  268. evcloud/types/command_accepted_route_own.py +28 -0
  269. evcloud/types/command_accepted_route_own_ocpi_version.py +7 -0
  270. evcloud/types/command_accepted_route_own_ocpi_version_zero.py +5 -0
  271. evcloud/types/command_accepted_route_roaming.py +30 -0
  272. evcloud/types/command_accepted_route_roaming_ocpi_version.py +7 -0
  273. evcloud/types/command_accepted_route_roaming_ocpi_version_zero.py +5 -0
  274. evcloud/types/command_accepted_status.py +7 -0
  275. evcloud/types/command_accepted_status_zero.py +20 -0
  276. evcloud/types/command_page.py +26 -0
  277. evcloud/types/command_record.py +40 -0
  278. evcloud/types/command_record_command.py +7 -0
  279. evcloud/types/command_record_command_zero.py +7 -0
  280. evcloud/types/command_record_route.py +53 -0
  281. evcloud/types/command_record_route_own.py +28 -0
  282. evcloud/types/command_record_route_own_ocpi_version.py +7 -0
  283. evcloud/types/command_record_route_own_ocpi_version_zero.py +5 -0
  284. evcloud/types/command_record_route_roaming.py +30 -0
  285. evcloud/types/command_record_route_roaming_ocpi_version.py +7 -0
  286. evcloud/types/command_record_route_roaming_ocpi_version_zero.py +5 -0
  287. evcloud/types/command_record_status.py +7 -0
  288. evcloud/types/command_record_status_zero.py +20 -0
  289. evcloud/types/command_response_out.py +26 -0
  290. evcloud/types/command_response_out_result.py +7 -0
  291. evcloud/types/command_response_out_result_zero.py +7 -0
  292. evcloud/types/command_result_event.py +39 -0
  293. evcloud/types/command_result_event_module.py +5 -0
  294. evcloud/types/command_result_event_protocol.py +5 -0
  295. evcloud/types/command_result_event_status.py +5 -0
  296. evcloud/types/command_send_response.py +31 -0
  297. evcloud/types/command_token.py +36 -0
  298. evcloud/types/connector_format.py +5 -0
  299. evcloud/types/connector_page.py +27 -0
  300. evcloud/types/connector_status_event.py +29 -0
  301. evcloud/types/connector_write_response.py +27 -0
  302. evcloud/types/control_action.py +5 -0
  303. evcloud/types/control_request_page.py +27 -0
  304. evcloud/types/control_request_response.py +38 -0
  305. evcloud/types/control_request_response_action.py +7 -0
  306. evcloud/types/control_request_response_action_zero.py +7 -0
  307. evcloud/types/control_request_response_result.py +7 -0
  308. evcloud/types/control_request_response_result_zero.py +15 -0
  309. evcloud/types/control_request_response_unit.py +7 -0
  310. evcloud/types/control_request_response_unit_zero.py +5 -0
  311. evcloud/types/control_response_event.py +38 -0
  312. evcloud/types/control_response_event_action.py +5 -0
  313. evcloud/types/control_response_event_result.py +15 -0
  314. evcloud/types/control_response_event_unit.py +5 -0
  315. evcloud/types/cpo_connector_out.py +58 -0
  316. evcloud/types/cpo_connector_out_format.py +7 -0
  317. evcloud/types/cpo_connector_out_format_zero.py +5 -0
  318. evcloud/types/cpo_connector_out_ocpi_status.py +7 -0
  319. evcloud/types/cpo_connector_out_ocpi_status_zero.py +10 -0
  320. evcloud/types/cpo_connector_out_power_type.py +7 -0
  321. evcloud/types/cpo_connector_out_power_type_zero.py +7 -0
  322. evcloud/types/cpo_evse_out.py +61 -0
  323. evcloud/types/cpo_evse_out_origin.py +7 -0
  324. evcloud/types/cpo_evse_out_origin_zero.py +5 -0
  325. evcloud/types/cpo_evse_out_status.py +7 -0
  326. evcloud/types/cpo_evse_out_status_zero.py +10 -0
  327. evcloud/types/credentials_handshake_request.py +44 -0
  328. evcloud/types/credentials_handshake_request_partner_token_encoding.py +5 -0
  329. evcloud/types/credentials_handshake_response.py +32 -0
  330. evcloud/types/credentials_handshake_response_action.py +7 -0
  331. evcloud/types/credentials_handshake_response_version.py +5 -0
  332. evcloud/types/deliver_event_response.py +23 -0
  333. evcloud/types/delivery_drift_event.py +30 -0
  334. evcloud/types/display_text.py +24 -0
  335. evcloud/types/effective_cpo.py +27 -0
  336. evcloud/types/effective_cpo_source.py +7 -0
  337. evcloud/types/effective_cpo_source_zero.py +5 -0
  338. evcloud/types/effective_view_response.py +29 -0
  339. evcloud/types/emp_identity_out.py +35 -0
  340. evcloud/types/emp_identity_out_status.py +7 -0
  341. evcloud/types/emp_identity_out_status_zero.py +5 -0
  342. evcloud/types/emp_identity_page.py +26 -0
  343. evcloud/types/emsp_cdr_out.py +41 -0
  344. evcloud/types/emsp_cdr_out_source.py +7 -0
  345. evcloud/types/emsp_cdr_out_source_zero.py +5 -0
  346. evcloud/types/emsp_cdr_page.py +26 -0
  347. evcloud/types/emsp_connector_out.py +30 -0
  348. evcloud/types/emsp_evse_out.py +32 -0
  349. evcloud/types/emsp_gateway_schema_commands_location_key.py +25 -0
  350. evcloud/types/emsp_gateway_schema_location_lookup_location_key.py +25 -0
  351. evcloud/types/emsp_gateway_schema_locations_location_out.py +47 -0
  352. evcloud/types/emsp_gateway_schema_locations_location_page.py +26 -0
  353. evcloud/types/emsp_gateway_schema_networks_location_out.py +37 -0
  354. evcloud/types/emsp_gateway_schema_networks_location_page.py +26 -0
  355. evcloud/types/emsp_session_out.py +41 -0
  356. evcloud/types/emsp_session_out_source.py +7 -0
  357. evcloud/types/emsp_session_out_source_zero.py +5 -0
  358. evcloud/types/emsp_session_page.py +26 -0
  359. evcloud/types/emsp_tariff_page.py +26 -0
  360. evcloud/types/energy_contract.py +24 -0
  361. evcloud/types/estimate_line.py +27 -0
  362. evcloud/types/estimate_line_type.py +7 -0
  363. evcloud/types/estimate_line_type_zero.py +5 -0
  364. evcloud/types/estimate_response.py +30 -0
  365. evcloud/types/event_type_list.py +24 -0
  366. evcloud/types/event_type_response.py +27 -0
  367. evcloud/types/event_type_response_type.py +7 -0
  368. evcloud/types/event_type_response_type_zero.py +27 -0
  369. evcloud/types/event_type_version.py +24 -0
  370. evcloud/types/evse_connector_status.py +26 -0
  371. evcloud/types/evse_page.py +27 -0
  372. evcloud/types/evse_parking.py +25 -0
  373. evcloud/types/evse_parking_evse_position.py +7 -0
  374. evcloud/types/evse_parking_evse_position_zero.py +5 -0
  375. evcloud/types/evse_status_event.py +31 -0
  376. evcloud/types/evse_status_out.py +32 -0
  377. evcloud/types/evse_status_write_response.py +28 -0
  378. evcloud/types/facility_count.py +24 -0
  379. evcloud/types/facility_page.py +26 -0
  380. evcloud/types/health_ok.py +24 -0
  381. evcloud/types/health_ok_status.py +7 -0
  382. evcloud/types/health_ok_status_zero.py +5 -0
  383. evcloud/types/http_error_response.py +29 -0
  384. evcloud/types/http_validation_error.py +24 -0
  385. evcloud/types/limit_unit.py +5 -0
  386. evcloud/types/location_availability.py +28 -0
  387. evcloud/types/location_availability_status.py +7 -0
  388. evcloud/types/location_availability_status_zero.py +7 -0
  389. evcloud/types/location_base.py +53 -0
  390. evcloud/types/location_base_parking_type.py +7 -0
  391. evcloud/types/location_base_parking_type_zero.py +8 -0
  392. evcloud/types/location_cluster.py +26 -0
  393. evcloud/types/location_detail.py +51 -0
  394. evcloud/types/location_key_input.py +25 -0
  395. evcloud/types/location_list.py +24 -0
  396. evcloud/types/location_out.py +79 -0
  397. evcloud/types/location_out_access_mode.py +7 -0
  398. evcloud/types/location_out_access_mode_zero.py +5 -0
  399. evcloud/types/location_out_ocpi_version.py +7 -0
  400. evcloud/types/location_out_ocpi_version_zero.py +5 -0
  401. evcloud/types/location_out_origin.py +7 -0
  402. evcloud/types/location_out_origin_zero.py +5 -0
  403. evcloud/types/location_out_parking_type.py +7 -0
  404. evcloud/types/location_out_parking_type_zero.py +8 -0
  405. evcloud/types/location_out_role.py +7 -0
  406. evcloud/types/location_out_role_zero.py +5 -0
  407. evcloud/types/location_out_site_type.py +7 -0
  408. evcloud/types/location_out_site_type_zero.py +5 -0
  409. evcloud/types/location_page.py +27 -0
  410. evcloud/types/location_summary.py +43 -0
  411. evcloud/types/location_updated_event.py +30 -0
  412. evcloud/types/location_write_response.py +26 -0
  413. evcloud/types/map_cluster.py +28 -0
  414. evcloud/types/map_page.py +29 -0
  415. evcloud/types/network_consumer.py +25 -0
  416. evcloud/types/network_consumer_page.py +26 -0
  417. evcloud/types/network_detail_response.py +49 -0
  418. evcloud/types/network_detail_response_network_type.py +7 -0
  419. evcloud/types/network_detail_response_network_type_zero.py +5 -0
  420. evcloud/types/network_detail_response_publish_state.py +7 -0
  421. evcloud/types/network_detail_response_publish_state_zero.py +7 -0
  422. evcloud/types/network_page.py +26 -0
  423. evcloud/types/network_priority_order.py +23 -0
  424. evcloud/types/network_response.py +46 -0
  425. evcloud/types/network_response_network_type.py +7 -0
  426. evcloud/types/network_response_network_type_zero.py +5 -0
  427. evcloud/types/network_response_publish_state.py +7 -0
  428. evcloud/types/network_response_publish_state_zero.py +5 -0
  429. evcloud/types/network_rule_page.py +26 -0
  430. evcloud/types/network_rule_response.py +33 -0
  431. evcloud/types/network_rule_response_rule_type.py +7 -0
  432. evcloud/types/network_rule_response_rule_type_zero.py +5 -0
  433. evcloud/types/ocpi_business_details.py +26 -0
  434. evcloud/types/ocpi_business_details_input.py +26 -0
  435. evcloud/types/ocpi_cdr_dimension.py +24 -0
  436. evcloud/types/ocpi_cdr_location.py +30 -0
  437. evcloud/types/ocpi_cdr_token.py +30 -0
  438. evcloud/types/ocpi_charging_period.py +27 -0
  439. evcloud/types/ocpi_display_text.py +24 -0
  440. evcloud/types/ocpi_energy_mix.py +29 -0
  441. evcloud/types/ocpi_energy_mix_input.py +29 -0
  442. evcloud/types/ocpi_energy_source.py +24 -0
  443. evcloud/types/ocpi_energy_source_input.py +24 -0
  444. evcloud/types/ocpi_environmental_impact.py +24 -0
  445. evcloud/types/ocpi_evse_parking.py +24 -0
  446. evcloud/types/ocpi_exceptional_period.py +25 -0
  447. evcloud/types/ocpi_geo_location.py +24 -0
  448. evcloud/types/ocpi_geo_location_in.py +24 -0
  449. evcloud/types/ocpi_image.py +28 -0
  450. evcloud/types/ocpi_image_input.py +28 -0
  451. evcloud/types/ocpi_opening_times.py +28 -0
  452. evcloud/types/ocpi_opening_times_input.py +28 -0
  453. evcloud/types/ocpi_parking_place.py +44 -0
  454. evcloud/types/ocpi_parking_place_input.py +44 -0
  455. evcloud/types/ocpi_price_component_input.py +28 -0
  456. evcloud/types/ocpi_price_component_input_price.py +5 -0
  457. evcloud/types/ocpi_price_component_input_vat.py +5 -0
  458. evcloud/types/ocpi_price_component_output.py +26 -0
  459. evcloud/types/ocpi_price_input.py +26 -0
  460. evcloud/types/ocpi_price_input_excl_vat.py +5 -0
  461. evcloud/types/ocpi_price_input_incl_vat.py +5 -0
  462. evcloud/types/ocpi_price_output.py +24 -0
  463. evcloud/types/ocpi_publish_token.py +27 -0
  464. evcloud/types/ocpi_regular_hours.py +25 -0
  465. evcloud/types/ocpi_regular_hours_input.py +25 -0
  466. evcloud/types/ocpi_related_location.py +26 -0
  467. evcloud/types/ocpi_signed_data.py +28 -0
  468. evcloud/types/ocpi_signed_value.py +25 -0
  469. evcloud/types/ocpi_status_schedule.py +26 -0
  470. evcloud/types/ocpi_tariff_element_input.py +26 -0
  471. evcloud/types/ocpi_tariff_element_output.py +26 -0
  472. evcloud/types/ocpi_tariff_restrictions_input.py +33 -0
  473. evcloud/types/ocpi_tariff_restrictions_input_max_kwh.py +5 -0
  474. evcloud/types/ocpi_tariff_restrictions_input_min_kwh.py +5 -0
  475. evcloud/types/ocpi_tariff_restrictions_output.py +31 -0
  476. evcloud/types/ocpi_tariff_snapshot.py +26 -0
  477. evcloud/types/ocpp_version.py +5 -0
  478. evcloud/types/page_info.py +24 -0
  479. evcloud/types/parking.py +45 -0
  480. evcloud/types/parking_direction.py +7 -0
  481. evcloud/types/parking_direction_zero.py +5 -0
  482. evcloud/types/parking_type.py +8 -0
  483. evcloud/types/parking_vehicle_types_item.py +7 -0
  484. evcloud/types/parking_vehicle_types_item_zero.py +18 -0
  485. evcloud/types/partner_invite_response.py +47 -0
  486. evcloud/types/partner_invite_response_action.py +5 -0
  487. evcloud/types/partner_invite_response_role.py +5 -0
  488. evcloud/types/partner_invite_response_version.py +5 -0
  489. evcloud/types/partner_invite_revoke_response.py +31 -0
  490. evcloud/types/partner_invite_revoke_response_role.py +5 -0
  491. evcloud/types/partner_response.py +41 -0
  492. evcloud/types/partner_response_ocpi_version.py +5 -0
  493. evcloud/types/partner_token_updated_event.py +35 -0
  494. evcloud/types/partner_versions_pull_response.py +29 -0
  495. evcloud/types/partner_versions_pull_response_code.py +8 -0
  496. evcloud/types/partner_versions_pull_response_version.py +5 -0
  497. evcloud/types/power_measurement.py +30 -0
  498. evcloud/types/power_measurement_event.py +30 -0
  499. evcloud/types/power_measurement_list.py +24 -0
  500. evcloud/types/power_type.py +5 -0
  501. evcloud/types/price_component.py +26 -0
  502. evcloud/types/price_limit.py +24 -0
  503. evcloud/types/pricing_mode.py +5 -0
  504. evcloud/types/queue_health.py +34 -0
  505. evcloud/types/reservation_cancel_response.py +25 -0
  506. evcloud/types/resolve_chargers_response_own.py +28 -0
  507. evcloud/types/resolve_chargers_response_own_ocpi_version.py +7 -0
  508. evcloud/types/resolve_chargers_response_own_ocpi_version_zero.py +5 -0
  509. evcloud/types/resolve_chargers_response_roaming.py +30 -0
  510. evcloud/types/resolve_chargers_response_roaming_ocpi_version.py +7 -0
  511. evcloud/types/resolve_chargers_response_roaming_ocpi_version_zero.py +5 -0
  512. evcloud/types/session_event.py +39 -0
  513. evcloud/types/session_out.py +60 -0
  514. evcloud/types/session_out_auth_method.py +7 -0
  515. evcloud/types/session_out_auth_method_zero.py +5 -0
  516. evcloud/types/session_out_billing_state.py +7 -0
  517. evcloud/types/session_out_billing_state_zero.py +5 -0
  518. evcloud/types/session_out_origin.py +7 -0
  519. evcloud/types/session_out_origin_zero.py +5 -0
  520. evcloud/types/session_out_status.py +7 -0
  521. evcloud/types/session_out_status_zero.py +7 -0
  522. evcloud/types/session_page.py +27 -0
  523. evcloud/types/session_write_response.py +27 -0
  524. evcloud/types/sharing_slot.py +25 -0
  525. evcloud/types/sharing_slot_input.py +25 -0
  526. evcloud/types/site_type.py +5 -0
  527. evcloud/types/sync_patch_request.py +26 -0
  528. evcloud/types/sync_pull_response.py +31 -0
  529. evcloud/types/sync_push_response.py +31 -0
  530. evcloud/types/sync_push_response_status.py +5 -0
  531. evcloud/types/tariff.py +42 -0
  532. evcloud/types/tariff_assignment_out.py +32 -0
  533. evcloud/types/tariff_assignment_page.py +27 -0
  534. evcloud/types/tariff_delete_response.py +26 -0
  535. evcloud/types/tariff_display.py +27 -0
  536. evcloud/types/tariff_element.py +26 -0
  537. evcloud/types/tariff_out.py +57 -0
  538. evcloud/types/tariff_out_origin.py +7 -0
  539. evcloud/types/tariff_out_origin_zero.py +5 -0
  540. evcloud/types/tariff_out_tax_included.py +7 -0
  541. evcloud/types/tariff_out_tax_included_zero.py +5 -0
  542. evcloud/types/tariff_out_type.py +7 -0
  543. evcloud/types/tariff_out_type_zero.py +7 -0
  544. evcloud/types/tariff_page.py +27 -0
  545. evcloud/types/tariff_restrictions.py +36 -0
  546. evcloud/types/tariff_summary.py +29 -0
  547. evcloud/types/tariff_tax_included.py +7 -0
  548. evcloud/types/tariff_tax_included_zero.py +5 -0
  549. evcloud/types/tariff_type.py +7 -0
  550. evcloud/types/tariff_updated_event.py +29 -0
  551. evcloud/types/tariff_write_response.py +26 -0
  552. evcloud/types/tax_included.py +5 -0
  553. evcloud/types/tenant_profile_out.py +31 -0
  554. evcloud/types/token_bulk_out.py +26 -0
  555. evcloud/types/token_create.py +46 -0
  556. evcloud/types/token_create_default_profile_type.py +5 -0
  557. evcloud/types/token_create_ocpi_version.py +5 -0
  558. evcloud/types/token_create_type.py +5 -0
  559. evcloud/types/token_create_whitelist.py +5 -0
  560. evcloud/types/token_event_data.py +47 -0
  561. evcloud/types/token_event_data_status.py +7 -0
  562. evcloud/types/token_event_data_type.py +5 -0
  563. evcloud/types/token_event_data_whitelist.py +5 -0
  564. evcloud/types/token_event_out.py +32 -0
  565. evcloud/types/token_event_out_event.py +7 -0
  566. evcloud/types/token_event_out_event_zero.py +7 -0
  567. evcloud/types/token_event_page.py +26 -0
  568. evcloud/types/token_failure_item.py +24 -0
  569. evcloud/types/token_group_action_out.py +27 -0
  570. evcloud/types/token_group_failure.py +24 -0
  571. evcloud/types/token_group_member_out.py +26 -0
  572. evcloud/types/token_group_network_out.py +35 -0
  573. evcloud/types/token_group_network_page.py +26 -0
  574. evcloud/types/token_group_out.py +31 -0
  575. evcloud/types/token_group_page.py +26 -0
  576. evcloud/types/token_out.py +55 -0
  577. evcloud/types/token_out_status.py +7 -0
  578. evcloud/types/token_out_status_zero.py +7 -0
  579. evcloud/types/token_out_type.py +7 -0
  580. evcloud/types/token_out_type_zero.py +5 -0
  581. evcloud/types/token_out_whitelist.py +7 -0
  582. evcloud/types/token_out_whitelist_zero.py +5 -0
  583. evcloud/types/token_page.py +26 -0
  584. evcloud/types/token_reason.py +23 -0
  585. evcloud/types/token_ref.py +26 -0
  586. evcloud/types/token_ref_ocpi_version.py +5 -0
  587. evcloud/types/token_write_response.py +28 -0
  588. evcloud/types/validation_error.py +28 -0
  589. evcloud/types/validation_error_loc_item.py +5 -0
  590. evcloud/types/webhook_delivery_page.py +27 -0
  591. evcloud/types/webhook_delivery_response.py +35 -0
  592. evcloud/types/webhook_page.py +27 -0
  593. evcloud/types/webhook_response.py +42 -0
  594. evcloud/types/webhook_response_event.py +7 -0
  595. evcloud/types/webhook_response_event_zero.py +27 -0
  596. evcloud/types/webhook_response_status.py +7 -0
  597. evcloud/types/webhook_response_status_zero.py +5 -0
  598. evcloud/types/webhook_test_result.py +25 -0
  599. evcloud/types/webhook_with_secret_response.py +43 -0
  600. evcloud/types/webhook_with_secret_response_event.py +7 -0
  601. evcloud/types/webhook_with_secret_response_event_zero.py +27 -0
  602. evcloud/types/webhook_with_secret_response_status.py +7 -0
  603. evcloud/types/webhook_with_secret_response_status_zero.py +5 -0
  604. evcloud/version.py +3 -0
  605. evcloud/webhooks/__init__.py +28 -0
  606. evcloud/webhooks/client.py +53 -0
  607. evcloud/webhooks/deliveries/__init__.py +4 -0
  608. evcloud/webhooks/deliveries/client.py +141 -0
  609. evcloud/webhooks/deliveries/raw_client.py +268 -0
  610. evcloud/webhooks/endpoints/__init__.py +17 -0
  611. evcloud/webhooks/endpoints/client.py +642 -0
  612. evcloud/webhooks/endpoints/raw_client.py +1521 -0
  613. evcloud/webhooks/endpoints/types/__init__.py +15 -0
  614. evcloud/webhooks/endpoints/types/list_endpoints_request_event_types_item.py +27 -0
  615. evcloud/webhooks/endpoints/types/webhook_create_request_api_version.py +5 -0
  616. evcloud/webhooks/endpoints/types/webhook_create_request_event.py +27 -0
  617. evcloud/webhooks/endpoints/types/webhook_update_request_status.py +5 -0
  618. evcloud/webhooks/event_types/__init__.py +7 -0
  619. evcloud/webhooks/event_types/client.py +176 -0
  620. evcloud/webhooks/event_types/raw_client.py +418 -0
  621. evcloud/webhooks/event_types/types/__init__.py +7 -0
  622. evcloud/webhooks/event_types/types/get_event_types_request_type.py +27 -0
  623. evcloud/webhooks/events/__init__.py +7 -0
  624. evcloud/webhooks/events/client.py +207 -0
  625. evcloud/webhooks/events/raw_client.py +355 -0
  626. evcloud/webhooks/events/types/__init__.py +8 -0
  627. evcloud/webhooks/events/types/deliver_event_request_data.py +33 -0
  628. evcloud/webhooks/events/types/deliver_event_request_event.py +27 -0
  629. evcloud/webhooks/health/__init__.py +4 -0
  630. evcloud/webhooks/health/client.py +161 -0
  631. evcloud/webhooks/health/raw_client.py +380 -0
  632. evcloud/webhooks/raw_client.py +13 -0
  633. evcloud-0.1.0.dist-info/METADATA +257 -0
  634. evcloud-0.1.0.dist-info/RECORD +635 -0
  635. evcloud-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,1436 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
7
+ from ...core.pagination import AsyncPager, SyncPager
8
+ from ...core.request_options import RequestOptions
9
+ from ...types.access_mode import AccessMode
10
+ from ...types.cdr_out import CdrOut
11
+ from ...types.cdr_page import CdrPage
12
+ from ...types.charge_point_created_out import ChargePointCreatedOut
13
+ from ...types.charge_point_out import ChargePointOut
14
+ from ...types.charge_point_page import ChargePointPage
15
+ from ...types.connector_page import ConnectorPage
16
+ from ...types.cpo_connector_out import CpoConnectorOut
17
+ from ...types.cpo_evse_out import CpoEvseOut
18
+ from ...types.evse_page import EvsePage
19
+ from ...types.ocpp_version import OcppVersion
20
+ from ...types.pricing_mode import PricingMode
21
+ from ...types.session_out import SessionOut
22
+ from ...types.session_page import SessionPage
23
+ from ...types.sharing_slot_input import SharingSlotInput
24
+ from ...types.site_type import SiteType
25
+ from .raw_client import AsyncRawChargePointsClient, RawChargePointsClient
26
+ from .types.list_charge_points_request_ocpp_version import ListChargePointsRequestOcppVersion
27
+
28
+ # this is used as the default value for optional parameters
29
+ OMIT = typing.cast(typing.Any, ...)
30
+
31
+
32
+ class ChargePointsClient:
33
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
34
+ self._raw_client = RawChargePointsClient(client_wrapper=client_wrapper)
35
+
36
+ @property
37
+ def with_raw_response(self) -> RawChargePointsClient:
38
+ """
39
+ Retrieves a raw implementation of this client that returns raw responses.
40
+
41
+ Returns
42
+ -------
43
+ RawChargePointsClient
44
+ """
45
+ return self._raw_client
46
+
47
+ def list(
48
+ self,
49
+ *,
50
+ location_id: typing.Optional[int] = None,
51
+ is_online: typing.Optional[bool] = None,
52
+ ocpp_version: typing.Optional[ListChargePointsRequestOcppVersion] = None,
53
+ offset: typing.Optional[int] = None,
54
+ limit: typing.Optional[int] = None,
55
+ request_options: typing.Optional[RequestOptions] = None,
56
+ ) -> SyncPager[ChargePointOut, ChargePointPage]:
57
+ """
58
+ Your chargers, sorted by OCPP identity. Online state, heartbeat and firmware come from the chargers themselves.
59
+
60
+ Parameters
61
+ ----------
62
+ location_id : typing.Optional[int]
63
+ Only this location, by its numeric ``id`` (not its OCPI location id).
64
+
65
+ is_online : typing.Optional[bool]
66
+ Only connected (true) or disconnected (false) chargers.
67
+
68
+ ocpp_version : typing.Optional[ListChargePointsRequestOcppVersion]
69
+ Only chargers speaking this OCPP version.
70
+
71
+ offset : typing.Optional[int]
72
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
73
+
74
+ limit : typing.Optional[int]
75
+ Maximum rows per page (default 50, max 200).
76
+
77
+ request_options : typing.Optional[RequestOptions]
78
+ Request-specific configuration.
79
+
80
+ Returns
81
+ -------
82
+ SyncPager[ChargePointOut, ChargePointPage]
83
+ One page of results; ``next_offset`` is null on the last page.
84
+
85
+ Examples
86
+ --------
87
+ from evcloud import EvcloudClient
88
+
89
+ client = EvcloudClient(
90
+ token="YOUR_TOKEN",
91
+ )
92
+ response = client.cpo.charge_points.list(
93
+ is_online=True,
94
+ limit=50,
95
+ offset=0,
96
+ )
97
+ for item in response:
98
+ yield item
99
+ # alternatively, you can paginate page-by-page
100
+ for page in response.iter_pages():
101
+ yield page
102
+ """
103
+ return self._raw_client.list(
104
+ location_id=location_id,
105
+ is_online=is_online,
106
+ ocpp_version=ocpp_version,
107
+ offset=offset,
108
+ limit=limit,
109
+ request_options=request_options,
110
+ )
111
+
112
+ def create(
113
+ self,
114
+ *,
115
+ charge_point_id: str,
116
+ ocpp_version: typing.Optional[OcppVersion] = OMIT,
117
+ charge_point_vendor: typing.Optional[str] = OMIT,
118
+ charge_point_model: typing.Optional[str] = OMIT,
119
+ location_id: typing.Optional[int] = OMIT,
120
+ coordinates: typing.Optional[str] = OMIT,
121
+ floor_level: typing.Optional[str] = OMIT,
122
+ parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
123
+ capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
124
+ max_power_kw: typing.Optional[float] = OMIT,
125
+ connector_type: typing.Optional[str] = OMIT,
126
+ connector_count: typing.Optional[int] = OMIT,
127
+ accessibility: typing.Optional[str] = OMIT,
128
+ use_status_notification0: typing.Optional[bool] = OMIT,
129
+ image_url: typing.Optional[str] = OMIT,
130
+ is_roaming: typing.Optional[bool] = OMIT,
131
+ access_mode: typing.Optional[AccessMode] = OMIT,
132
+ site_type: typing.Optional[SiteType] = OMIT,
133
+ customer_id: typing.Optional[int] = OMIT,
134
+ sharing_schedule: typing.Optional[typing.Sequence[SharingSlotInput]] = OMIT,
135
+ sharing_paused: typing.Optional[bool] = OMIT,
136
+ pricing: typing.Optional[PricingMode] = OMIT,
137
+ free_vend: typing.Optional[bool] = OMIT,
138
+ free_vend_id_tag: typing.Optional[str] = OMIT,
139
+ request_options: typing.Optional[RequestOptions] = None,
140
+ ) -> ChargePointCreatedOut:
141
+ """
142
+ Registers a charger. It starts offline. The gateway refuses its connection until the charger is registered with the gateway; ``gateway_registered`` says whether it already is. 409 if the OCPP identity is taken.
143
+
144
+ Parameters
145
+ ----------
146
+ charge_point_id : str
147
+
148
+ ocpp_version : typing.Optional[OcppVersion]
149
+
150
+ charge_point_vendor : typing.Optional[str]
151
+
152
+ charge_point_model : typing.Optional[str]
153
+
154
+ location_id : typing.Optional[int]
155
+
156
+ coordinates : typing.Optional[str]
157
+
158
+ floor_level : typing.Optional[str]
159
+
160
+ parking_restrictions : typing.Optional[typing.Sequence[str]]
161
+
162
+ capabilities : typing.Optional[typing.Sequence[str]]
163
+
164
+ max_power_kw : typing.Optional[float]
165
+
166
+ connector_type : typing.Optional[str]
167
+
168
+ connector_count : typing.Optional[int]
169
+
170
+ accessibility : typing.Optional[str]
171
+
172
+ use_status_notification0 : typing.Optional[bool]
173
+
174
+ image_url : typing.Optional[str]
175
+
176
+ is_roaming : typing.Optional[bool]
177
+
178
+ access_mode : typing.Optional[AccessMode]
179
+
180
+ site_type : typing.Optional[SiteType]
181
+
182
+ customer_id : typing.Optional[int]
183
+
184
+ sharing_schedule : typing.Optional[typing.Sequence[SharingSlotInput]]
185
+
186
+ sharing_paused : typing.Optional[bool]
187
+
188
+ pricing : typing.Optional[PricingMode]
189
+
190
+ free_vend : typing.Optional[bool]
191
+
192
+ free_vend_id_tag : typing.Optional[str]
193
+
194
+ request_options : typing.Optional[RequestOptions]
195
+ Request-specific configuration.
196
+
197
+ Returns
198
+ -------
199
+ ChargePointCreatedOut
200
+ The created object.
201
+
202
+ Examples
203
+ --------
204
+ from evcloud import EvcloudClient
205
+
206
+ client = EvcloudClient(
207
+ token="YOUR_TOKEN",
208
+ )
209
+ client.cpo.charge_points.create(
210
+ charge_point_id="CP-AMS-001",
211
+ ocpp_version="ocpp2.0.1",
212
+ charge_point_vendor="ABB",
213
+ charge_point_model="Terra AC W22",
214
+ location_id=12,
215
+ max_power_kw=22.0,
216
+ connector_count=2,
217
+ is_roaming=True,
218
+ )
219
+ """
220
+ _response = self._raw_client.create(
221
+ charge_point_id=charge_point_id,
222
+ ocpp_version=ocpp_version,
223
+ charge_point_vendor=charge_point_vendor,
224
+ charge_point_model=charge_point_model,
225
+ location_id=location_id,
226
+ coordinates=coordinates,
227
+ floor_level=floor_level,
228
+ parking_restrictions=parking_restrictions,
229
+ capabilities=capabilities,
230
+ max_power_kw=max_power_kw,
231
+ connector_type=connector_type,
232
+ connector_count=connector_count,
233
+ accessibility=accessibility,
234
+ use_status_notification0=use_status_notification0,
235
+ image_url=image_url,
236
+ is_roaming=is_roaming,
237
+ access_mode=access_mode,
238
+ site_type=site_type,
239
+ customer_id=customer_id,
240
+ sharing_schedule=sharing_schedule,
241
+ sharing_paused=sharing_paused,
242
+ pricing=pricing,
243
+ free_vend=free_vend,
244
+ free_vend_id_tag=free_vend_id_tag,
245
+ request_options=request_options,
246
+ )
247
+ return _response.data
248
+
249
+ def get(self, charge_point_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> ChargePointOut:
250
+ """
251
+ One charger by its OCPP identity.
252
+
253
+ Parameters
254
+ ----------
255
+ charge_point_id : str
256
+ The charger's OCPP identity.
257
+
258
+ request_options : typing.Optional[RequestOptions]
259
+ Request-specific configuration.
260
+
261
+ Returns
262
+ -------
263
+ ChargePointOut
264
+ The requested object.
265
+
266
+ Examples
267
+ --------
268
+ from evcloud import EvcloudClient
269
+
270
+ client = EvcloudClient(
271
+ token="YOUR_TOKEN",
272
+ )
273
+ client.cpo.charge_points.get(
274
+ charge_point_id="CP-AMS-001",
275
+ )
276
+ """
277
+ _response = self._raw_client.get(charge_point_id, request_options=request_options)
278
+ return _response.data
279
+
280
+ def delete(self, charge_point_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
281
+ """
282
+ Deletes the charger with its EVSEs and connectors. Refused with 409 while charging sessions reference it, because that would erase their history.
283
+
284
+ Parameters
285
+ ----------
286
+ charge_point_id : str
287
+ The charger's OCPP identity.
288
+
289
+ request_options : typing.Optional[RequestOptions]
290
+ Request-specific configuration.
291
+
292
+ Returns
293
+ -------
294
+ None
295
+
296
+ Examples
297
+ --------
298
+ from evcloud import EvcloudClient
299
+
300
+ client = EvcloudClient(
301
+ token="YOUR_TOKEN",
302
+ )
303
+ client.cpo.charge_points.delete(
304
+ charge_point_id="CP-AMS-001",
305
+ )
306
+ """
307
+ _response = self._raw_client.delete(charge_point_id, request_options=request_options)
308
+ return _response.data
309
+
310
+ def update(
311
+ self,
312
+ charge_point_id: str,
313
+ *,
314
+ expected_revision: typing.Optional[int] = OMIT,
315
+ ocpp_version: typing.Optional[OcppVersion] = OMIT,
316
+ charge_point_vendor: typing.Optional[str] = OMIT,
317
+ charge_point_model: typing.Optional[str] = OMIT,
318
+ location_id: typing.Optional[int] = OMIT,
319
+ coordinates: typing.Optional[str] = OMIT,
320
+ floor_level: typing.Optional[str] = OMIT,
321
+ parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
322
+ capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
323
+ max_power_kw: typing.Optional[float] = OMIT,
324
+ connector_type: typing.Optional[str] = OMIT,
325
+ connector_count: typing.Optional[int] = OMIT,
326
+ accessibility: typing.Optional[str] = OMIT,
327
+ use_status_notification0: typing.Optional[bool] = OMIT,
328
+ image_url: typing.Optional[str] = OMIT,
329
+ is_roaming: typing.Optional[bool] = OMIT,
330
+ access_mode: typing.Optional[AccessMode] = OMIT,
331
+ site_type: typing.Optional[SiteType] = OMIT,
332
+ customer_id: typing.Optional[int] = OMIT,
333
+ sharing_schedule: typing.Optional[typing.Sequence[SharingSlotInput]] = OMIT,
334
+ sharing_paused: typing.Optional[bool] = OMIT,
335
+ pricing: typing.Optional[PricingMode] = OMIT,
336
+ free_vend: typing.Optional[bool] = OMIT,
337
+ free_vend_id_tag: typing.Optional[str] = OMIT,
338
+ request_options: typing.Optional[RequestOptions] = None,
339
+ ) -> ChargePointOut:
340
+ """
341
+ Changes only the fields sent; send null to clear a field. Send ``expected_revision`` to have the update refused with 409 if the charger changed since you read it.
342
+
343
+ Parameters
344
+ ----------
345
+ charge_point_id : str
346
+ The charger's OCPP identity.
347
+
348
+ expected_revision : typing.Optional[int]
349
+
350
+ ocpp_version : typing.Optional[OcppVersion]
351
+
352
+ charge_point_vendor : typing.Optional[str]
353
+
354
+ charge_point_model : typing.Optional[str]
355
+
356
+ location_id : typing.Optional[int]
357
+
358
+ coordinates : typing.Optional[str]
359
+
360
+ floor_level : typing.Optional[str]
361
+
362
+ parking_restrictions : typing.Optional[typing.Sequence[str]]
363
+
364
+ capabilities : typing.Optional[typing.Sequence[str]]
365
+
366
+ max_power_kw : typing.Optional[float]
367
+
368
+ connector_type : typing.Optional[str]
369
+
370
+ connector_count : typing.Optional[int]
371
+
372
+ accessibility : typing.Optional[str]
373
+
374
+ use_status_notification0 : typing.Optional[bool]
375
+
376
+ image_url : typing.Optional[str]
377
+
378
+ is_roaming : typing.Optional[bool]
379
+
380
+ access_mode : typing.Optional[AccessMode]
381
+
382
+ site_type : typing.Optional[SiteType]
383
+
384
+ customer_id : typing.Optional[int]
385
+
386
+ sharing_schedule : typing.Optional[typing.Sequence[SharingSlotInput]]
387
+
388
+ sharing_paused : typing.Optional[bool]
389
+
390
+ pricing : typing.Optional[PricingMode]
391
+
392
+ free_vend : typing.Optional[bool]
393
+
394
+ free_vend_id_tag : typing.Optional[str]
395
+
396
+ request_options : typing.Optional[RequestOptions]
397
+ Request-specific configuration.
398
+
399
+ Returns
400
+ -------
401
+ ChargePointOut
402
+ The object after the update.
403
+
404
+ Examples
405
+ --------
406
+ from evcloud import EvcloudClient
407
+
408
+ client = EvcloudClient(
409
+ token="YOUR_TOKEN",
410
+ )
411
+ client.cpo.charge_points.update(
412
+ charge_point_id="CP-AMS-001",
413
+ location_id=13,
414
+ expected_revision=1,
415
+ )
416
+ """
417
+ _response = self._raw_client.update(
418
+ charge_point_id,
419
+ expected_revision=expected_revision,
420
+ ocpp_version=ocpp_version,
421
+ charge_point_vendor=charge_point_vendor,
422
+ charge_point_model=charge_point_model,
423
+ location_id=location_id,
424
+ coordinates=coordinates,
425
+ floor_level=floor_level,
426
+ parking_restrictions=parking_restrictions,
427
+ capabilities=capabilities,
428
+ max_power_kw=max_power_kw,
429
+ connector_type=connector_type,
430
+ connector_count=connector_count,
431
+ accessibility=accessibility,
432
+ use_status_notification0=use_status_notification0,
433
+ image_url=image_url,
434
+ is_roaming=is_roaming,
435
+ access_mode=access_mode,
436
+ site_type=site_type,
437
+ customer_id=customer_id,
438
+ sharing_schedule=sharing_schedule,
439
+ sharing_paused=sharing_paused,
440
+ pricing=pricing,
441
+ free_vend=free_vend,
442
+ free_vend_id_tag=free_vend_id_tag,
443
+ request_options=request_options,
444
+ )
445
+ return _response.data
446
+
447
+ def list_cdrs(
448
+ self,
449
+ charge_point_id: str,
450
+ *,
451
+ date_from: typing.Optional[dt.datetime] = None,
452
+ date_to: typing.Optional[dt.datetime] = None,
453
+ offset: typing.Optional[int] = None,
454
+ limit: typing.Optional[int] = None,
455
+ request_options: typing.Optional[RequestOptions] = None,
456
+ ) -> SyncPager[CdrOut, CdrPage]:
457
+ """
458
+ CDRs of sessions on the charger, newest start first, optionally within a time window. 404 if the charger does not exist.
459
+
460
+ Parameters
461
+ ----------
462
+ charge_point_id : str
463
+ The charger's OCPP identity.
464
+
465
+ date_from : typing.Optional[dt.datetime]
466
+ Only rows starting at or after this time (inclusive).
467
+
468
+ date_to : typing.Optional[dt.datetime]
469
+ Only rows starting before this time (exclusive).
470
+
471
+ offset : typing.Optional[int]
472
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
473
+
474
+ limit : typing.Optional[int]
475
+ Maximum rows per page (default 50, max 200).
476
+
477
+ request_options : typing.Optional[RequestOptions]
478
+ Request-specific configuration.
479
+
480
+ Returns
481
+ -------
482
+ SyncPager[CdrOut, CdrPage]
483
+ One page of results; ``next_offset`` is null on the last page.
484
+
485
+ Examples
486
+ --------
487
+ import datetime
488
+
489
+ from evcloud import EvcloudClient
490
+
491
+ client = EvcloudClient(
492
+ token="YOUR_TOKEN",
493
+ )
494
+ response = client.cpo.charge_points.list_cdrs(
495
+ charge_point_id="CP-AMS-001",
496
+ date_from=datetime.datetime.fromisoformat(
497
+ "2026-09-30 00:00:00+00:00",
498
+ ),
499
+ date_to=datetime.datetime.fromisoformat(
500
+ "2026-10-01 00:00:00+00:00",
501
+ ),
502
+ limit=50,
503
+ offset=0,
504
+ )
505
+ for item in response:
506
+ yield item
507
+ # alternatively, you can paginate page-by-page
508
+ for page in response.iter_pages():
509
+ yield page
510
+ """
511
+ return self._raw_client.list_cdrs(
512
+ charge_point_id,
513
+ date_from=date_from,
514
+ date_to=date_to,
515
+ offset=offset,
516
+ limit=limit,
517
+ request_options=request_options,
518
+ )
519
+
520
+ def list_connectors(
521
+ self,
522
+ charge_point_id: str,
523
+ *,
524
+ offset: typing.Optional[int] = None,
525
+ limit: typing.Optional[int] = None,
526
+ request_options: typing.Optional[RequestOptions] = None,
527
+ ) -> SyncPager[CpoConnectorOut, ConnectorPage]:
528
+ """
529
+ The charger's connectors. 404 if the charger does not exist.
530
+
531
+ Parameters
532
+ ----------
533
+ charge_point_id : str
534
+ The charger's OCPP identity.
535
+
536
+ offset : typing.Optional[int]
537
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
538
+
539
+ limit : typing.Optional[int]
540
+ Maximum rows per page (default 50, max 200).
541
+
542
+ request_options : typing.Optional[RequestOptions]
543
+ Request-specific configuration.
544
+
545
+ Returns
546
+ -------
547
+ SyncPager[CpoConnectorOut, ConnectorPage]
548
+ One page of results; ``next_offset`` is null on the last page.
549
+
550
+ Examples
551
+ --------
552
+ from evcloud import EvcloudClient
553
+
554
+ client = EvcloudClient(
555
+ token="YOUR_TOKEN",
556
+ )
557
+ response = client.cpo.charge_points.list_connectors(
558
+ charge_point_id="CP-AMS-001",
559
+ limit=50,
560
+ offset=0,
561
+ )
562
+ for item in response:
563
+ yield item
564
+ # alternatively, you can paginate page-by-page
565
+ for page in response.iter_pages():
566
+ yield page
567
+ """
568
+ return self._raw_client.list_connectors(
569
+ charge_point_id, offset=offset, limit=limit, request_options=request_options
570
+ )
571
+
572
+ def list_evses(
573
+ self,
574
+ charge_point_id: str,
575
+ *,
576
+ offset: typing.Optional[int] = None,
577
+ limit: typing.Optional[int] = None,
578
+ request_options: typing.Optional[RequestOptions] = None,
579
+ ) -> SyncPager[CpoEvseOut, EvsePage]:
580
+ """
581
+ The charger's EVSEs. 404 if the charger does not exist.
582
+
583
+ Parameters
584
+ ----------
585
+ charge_point_id : str
586
+ The charger's OCPP identity.
587
+
588
+ offset : typing.Optional[int]
589
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
590
+
591
+ limit : typing.Optional[int]
592
+ Maximum rows per page (default 50, max 200).
593
+
594
+ request_options : typing.Optional[RequestOptions]
595
+ Request-specific configuration.
596
+
597
+ Returns
598
+ -------
599
+ SyncPager[CpoEvseOut, EvsePage]
600
+ One page of results; ``next_offset`` is null on the last page.
601
+
602
+ Examples
603
+ --------
604
+ from evcloud import EvcloudClient
605
+
606
+ client = EvcloudClient(
607
+ token="YOUR_TOKEN",
608
+ )
609
+ response = client.cpo.charge_points.list_evses(
610
+ charge_point_id="CP-AMS-001",
611
+ limit=50,
612
+ offset=0,
613
+ )
614
+ for item in response:
615
+ yield item
616
+ # alternatively, you can paginate page-by-page
617
+ for page in response.iter_pages():
618
+ yield page
619
+ """
620
+ return self._raw_client.list_evses(charge_point_id, offset=offset, limit=limit, request_options=request_options)
621
+
622
+ def list_sessions(
623
+ self,
624
+ charge_point_id: str,
625
+ *,
626
+ date_from: typing.Optional[dt.datetime] = None,
627
+ date_to: typing.Optional[dt.datetime] = None,
628
+ offset: typing.Optional[int] = None,
629
+ limit: typing.Optional[int] = None,
630
+ request_options: typing.Optional[RequestOptions] = None,
631
+ ) -> SyncPager[SessionOut, SessionPage]:
632
+ """
633
+ Charging sessions on the charger, newest start first, optionally within a time window. 404 if the charger does not exist.
634
+
635
+ Parameters
636
+ ----------
637
+ charge_point_id : str
638
+ The charger's OCPP identity.
639
+
640
+ date_from : typing.Optional[dt.datetime]
641
+ Only rows starting at or after this time (inclusive).
642
+
643
+ date_to : typing.Optional[dt.datetime]
644
+ Only rows starting before this time (exclusive).
645
+
646
+ offset : typing.Optional[int]
647
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
648
+
649
+ limit : typing.Optional[int]
650
+ Maximum rows per page (default 50, max 200).
651
+
652
+ request_options : typing.Optional[RequestOptions]
653
+ Request-specific configuration.
654
+
655
+ Returns
656
+ -------
657
+ SyncPager[SessionOut, SessionPage]
658
+ One page of results; ``next_offset`` is null on the last page.
659
+
660
+ Examples
661
+ --------
662
+ import datetime
663
+
664
+ from evcloud import EvcloudClient
665
+
666
+ client = EvcloudClient(
667
+ token="YOUR_TOKEN",
668
+ )
669
+ response = client.cpo.charge_points.list_sessions(
670
+ charge_point_id="CP-AMS-001",
671
+ date_from=datetime.datetime.fromisoformat(
672
+ "2026-09-30 00:00:00+00:00",
673
+ ),
674
+ date_to=datetime.datetime.fromisoformat(
675
+ "2026-10-01 00:00:00+00:00",
676
+ ),
677
+ limit=50,
678
+ offset=0,
679
+ )
680
+ for item in response:
681
+ yield item
682
+ # alternatively, you can paginate page-by-page
683
+ for page in response.iter_pages():
684
+ yield page
685
+ """
686
+ return self._raw_client.list_sessions(
687
+ charge_point_id,
688
+ date_from=date_from,
689
+ date_to=date_to,
690
+ offset=offset,
691
+ limit=limit,
692
+ request_options=request_options,
693
+ )
694
+
695
+
696
+ class AsyncChargePointsClient:
697
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
698
+ self._raw_client = AsyncRawChargePointsClient(client_wrapper=client_wrapper)
699
+
700
+ @property
701
+ def with_raw_response(self) -> AsyncRawChargePointsClient:
702
+ """
703
+ Retrieves a raw implementation of this client that returns raw responses.
704
+
705
+ Returns
706
+ -------
707
+ AsyncRawChargePointsClient
708
+ """
709
+ return self._raw_client
710
+
711
+ async def list(
712
+ self,
713
+ *,
714
+ location_id: typing.Optional[int] = None,
715
+ is_online: typing.Optional[bool] = None,
716
+ ocpp_version: typing.Optional[ListChargePointsRequestOcppVersion] = None,
717
+ offset: typing.Optional[int] = None,
718
+ limit: typing.Optional[int] = None,
719
+ request_options: typing.Optional[RequestOptions] = None,
720
+ ) -> AsyncPager[ChargePointOut, ChargePointPage]:
721
+ """
722
+ Your chargers, sorted by OCPP identity. Online state, heartbeat and firmware come from the chargers themselves.
723
+
724
+ Parameters
725
+ ----------
726
+ location_id : typing.Optional[int]
727
+ Only this location, by its numeric ``id`` (not its OCPI location id).
728
+
729
+ is_online : typing.Optional[bool]
730
+ Only connected (true) or disconnected (false) chargers.
731
+
732
+ ocpp_version : typing.Optional[ListChargePointsRequestOcppVersion]
733
+ Only chargers speaking this OCPP version.
734
+
735
+ offset : typing.Optional[int]
736
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
737
+
738
+ limit : typing.Optional[int]
739
+ Maximum rows per page (default 50, max 200).
740
+
741
+ request_options : typing.Optional[RequestOptions]
742
+ Request-specific configuration.
743
+
744
+ Returns
745
+ -------
746
+ AsyncPager[ChargePointOut, ChargePointPage]
747
+ One page of results; ``next_offset`` is null on the last page.
748
+
749
+ Examples
750
+ --------
751
+ import asyncio
752
+
753
+ from evcloud import AsyncEvcloudClient
754
+
755
+ client = AsyncEvcloudClient(
756
+ token="YOUR_TOKEN",
757
+ )
758
+
759
+
760
+ async def main() -> None:
761
+ response = await client.cpo.charge_points.list(
762
+ is_online=True,
763
+ limit=50,
764
+ offset=0,
765
+ )
766
+ async for item in response:
767
+ yield item
768
+
769
+ # alternatively, you can paginate page-by-page
770
+ async for page in response.iter_pages():
771
+ yield page
772
+
773
+
774
+ asyncio.run(main())
775
+ """
776
+ return await self._raw_client.list(
777
+ location_id=location_id,
778
+ is_online=is_online,
779
+ ocpp_version=ocpp_version,
780
+ offset=offset,
781
+ limit=limit,
782
+ request_options=request_options,
783
+ )
784
+
785
+ async def create(
786
+ self,
787
+ *,
788
+ charge_point_id: str,
789
+ ocpp_version: typing.Optional[OcppVersion] = OMIT,
790
+ charge_point_vendor: typing.Optional[str] = OMIT,
791
+ charge_point_model: typing.Optional[str] = OMIT,
792
+ location_id: typing.Optional[int] = OMIT,
793
+ coordinates: typing.Optional[str] = OMIT,
794
+ floor_level: typing.Optional[str] = OMIT,
795
+ parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
796
+ capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
797
+ max_power_kw: typing.Optional[float] = OMIT,
798
+ connector_type: typing.Optional[str] = OMIT,
799
+ connector_count: typing.Optional[int] = OMIT,
800
+ accessibility: typing.Optional[str] = OMIT,
801
+ use_status_notification0: typing.Optional[bool] = OMIT,
802
+ image_url: typing.Optional[str] = OMIT,
803
+ is_roaming: typing.Optional[bool] = OMIT,
804
+ access_mode: typing.Optional[AccessMode] = OMIT,
805
+ site_type: typing.Optional[SiteType] = OMIT,
806
+ customer_id: typing.Optional[int] = OMIT,
807
+ sharing_schedule: typing.Optional[typing.Sequence[SharingSlotInput]] = OMIT,
808
+ sharing_paused: typing.Optional[bool] = OMIT,
809
+ pricing: typing.Optional[PricingMode] = OMIT,
810
+ free_vend: typing.Optional[bool] = OMIT,
811
+ free_vend_id_tag: typing.Optional[str] = OMIT,
812
+ request_options: typing.Optional[RequestOptions] = None,
813
+ ) -> ChargePointCreatedOut:
814
+ """
815
+ Registers a charger. It starts offline. The gateway refuses its connection until the charger is registered with the gateway; ``gateway_registered`` says whether it already is. 409 if the OCPP identity is taken.
816
+
817
+ Parameters
818
+ ----------
819
+ charge_point_id : str
820
+
821
+ ocpp_version : typing.Optional[OcppVersion]
822
+
823
+ charge_point_vendor : typing.Optional[str]
824
+
825
+ charge_point_model : typing.Optional[str]
826
+
827
+ location_id : typing.Optional[int]
828
+
829
+ coordinates : typing.Optional[str]
830
+
831
+ floor_level : typing.Optional[str]
832
+
833
+ parking_restrictions : typing.Optional[typing.Sequence[str]]
834
+
835
+ capabilities : typing.Optional[typing.Sequence[str]]
836
+
837
+ max_power_kw : typing.Optional[float]
838
+
839
+ connector_type : typing.Optional[str]
840
+
841
+ connector_count : typing.Optional[int]
842
+
843
+ accessibility : typing.Optional[str]
844
+
845
+ use_status_notification0 : typing.Optional[bool]
846
+
847
+ image_url : typing.Optional[str]
848
+
849
+ is_roaming : typing.Optional[bool]
850
+
851
+ access_mode : typing.Optional[AccessMode]
852
+
853
+ site_type : typing.Optional[SiteType]
854
+
855
+ customer_id : typing.Optional[int]
856
+
857
+ sharing_schedule : typing.Optional[typing.Sequence[SharingSlotInput]]
858
+
859
+ sharing_paused : typing.Optional[bool]
860
+
861
+ pricing : typing.Optional[PricingMode]
862
+
863
+ free_vend : typing.Optional[bool]
864
+
865
+ free_vend_id_tag : typing.Optional[str]
866
+
867
+ request_options : typing.Optional[RequestOptions]
868
+ Request-specific configuration.
869
+
870
+ Returns
871
+ -------
872
+ ChargePointCreatedOut
873
+ The created object.
874
+
875
+ Examples
876
+ --------
877
+ import asyncio
878
+
879
+ from evcloud import AsyncEvcloudClient
880
+
881
+ client = AsyncEvcloudClient(
882
+ token="YOUR_TOKEN",
883
+ )
884
+
885
+
886
+ async def main() -> None:
887
+ await client.cpo.charge_points.create(
888
+ charge_point_id="CP-AMS-001",
889
+ ocpp_version="ocpp2.0.1",
890
+ charge_point_vendor="ABB",
891
+ charge_point_model="Terra AC W22",
892
+ location_id=12,
893
+ max_power_kw=22.0,
894
+ connector_count=2,
895
+ is_roaming=True,
896
+ )
897
+
898
+
899
+ asyncio.run(main())
900
+ """
901
+ _response = await self._raw_client.create(
902
+ charge_point_id=charge_point_id,
903
+ ocpp_version=ocpp_version,
904
+ charge_point_vendor=charge_point_vendor,
905
+ charge_point_model=charge_point_model,
906
+ location_id=location_id,
907
+ coordinates=coordinates,
908
+ floor_level=floor_level,
909
+ parking_restrictions=parking_restrictions,
910
+ capabilities=capabilities,
911
+ max_power_kw=max_power_kw,
912
+ connector_type=connector_type,
913
+ connector_count=connector_count,
914
+ accessibility=accessibility,
915
+ use_status_notification0=use_status_notification0,
916
+ image_url=image_url,
917
+ is_roaming=is_roaming,
918
+ access_mode=access_mode,
919
+ site_type=site_type,
920
+ customer_id=customer_id,
921
+ sharing_schedule=sharing_schedule,
922
+ sharing_paused=sharing_paused,
923
+ pricing=pricing,
924
+ free_vend=free_vend,
925
+ free_vend_id_tag=free_vend_id_tag,
926
+ request_options=request_options,
927
+ )
928
+ return _response.data
929
+
930
+ async def get(
931
+ self, charge_point_id: str, *, request_options: typing.Optional[RequestOptions] = None
932
+ ) -> ChargePointOut:
933
+ """
934
+ One charger by its OCPP identity.
935
+
936
+ Parameters
937
+ ----------
938
+ charge_point_id : str
939
+ The charger's OCPP identity.
940
+
941
+ request_options : typing.Optional[RequestOptions]
942
+ Request-specific configuration.
943
+
944
+ Returns
945
+ -------
946
+ ChargePointOut
947
+ The requested object.
948
+
949
+ Examples
950
+ --------
951
+ import asyncio
952
+
953
+ from evcloud import AsyncEvcloudClient
954
+
955
+ client = AsyncEvcloudClient(
956
+ token="YOUR_TOKEN",
957
+ )
958
+
959
+
960
+ async def main() -> None:
961
+ await client.cpo.charge_points.get(
962
+ charge_point_id="CP-AMS-001",
963
+ )
964
+
965
+
966
+ asyncio.run(main())
967
+ """
968
+ _response = await self._raw_client.get(charge_point_id, request_options=request_options)
969
+ return _response.data
970
+
971
+ async def delete(self, charge_point_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
972
+ """
973
+ Deletes the charger with its EVSEs and connectors. Refused with 409 while charging sessions reference it, because that would erase their history.
974
+
975
+ Parameters
976
+ ----------
977
+ charge_point_id : str
978
+ The charger's OCPP identity.
979
+
980
+ request_options : typing.Optional[RequestOptions]
981
+ Request-specific configuration.
982
+
983
+ Returns
984
+ -------
985
+ None
986
+
987
+ Examples
988
+ --------
989
+ import asyncio
990
+
991
+ from evcloud import AsyncEvcloudClient
992
+
993
+ client = AsyncEvcloudClient(
994
+ token="YOUR_TOKEN",
995
+ )
996
+
997
+
998
+ async def main() -> None:
999
+ await client.cpo.charge_points.delete(
1000
+ charge_point_id="CP-AMS-001",
1001
+ )
1002
+
1003
+
1004
+ asyncio.run(main())
1005
+ """
1006
+ _response = await self._raw_client.delete(charge_point_id, request_options=request_options)
1007
+ return _response.data
1008
+
1009
+ async def update(
1010
+ self,
1011
+ charge_point_id: str,
1012
+ *,
1013
+ expected_revision: typing.Optional[int] = OMIT,
1014
+ ocpp_version: typing.Optional[OcppVersion] = OMIT,
1015
+ charge_point_vendor: typing.Optional[str] = OMIT,
1016
+ charge_point_model: typing.Optional[str] = OMIT,
1017
+ location_id: typing.Optional[int] = OMIT,
1018
+ coordinates: typing.Optional[str] = OMIT,
1019
+ floor_level: typing.Optional[str] = OMIT,
1020
+ parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
1021
+ capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
1022
+ max_power_kw: typing.Optional[float] = OMIT,
1023
+ connector_type: typing.Optional[str] = OMIT,
1024
+ connector_count: typing.Optional[int] = OMIT,
1025
+ accessibility: typing.Optional[str] = OMIT,
1026
+ use_status_notification0: typing.Optional[bool] = OMIT,
1027
+ image_url: typing.Optional[str] = OMIT,
1028
+ is_roaming: typing.Optional[bool] = OMIT,
1029
+ access_mode: typing.Optional[AccessMode] = OMIT,
1030
+ site_type: typing.Optional[SiteType] = OMIT,
1031
+ customer_id: typing.Optional[int] = OMIT,
1032
+ sharing_schedule: typing.Optional[typing.Sequence[SharingSlotInput]] = OMIT,
1033
+ sharing_paused: typing.Optional[bool] = OMIT,
1034
+ pricing: typing.Optional[PricingMode] = OMIT,
1035
+ free_vend: typing.Optional[bool] = OMIT,
1036
+ free_vend_id_tag: typing.Optional[str] = OMIT,
1037
+ request_options: typing.Optional[RequestOptions] = None,
1038
+ ) -> ChargePointOut:
1039
+ """
1040
+ Changes only the fields sent; send null to clear a field. Send ``expected_revision`` to have the update refused with 409 if the charger changed since you read it.
1041
+
1042
+ Parameters
1043
+ ----------
1044
+ charge_point_id : str
1045
+ The charger's OCPP identity.
1046
+
1047
+ expected_revision : typing.Optional[int]
1048
+
1049
+ ocpp_version : typing.Optional[OcppVersion]
1050
+
1051
+ charge_point_vendor : typing.Optional[str]
1052
+
1053
+ charge_point_model : typing.Optional[str]
1054
+
1055
+ location_id : typing.Optional[int]
1056
+
1057
+ coordinates : typing.Optional[str]
1058
+
1059
+ floor_level : typing.Optional[str]
1060
+
1061
+ parking_restrictions : typing.Optional[typing.Sequence[str]]
1062
+
1063
+ capabilities : typing.Optional[typing.Sequence[str]]
1064
+
1065
+ max_power_kw : typing.Optional[float]
1066
+
1067
+ connector_type : typing.Optional[str]
1068
+
1069
+ connector_count : typing.Optional[int]
1070
+
1071
+ accessibility : typing.Optional[str]
1072
+
1073
+ use_status_notification0 : typing.Optional[bool]
1074
+
1075
+ image_url : typing.Optional[str]
1076
+
1077
+ is_roaming : typing.Optional[bool]
1078
+
1079
+ access_mode : typing.Optional[AccessMode]
1080
+
1081
+ site_type : typing.Optional[SiteType]
1082
+
1083
+ customer_id : typing.Optional[int]
1084
+
1085
+ sharing_schedule : typing.Optional[typing.Sequence[SharingSlotInput]]
1086
+
1087
+ sharing_paused : typing.Optional[bool]
1088
+
1089
+ pricing : typing.Optional[PricingMode]
1090
+
1091
+ free_vend : typing.Optional[bool]
1092
+
1093
+ free_vend_id_tag : typing.Optional[str]
1094
+
1095
+ request_options : typing.Optional[RequestOptions]
1096
+ Request-specific configuration.
1097
+
1098
+ Returns
1099
+ -------
1100
+ ChargePointOut
1101
+ The object after the update.
1102
+
1103
+ Examples
1104
+ --------
1105
+ import asyncio
1106
+
1107
+ from evcloud import AsyncEvcloudClient
1108
+
1109
+ client = AsyncEvcloudClient(
1110
+ token="YOUR_TOKEN",
1111
+ )
1112
+
1113
+
1114
+ async def main() -> None:
1115
+ await client.cpo.charge_points.update(
1116
+ charge_point_id="CP-AMS-001",
1117
+ location_id=13,
1118
+ expected_revision=1,
1119
+ )
1120
+
1121
+
1122
+ asyncio.run(main())
1123
+ """
1124
+ _response = await self._raw_client.update(
1125
+ charge_point_id,
1126
+ expected_revision=expected_revision,
1127
+ ocpp_version=ocpp_version,
1128
+ charge_point_vendor=charge_point_vendor,
1129
+ charge_point_model=charge_point_model,
1130
+ location_id=location_id,
1131
+ coordinates=coordinates,
1132
+ floor_level=floor_level,
1133
+ parking_restrictions=parking_restrictions,
1134
+ capabilities=capabilities,
1135
+ max_power_kw=max_power_kw,
1136
+ connector_type=connector_type,
1137
+ connector_count=connector_count,
1138
+ accessibility=accessibility,
1139
+ use_status_notification0=use_status_notification0,
1140
+ image_url=image_url,
1141
+ is_roaming=is_roaming,
1142
+ access_mode=access_mode,
1143
+ site_type=site_type,
1144
+ customer_id=customer_id,
1145
+ sharing_schedule=sharing_schedule,
1146
+ sharing_paused=sharing_paused,
1147
+ pricing=pricing,
1148
+ free_vend=free_vend,
1149
+ free_vend_id_tag=free_vend_id_tag,
1150
+ request_options=request_options,
1151
+ )
1152
+ return _response.data
1153
+
1154
+ async def list_cdrs(
1155
+ self,
1156
+ charge_point_id: str,
1157
+ *,
1158
+ date_from: typing.Optional[dt.datetime] = None,
1159
+ date_to: typing.Optional[dt.datetime] = None,
1160
+ offset: typing.Optional[int] = None,
1161
+ limit: typing.Optional[int] = None,
1162
+ request_options: typing.Optional[RequestOptions] = None,
1163
+ ) -> AsyncPager[CdrOut, CdrPage]:
1164
+ """
1165
+ CDRs of sessions on the charger, newest start first, optionally within a time window. 404 if the charger does not exist.
1166
+
1167
+ Parameters
1168
+ ----------
1169
+ charge_point_id : str
1170
+ The charger's OCPP identity.
1171
+
1172
+ date_from : typing.Optional[dt.datetime]
1173
+ Only rows starting at or after this time (inclusive).
1174
+
1175
+ date_to : typing.Optional[dt.datetime]
1176
+ Only rows starting before this time (exclusive).
1177
+
1178
+ offset : typing.Optional[int]
1179
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
1180
+
1181
+ limit : typing.Optional[int]
1182
+ Maximum rows per page (default 50, max 200).
1183
+
1184
+ request_options : typing.Optional[RequestOptions]
1185
+ Request-specific configuration.
1186
+
1187
+ Returns
1188
+ -------
1189
+ AsyncPager[CdrOut, CdrPage]
1190
+ One page of results; ``next_offset`` is null on the last page.
1191
+
1192
+ Examples
1193
+ --------
1194
+ import asyncio
1195
+ import datetime
1196
+
1197
+ from evcloud import AsyncEvcloudClient
1198
+
1199
+ client = AsyncEvcloudClient(
1200
+ token="YOUR_TOKEN",
1201
+ )
1202
+
1203
+
1204
+ async def main() -> None:
1205
+ response = await client.cpo.charge_points.list_cdrs(
1206
+ charge_point_id="CP-AMS-001",
1207
+ date_from=datetime.datetime.fromisoformat(
1208
+ "2026-09-30 00:00:00+00:00",
1209
+ ),
1210
+ date_to=datetime.datetime.fromisoformat(
1211
+ "2026-10-01 00:00:00+00:00",
1212
+ ),
1213
+ limit=50,
1214
+ offset=0,
1215
+ )
1216
+ async for item in response:
1217
+ yield item
1218
+
1219
+ # alternatively, you can paginate page-by-page
1220
+ async for page in response.iter_pages():
1221
+ yield page
1222
+
1223
+
1224
+ asyncio.run(main())
1225
+ """
1226
+ return await self._raw_client.list_cdrs(
1227
+ charge_point_id,
1228
+ date_from=date_from,
1229
+ date_to=date_to,
1230
+ offset=offset,
1231
+ limit=limit,
1232
+ request_options=request_options,
1233
+ )
1234
+
1235
+ async def list_connectors(
1236
+ self,
1237
+ charge_point_id: str,
1238
+ *,
1239
+ offset: typing.Optional[int] = None,
1240
+ limit: typing.Optional[int] = None,
1241
+ request_options: typing.Optional[RequestOptions] = None,
1242
+ ) -> AsyncPager[CpoConnectorOut, ConnectorPage]:
1243
+ """
1244
+ The charger's connectors. 404 if the charger does not exist.
1245
+
1246
+ Parameters
1247
+ ----------
1248
+ charge_point_id : str
1249
+ The charger's OCPP identity.
1250
+
1251
+ offset : typing.Optional[int]
1252
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
1253
+
1254
+ limit : typing.Optional[int]
1255
+ Maximum rows per page (default 50, max 200).
1256
+
1257
+ request_options : typing.Optional[RequestOptions]
1258
+ Request-specific configuration.
1259
+
1260
+ Returns
1261
+ -------
1262
+ AsyncPager[CpoConnectorOut, ConnectorPage]
1263
+ One page of results; ``next_offset`` is null on the last page.
1264
+
1265
+ Examples
1266
+ --------
1267
+ import asyncio
1268
+
1269
+ from evcloud import AsyncEvcloudClient
1270
+
1271
+ client = AsyncEvcloudClient(
1272
+ token="YOUR_TOKEN",
1273
+ )
1274
+
1275
+
1276
+ async def main() -> None:
1277
+ response = await client.cpo.charge_points.list_connectors(
1278
+ charge_point_id="CP-AMS-001",
1279
+ limit=50,
1280
+ offset=0,
1281
+ )
1282
+ async for item in response:
1283
+ yield item
1284
+
1285
+ # alternatively, you can paginate page-by-page
1286
+ async for page in response.iter_pages():
1287
+ yield page
1288
+
1289
+
1290
+ asyncio.run(main())
1291
+ """
1292
+ return await self._raw_client.list_connectors(
1293
+ charge_point_id, offset=offset, limit=limit, request_options=request_options
1294
+ )
1295
+
1296
+ async def list_evses(
1297
+ self,
1298
+ charge_point_id: str,
1299
+ *,
1300
+ offset: typing.Optional[int] = None,
1301
+ limit: typing.Optional[int] = None,
1302
+ request_options: typing.Optional[RequestOptions] = None,
1303
+ ) -> AsyncPager[CpoEvseOut, EvsePage]:
1304
+ """
1305
+ The charger's EVSEs. 404 if the charger does not exist.
1306
+
1307
+ Parameters
1308
+ ----------
1309
+ charge_point_id : str
1310
+ The charger's OCPP identity.
1311
+
1312
+ offset : typing.Optional[int]
1313
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
1314
+
1315
+ limit : typing.Optional[int]
1316
+ Maximum rows per page (default 50, max 200).
1317
+
1318
+ request_options : typing.Optional[RequestOptions]
1319
+ Request-specific configuration.
1320
+
1321
+ Returns
1322
+ -------
1323
+ AsyncPager[CpoEvseOut, EvsePage]
1324
+ One page of results; ``next_offset`` is null on the last page.
1325
+
1326
+ Examples
1327
+ --------
1328
+ import asyncio
1329
+
1330
+ from evcloud import AsyncEvcloudClient
1331
+
1332
+ client = AsyncEvcloudClient(
1333
+ token="YOUR_TOKEN",
1334
+ )
1335
+
1336
+
1337
+ async def main() -> None:
1338
+ response = await client.cpo.charge_points.list_evses(
1339
+ charge_point_id="CP-AMS-001",
1340
+ limit=50,
1341
+ offset=0,
1342
+ )
1343
+ async for item in response:
1344
+ yield item
1345
+
1346
+ # alternatively, you can paginate page-by-page
1347
+ async for page in response.iter_pages():
1348
+ yield page
1349
+
1350
+
1351
+ asyncio.run(main())
1352
+ """
1353
+ return await self._raw_client.list_evses(
1354
+ charge_point_id, offset=offset, limit=limit, request_options=request_options
1355
+ )
1356
+
1357
+ async def list_sessions(
1358
+ self,
1359
+ charge_point_id: str,
1360
+ *,
1361
+ date_from: typing.Optional[dt.datetime] = None,
1362
+ date_to: typing.Optional[dt.datetime] = None,
1363
+ offset: typing.Optional[int] = None,
1364
+ limit: typing.Optional[int] = None,
1365
+ request_options: typing.Optional[RequestOptions] = None,
1366
+ ) -> AsyncPager[SessionOut, SessionPage]:
1367
+ """
1368
+ Charging sessions on the charger, newest start first, optionally within a time window. 404 if the charger does not exist.
1369
+
1370
+ Parameters
1371
+ ----------
1372
+ charge_point_id : str
1373
+ The charger's OCPP identity.
1374
+
1375
+ date_from : typing.Optional[dt.datetime]
1376
+ Only rows starting at or after this time (inclusive).
1377
+
1378
+ date_to : typing.Optional[dt.datetime]
1379
+ Only rows starting before this time (exclusive).
1380
+
1381
+ offset : typing.Optional[int]
1382
+ Rows to skip. Pass the previous page's ``next_offset`` to continue.
1383
+
1384
+ limit : typing.Optional[int]
1385
+ Maximum rows per page (default 50, max 200).
1386
+
1387
+ request_options : typing.Optional[RequestOptions]
1388
+ Request-specific configuration.
1389
+
1390
+ Returns
1391
+ -------
1392
+ AsyncPager[SessionOut, SessionPage]
1393
+ One page of results; ``next_offset`` is null on the last page.
1394
+
1395
+ Examples
1396
+ --------
1397
+ import asyncio
1398
+ import datetime
1399
+
1400
+ from evcloud import AsyncEvcloudClient
1401
+
1402
+ client = AsyncEvcloudClient(
1403
+ token="YOUR_TOKEN",
1404
+ )
1405
+
1406
+
1407
+ async def main() -> None:
1408
+ response = await client.cpo.charge_points.list_sessions(
1409
+ charge_point_id="CP-AMS-001",
1410
+ date_from=datetime.datetime.fromisoformat(
1411
+ "2026-09-30 00:00:00+00:00",
1412
+ ),
1413
+ date_to=datetime.datetime.fromisoformat(
1414
+ "2026-10-01 00:00:00+00:00",
1415
+ ),
1416
+ limit=50,
1417
+ offset=0,
1418
+ )
1419
+ async for item in response:
1420
+ yield item
1421
+
1422
+ # alternatively, you can paginate page-by-page
1423
+ async for page in response.iter_pages():
1424
+ yield page
1425
+
1426
+
1427
+ asyncio.run(main())
1428
+ """
1429
+ return await self._raw_client.list_sessions(
1430
+ charge_point_id,
1431
+ date_from=date_from,
1432
+ date_to=date_to,
1433
+ offset=offset,
1434
+ limit=limit,
1435
+ request_options=request_options,
1436
+ )