コード例 #1
0
ファイル: Competence.py プロジェクト: avenrainbow/aven_su
def userCompetence(dataConnect, data):
    apiPath = "pc/sys/functions/userFun"
    content = putRest(dataConnect, apiPath, "", "", data)
    return content
コード例 #2
0
ファイル: Snapshot.py プロジェクト: avenrainbow/aven_su
def recoverSnapshot(dataConnect,snapshotId):
    apiPath = "wce/api/snapShots/{0}/revert";
    content = putRest(dataConnect, apiPath, "", snapshotId, "");
    task = eval(content);
    return task['taskId']
コード例 #3
0
ファイル: Network.py プロジェクト: avenrainbow/aven_su
def updateNetwork(dataConnect, networkId, data):
    apiKey = "wce/api/networks/{0}";
    content = putRest(dataConnect, apiKey, "", networkId + "", data);
    task = eval(content);
    return task['taskId']
コード例 #4
0
ファイル: BusSystem.py プロジェクト: avenrainbow/aven_su
def operateBusSytem(dataConnect, busSytemId, data):
    apiKey = "wce/api/busSystem/oper/{0}";
    content = putRest(dataConnect, apiKey, "", busSytemId, data);
    taskId = eval(content);
    return taskId["taskId"]