def userCompetence(dataConnect, data): apiPath = "pc/sys/functions/userFun" content = putRest(dataConnect, apiPath, "", "", data) return content
def recoverSnapshot(dataConnect,snapshotId): apiPath = "wce/api/snapShots/{0}/revert"; content = putRest(dataConnect, apiPath, "", snapshotId, ""); task = eval(content); return task['taskId']
def updateNetwork(dataConnect, networkId, data): apiKey = "wce/api/networks/{0}"; content = putRest(dataConnect, apiKey, "", networkId + "", data); task = eval(content); return task['taskId']
def operateBusSytem(dataConnect, busSytemId, data): apiKey = "wce/api/busSystem/oper/{0}"; content = putRest(dataConnect, apiKey, "", busSytemId, data); taskId = eval(content); return taskId["taskId"]