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.
- evcloud/__init__.py +802 -0
- evcloud/_default_clients.py +30 -0
- evcloud/client.py +200 -0
- evcloud/core/__init__.py +67 -0
- evcloud/core/api_error.py +23 -0
- evcloud/core/client_wrapper.py +108 -0
- evcloud/core/datetime_utils.py +70 -0
- evcloud/core/file.py +67 -0
- evcloud/core/force_multipart.py +18 -0
- evcloud/core/http_client.py +840 -0
- evcloud/core/http_response.py +59 -0
- evcloud/core/http_sse/__init__.py +9 -0
- evcloud/core/http_sse/_api.py +112 -0
- evcloud/core/http_sse/_decoders.py +61 -0
- evcloud/core/http_sse/_exceptions.py +7 -0
- evcloud/core/http_sse/_models.py +17 -0
- evcloud/core/jsonable_encoder.py +120 -0
- evcloud/core/logging.py +107 -0
- evcloud/core/pagination.py +82 -0
- evcloud/core/parse_error.py +36 -0
- evcloud/core/pydantic_utilities.py +634 -0
- evcloud/core/query_encoder.py +58 -0
- evcloud/core/remove_none_from_dict.py +11 -0
- evcloud/core/request_options.py +35 -0
- evcloud/core/serialization.py +276 -0
- evcloud/cpo/__init__.py +31 -0
- evcloud/cpo/cdrs/__init__.py +4 -0
- evcloud/cpo/cdrs/client.py +311 -0
- evcloud/cpo/cdrs/raw_client.py +592 -0
- evcloud/cpo/charge_points/__init__.py +7 -0
- evcloud/cpo/charge_points/client.py +1436 -0
- evcloud/cpo/charge_points/raw_client.py +2809 -0
- evcloud/cpo/charge_points/types/__init__.py +7 -0
- evcloud/cpo/charge_points/types/list_charge_points_request_ocpp_version.py +5 -0
- evcloud/cpo/client.py +62 -0
- evcloud/cpo/connectors/__init__.py +4 -0
- evcloud/cpo/connectors/client.py +698 -0
- evcloud/cpo/connectors/raw_client.py +1457 -0
- evcloud/cpo/evses/__init__.py +4 -0
- evcloud/cpo/evses/client.py +691 -0
- evcloud/cpo/evses/raw_client.py +1457 -0
- evcloud/cpo/health/__init__.py +4 -0
- evcloud/cpo/health/client.py +100 -0
- evcloud/cpo/health/raw_client.py +192 -0
- evcloud/cpo/locations/__init__.py +4 -0
- evcloud/cpo/locations/client.py +1021 -0
- evcloud/cpo/locations/raw_client.py +1887 -0
- evcloud/cpo/raw_client.py +13 -0
- evcloud/cpo/sessions/__init__.py +7 -0
- evcloud/cpo/sessions/client.py +430 -0
- evcloud/cpo/sessions/raw_client.py +889 -0
- evcloud/cpo/sessions/types/__init__.py +8 -0
- evcloud/cpo/sessions/types/list_sessions_request_billing_state.py +5 -0
- evcloud/cpo/sessions/types/list_sessions_request_status.py +7 -0
- evcloud/cpo/tariffs/__init__.py +17 -0
- evcloud/cpo/tariffs/client.py +1232 -0
- evcloud/cpo/tariffs/raw_client.py +2526 -0
- evcloud/cpo/tariffs/types/__init__.py +15 -0
- evcloud/cpo/tariffs/types/list_tariffs_request_type.py +7 -0
- evcloud/cpo/tariffs/types/tariff_create_ocpi_version.py +5 -0
- evcloud/cpo/tariffs/types/tariff_create_preauthorize_amount.py +5 -0
- evcloud/cpo/tariffs/types/tariff_patch_preauthorize_amount.py +5 -0
- evcloud/emsp/__init__.py +55 -0
- evcloud/emsp/cdrs/__init__.py +4 -0
- evcloud/emsp/cdrs/client.py +300 -0
- evcloud/emsp/cdrs/raw_client.py +610 -0
- evcloud/emsp/chargers/__init__.py +7 -0
- evcloud/emsp/chargers/client.py +167 -0
- evcloud/emsp/chargers/raw_client.py +331 -0
- evcloud/emsp/chargers/types/__init__.py +11 -0
- evcloud/emsp/chargers/types/resolve_chargers_response.py +53 -0
- evcloud/emsp/client.py +77 -0
- evcloud/emsp/commands/__init__.py +7 -0
- evcloud/emsp/commands/client.py +516 -0
- evcloud/emsp/commands/raw_client.py +979 -0
- evcloud/emsp/commands/types/__init__.py +7 -0
- evcloud/emsp/commands/types/send_commands_request_command.py +7 -0
- evcloud/emsp/emp_identities/__init__.py +4 -0
- evcloud/emsp/emp_identities/client.py +548 -0
- evcloud/emsp/emp_identities/raw_client.py +1277 -0
- evcloud/emsp/evses/__init__.py +4 -0
- evcloud/emsp/evses/client.py +154 -0
- evcloud/emsp/evses/raw_client.py +288 -0
- evcloud/emsp/health/__init__.py +4 -0
- evcloud/emsp/health/client.py +100 -0
- evcloud/emsp/health/raw_client.py +192 -0
- evcloud/emsp/locations/__init__.py +4 -0
- evcloud/emsp/locations/client.py +1386 -0
- evcloud/emsp/locations/raw_client.py +2903 -0
- evcloud/emsp/networks/__init__.py +7 -0
- evcloud/emsp/networks/client.py +1615 -0
- evcloud/emsp/networks/raw_client.py +3725 -0
- evcloud/emsp/networks/types/__init__.py +9 -0
- evcloud/emsp/networks/types/list_networks_request_network_type.py +5 -0
- evcloud/emsp/networks/types/list_rules_networks_request_validity.py +5 -0
- evcloud/emsp/networks/types/network_rule_create_request_rule_type.py +5 -0
- evcloud/emsp/raw_client.py +13 -0
- evcloud/emsp/sessions/__init__.py +4 -0
- evcloud/emsp/sessions/client.py +300 -0
- evcloud/emsp/sessions/raw_client.py +610 -0
- evcloud/emsp/tariffs/__init__.py +7 -0
- evcloud/emsp/tariffs/client.py +421 -0
- evcloud/emsp/tariffs/raw_client.py +883 -0
- evcloud/emsp/tariffs/types/__init__.py +8 -0
- evcloud/emsp/tariffs/types/estimate_request_kwh.py +5 -0
- evcloud/emsp/tariffs/types/estimate_request_minutes.py +5 -0
- evcloud/emsp/tenant/__init__.py +4 -0
- evcloud/emsp/tenant/client.py +328 -0
- evcloud/emsp/tenant/raw_client.py +869 -0
- evcloud/emsp/token_groups/__init__.py +7 -0
- evcloud/emsp/token_groups/client.py +1256 -0
- evcloud/emsp/token_groups/raw_client.py +3288 -0
- evcloud/emsp/token_groups/types/__init__.py +7 -0
- evcloud/emsp/token_groups/types/remove_token_token_groups_request_type.py +5 -0
- evcloud/emsp/tokens/__init__.py +7 -0
- evcloud/emsp/tokens/client.py +1298 -0
- evcloud/emsp/tokens/raw_client.py +2947 -0
- evcloud/emsp/tokens/types/__init__.py +10 -0
- evcloud/emsp/tokens/types/list_tokens_request_status.py +7 -0
- evcloud/emsp/tokens/types/list_tokens_request_type.py +5 -0
- evcloud/emsp/tokens/types/token_update_default_profile_type.py +5 -0
- evcloud/emsp/tokens/types/token_update_whitelist.py +5 -0
- evcloud/energy/__init__.py +8 -0
- evcloud/energy/client.py +47 -0
- evcloud/energy/control_requests/__init__.py +7 -0
- evcloud/energy/control_requests/client.py +399 -0
- evcloud/energy/control_requests/raw_client.py +835 -0
- evcloud/energy/control_requests/types/__init__.py +7 -0
- evcloud/energy/control_requests/types/list_control_requests_request_result.py +15 -0
- evcloud/energy/health/__init__.py +4 -0
- evcloud/energy/health/client.py +100 -0
- evcloud/energy/health/raw_client.py +192 -0
- evcloud/energy/power_measurements/__init__.py +4 -0
- evcloud/energy/power_measurements/client.py +254 -0
- evcloud/energy/power_measurements/raw_client.py +527 -0
- evcloud/energy/raw_client.py +13 -0
- evcloud/environment.py +7 -0
- evcloud/errors/__init__.py +25 -0
- evcloud/errors/bad_gateway_error.py +11 -0
- evcloud/errors/bad_request_error.py +11 -0
- evcloud/errors/conflict_error.py +11 -0
- evcloud/errors/forbidden_error.py +11 -0
- evcloud/errors/gateway_timeout_error.py +11 -0
- evcloud/errors/not_found_error.py +11 -0
- evcloud/errors/too_many_requests_error.py +11 -0
- evcloud/errors/unauthorized_error.py +11 -0
- evcloud/errors/unprocessable_entity_error.py +11 -0
- evcloud/health/__init__.py +4 -0
- evcloud/health/client.py +99 -0
- evcloud/health/raw_client.py +100 -0
- evcloud/ocpi/__init__.py +123 -0
- evcloud/ocpi/client.py +56 -0
- evcloud/ocpi/cpo_data/__init__.py +31 -0
- evcloud/ocpi/cpo_data/client.py +1553 -0
- evcloud/ocpi/cpo_data/raw_client.py +3119 -0
- evcloud/ocpi/cpo_data/types/__init__.py +29 -0
- evcloud/ocpi/cpo_data/types/cancel_reservation_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/create_cdr_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/delete_tariff_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/send_active_charging_profile_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/update_connector_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/update_evse_status_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/update_location_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/update_session_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/upsert_location_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/upsert_session_cpo_data_request_version.py +5 -0
- evcloud/ocpi/cpo_data/types/upsert_tariff_cpo_data_request_version.py +5 -0
- evcloud/ocpi/credentials/__init__.py +31 -0
- evcloud/ocpi/credentials/client.py +750 -0
- evcloud/ocpi/credentials/raw_client.py +1537 -0
- evcloud/ocpi/credentials/types/__init__.py +29 -0
- evcloud/ocpi/credentials/types/partner_versions_pull_request_partner_token_encoding.py +5 -0
- evcloud/ocpi/credentials/types/pull_versions_credentials_request_role.py +5 -0
- evcloud/ocpi/credentials/types/pull_versions_credentials_request_version.py +5 -0
- evcloud/ocpi/credentials/types/rotate_credentials_request_role.py +5 -0
- evcloud/ocpi/credentials/types/rotate_credentials_request_version.py +5 -0
- evcloud/ocpi/credentials/types/start_handshake_credentials_request_role.py +5 -0
- evcloud/ocpi/credentials/types/start_handshake_credentials_request_version.py +5 -0
- evcloud/ocpi/credentials/types/status_credentials_request_role.py +5 -0
- evcloud/ocpi/credentials/types/status_credentials_request_version.py +5 -0
- evcloud/ocpi/credentials/types/unregister_credentials_request_role.py +5 -0
- evcloud/ocpi/credentials/types/unregister_credentials_request_version.py +5 -0
- evcloud/ocpi/emsp/__init__.py +27 -0
- evcloud/ocpi/emsp/client.py +1142 -0
- evcloud/ocpi/emsp/raw_client.py +2209 -0
- evcloud/ocpi/emsp/types/__init__.py +25 -0
- evcloud/ocpi/emsp/types/charging_preferences_request_profile_type.py +5 -0
- evcloud/ocpi/emsp/types/clear_charging_profile_emsp_request_version.py +5 -0
- evcloud/ocpi/emsp/types/get_active_charging_profile_emsp_request_version.py +5 -0
- evcloud/ocpi/emsp/types/send_command_emsp_request_command.py +7 -0
- evcloud/ocpi/emsp/types/send_command_emsp_request_version.py +5 -0
- evcloud/ocpi/emsp/types/set_charging_preferences_emsp_request_version.py +5 -0
- evcloud/ocpi/emsp/types/set_charging_profile_emsp_request_version.py +5 -0
- evcloud/ocpi/emsp/types/update_token_emsp_request_version.py +5 -0
- evcloud/ocpi/emsp/types/upsert_token_emsp_request_version.py +5 -0
- evcloud/ocpi/invites/__init__.py +19 -0
- evcloud/ocpi/invites/client.py +385 -0
- evcloud/ocpi/invites/raw_client.py +887 -0
- evcloud/ocpi/invites/types/__init__.py +17 -0
- evcloud/ocpi/invites/types/partner_invite_create_request_gateway_role.py +5 -0
- evcloud/ocpi/invites/types/partner_invite_create_request_role.py +5 -0
- evcloud/ocpi/invites/types/partner_invite_create_request_version.py +5 -0
- evcloud/ocpi/invites/types/partner_invite_update_request_gateway_role.py +5 -0
- evcloud/ocpi/invites/types/partner_invite_update_request_version.py +5 -0
- evcloud/ocpi/partners/__init__.py +7 -0
- evcloud/ocpi/partners/client.py +581 -0
- evcloud/ocpi/partners/raw_client.py +1340 -0
- evcloud/ocpi/partners/types/__init__.py +8 -0
- evcloud/ocpi/partners/types/partner_register_request_ocpi_version.py +5 -0
- evcloud/ocpi/partners/types/partner_update_request_ocpi_version.py +5 -0
- evcloud/ocpi/raw_client.py +13 -0
- evcloud/ocpi/sync/__init__.py +33 -0
- evcloud/ocpi/sync/client.py +1701 -0
- evcloud/ocpi/sync/raw_client.py +3685 -0
- evcloud/ocpi/sync/types/__init__.py +31 -0
- evcloud/ocpi/sync/types/pull_cdrs_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/pull_hub_client_info_as_cpo_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/pull_hub_client_info_as_emsp_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/pull_locations_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/pull_sessions_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/pull_tariffs_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/pull_tokens_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/push_cdr_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/push_location_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/push_session_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/push_tariff_sync_request_version.py +5 -0
- evcloud/ocpi/sync/types/push_token_sync_request_version.py +5 -0
- evcloud/py.typed +0 -0
- evcloud/types/__init__.py +759 -0
- evcloud/types/access_mode.py +5 -0
- evcloud/types/asset_connector.py +26 -0
- evcloud/types/asset_updated_event.py +29 -0
- evcloud/types/availability_page.py +26 -0
- evcloud/types/batch_response.py +26 -0
- evcloud/types/batch_response_missing_item.py +7 -0
- evcloud/types/cdr_event.py +41 -0
- evcloud/types/cdr_out.py +75 -0
- evcloud/types/cdr_out_auth_method.py +7 -0
- evcloud/types/cdr_out_auth_method_zero.py +5 -0
- evcloud/types/cdr_out_origin.py +7 -0
- evcloud/types/cdr_out_origin_zero.py +5 -0
- evcloud/types/cdr_page.py +27 -0
- evcloud/types/cdr_write_response.py +26 -0
- evcloud/types/charge_point_created_out.py +74 -0
- evcloud/types/charge_point_created_out_access_mode.py +7 -0
- evcloud/types/charge_point_created_out_access_mode_zero.py +5 -0
- evcloud/types/charge_point_created_out_pricing.py +7 -0
- evcloud/types/charge_point_created_out_pricing_zero.py +5 -0
- evcloud/types/charge_point_created_out_site_type.py +7 -0
- evcloud/types/charge_point_created_out_site_type_zero.py +5 -0
- evcloud/types/charge_point_out.py +73 -0
- evcloud/types/charge_point_out_access_mode.py +7 -0
- evcloud/types/charge_point_out_access_mode_zero.py +5 -0
- evcloud/types/charge_point_out_pricing.py +7 -0
- evcloud/types/charge_point_out_pricing_zero.py +5 -0
- evcloud/types/charge_point_out_site_type.py +7 -0
- evcloud/types/charge_point_out_site_type_zero.py +5 -0
- evcloud/types/charge_point_page.py +27 -0
- evcloud/types/charging_preferences_response.py +28 -0
- evcloud/types/charging_preferences_response_result.py +10 -0
- evcloud/types/charging_profile.py +30 -0
- evcloud/types/charging_profile_charging_rate_unit.py +5 -0
- evcloud/types/charging_profile_period.py +31 -0
- evcloud/types/charging_profile_response.py +32 -0
- evcloud/types/cluster_page.py +26 -0
- evcloud/types/command_accepted.py +30 -0
- evcloud/types/command_accepted_route.py +53 -0
- evcloud/types/command_accepted_route_own.py +28 -0
- evcloud/types/command_accepted_route_own_ocpi_version.py +7 -0
- evcloud/types/command_accepted_route_own_ocpi_version_zero.py +5 -0
- evcloud/types/command_accepted_route_roaming.py +30 -0
- evcloud/types/command_accepted_route_roaming_ocpi_version.py +7 -0
- evcloud/types/command_accepted_route_roaming_ocpi_version_zero.py +5 -0
- evcloud/types/command_accepted_status.py +7 -0
- evcloud/types/command_accepted_status_zero.py +20 -0
- evcloud/types/command_page.py +26 -0
- evcloud/types/command_record.py +40 -0
- evcloud/types/command_record_command.py +7 -0
- evcloud/types/command_record_command_zero.py +7 -0
- evcloud/types/command_record_route.py +53 -0
- evcloud/types/command_record_route_own.py +28 -0
- evcloud/types/command_record_route_own_ocpi_version.py +7 -0
- evcloud/types/command_record_route_own_ocpi_version_zero.py +5 -0
- evcloud/types/command_record_route_roaming.py +30 -0
- evcloud/types/command_record_route_roaming_ocpi_version.py +7 -0
- evcloud/types/command_record_route_roaming_ocpi_version_zero.py +5 -0
- evcloud/types/command_record_status.py +7 -0
- evcloud/types/command_record_status_zero.py +20 -0
- evcloud/types/command_response_out.py +26 -0
- evcloud/types/command_response_out_result.py +7 -0
- evcloud/types/command_response_out_result_zero.py +7 -0
- evcloud/types/command_result_event.py +39 -0
- evcloud/types/command_result_event_module.py +5 -0
- evcloud/types/command_result_event_protocol.py +5 -0
- evcloud/types/command_result_event_status.py +5 -0
- evcloud/types/command_send_response.py +31 -0
- evcloud/types/command_token.py +36 -0
- evcloud/types/connector_format.py +5 -0
- evcloud/types/connector_page.py +27 -0
- evcloud/types/connector_status_event.py +29 -0
- evcloud/types/connector_write_response.py +27 -0
- evcloud/types/control_action.py +5 -0
- evcloud/types/control_request_page.py +27 -0
- evcloud/types/control_request_response.py +38 -0
- evcloud/types/control_request_response_action.py +7 -0
- evcloud/types/control_request_response_action_zero.py +7 -0
- evcloud/types/control_request_response_result.py +7 -0
- evcloud/types/control_request_response_result_zero.py +15 -0
- evcloud/types/control_request_response_unit.py +7 -0
- evcloud/types/control_request_response_unit_zero.py +5 -0
- evcloud/types/control_response_event.py +38 -0
- evcloud/types/control_response_event_action.py +5 -0
- evcloud/types/control_response_event_result.py +15 -0
- evcloud/types/control_response_event_unit.py +5 -0
- evcloud/types/cpo_connector_out.py +58 -0
- evcloud/types/cpo_connector_out_format.py +7 -0
- evcloud/types/cpo_connector_out_format_zero.py +5 -0
- evcloud/types/cpo_connector_out_ocpi_status.py +7 -0
- evcloud/types/cpo_connector_out_ocpi_status_zero.py +10 -0
- evcloud/types/cpo_connector_out_power_type.py +7 -0
- evcloud/types/cpo_connector_out_power_type_zero.py +7 -0
- evcloud/types/cpo_evse_out.py +61 -0
- evcloud/types/cpo_evse_out_origin.py +7 -0
- evcloud/types/cpo_evse_out_origin_zero.py +5 -0
- evcloud/types/cpo_evse_out_status.py +7 -0
- evcloud/types/cpo_evse_out_status_zero.py +10 -0
- evcloud/types/credentials_handshake_request.py +44 -0
- evcloud/types/credentials_handshake_request_partner_token_encoding.py +5 -0
- evcloud/types/credentials_handshake_response.py +32 -0
- evcloud/types/credentials_handshake_response_action.py +7 -0
- evcloud/types/credentials_handshake_response_version.py +5 -0
- evcloud/types/deliver_event_response.py +23 -0
- evcloud/types/delivery_drift_event.py +30 -0
- evcloud/types/display_text.py +24 -0
- evcloud/types/effective_cpo.py +27 -0
- evcloud/types/effective_cpo_source.py +7 -0
- evcloud/types/effective_cpo_source_zero.py +5 -0
- evcloud/types/effective_view_response.py +29 -0
- evcloud/types/emp_identity_out.py +35 -0
- evcloud/types/emp_identity_out_status.py +7 -0
- evcloud/types/emp_identity_out_status_zero.py +5 -0
- evcloud/types/emp_identity_page.py +26 -0
- evcloud/types/emsp_cdr_out.py +41 -0
- evcloud/types/emsp_cdr_out_source.py +7 -0
- evcloud/types/emsp_cdr_out_source_zero.py +5 -0
- evcloud/types/emsp_cdr_page.py +26 -0
- evcloud/types/emsp_connector_out.py +30 -0
- evcloud/types/emsp_evse_out.py +32 -0
- evcloud/types/emsp_gateway_schema_commands_location_key.py +25 -0
- evcloud/types/emsp_gateway_schema_location_lookup_location_key.py +25 -0
- evcloud/types/emsp_gateway_schema_locations_location_out.py +47 -0
- evcloud/types/emsp_gateway_schema_locations_location_page.py +26 -0
- evcloud/types/emsp_gateway_schema_networks_location_out.py +37 -0
- evcloud/types/emsp_gateway_schema_networks_location_page.py +26 -0
- evcloud/types/emsp_session_out.py +41 -0
- evcloud/types/emsp_session_out_source.py +7 -0
- evcloud/types/emsp_session_out_source_zero.py +5 -0
- evcloud/types/emsp_session_page.py +26 -0
- evcloud/types/emsp_tariff_page.py +26 -0
- evcloud/types/energy_contract.py +24 -0
- evcloud/types/estimate_line.py +27 -0
- evcloud/types/estimate_line_type.py +7 -0
- evcloud/types/estimate_line_type_zero.py +5 -0
- evcloud/types/estimate_response.py +30 -0
- evcloud/types/event_type_list.py +24 -0
- evcloud/types/event_type_response.py +27 -0
- evcloud/types/event_type_response_type.py +7 -0
- evcloud/types/event_type_response_type_zero.py +27 -0
- evcloud/types/event_type_version.py +24 -0
- evcloud/types/evse_connector_status.py +26 -0
- evcloud/types/evse_page.py +27 -0
- evcloud/types/evse_parking.py +25 -0
- evcloud/types/evse_parking_evse_position.py +7 -0
- evcloud/types/evse_parking_evse_position_zero.py +5 -0
- evcloud/types/evse_status_event.py +31 -0
- evcloud/types/evse_status_out.py +32 -0
- evcloud/types/evse_status_write_response.py +28 -0
- evcloud/types/facility_count.py +24 -0
- evcloud/types/facility_page.py +26 -0
- evcloud/types/health_ok.py +24 -0
- evcloud/types/health_ok_status.py +7 -0
- evcloud/types/health_ok_status_zero.py +5 -0
- evcloud/types/http_error_response.py +29 -0
- evcloud/types/http_validation_error.py +24 -0
- evcloud/types/limit_unit.py +5 -0
- evcloud/types/location_availability.py +28 -0
- evcloud/types/location_availability_status.py +7 -0
- evcloud/types/location_availability_status_zero.py +7 -0
- evcloud/types/location_base.py +53 -0
- evcloud/types/location_base_parking_type.py +7 -0
- evcloud/types/location_base_parking_type_zero.py +8 -0
- evcloud/types/location_cluster.py +26 -0
- evcloud/types/location_detail.py +51 -0
- evcloud/types/location_key_input.py +25 -0
- evcloud/types/location_list.py +24 -0
- evcloud/types/location_out.py +79 -0
- evcloud/types/location_out_access_mode.py +7 -0
- evcloud/types/location_out_access_mode_zero.py +5 -0
- evcloud/types/location_out_ocpi_version.py +7 -0
- evcloud/types/location_out_ocpi_version_zero.py +5 -0
- evcloud/types/location_out_origin.py +7 -0
- evcloud/types/location_out_origin_zero.py +5 -0
- evcloud/types/location_out_parking_type.py +7 -0
- evcloud/types/location_out_parking_type_zero.py +8 -0
- evcloud/types/location_out_role.py +7 -0
- evcloud/types/location_out_role_zero.py +5 -0
- evcloud/types/location_out_site_type.py +7 -0
- evcloud/types/location_out_site_type_zero.py +5 -0
- evcloud/types/location_page.py +27 -0
- evcloud/types/location_summary.py +43 -0
- evcloud/types/location_updated_event.py +30 -0
- evcloud/types/location_write_response.py +26 -0
- evcloud/types/map_cluster.py +28 -0
- evcloud/types/map_page.py +29 -0
- evcloud/types/network_consumer.py +25 -0
- evcloud/types/network_consumer_page.py +26 -0
- evcloud/types/network_detail_response.py +49 -0
- evcloud/types/network_detail_response_network_type.py +7 -0
- evcloud/types/network_detail_response_network_type_zero.py +5 -0
- evcloud/types/network_detail_response_publish_state.py +7 -0
- evcloud/types/network_detail_response_publish_state_zero.py +7 -0
- evcloud/types/network_page.py +26 -0
- evcloud/types/network_priority_order.py +23 -0
- evcloud/types/network_response.py +46 -0
- evcloud/types/network_response_network_type.py +7 -0
- evcloud/types/network_response_network_type_zero.py +5 -0
- evcloud/types/network_response_publish_state.py +7 -0
- evcloud/types/network_response_publish_state_zero.py +5 -0
- evcloud/types/network_rule_page.py +26 -0
- evcloud/types/network_rule_response.py +33 -0
- evcloud/types/network_rule_response_rule_type.py +7 -0
- evcloud/types/network_rule_response_rule_type_zero.py +5 -0
- evcloud/types/ocpi_business_details.py +26 -0
- evcloud/types/ocpi_business_details_input.py +26 -0
- evcloud/types/ocpi_cdr_dimension.py +24 -0
- evcloud/types/ocpi_cdr_location.py +30 -0
- evcloud/types/ocpi_cdr_token.py +30 -0
- evcloud/types/ocpi_charging_period.py +27 -0
- evcloud/types/ocpi_display_text.py +24 -0
- evcloud/types/ocpi_energy_mix.py +29 -0
- evcloud/types/ocpi_energy_mix_input.py +29 -0
- evcloud/types/ocpi_energy_source.py +24 -0
- evcloud/types/ocpi_energy_source_input.py +24 -0
- evcloud/types/ocpi_environmental_impact.py +24 -0
- evcloud/types/ocpi_evse_parking.py +24 -0
- evcloud/types/ocpi_exceptional_period.py +25 -0
- evcloud/types/ocpi_geo_location.py +24 -0
- evcloud/types/ocpi_geo_location_in.py +24 -0
- evcloud/types/ocpi_image.py +28 -0
- evcloud/types/ocpi_image_input.py +28 -0
- evcloud/types/ocpi_opening_times.py +28 -0
- evcloud/types/ocpi_opening_times_input.py +28 -0
- evcloud/types/ocpi_parking_place.py +44 -0
- evcloud/types/ocpi_parking_place_input.py +44 -0
- evcloud/types/ocpi_price_component_input.py +28 -0
- evcloud/types/ocpi_price_component_input_price.py +5 -0
- evcloud/types/ocpi_price_component_input_vat.py +5 -0
- evcloud/types/ocpi_price_component_output.py +26 -0
- evcloud/types/ocpi_price_input.py +26 -0
- evcloud/types/ocpi_price_input_excl_vat.py +5 -0
- evcloud/types/ocpi_price_input_incl_vat.py +5 -0
- evcloud/types/ocpi_price_output.py +24 -0
- evcloud/types/ocpi_publish_token.py +27 -0
- evcloud/types/ocpi_regular_hours.py +25 -0
- evcloud/types/ocpi_regular_hours_input.py +25 -0
- evcloud/types/ocpi_related_location.py +26 -0
- evcloud/types/ocpi_signed_data.py +28 -0
- evcloud/types/ocpi_signed_value.py +25 -0
- evcloud/types/ocpi_status_schedule.py +26 -0
- evcloud/types/ocpi_tariff_element_input.py +26 -0
- evcloud/types/ocpi_tariff_element_output.py +26 -0
- evcloud/types/ocpi_tariff_restrictions_input.py +33 -0
- evcloud/types/ocpi_tariff_restrictions_input_max_kwh.py +5 -0
- evcloud/types/ocpi_tariff_restrictions_input_min_kwh.py +5 -0
- evcloud/types/ocpi_tariff_restrictions_output.py +31 -0
- evcloud/types/ocpi_tariff_snapshot.py +26 -0
- evcloud/types/ocpp_version.py +5 -0
- evcloud/types/page_info.py +24 -0
- evcloud/types/parking.py +45 -0
- evcloud/types/parking_direction.py +7 -0
- evcloud/types/parking_direction_zero.py +5 -0
- evcloud/types/parking_type.py +8 -0
- evcloud/types/parking_vehicle_types_item.py +7 -0
- evcloud/types/parking_vehicle_types_item_zero.py +18 -0
- evcloud/types/partner_invite_response.py +47 -0
- evcloud/types/partner_invite_response_action.py +5 -0
- evcloud/types/partner_invite_response_role.py +5 -0
- evcloud/types/partner_invite_response_version.py +5 -0
- evcloud/types/partner_invite_revoke_response.py +31 -0
- evcloud/types/partner_invite_revoke_response_role.py +5 -0
- evcloud/types/partner_response.py +41 -0
- evcloud/types/partner_response_ocpi_version.py +5 -0
- evcloud/types/partner_token_updated_event.py +35 -0
- evcloud/types/partner_versions_pull_response.py +29 -0
- evcloud/types/partner_versions_pull_response_code.py +8 -0
- evcloud/types/partner_versions_pull_response_version.py +5 -0
- evcloud/types/power_measurement.py +30 -0
- evcloud/types/power_measurement_event.py +30 -0
- evcloud/types/power_measurement_list.py +24 -0
- evcloud/types/power_type.py +5 -0
- evcloud/types/price_component.py +26 -0
- evcloud/types/price_limit.py +24 -0
- evcloud/types/pricing_mode.py +5 -0
- evcloud/types/queue_health.py +34 -0
- evcloud/types/reservation_cancel_response.py +25 -0
- evcloud/types/resolve_chargers_response_own.py +28 -0
- evcloud/types/resolve_chargers_response_own_ocpi_version.py +7 -0
- evcloud/types/resolve_chargers_response_own_ocpi_version_zero.py +5 -0
- evcloud/types/resolve_chargers_response_roaming.py +30 -0
- evcloud/types/resolve_chargers_response_roaming_ocpi_version.py +7 -0
- evcloud/types/resolve_chargers_response_roaming_ocpi_version_zero.py +5 -0
- evcloud/types/session_event.py +39 -0
- evcloud/types/session_out.py +60 -0
- evcloud/types/session_out_auth_method.py +7 -0
- evcloud/types/session_out_auth_method_zero.py +5 -0
- evcloud/types/session_out_billing_state.py +7 -0
- evcloud/types/session_out_billing_state_zero.py +5 -0
- evcloud/types/session_out_origin.py +7 -0
- evcloud/types/session_out_origin_zero.py +5 -0
- evcloud/types/session_out_status.py +7 -0
- evcloud/types/session_out_status_zero.py +7 -0
- evcloud/types/session_page.py +27 -0
- evcloud/types/session_write_response.py +27 -0
- evcloud/types/sharing_slot.py +25 -0
- evcloud/types/sharing_slot_input.py +25 -0
- evcloud/types/site_type.py +5 -0
- evcloud/types/sync_patch_request.py +26 -0
- evcloud/types/sync_pull_response.py +31 -0
- evcloud/types/sync_push_response.py +31 -0
- evcloud/types/sync_push_response_status.py +5 -0
- evcloud/types/tariff.py +42 -0
- evcloud/types/tariff_assignment_out.py +32 -0
- evcloud/types/tariff_assignment_page.py +27 -0
- evcloud/types/tariff_delete_response.py +26 -0
- evcloud/types/tariff_display.py +27 -0
- evcloud/types/tariff_element.py +26 -0
- evcloud/types/tariff_out.py +57 -0
- evcloud/types/tariff_out_origin.py +7 -0
- evcloud/types/tariff_out_origin_zero.py +5 -0
- evcloud/types/tariff_out_tax_included.py +7 -0
- evcloud/types/tariff_out_tax_included_zero.py +5 -0
- evcloud/types/tariff_out_type.py +7 -0
- evcloud/types/tariff_out_type_zero.py +7 -0
- evcloud/types/tariff_page.py +27 -0
- evcloud/types/tariff_restrictions.py +36 -0
- evcloud/types/tariff_summary.py +29 -0
- evcloud/types/tariff_tax_included.py +7 -0
- evcloud/types/tariff_tax_included_zero.py +5 -0
- evcloud/types/tariff_type.py +7 -0
- evcloud/types/tariff_updated_event.py +29 -0
- evcloud/types/tariff_write_response.py +26 -0
- evcloud/types/tax_included.py +5 -0
- evcloud/types/tenant_profile_out.py +31 -0
- evcloud/types/token_bulk_out.py +26 -0
- evcloud/types/token_create.py +46 -0
- evcloud/types/token_create_default_profile_type.py +5 -0
- evcloud/types/token_create_ocpi_version.py +5 -0
- evcloud/types/token_create_type.py +5 -0
- evcloud/types/token_create_whitelist.py +5 -0
- evcloud/types/token_event_data.py +47 -0
- evcloud/types/token_event_data_status.py +7 -0
- evcloud/types/token_event_data_type.py +5 -0
- evcloud/types/token_event_data_whitelist.py +5 -0
- evcloud/types/token_event_out.py +32 -0
- evcloud/types/token_event_out_event.py +7 -0
- evcloud/types/token_event_out_event_zero.py +7 -0
- evcloud/types/token_event_page.py +26 -0
- evcloud/types/token_failure_item.py +24 -0
- evcloud/types/token_group_action_out.py +27 -0
- evcloud/types/token_group_failure.py +24 -0
- evcloud/types/token_group_member_out.py +26 -0
- evcloud/types/token_group_network_out.py +35 -0
- evcloud/types/token_group_network_page.py +26 -0
- evcloud/types/token_group_out.py +31 -0
- evcloud/types/token_group_page.py +26 -0
- evcloud/types/token_out.py +55 -0
- evcloud/types/token_out_status.py +7 -0
- evcloud/types/token_out_status_zero.py +7 -0
- evcloud/types/token_out_type.py +7 -0
- evcloud/types/token_out_type_zero.py +5 -0
- evcloud/types/token_out_whitelist.py +7 -0
- evcloud/types/token_out_whitelist_zero.py +5 -0
- evcloud/types/token_page.py +26 -0
- evcloud/types/token_reason.py +23 -0
- evcloud/types/token_ref.py +26 -0
- evcloud/types/token_ref_ocpi_version.py +5 -0
- evcloud/types/token_write_response.py +28 -0
- evcloud/types/validation_error.py +28 -0
- evcloud/types/validation_error_loc_item.py +5 -0
- evcloud/types/webhook_delivery_page.py +27 -0
- evcloud/types/webhook_delivery_response.py +35 -0
- evcloud/types/webhook_page.py +27 -0
- evcloud/types/webhook_response.py +42 -0
- evcloud/types/webhook_response_event.py +7 -0
- evcloud/types/webhook_response_event_zero.py +27 -0
- evcloud/types/webhook_response_status.py +7 -0
- evcloud/types/webhook_response_status_zero.py +5 -0
- evcloud/types/webhook_test_result.py +25 -0
- evcloud/types/webhook_with_secret_response.py +43 -0
- evcloud/types/webhook_with_secret_response_event.py +7 -0
- evcloud/types/webhook_with_secret_response_event_zero.py +27 -0
- evcloud/types/webhook_with_secret_response_status.py +7 -0
- evcloud/types/webhook_with_secret_response_status_zero.py +5 -0
- evcloud/version.py +3 -0
- evcloud/webhooks/__init__.py +28 -0
- evcloud/webhooks/client.py +53 -0
- evcloud/webhooks/deliveries/__init__.py +4 -0
- evcloud/webhooks/deliveries/client.py +141 -0
- evcloud/webhooks/deliveries/raw_client.py +268 -0
- evcloud/webhooks/endpoints/__init__.py +17 -0
- evcloud/webhooks/endpoints/client.py +642 -0
- evcloud/webhooks/endpoints/raw_client.py +1521 -0
- evcloud/webhooks/endpoints/types/__init__.py +15 -0
- evcloud/webhooks/endpoints/types/list_endpoints_request_event_types_item.py +27 -0
- evcloud/webhooks/endpoints/types/webhook_create_request_api_version.py +5 -0
- evcloud/webhooks/endpoints/types/webhook_create_request_event.py +27 -0
- evcloud/webhooks/endpoints/types/webhook_update_request_status.py +5 -0
- evcloud/webhooks/event_types/__init__.py +7 -0
- evcloud/webhooks/event_types/client.py +176 -0
- evcloud/webhooks/event_types/raw_client.py +418 -0
- evcloud/webhooks/event_types/types/__init__.py +7 -0
- evcloud/webhooks/event_types/types/get_event_types_request_type.py +27 -0
- evcloud/webhooks/events/__init__.py +7 -0
- evcloud/webhooks/events/client.py +207 -0
- evcloud/webhooks/events/raw_client.py +355 -0
- evcloud/webhooks/events/types/__init__.py +8 -0
- evcloud/webhooks/events/types/deliver_event_request_data.py +33 -0
- evcloud/webhooks/events/types/deliver_event_request_event.py +27 -0
- evcloud/webhooks/health/__init__.py +4 -0
- evcloud/webhooks/health/client.py +161 -0
- evcloud/webhooks/health/raw_client.py +380 -0
- evcloud/webhooks/raw_client.py +13 -0
- evcloud-0.1.0.dist-info/METADATA +257 -0
- evcloud-0.1.0.dist-info/RECORD +635 -0
- evcloud-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,691 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ...core.pagination import AsyncPager, SyncPager
|
|
7
|
+
from ...core.request_options import RequestOptions
|
|
8
|
+
from ...types.cpo_evse_out import CpoEvseOut
|
|
9
|
+
from ...types.evse_page import EvsePage
|
|
10
|
+
from ...types.ocpi_display_text import OcpiDisplayText
|
|
11
|
+
from ...types.ocpi_geo_location_in import OcpiGeoLocationIn
|
|
12
|
+
from ...types.ocpi_image_input import OcpiImageInput
|
|
13
|
+
from .raw_client import AsyncRawEvsesClient, RawEvsesClient
|
|
14
|
+
|
|
15
|
+
# this is used as the default value for optional parameters
|
|
16
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class EvsesClient:
|
|
20
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
21
|
+
self._raw_client = RawEvsesClient(client_wrapper=client_wrapper)
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def with_raw_response(self) -> RawEvsesClient:
|
|
25
|
+
"""
|
|
26
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
27
|
+
|
|
28
|
+
Returns
|
|
29
|
+
-------
|
|
30
|
+
RawEvsesClient
|
|
31
|
+
"""
|
|
32
|
+
return self._raw_client
|
|
33
|
+
|
|
34
|
+
def list(
|
|
35
|
+
self,
|
|
36
|
+
*,
|
|
37
|
+
location_db_id: typing.Optional[int] = None,
|
|
38
|
+
charge_point_id: typing.Optional[str] = None,
|
|
39
|
+
offset: typing.Optional[int] = None,
|
|
40
|
+
limit: typing.Optional[int] = None,
|
|
41
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
42
|
+
) -> SyncPager[CpoEvseOut, EvsePage]:
|
|
43
|
+
"""
|
|
44
|
+
Your live EVSEs, newest first, optionally of one location or charger.
|
|
45
|
+
|
|
46
|
+
Parameters
|
|
47
|
+
----------
|
|
48
|
+
location_db_id : typing.Optional[int]
|
|
49
|
+
Only this location, by its numeric ``id`` (not its OCPI location id).
|
|
50
|
+
|
|
51
|
+
charge_point_id : typing.Optional[str]
|
|
52
|
+
Only this charger (its OCPP identity).
|
|
53
|
+
|
|
54
|
+
offset : typing.Optional[int]
|
|
55
|
+
Rows to skip. Pass the previous page's ``next_offset`` to continue.
|
|
56
|
+
|
|
57
|
+
limit : typing.Optional[int]
|
|
58
|
+
Maximum rows per page (default 50, max 200).
|
|
59
|
+
|
|
60
|
+
request_options : typing.Optional[RequestOptions]
|
|
61
|
+
Request-specific configuration.
|
|
62
|
+
|
|
63
|
+
Returns
|
|
64
|
+
-------
|
|
65
|
+
SyncPager[CpoEvseOut, EvsePage]
|
|
66
|
+
One page of results; ``next_offset`` is null on the last page.
|
|
67
|
+
|
|
68
|
+
Examples
|
|
69
|
+
--------
|
|
70
|
+
from evcloud import EvcloudClient
|
|
71
|
+
|
|
72
|
+
client = EvcloudClient(
|
|
73
|
+
token="YOUR_TOKEN",
|
|
74
|
+
)
|
|
75
|
+
response = client.cpo.evses.list(
|
|
76
|
+
charge_point_id="CP-AMS-001",
|
|
77
|
+
limit=50,
|
|
78
|
+
offset=0,
|
|
79
|
+
)
|
|
80
|
+
for item in response:
|
|
81
|
+
yield item
|
|
82
|
+
# alternatively, you can paginate page-by-page
|
|
83
|
+
for page in response.iter_pages():
|
|
84
|
+
yield page
|
|
85
|
+
"""
|
|
86
|
+
return self._raw_client.list(
|
|
87
|
+
location_db_id=location_db_id,
|
|
88
|
+
charge_point_id=charge_point_id,
|
|
89
|
+
offset=offset,
|
|
90
|
+
limit=limit,
|
|
91
|
+
request_options=request_options,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
def create(
|
|
95
|
+
self,
|
|
96
|
+
*,
|
|
97
|
+
charge_point_id: str,
|
|
98
|
+
evse_type_id: int,
|
|
99
|
+
evse_uid: typing.Optional[str] = OMIT,
|
|
100
|
+
evse_id: typing.Optional[str] = OMIT,
|
|
101
|
+
physical_reference: typing.Optional[str] = OMIT,
|
|
102
|
+
location_id: typing.Optional[str] = OMIT,
|
|
103
|
+
capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
104
|
+
floor_level: typing.Optional[str] = OMIT,
|
|
105
|
+
coordinates: typing.Optional[OcpiGeoLocationIn] = OMIT,
|
|
106
|
+
directions: typing.Optional[typing.Sequence[OcpiDisplayText]] = OMIT,
|
|
107
|
+
parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
108
|
+
accepted_service_providers: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
109
|
+
images: typing.Optional[typing.Sequence[OcpiImageInput]] = OMIT,
|
|
110
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
111
|
+
) -> CpoEvseOut:
|
|
112
|
+
"""
|
|
113
|
+
Adds an EVSE to one of your chargers. Set ``location_id`` and ``evse_uid`` so its connectors can be priced and roaming commands reach it.
|
|
114
|
+
|
|
115
|
+
Parameters
|
|
116
|
+
----------
|
|
117
|
+
charge_point_id : str
|
|
118
|
+
|
|
119
|
+
evse_type_id : int
|
|
120
|
+
|
|
121
|
+
evse_uid : typing.Optional[str]
|
|
122
|
+
|
|
123
|
+
evse_id : typing.Optional[str]
|
|
124
|
+
|
|
125
|
+
physical_reference : typing.Optional[str]
|
|
126
|
+
|
|
127
|
+
location_id : typing.Optional[str]
|
|
128
|
+
|
|
129
|
+
capabilities : typing.Optional[typing.Sequence[str]]
|
|
130
|
+
|
|
131
|
+
floor_level : typing.Optional[str]
|
|
132
|
+
|
|
133
|
+
coordinates : typing.Optional[OcpiGeoLocationIn]
|
|
134
|
+
|
|
135
|
+
directions : typing.Optional[typing.Sequence[OcpiDisplayText]]
|
|
136
|
+
|
|
137
|
+
parking_restrictions : typing.Optional[typing.Sequence[str]]
|
|
138
|
+
|
|
139
|
+
accepted_service_providers : typing.Optional[typing.Sequence[str]]
|
|
140
|
+
|
|
141
|
+
images : typing.Optional[typing.Sequence[OcpiImageInput]]
|
|
142
|
+
|
|
143
|
+
request_options : typing.Optional[RequestOptions]
|
|
144
|
+
Request-specific configuration.
|
|
145
|
+
|
|
146
|
+
Returns
|
|
147
|
+
-------
|
|
148
|
+
CpoEvseOut
|
|
149
|
+
The created object.
|
|
150
|
+
|
|
151
|
+
Examples
|
|
152
|
+
--------
|
|
153
|
+
from evcloud import EvcloudClient
|
|
154
|
+
|
|
155
|
+
client = EvcloudClient(
|
|
156
|
+
token="YOUR_TOKEN",
|
|
157
|
+
)
|
|
158
|
+
client.cpo.evses.create(
|
|
159
|
+
charge_point_id="CP-AMS-001",
|
|
160
|
+
evse_type_id=1,
|
|
161
|
+
evse_uid="NL*OCP*E1001*1",
|
|
162
|
+
evse_id="NL*OCP*E1001*1",
|
|
163
|
+
location_id="LOC-AMS-01",
|
|
164
|
+
capabilities=["RFID_READER", "REMOTE_START_STOP_CAPABLE"],
|
|
165
|
+
)
|
|
166
|
+
"""
|
|
167
|
+
_response = self._raw_client.create(
|
|
168
|
+
charge_point_id=charge_point_id,
|
|
169
|
+
evse_type_id=evse_type_id,
|
|
170
|
+
evse_uid=evse_uid,
|
|
171
|
+
evse_id=evse_id,
|
|
172
|
+
physical_reference=physical_reference,
|
|
173
|
+
location_id=location_id,
|
|
174
|
+
capabilities=capabilities,
|
|
175
|
+
floor_level=floor_level,
|
|
176
|
+
coordinates=coordinates,
|
|
177
|
+
directions=directions,
|
|
178
|
+
parking_restrictions=parking_restrictions,
|
|
179
|
+
accepted_service_providers=accepted_service_providers,
|
|
180
|
+
images=images,
|
|
181
|
+
request_options=request_options,
|
|
182
|
+
)
|
|
183
|
+
return _response.data
|
|
184
|
+
|
|
185
|
+
def get(self, id: int, *, request_options: typing.Optional[RequestOptions] = None) -> CpoEvseOut:
|
|
186
|
+
"""
|
|
187
|
+
One live EVSE by its ``id``.
|
|
188
|
+
|
|
189
|
+
Parameters
|
|
190
|
+
----------
|
|
191
|
+
id : int
|
|
192
|
+
The EVSE's ``id``.
|
|
193
|
+
|
|
194
|
+
request_options : typing.Optional[RequestOptions]
|
|
195
|
+
Request-specific configuration.
|
|
196
|
+
|
|
197
|
+
Returns
|
|
198
|
+
-------
|
|
199
|
+
CpoEvseOut
|
|
200
|
+
The requested object.
|
|
201
|
+
|
|
202
|
+
Examples
|
|
203
|
+
--------
|
|
204
|
+
from evcloud import EvcloudClient
|
|
205
|
+
|
|
206
|
+
client = EvcloudClient(
|
|
207
|
+
token="YOUR_TOKEN",
|
|
208
|
+
)
|
|
209
|
+
client.cpo.evses.get(
|
|
210
|
+
id=101,
|
|
211
|
+
)
|
|
212
|
+
"""
|
|
213
|
+
_response = self._raw_client.get(id, request_options=request_options)
|
|
214
|
+
return _response.data
|
|
215
|
+
|
|
216
|
+
def delete(self, id: int, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
|
217
|
+
"""
|
|
218
|
+
Removes the EVSE from reads and ends the tariff links on its connectors. Its id stays reserved.
|
|
219
|
+
|
|
220
|
+
Parameters
|
|
221
|
+
----------
|
|
222
|
+
id : int
|
|
223
|
+
The EVSE's ``id``.
|
|
224
|
+
|
|
225
|
+
request_options : typing.Optional[RequestOptions]
|
|
226
|
+
Request-specific configuration.
|
|
227
|
+
|
|
228
|
+
Returns
|
|
229
|
+
-------
|
|
230
|
+
None
|
|
231
|
+
|
|
232
|
+
Examples
|
|
233
|
+
--------
|
|
234
|
+
from evcloud import EvcloudClient
|
|
235
|
+
|
|
236
|
+
client = EvcloudClient(
|
|
237
|
+
token="YOUR_TOKEN",
|
|
238
|
+
)
|
|
239
|
+
client.cpo.evses.delete(
|
|
240
|
+
id=101,
|
|
241
|
+
)
|
|
242
|
+
"""
|
|
243
|
+
_response = self._raw_client.delete(id, request_options=request_options)
|
|
244
|
+
return _response.data
|
|
245
|
+
|
|
246
|
+
def update(
|
|
247
|
+
self,
|
|
248
|
+
id: int,
|
|
249
|
+
*,
|
|
250
|
+
expected_revision: typing.Optional[int] = OMIT,
|
|
251
|
+
evse_uid: typing.Optional[str] = OMIT,
|
|
252
|
+
evse_id: typing.Optional[str] = OMIT,
|
|
253
|
+
physical_reference: typing.Optional[str] = OMIT,
|
|
254
|
+
location_id: typing.Optional[str] = OMIT,
|
|
255
|
+
capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
256
|
+
floor_level: typing.Optional[str] = OMIT,
|
|
257
|
+
coordinates: typing.Optional[OcpiGeoLocationIn] = OMIT,
|
|
258
|
+
directions: typing.Optional[typing.Sequence[OcpiDisplayText]] = OMIT,
|
|
259
|
+
parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
260
|
+
accepted_service_providers: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
261
|
+
images: typing.Optional[typing.Sequence[OcpiImageInput]] = OMIT,
|
|
262
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
263
|
+
) -> CpoEvseOut:
|
|
264
|
+
"""
|
|
265
|
+
Changes only the fields sent; send null to clear a field. Guard it with ``expected_revision`` to avoid overwriting someone else's change.
|
|
266
|
+
|
|
267
|
+
Parameters
|
|
268
|
+
----------
|
|
269
|
+
id : int
|
|
270
|
+
The EVSE's ``id``.
|
|
271
|
+
|
|
272
|
+
expected_revision : typing.Optional[int]
|
|
273
|
+
|
|
274
|
+
evse_uid : typing.Optional[str]
|
|
275
|
+
|
|
276
|
+
evse_id : typing.Optional[str]
|
|
277
|
+
|
|
278
|
+
physical_reference : typing.Optional[str]
|
|
279
|
+
|
|
280
|
+
location_id : typing.Optional[str]
|
|
281
|
+
|
|
282
|
+
capabilities : typing.Optional[typing.Sequence[str]]
|
|
283
|
+
|
|
284
|
+
floor_level : typing.Optional[str]
|
|
285
|
+
|
|
286
|
+
coordinates : typing.Optional[OcpiGeoLocationIn]
|
|
287
|
+
|
|
288
|
+
directions : typing.Optional[typing.Sequence[OcpiDisplayText]]
|
|
289
|
+
|
|
290
|
+
parking_restrictions : typing.Optional[typing.Sequence[str]]
|
|
291
|
+
|
|
292
|
+
accepted_service_providers : typing.Optional[typing.Sequence[str]]
|
|
293
|
+
|
|
294
|
+
images : typing.Optional[typing.Sequence[OcpiImageInput]]
|
|
295
|
+
|
|
296
|
+
request_options : typing.Optional[RequestOptions]
|
|
297
|
+
Request-specific configuration.
|
|
298
|
+
|
|
299
|
+
Returns
|
|
300
|
+
-------
|
|
301
|
+
CpoEvseOut
|
|
302
|
+
The object after the update.
|
|
303
|
+
|
|
304
|
+
Examples
|
|
305
|
+
--------
|
|
306
|
+
from evcloud import EvcloudClient
|
|
307
|
+
|
|
308
|
+
client = EvcloudClient(
|
|
309
|
+
token="YOUR_TOKEN",
|
|
310
|
+
)
|
|
311
|
+
client.cpo.evses.update(
|
|
312
|
+
id=101,
|
|
313
|
+
floor_level="-1",
|
|
314
|
+
expected_revision=1,
|
|
315
|
+
)
|
|
316
|
+
"""
|
|
317
|
+
_response = self._raw_client.update(
|
|
318
|
+
id,
|
|
319
|
+
expected_revision=expected_revision,
|
|
320
|
+
evse_uid=evse_uid,
|
|
321
|
+
evse_id=evse_id,
|
|
322
|
+
physical_reference=physical_reference,
|
|
323
|
+
location_id=location_id,
|
|
324
|
+
capabilities=capabilities,
|
|
325
|
+
floor_level=floor_level,
|
|
326
|
+
coordinates=coordinates,
|
|
327
|
+
directions=directions,
|
|
328
|
+
parking_restrictions=parking_restrictions,
|
|
329
|
+
accepted_service_providers=accepted_service_providers,
|
|
330
|
+
images=images,
|
|
331
|
+
request_options=request_options,
|
|
332
|
+
)
|
|
333
|
+
return _response.data
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
class AsyncEvsesClient:
|
|
337
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
338
|
+
self._raw_client = AsyncRawEvsesClient(client_wrapper=client_wrapper)
|
|
339
|
+
|
|
340
|
+
@property
|
|
341
|
+
def with_raw_response(self) -> AsyncRawEvsesClient:
|
|
342
|
+
"""
|
|
343
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
344
|
+
|
|
345
|
+
Returns
|
|
346
|
+
-------
|
|
347
|
+
AsyncRawEvsesClient
|
|
348
|
+
"""
|
|
349
|
+
return self._raw_client
|
|
350
|
+
|
|
351
|
+
async def list(
|
|
352
|
+
self,
|
|
353
|
+
*,
|
|
354
|
+
location_db_id: typing.Optional[int] = None,
|
|
355
|
+
charge_point_id: typing.Optional[str] = None,
|
|
356
|
+
offset: typing.Optional[int] = None,
|
|
357
|
+
limit: typing.Optional[int] = None,
|
|
358
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
359
|
+
) -> AsyncPager[CpoEvseOut, EvsePage]:
|
|
360
|
+
"""
|
|
361
|
+
Your live EVSEs, newest first, optionally of one location or charger.
|
|
362
|
+
|
|
363
|
+
Parameters
|
|
364
|
+
----------
|
|
365
|
+
location_db_id : typing.Optional[int]
|
|
366
|
+
Only this location, by its numeric ``id`` (not its OCPI location id).
|
|
367
|
+
|
|
368
|
+
charge_point_id : typing.Optional[str]
|
|
369
|
+
Only this charger (its OCPP identity).
|
|
370
|
+
|
|
371
|
+
offset : typing.Optional[int]
|
|
372
|
+
Rows to skip. Pass the previous page's ``next_offset`` to continue.
|
|
373
|
+
|
|
374
|
+
limit : typing.Optional[int]
|
|
375
|
+
Maximum rows per page (default 50, max 200).
|
|
376
|
+
|
|
377
|
+
request_options : typing.Optional[RequestOptions]
|
|
378
|
+
Request-specific configuration.
|
|
379
|
+
|
|
380
|
+
Returns
|
|
381
|
+
-------
|
|
382
|
+
AsyncPager[CpoEvseOut, EvsePage]
|
|
383
|
+
One page of results; ``next_offset`` is null on the last page.
|
|
384
|
+
|
|
385
|
+
Examples
|
|
386
|
+
--------
|
|
387
|
+
import asyncio
|
|
388
|
+
|
|
389
|
+
from evcloud import AsyncEvcloudClient
|
|
390
|
+
|
|
391
|
+
client = AsyncEvcloudClient(
|
|
392
|
+
token="YOUR_TOKEN",
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
async def main() -> None:
|
|
397
|
+
response = await client.cpo.evses.list(
|
|
398
|
+
charge_point_id="CP-AMS-001",
|
|
399
|
+
limit=50,
|
|
400
|
+
offset=0,
|
|
401
|
+
)
|
|
402
|
+
async for item in response:
|
|
403
|
+
yield item
|
|
404
|
+
|
|
405
|
+
# alternatively, you can paginate page-by-page
|
|
406
|
+
async for page in response.iter_pages():
|
|
407
|
+
yield page
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
asyncio.run(main())
|
|
411
|
+
"""
|
|
412
|
+
return await self._raw_client.list(
|
|
413
|
+
location_db_id=location_db_id,
|
|
414
|
+
charge_point_id=charge_point_id,
|
|
415
|
+
offset=offset,
|
|
416
|
+
limit=limit,
|
|
417
|
+
request_options=request_options,
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
async def create(
|
|
421
|
+
self,
|
|
422
|
+
*,
|
|
423
|
+
charge_point_id: str,
|
|
424
|
+
evse_type_id: int,
|
|
425
|
+
evse_uid: typing.Optional[str] = OMIT,
|
|
426
|
+
evse_id: typing.Optional[str] = OMIT,
|
|
427
|
+
physical_reference: typing.Optional[str] = OMIT,
|
|
428
|
+
location_id: typing.Optional[str] = OMIT,
|
|
429
|
+
capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
430
|
+
floor_level: typing.Optional[str] = OMIT,
|
|
431
|
+
coordinates: typing.Optional[OcpiGeoLocationIn] = OMIT,
|
|
432
|
+
directions: typing.Optional[typing.Sequence[OcpiDisplayText]] = OMIT,
|
|
433
|
+
parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
434
|
+
accepted_service_providers: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
435
|
+
images: typing.Optional[typing.Sequence[OcpiImageInput]] = OMIT,
|
|
436
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
437
|
+
) -> CpoEvseOut:
|
|
438
|
+
"""
|
|
439
|
+
Adds an EVSE to one of your chargers. Set ``location_id`` and ``evse_uid`` so its connectors can be priced and roaming commands reach it.
|
|
440
|
+
|
|
441
|
+
Parameters
|
|
442
|
+
----------
|
|
443
|
+
charge_point_id : str
|
|
444
|
+
|
|
445
|
+
evse_type_id : int
|
|
446
|
+
|
|
447
|
+
evse_uid : typing.Optional[str]
|
|
448
|
+
|
|
449
|
+
evse_id : typing.Optional[str]
|
|
450
|
+
|
|
451
|
+
physical_reference : typing.Optional[str]
|
|
452
|
+
|
|
453
|
+
location_id : typing.Optional[str]
|
|
454
|
+
|
|
455
|
+
capabilities : typing.Optional[typing.Sequence[str]]
|
|
456
|
+
|
|
457
|
+
floor_level : typing.Optional[str]
|
|
458
|
+
|
|
459
|
+
coordinates : typing.Optional[OcpiGeoLocationIn]
|
|
460
|
+
|
|
461
|
+
directions : typing.Optional[typing.Sequence[OcpiDisplayText]]
|
|
462
|
+
|
|
463
|
+
parking_restrictions : typing.Optional[typing.Sequence[str]]
|
|
464
|
+
|
|
465
|
+
accepted_service_providers : typing.Optional[typing.Sequence[str]]
|
|
466
|
+
|
|
467
|
+
images : typing.Optional[typing.Sequence[OcpiImageInput]]
|
|
468
|
+
|
|
469
|
+
request_options : typing.Optional[RequestOptions]
|
|
470
|
+
Request-specific configuration.
|
|
471
|
+
|
|
472
|
+
Returns
|
|
473
|
+
-------
|
|
474
|
+
CpoEvseOut
|
|
475
|
+
The created object.
|
|
476
|
+
|
|
477
|
+
Examples
|
|
478
|
+
--------
|
|
479
|
+
import asyncio
|
|
480
|
+
|
|
481
|
+
from evcloud import AsyncEvcloudClient
|
|
482
|
+
|
|
483
|
+
client = AsyncEvcloudClient(
|
|
484
|
+
token="YOUR_TOKEN",
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
async def main() -> None:
|
|
489
|
+
await client.cpo.evses.create(
|
|
490
|
+
charge_point_id="CP-AMS-001",
|
|
491
|
+
evse_type_id=1,
|
|
492
|
+
evse_uid="NL*OCP*E1001*1",
|
|
493
|
+
evse_id="NL*OCP*E1001*1",
|
|
494
|
+
location_id="LOC-AMS-01",
|
|
495
|
+
capabilities=["RFID_READER", "REMOTE_START_STOP_CAPABLE"],
|
|
496
|
+
)
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
asyncio.run(main())
|
|
500
|
+
"""
|
|
501
|
+
_response = await self._raw_client.create(
|
|
502
|
+
charge_point_id=charge_point_id,
|
|
503
|
+
evse_type_id=evse_type_id,
|
|
504
|
+
evse_uid=evse_uid,
|
|
505
|
+
evse_id=evse_id,
|
|
506
|
+
physical_reference=physical_reference,
|
|
507
|
+
location_id=location_id,
|
|
508
|
+
capabilities=capabilities,
|
|
509
|
+
floor_level=floor_level,
|
|
510
|
+
coordinates=coordinates,
|
|
511
|
+
directions=directions,
|
|
512
|
+
parking_restrictions=parking_restrictions,
|
|
513
|
+
accepted_service_providers=accepted_service_providers,
|
|
514
|
+
images=images,
|
|
515
|
+
request_options=request_options,
|
|
516
|
+
)
|
|
517
|
+
return _response.data
|
|
518
|
+
|
|
519
|
+
async def get(self, id: int, *, request_options: typing.Optional[RequestOptions] = None) -> CpoEvseOut:
|
|
520
|
+
"""
|
|
521
|
+
One live EVSE by its ``id``.
|
|
522
|
+
|
|
523
|
+
Parameters
|
|
524
|
+
----------
|
|
525
|
+
id : int
|
|
526
|
+
The EVSE's ``id``.
|
|
527
|
+
|
|
528
|
+
request_options : typing.Optional[RequestOptions]
|
|
529
|
+
Request-specific configuration.
|
|
530
|
+
|
|
531
|
+
Returns
|
|
532
|
+
-------
|
|
533
|
+
CpoEvseOut
|
|
534
|
+
The requested object.
|
|
535
|
+
|
|
536
|
+
Examples
|
|
537
|
+
--------
|
|
538
|
+
import asyncio
|
|
539
|
+
|
|
540
|
+
from evcloud import AsyncEvcloudClient
|
|
541
|
+
|
|
542
|
+
client = AsyncEvcloudClient(
|
|
543
|
+
token="YOUR_TOKEN",
|
|
544
|
+
)
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
async def main() -> None:
|
|
548
|
+
await client.cpo.evses.get(
|
|
549
|
+
id=101,
|
|
550
|
+
)
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
asyncio.run(main())
|
|
554
|
+
"""
|
|
555
|
+
_response = await self._raw_client.get(id, request_options=request_options)
|
|
556
|
+
return _response.data
|
|
557
|
+
|
|
558
|
+
async def delete(self, id: int, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
|
559
|
+
"""
|
|
560
|
+
Removes the EVSE from reads and ends the tariff links on its connectors. Its id stays reserved.
|
|
561
|
+
|
|
562
|
+
Parameters
|
|
563
|
+
----------
|
|
564
|
+
id : int
|
|
565
|
+
The EVSE's ``id``.
|
|
566
|
+
|
|
567
|
+
request_options : typing.Optional[RequestOptions]
|
|
568
|
+
Request-specific configuration.
|
|
569
|
+
|
|
570
|
+
Returns
|
|
571
|
+
-------
|
|
572
|
+
None
|
|
573
|
+
|
|
574
|
+
Examples
|
|
575
|
+
--------
|
|
576
|
+
import asyncio
|
|
577
|
+
|
|
578
|
+
from evcloud import AsyncEvcloudClient
|
|
579
|
+
|
|
580
|
+
client = AsyncEvcloudClient(
|
|
581
|
+
token="YOUR_TOKEN",
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
async def main() -> None:
|
|
586
|
+
await client.cpo.evses.delete(
|
|
587
|
+
id=101,
|
|
588
|
+
)
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
asyncio.run(main())
|
|
592
|
+
"""
|
|
593
|
+
_response = await self._raw_client.delete(id, request_options=request_options)
|
|
594
|
+
return _response.data
|
|
595
|
+
|
|
596
|
+
async def update(
|
|
597
|
+
self,
|
|
598
|
+
id: int,
|
|
599
|
+
*,
|
|
600
|
+
expected_revision: typing.Optional[int] = OMIT,
|
|
601
|
+
evse_uid: typing.Optional[str] = OMIT,
|
|
602
|
+
evse_id: typing.Optional[str] = OMIT,
|
|
603
|
+
physical_reference: typing.Optional[str] = OMIT,
|
|
604
|
+
location_id: typing.Optional[str] = OMIT,
|
|
605
|
+
capabilities: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
606
|
+
floor_level: typing.Optional[str] = OMIT,
|
|
607
|
+
coordinates: typing.Optional[OcpiGeoLocationIn] = OMIT,
|
|
608
|
+
directions: typing.Optional[typing.Sequence[OcpiDisplayText]] = OMIT,
|
|
609
|
+
parking_restrictions: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
610
|
+
accepted_service_providers: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
611
|
+
images: typing.Optional[typing.Sequence[OcpiImageInput]] = OMIT,
|
|
612
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
613
|
+
) -> CpoEvseOut:
|
|
614
|
+
"""
|
|
615
|
+
Changes only the fields sent; send null to clear a field. Guard it with ``expected_revision`` to avoid overwriting someone else's change.
|
|
616
|
+
|
|
617
|
+
Parameters
|
|
618
|
+
----------
|
|
619
|
+
id : int
|
|
620
|
+
The EVSE's ``id``.
|
|
621
|
+
|
|
622
|
+
expected_revision : typing.Optional[int]
|
|
623
|
+
|
|
624
|
+
evse_uid : typing.Optional[str]
|
|
625
|
+
|
|
626
|
+
evse_id : typing.Optional[str]
|
|
627
|
+
|
|
628
|
+
physical_reference : typing.Optional[str]
|
|
629
|
+
|
|
630
|
+
location_id : typing.Optional[str]
|
|
631
|
+
|
|
632
|
+
capabilities : typing.Optional[typing.Sequence[str]]
|
|
633
|
+
|
|
634
|
+
floor_level : typing.Optional[str]
|
|
635
|
+
|
|
636
|
+
coordinates : typing.Optional[OcpiGeoLocationIn]
|
|
637
|
+
|
|
638
|
+
directions : typing.Optional[typing.Sequence[OcpiDisplayText]]
|
|
639
|
+
|
|
640
|
+
parking_restrictions : typing.Optional[typing.Sequence[str]]
|
|
641
|
+
|
|
642
|
+
accepted_service_providers : typing.Optional[typing.Sequence[str]]
|
|
643
|
+
|
|
644
|
+
images : typing.Optional[typing.Sequence[OcpiImageInput]]
|
|
645
|
+
|
|
646
|
+
request_options : typing.Optional[RequestOptions]
|
|
647
|
+
Request-specific configuration.
|
|
648
|
+
|
|
649
|
+
Returns
|
|
650
|
+
-------
|
|
651
|
+
CpoEvseOut
|
|
652
|
+
The object after the update.
|
|
653
|
+
|
|
654
|
+
Examples
|
|
655
|
+
--------
|
|
656
|
+
import asyncio
|
|
657
|
+
|
|
658
|
+
from evcloud import AsyncEvcloudClient
|
|
659
|
+
|
|
660
|
+
client = AsyncEvcloudClient(
|
|
661
|
+
token="YOUR_TOKEN",
|
|
662
|
+
)
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
async def main() -> None:
|
|
666
|
+
await client.cpo.evses.update(
|
|
667
|
+
id=101,
|
|
668
|
+
floor_level="-1",
|
|
669
|
+
expected_revision=1,
|
|
670
|
+
)
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
asyncio.run(main())
|
|
674
|
+
"""
|
|
675
|
+
_response = await self._raw_client.update(
|
|
676
|
+
id,
|
|
677
|
+
expected_revision=expected_revision,
|
|
678
|
+
evse_uid=evse_uid,
|
|
679
|
+
evse_id=evse_id,
|
|
680
|
+
physical_reference=physical_reference,
|
|
681
|
+
location_id=location_id,
|
|
682
|
+
capabilities=capabilities,
|
|
683
|
+
floor_level=floor_level,
|
|
684
|
+
coordinates=coordinates,
|
|
685
|
+
directions=directions,
|
|
686
|
+
parking_restrictions=parking_restrictions,
|
|
687
|
+
accepted_service_providers=accepted_service_providers,
|
|
688
|
+
images=images,
|
|
689
|
+
request_options=request_options,
|
|
690
|
+
)
|
|
691
|
+
return _response.data
|