{
    "title": "save and response configuration",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.yade.Transfer",
    "type": "object",
    "description": "compact=true -> required fields + possibly profile, mandator, target",
    "required": [
        "_operation",
        "start",
        "source"
    ],
    "properties": {
        "surveyDate": {
            "description": "Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "id": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "parent_id": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "profile": {
            "type": "string"
        },
        "mandator": {
            "type": "string"
        },
        "state": {
            "javaType": "com.sos.joc.model.yade.TransferState",
            "type": "object",
            "required": [
                "severity",
                "_text"
            ],
            "properties": {
                "severity": {
                    "description": "0=SUCCESSFUL, 1=INCOMPLETE, 2=FAILED",
                    "type": "integer"
                },
                "_text": {
                    "javaType": "com.sos.joc.model.yade.TransferStateText",
                    "type": "string",
                    "enum": [
                        "SUCCESSFUL",
                        "FAILED",
                        "INCOMPLETE"
                    ]
                }
            }
        },
        "_operation": {
            "javaType": "com.sos.joc.model.yade.Operation",
            "type": "string",
            "enum": [
                "COPY",
                "MOVE",
                "GETLIST",
                "RENAME",
                "COPYTOINTERNET",
                "COPYFROMINTERNET"
            ]
        },
        "start": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "end": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "error": {
            "javaType": "com.sos.joc.model.common.Err",
            "type": "object",
            "required": [
                "code",
                "message"
            ],
            "properties": {
                "code": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "message": {
                    "type": "string"
                }
            }
        },
        "source": {
            "javaType": "com.sos.joc.model.yade.ProtocolFragment",
            "type": "object",
            "description": "compact=true -> only required fields",
            "required": [
                "protocol",
                "host"
            ],
            "properties": {
                "host": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "protocol": {
                    "javaType": "com.sos.joc.model.yade.Protocol",
                    "type": "string",
                    "enum": [
                        "LOCAL",
                        "FTP",
                        "FTPS",
                        "SFTP",
                        "HTTP",
                        "HTTPS",
                        "WEBDAV",
                        "WEBDAVS",
                        "SMB"
                    ]
                },
                "port": {
                    "type": "integer",
                    "minimum": 0
                },
                "account": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        },
        "target": {
            "javaType": "com.sos.joc.model.yade.ProtocolFragment",
            "type": "object",
            "description": "compact=true -> only required fields",
            "required": [
                "protocol",
                "host"
            ],
            "properties": {
                "host": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "protocol": {
                    "javaType": "com.sos.joc.model.yade.Protocol",
                    "type": "string",
                    "enum": [
                        "LOCAL",
                        "FTP",
                        "FTPS",
                        "SFTP",
                        "HTTP",
                        "HTTPS",
                        "WEBDAV",
                        "WEBDAVS",
                        "SMB"
                    ]
                },
                "port": {
                    "type": "integer",
                    "minimum": 0
                },
                "account": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        },
        "jump": {
            "javaType": "com.sos.joc.model.yade.ProtocolFragment",
            "type": "object",
            "description": "compact=true -> only required fields",
            "required": [
                "protocol",
                "host"
            ],
            "properties": {
                "host": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "protocol": {
                    "javaType": "com.sos.joc.model.yade.Protocol",
                    "type": "string",
                    "enum": [
                        "LOCAL",
                        "FTP",
                        "FTPS",
                        "SFTP",
                        "HTTP",
                        "HTTPS",
                        "WEBDAV",
                        "WEBDAVS",
                        "SMB"
                    ]
                },
                "port": {
                    "type": "integer",
                    "minimum": 0
                },
                "account": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        },
        "numOfFiles": {
            "type": "integer",
            "minimum": 0
        },
        "hasIntervention": {
            "type": "boolean",
            "default": "false"
        },
        "jobschedulerId": {
            "type": "string"
        },
        "orderId": {
            "type": "string"
        },
        "jobChain": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "jobChainNode": {
            "type": "string"
        },
        "job": {
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
            "maxLength": 255
        },
        "taskId": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        }
    }
}