tmp/src/things/things.py
def updateSchemaContent(self, schemaId, schemaFile):
        """
        Updates the content for a schema.  Parameters: schemaId (string). Throws APIException on failure.
        """
        req = ApiClient.oneSchemaContentUrl % (self.host, "/draft", schemaId)
        body = {"schemaFile": schemaFile}
        resp = requests.put(req, auth=self.credentials, headers={"Content-Type":"application/json"},
                           data=json.dumps(body),  verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("Schema content updated")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error updating schema content", resp)
        return resp.json()
def updateSchemaContent(self, schemaId, schemaFile):
        """
        Updates the content for a schema.  Parameters: schemaId (string). Throws APIException on failure.
        """
        req = ApiClient.oneSchemaContentUrl % (self.host, "/draft", schemaId)
        body = {"schemaFile": schemaFile}
        resp = requests.put(req, auth=self.credentials, headers={"Content-Type":"application/json"},
                           data=json.dumps(body),  verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("Schema content updated")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error updating schema content", resp)
        return resp.json()
def updateSchemaContent ( self , schemaId , schemaFile ) : req = ApiClient . oneSchemaContentUrl % ( self . host , "/draft" , schemaId ) body = { "schemaFile" : schemaFile } resp = requests . put ( req , auth = self . credentials , headers = { "Content-Type" : "application/json" } , data = json . dumps ( body ) , verify = self . verify ) if resp . status_code == 200 : self . logger . debug ( "Schema content updated" ) else : raise ibmiotf . APIException ( resp . status_code , "HTTP error updating schema content" , resp ) return resp . json ( )
Updates the content for a schema.  Parameters: schemaId (string). Throws APIException on failure.
Updates the content for a schema . Parameters : schemaId ( string ) . Throws APIException on failure .