Beispiel #1
0
class TSAgentResource(tso):
    resId = tso.Int()
    
    resClass = tso.String()
    resType = tso.String()
    
    data = tso.Any()
    
    state = tso.Int()
Beispiel #2
0
class TSExperimentWorkload(tso):
    agentId = tso.Nullable(tso.Int())
    workloadType = tso.Nullable(tso.String())
    
    threadpool = tso.Nullable(tso.String())
    params = tso.Any()
    
    @staticmethod
    def createEmptyWorkload():
        workload = TSExperimentWorkload()
        
        workload.agentId = None
        workload.workloadType = None
        workload.threadpool = None
        workload.params = {}
        
        return workload
Beispiel #3
0
class TSResource(tso):
    children = tso.Array(tso.String())
    type = tso.String()
    data = tso.Any()