hemlock_rest/hemlock_rest.py
def GET(self, uuid):
        """
        Performs the get actions of the API.

        :param uuid: the uuid of the item to get
        :return: returns the result of the action
        """
        cmd = ""
        try:
            if "role" in self.fullpath:
                cmd = "hemlock role-get --uuid "+uuid
            elif "schedule_server" in self.fullpath:
                cmd = "hemlock schedule-server-get --uuid "+uuid
            elif "system" in self.fullpath:
                cmd = "hemlock system-get --uuid "+uuid
            elif "tenant" in self.fullpath:
                cmd = "hemlock tenant-get --uuid "+uuid
            elif "user" in self.fullpath:
                cmd = "hemlock user-get --uuid "+uuid
            elif "client" in self.fullpath:
                cmd = "hemlock client-get --uuid "+uuid
            elif "schedule" in self.fullpath:
                cmd = "hemlock schedule-get --uuid "+uuid
        except:
            print "failure"
        return os.popen(cmd).read()

        Performs the get actions of the API.

        :param uuid: the uuid of the item to get
        :return: returns the result of the action
        
Performs the get actions of the API.
Performs the get actions of the API .
def GET(self, uuid):
        cmd = ""
        try:
            if "role" in self.fullpath:
                cmd = "hemlock role-get --uuid "+uuid
            elif "schedule_server" in self.fullpath:
                cmd = "hemlock schedule-server-get --uuid "+uuid
            elif "system" in self.fullpath:
                cmd = "hemlock system-get --uuid "+uuid
            elif "tenant" in self.fullpath:
                cmd = "hemlock tenant-get --uuid "+uuid
            elif "user" in self.fullpath:
                cmd = "hemlock user-get --uuid "+uuid
            elif "client" in self.fullpath:
                cmd = "hemlock client-get --uuid "+uuid
            elif "schedule" in self.fullpath:
                cmd = "hemlock schedule-get --uuid "+uuid
        except:
            print "failure"
        return os.popen(cmd).read()
def GET ( self , uuid ) : cmd = "" try : if "role" in self . fullpath : cmd = "hemlock role-get --uuid " + uuid elif "schedule_server" in self . fullpath : cmd = "hemlock schedule-server-get --uuid " + uuid elif "system" in self . fullpath : cmd = "hemlock system-get --uuid " + uuid elif "tenant" in self . fullpath : cmd = "hemlock tenant-get --uuid " + uuid elif "user" in self . fullpath : cmd = "hemlock user-get --uuid " + uuid elif "client" in self . fullpath : cmd = "hemlock client-get --uuid " + uuid elif "schedule" in self . fullpath : cmd = "hemlock schedule-get --uuid " + uuid except : print "failure" return os . popen ( cmd ) . read ( )
Performs the get actions of the API.
Performs the get actions of the API .
"""
        Performs the get actions of the API.

        :param uuid: the uuid of the item to get
        :return: returns the result of the action
        """
returns the result of the action
returns the result of the action
self
uuid
the uuid of the item to get
the uuid of the item to get