"""This client implements the BaseOranClient and translate CAMARA apis (see https://github.com/camaraproject/DeviceReachabilityStatus/blob/r1.2/code/API_definitions/device-reachability-status-subscriptions.yaml) to Accelleran r/xApp APIs"""
"""Helper function to load the details of the energy footprint notification subscription from a dictionary. This is useful for testing purposes, as it allows to easily create a subscription request from a dictionary."""
try:
device:Device=self._get_device_from_config(
config
)# There may be different types of Device Identifiers
Implements POST for energy footprint notification request in path is /calculate-carbon-footprint creates ReportCreationRequest (service{array}, timeperiod:optional, subscriptionRequest, subscriptionID:optional), either returns json response or status code as string
description="start date is required, ending is optional. It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) including timezone",
)
subscription_request:SubscriptionRequest
request_id:Optional[str]=Field(
None,description="Request Identifier. Returned by the API, used to update it"