Beispiel #1
0
 def DeleteTemplate(name, scope):
     dataHandler = DataHandler()
     ret = None
     try:
         ret = dataHandler.DeleteTemplate(name, scope)
     finally:
         dataHandler.Close()
     return ret
Beispiel #2
0
 def GetTemplates(scope):
     dataHandler = DataHandler()
     ret = []
     try:
         ret = dataHandler.GetTemplates(scope)
     finally:
         dataHandler.Close()
     return ret
Beispiel #3
0
 def UpdateTemplate(name, scope, json):
     dataHandler = DataHandler()
     ret = None
     try:
         ret = dataHandler.UpdateTemplate(name, scope, json)
     finally:
         dataHandler.Close()
     return ret
Beispiel #4
0
 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
Beispiel #5
0
 def GetIdentityInfo(identityName):
     dataHandler = DataHandler()
     ret = None
     try:
         ret = dataHandler.GetIdentityInfo(identityName)
     finally:
         dataHandler.Close()
     return ret
Beispiel #6
0
 def GetResourceAcl(resourceAclPath):
     dataHandler = DataHandler()
     ret = None
     try:
         ret = dataHandler.GetResourceAcl(resourceAclPath)
     finally:
         dataHandler.Close()
     return ret
Beispiel #7
0
 def ListVCs():
     dataHandler = DataHandler()
     ret = None
     try:
         ret = dataHandler.ListVCs()
     finally:
         dataHandler.Close()
     return ret
Beispiel #8
0
 def GetClusterStatus():
     dataHandler = DataHandler()
     ret = None
     try:
         ret = dataHandler.GetClusterStatus()
     finally:
         dataHandler.Close()
     return ret