tmp/src/things/things.py
def getMappingsOnDeviceTypeForLogicalInterface(self, typeId, logicalInterfaceId, draft=False):
        """
        Gets the mappings for a logical interface from a device type.
        Parameters:
            - typeId (string) - the device type
            - logicalInterfaceId (string) - the platform returned id of the logical interface
        Throws APIException on failure.
        """
        if draft:
            req = ApiClient.oneDeviceTypeMappingUrl % (self.host, "/draft", typeId, logicalInterfaceId)
        else:
            req = ApiClient.oneDeviceTypeMappingUrl % (self.host, "", typeId, logicalInterfaceId)

        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("Mappings retrieved from the device type")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting mappings for a logical interface from a device type", resp)
        return resp.json()
def getMappingsOnDeviceTypeForLogicalInterface(self, typeId, logicalInterfaceId, draft=False):
        """
        Gets the mappings for a logical interface from a device type.
        Parameters:
            - typeId (string) - the device type
            - logicalInterfaceId (string) - the platform returned id of the logical interface
        Throws APIException on failure.
        """
        if draft:
            req = ApiClient.oneDeviceTypeMappingUrl % (self.host, "/draft", typeId, logicalInterfaceId)
        else:
            req = ApiClient.oneDeviceTypeMappingUrl % (self.host, "", typeId, logicalInterfaceId)

        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("Mappings retrieved from the device type")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting mappings for a logical interface from a device type", resp)
        return resp.json()
def getMappingsOnDeviceTypeForLogicalInterface ( self , typeId , logicalInterfaceId , draft = False ) : if draft : req = ApiClient . oneDeviceTypeMappingUrl % ( self . host , "/draft" , typeId , logicalInterfaceId ) else : req = ApiClient . oneDeviceTypeMappingUrl % ( self . host , "" , typeId , logicalInterfaceId ) resp = requests . get ( req , auth = self . credentials , verify = self . verify ) if resp . status_code == 200 : self . logger . debug ( "Mappings retrieved from the device type" ) else : raise ibmiotf . APIException ( resp . status_code , "HTTP error getting mappings for a logical interface from a device type" , resp ) return resp . json ( )
Gets the mappings for a logical interface from a device type.
        Parameters:
            - typeId (string) - the device type
            - logicalInterfaceId (string) - the platform returned id of the logical interface
        Throws APIException on failure.
Gets the mappings for a logical interface from a device type . Parameters : - typeId ( string ) - the device type - logicalInterfaceId ( string ) - the platform returned id of the logical interface Throws APIException on failure .