{
    "title": "abstract super class for editing all JobScheduler Objects",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.joe.common.JSObjectEdit",
    "type": "object",
    "description": "oldPath is used for a move/rename, auditLog only for deploy",
    "required": [
        "jobschedulerId",
        "path"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Date time. 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",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "path": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "oldPath": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "objectType": {
            "javaType": "com.sos.joc.model.common.JobSchedulerObjectType",
            "type": "string",
            "enum": [
                "JOB",
                "JOBCHAIN",
                "ORDER",
                "PROCESSCLASS",
                "AGENTCLUSTER",
                "LOCK",
                "SCHEDULE",
                "WORKINGDAYSCALENDAR",
                "NONWORKINGDAYSCALENDAR",
                "FOLDER",
                "JOBSCHEDULER",
                "DOCUMENTATION",
                "MONITOR",
                "NODEPARAMS",
                "HOLIDAYS",
                "JOE",
                "OTHER"
            ]
        },
        "objectVersionStatus": {
            "javaType": "com.sos.joc.model.joe.common.JoeObjectStatus",
            "type": "object",
            "description": "Describes the situation live/draft",
            "properties": {
                "message": {
                    "javaType": "com.sos.joc.model.joe.common.JoeMessage",
                    "type": "object",
                    "properties": {
                        "messageText": {
                            "type": "string"
                        },
                        "_messageCode": {
                            "type": "string"
                        }
                    }
                },
                "versionState": {
                    "javaType": "com.sos.joc.model.joe.common.VersionStateText",
                    "type": "string",
                    "enum": [
                        "LIVE_IS_NEWER",
                        "DRAFT_IS_NEWER",
                        "LIVE_NOT_EXIST",
                        "DRAFT_NOT_EXIST",
                        "NO_CONFIGURATION_EXIST"
                    ]
                },
                "deployed": {
                    "type": "boolean"
                }
            }
        },
        "configuration": {
            "description": "interface for different json representations of a configuration item",
            "type": "object",
            "javaType": "com.sos.joc.model.joe.common.IJSObject"
        },
        "account": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 255
        },
        "docPath": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "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
                }
            }
        },
        "isJitlJob": {
            "type": "boolean",
            "default": false
        }
    }
}