tmp/src/things/things.py
def deleteEvent(self, physicalInterfaceId, eventId):
        """
        Delete an event mapping from a physical interface.
        Parameters: physicalInterfaceId (string), eventId (string).
        Throws APIException on failure.
        """
        req = ApiClient.oneEventUrl % (self.host, "/draft", physicalInterfaceId, eventId)
        resp = requests.delete(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 204:
            self.logger.debug("Event mapping deleted")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error deleting event mapping", resp)
        return resp
def deleteEvent(self, physicalInterfaceId, eventId):
        """
        Delete an event mapping from a physical interface.
        Parameters: physicalInterfaceId (string), eventId (string).
        Throws APIException on failure.
        """
        req = ApiClient.oneEventUrl % (self.host, "/draft", physicalInterfaceId, eventId)
        resp = requests.delete(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 204:
            self.logger.debug("Event mapping deleted")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error deleting event mapping", resp)
        return resp
Delete an event mapping from a physical interface.
        Parameters: physicalInterfaceId (string), eventId (string).
        Throws APIException on failure.