tmp/src/things/things.py
def getEventType(self, eventTypeId, draft=False):
        """
        Gets an event type.  Parameters: eventTypeId (string), draft (boolean).  Throws APIException on failure.
        """
        if draft:
            req = ApiClient.oneEventTypeUrl % (self.host, "/draft", eventTypeId)
        else:
            req = ApiClient.oneEventTypeUrl % (self.host, "", eventTypeId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("event type retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting an event type", resp)
        return resp.json()
def getEventType(self, eventTypeId, draft=False):
        """
        Gets an event type.  Parameters: eventTypeId (string), draft (boolean).  Throws APIException on failure.
        """
        if draft:
            req = ApiClient.oneEventTypeUrl % (self.host, "/draft", eventTypeId)
        else:
            req = ApiClient.oneEventTypeUrl % (self.host, "", eventTypeId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("event type retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting an event type", resp)
        return resp.json()
def getEventType ( self , eventTypeId , draft = False ) : if draft : req = ApiClient . oneEventTypeUrl % ( self . host , "/draft" , eventTypeId ) else : req = ApiClient . oneEventTypeUrl % ( self . host , "" , eventTypeId ) resp = requests . get ( req , auth = self . credentials , verify = self . verify ) if resp . status_code == 200 : self . logger . debug ( "event type retrieved" ) else : raise ibmiotf . APIException ( resp . status_code , "HTTP error getting an event type" , resp ) return resp . json ( )
Gets an event type.  Parameters: eventTypeId (string), draft (boolean).  Throws APIException on failure.
Gets an event type . Parameters : eventTypeId ( string ) draft ( boolean ) . Throws APIException on failure .