{
    "title": "edit processClass configuration",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.processClass.ConfigurationEdit",
    "type": "object",
    "description": "old version from 1.13.0",
    "required": [
        "jobschedulerId",
        "processClass"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "configurationDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "jobschedulerId": {
            "type": "string"
        },
        "processClass": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "configuration": {
            "javaType": "com.sos.joc.model.joe.processclass.ProcessClass",
            "javaInterfaces": [
                "com.sos.joc.model.joe.common.IJSObject"
            ],
            "xmlElement": "process_class",
            "type": "object",
            "required": [
                "maxProcesses"
            ],
            "properties": {
                "maxProcesses": {
                    "type": "integer",
                    "minimum": 0
                },
                "timeout": {
                    "type": "integer",
                    "minimum": 0
                },
                "remoteScheduler": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "remoteSchedulers": {
                    "xmlElement": "remote_schedulers",
                    "type": "object",
                    "javaType": "com.sos.joc.model.joe.processclass.RemoteSchedulers",
                    "required": [
                        "remoteSchedulerList"
                    ],
                    "properties": {
                        "select": {
                            "description": "first, next",
                            "type": "string",
                            "pattern": "^(first|next)?$"
                        },
                        "remoteSchedulerList": {
                            "type": "array",
                            "xmlElement": "remote_scheduler",
                            "items": {
                                "javaType": "com.sos.joc.model.joe.processclass.RemoteScheduler",
                                "type": "object",
                                "required": [
                                    "remoteScheduler"
                                ],
                                "properties": {
                                    "remoteScheduler": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "httpHeartbeatTimeout": {
                                        "type": "integer",
                                        "minimum": 0
                                    },
                                    "httpHeartbeatPeriod": {
                                        "type": "integer",
                                        "minimum": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "auditLog": {
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "timeSpent": {
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        }
    }
}