tmp/src/things/things.py
def getLogicalInterfacesOnThingType(self, thingTypeId, draft=False):
        """
        Get all logical interfaces for a thing type.
        Parameters:
          - thingTypeId (string)
          - draft (boolean)
        Returns:
            - list of logical interface ids
            - HTTP response object
        Throws APIException on failure.
        """
        if draft:
            req = ApiClient.allThingTypeLogicalInterfacesUrl % (self.host, "/draft", thingTypeId)
        else:
            req = ApiClient.allThingTypeLogicalInterfacesUrl % (self.host, "", thingTypeId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("All thing type logical interfaces retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting all thing type logical interfaces", resp)
        return [appintf["id"] for appintf in resp.json()], resp.json()
def getLogicalInterfacesOnThingType(self, thingTypeId, draft=False):
        """
        Get all logical interfaces for a thing type.
        Parameters:
          - thingTypeId (string)
          - draft (boolean)
        Returns:
            - list of logical interface ids
            - HTTP response object
        Throws APIException on failure.
        """
        if draft:
            req = ApiClient.allThingTypeLogicalInterfacesUrl % (self.host, "/draft", thingTypeId)
        else:
            req = ApiClient.allThingTypeLogicalInterfacesUrl % (self.host, "", thingTypeId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("All thing type logical interfaces retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting all thing type logical interfaces", resp)
        return [appintf["id"] for appintf in resp.json()], resp.json()
Get all logical interfaces for a thing type.
        Parameters:
          - thingTypeId (string)
          - draft (boolean)
        Returns:
            - list of logical interface ids
            - HTTP response object
        Throws APIException on failure.