def DeleteTemplate(name, scope): dataHandler = DataHandler() ret = None try: ret = dataHandler.DeleteTemplate(name, scope) finally: dataHandler.Close() return ret
def GetTemplates(scope): dataHandler = DataHandler() ret = [] try: ret = dataHandler.GetTemplates(scope) finally: dataHandler.Close() return ret
def UpdateTemplate(name, scope, json): dataHandler = DataHandler() ret = None try: ret = dataHandler.UpdateTemplate(name, scope, json) finally: dataHandler.Close() return ret
def GetAllPendingJobs(vcName): dataHandler = DataHandler() ret = None try: ret = dataHandler.GetJobList("all",vcName,None, "running,queued,scheduling,unapproved,pausing,paused", ("=","or")) finally: dataHandler.Close() return ret
def GetIdentityInfo(identityName): dataHandler = DataHandler() ret = None try: ret = dataHandler.GetIdentityInfo(identityName) finally: dataHandler.Close() return ret
def GetResourceAcl(resourceAclPath): dataHandler = DataHandler() ret = None try: ret = dataHandler.GetResourceAcl(resourceAclPath) finally: dataHandler.Close() return ret
def ListVCs(): dataHandler = DataHandler() ret = None try: ret = dataHandler.ListVCs() finally: dataHandler.Close() return ret
def GetClusterStatus(): dataHandler = DataHandler() ret = None try: ret = dataHandler.GetClusterStatus() finally: dataHandler.Close() return ret