def parseInternal(self, value, instance): domainValue = value['domain'] instance.domain = serder.STRING.parse(domainValue) from netbluemind.scheduledjob.api.JobExitStatus import JobExitStatus from netbluemind.scheduledjob.api.JobExitStatus import __JobExitStatusSerDer__ statusValue = value['status'] instance.status = __JobExitStatusSerDer__().parse(statusValue) return instance
def encodeInternal(self, value, instance): domainValue = value.domain instance["domain"] = serder.STRING.encode(domainValue) from netbluemind.scheduledjob.api.JobExitStatus import JobExitStatus from netbluemind.scheduledjob.api.JobExitStatus import __JobExitStatusSerDer__ statusValue = value.status instance["status"] = __JobExitStatusSerDer__().encode(statusValue) return instance
def parseInternal(self, value, instance): startDateValue = value['startDate'] instance.startDate = serder.DATE.parse(startDateValue) endDateValue = value['endDate'] instance.endDate = serder.DATE.parse(endDateValue) domainNameValue = value['domainName'] instance.domainName = serder.STRING.parse(domainNameValue) from netbluemind.scheduledjob.api.JobExitStatus import JobExitStatus from netbluemind.scheduledjob.api.JobExitStatus import __JobExitStatusSerDer__ statusValue = value['status'] instance.status = __JobExitStatusSerDer__().parse(statusValue) jobIdValue = value['jobId'] instance.jobId = serder.STRING.parse(jobIdValue) execGroupValue = value['execGroup'] instance.execGroup = serder.STRING.parse(execGroupValue) idValue = value['id'] instance.id = serder.INT.parse(idValue) return instance
def encodeInternal(self, value, instance): startDateValue = value.startDate instance["startDate"] = serder.DATE.encode(startDateValue) endDateValue = value.endDate instance["endDate"] = serder.DATE.encode(endDateValue) domainNameValue = value.domainName instance["domainName"] = serder.STRING.encode(domainNameValue) from netbluemind.scheduledjob.api.JobExitStatus import JobExitStatus from netbluemind.scheduledjob.api.JobExitStatus import __JobExitStatusSerDer__ statusValue = value.status instance["status"] = __JobExitStatusSerDer__().encode(statusValue) jobIdValue = value.jobId instance["jobId"] = serder.STRING.encode(jobIdValue) execGroupValue = value.execGroup instance["execGroup"] = serder.STRING.encode(execGroupValue) idValue = value.id instance["id"] = serder.INT.encode(idValue) return instance
def parseInternal(self, value, instance): jobIdValue = value['jobId'] instance.jobId = serder.STRING.parse(jobIdValue) domainValue = value['domain'] instance.domain = serder.STRING.parse(domainValue) idValue = value['id'] instance.id = serder.INT.parse(idValue) from netbluemind.scheduledjob.api.JobExitStatus import JobExitStatus from netbluemind.scheduledjob.api.JobExitStatus import __JobExitStatusSerDer__ statusesValue = value['statuses'] instance.statuses = serder.SetSerDer( __JobExitStatusSerDer__()).parse(statusesValue) activeValue = value['active'] instance.active = serder.BOOLEAN.parse(activeValue) from_Value = value['from'] instance.from_ = serder.INT.parse(from_Value) sizeValue = value['size'] instance.size = serder.INT.parse(sizeValue) return instance
def encodeInternal(self, value, instance): jobIdValue = value.jobId instance["jobId"] = serder.STRING.encode(jobIdValue) domainValue = value.domain instance["domain"] = serder.STRING.encode(domainValue) idValue = value.id instance["id"] = serder.INT.encode(idValue) from netbluemind.scheduledjob.api.JobExitStatus import JobExitStatus from netbluemind.scheduledjob.api.JobExitStatus import __JobExitStatusSerDer__ statusesValue = value.statuses instance["statuses"] = serder.SetSerDer( __JobExitStatusSerDer__()).encode(statusesValue) activeValue = value.active instance["active"] = serder.BOOLEAN.encode(activeValue) from_Value = value.from_ instance["from"] = serder.INT.encode(from_Value) sizeValue = value.size instance["size"] = serder.INT.encode(sizeValue) return instance