class TSAgentResource(tso): resId = tso.Int() resClass = tso.String() resType = tso.String() data = tso.Any() state = tso.Int()
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
class TSResource(tso): children = tso.Array(tso.String()) type = tso.String() data = tso.Any()