tmp/src/things/things.py
def resetThingStateForLogicalInterface(self, thingTypeId, thingId , logicalInterfaceId):
        """
        Perform an operation against the thing state for a logical interface
        Parameters:
           - thingTypeId (string)
           - thingId (string)
           - logicalInterfaceId (string)
        Throws APIException on failure.
        """
        req = ApiClient.thingStateUrl % (self.host, "", thingTypeId,thingId , logicalInterfaceId)
        body = {"operation" : "reset-state"}
        resp = requests.patch(req, auth=self.credentials, headers={"Content-Type":"application/json"}, data=json.dumps(body),
               verify=self.verify)
        if (resp.status_code == 200):
            self.logger.debug("Reset ThingState For LogicalInterface succeeded")
        else:
            raise ibmiotf.APIException(resp.status_code, " HTTP error on reset ThingState For LogicalInterface ", resp)
        return resp.json()
def resetThingStateForLogicalInterface(self, thingTypeId, thingId , logicalInterfaceId):
        """
        Perform an operation against the thing state for a logical interface
        Parameters:
           - thingTypeId (string)
           - thingId (string)
           - logicalInterfaceId (string)
        Throws APIException on failure.
        """
        req = ApiClient.thingStateUrl % (self.host, "", thingTypeId,thingId , logicalInterfaceId)
        body = {"operation" : "reset-state"}
        resp = requests.patch(req, auth=self.credentials, headers={"Content-Type":"application/json"}, data=json.dumps(body),
               verify=self.verify)
        if (resp.status_code == 200):
            self.logger.debug("Reset ThingState For LogicalInterface succeeded")
        else:
            raise ibmiotf.APIException(resp.status_code, " HTTP error on reset ThingState For LogicalInterface ", resp)
        return resp.json()
Perform an operation against the thing state for a logical interface
        Parameters:
           - thingTypeId (string)
           - thingId (string)
           - logicalInterfaceId (string)
        Throws APIException on failure.