tmp/src/things/things.py
def getThingStateForLogicalInterface(self, thingTypeId, thingId, logicalInterfaceId):
        """
        Gets the state for a logical interface for a thing.
        Parameters:
            - thingTypeId (string) - the platform thing type
            - thingId (string) - the platform thing id
            - logicalInterfaceId (string) - the platform returned id of the logical interface
        Throws APIException on failure.
        """
        req = ApiClient.thingStateUrl % (self.host, thingTypeId, thingId, logicalInterfaceId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("State retrieved from the thing type for a logical interface")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting state for a logical interface from a thing type", resp)
        return resp.json()
def getThingStateForLogicalInterface(self, thingTypeId, thingId, logicalInterfaceId):
        """
        Gets the state for a logical interface for a thing.
        Parameters:
            - thingTypeId (string) - the platform thing type
            - thingId (string) - the platform thing id
            - logicalInterfaceId (string) - the platform returned id of the logical interface
        Throws APIException on failure.
        """
        req = ApiClient.thingStateUrl % (self.host, thingTypeId, thingId, logicalInterfaceId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("State retrieved from the thing type for a logical interface")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting state for a logical interface from a thing type", resp)
        return resp.json()
def getThingStateForLogicalInterface ( self , thingTypeId , thingId , logicalInterfaceId ) : req = ApiClient . thingStateUrl % ( self . host , thingTypeId , thingId , logicalInterfaceId ) resp = requests . get ( req , auth = self . credentials , verify = self . verify ) if resp . status_code == 200 : self . logger . debug ( "State retrieved from the thing type for a logical interface" ) else : raise ibmiotf . APIException ( resp . status_code , "HTTP error getting state for a logical interface from a thing type" , resp ) return resp . json ( )
Gets the state for a logical interface for a thing.
        Parameters:
            - thingTypeId (string) - the platform thing type
            - thingId (string) - the platform thing id
            - logicalInterfaceId (string) - the platform returned id of the logical interface
        Throws APIException on failure.
Gets the state for a logical interface for a thing . Parameters : - thingTypeId ( string ) - the platform thing type - thingId ( string ) - the platform thing id - logicalInterfaceId ( string ) - the platform returned id of the logical interface Throws APIException on failure .