sgr_commhandler.driver.rest.restapi_interface_async =================================================== .. py:module:: sgr_commhandler.driver.rest.restapi_interface_async .. autoapi-nested-parse:: Provides the HTTP/REST interface implementation. Attributes ---------- .. autoapisummary:: sgr_commhandler.driver.rest.restapi_interface_async.logger Classes ------- .. autoapisummary:: sgr_commhandler.driver.rest.restapi_interface_async.RestDataPoint sgr_commhandler.driver.rest.restapi_interface_async.RestFunctionalProfile sgr_commhandler.driver.rest.restapi_interface_async.SGrRestInterface Functions --------- .. autoapisummary:: sgr_commhandler.driver.rest.restapi_interface_async.build_rest_data_point Module Contents --------------- .. py:data:: logger .. py:function:: build_rest_data_point(data_point, functional_profile, interface) .. py:class:: RestDataPoint(dp_spec, fp_spec, interface) Bases: :py:obj:`sgr_commhandler.api.data_point_api.DataPointProtocol`\ [\ :py:obj:`sgr_specification.v0.product.RestApiFunctionalProfile`\ , :py:obj:`sgr_specification.v0.product.RestApiDataPoint`\ ] Implements a data point of a REST API interface. .. py:attribute:: _read_call :type: sgr_specification.v0.product.rest_api_types.RestApiServiceCall .. py:attribute:: _write_call :type: sgr_specification.v0.product.rest_api_types.RestApiServiceCall .. py:attribute:: _interface .. py:method:: get_val(parameters = None, skip_cache = False) :async: .. py:method:: set_val(value) :async: .. py:class:: RestFunctionalProfile(fp_spec, interface) Bases: :py:obj:`sgr_commhandler.api.functional_profile_api.FunctionalProfile`\ [\ :py:obj:`sgr_specification.v0.product.RestApiFunctionalProfile`\ ] Implements a functional profile of a REST API interface. .. py:attribute:: _interface .. py:attribute:: _data_points .. py:method:: get_data_points() .. py:class:: SGrRestInterface(frame) Bases: :py:obj:`sgr_commhandler.api.device_api.SGrBaseInterface` Implements a REST API device interface. .. py:attribute:: _session :value: None .. py:attribute:: _cache .. py:attribute:: base_url .. py:attribute:: functional_profiles .. py:method:: is_connected() .. py:method:: disconnect_async() :async: .. py:method:: connect_async() :async: .. py:method:: authenticate() :async: .. py:method:: execute_request(request, skip_cache) :async: