{
    "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 numOfFiles, end, error",
    "required": [
        "id",
        "surveyDate",
        "historyId",
        "controllerId",
        "profile",
        "state",
        "_operation",
        "workflowPath",
        "orderId",
        "job",
        "jobPosition",
        "start"
    ],
    "properties": {
        "surveyDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "id": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "profile": {
            "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": {
            "description": "must have the same entries as com.sos.yade.commons.Yade.TransferOperation",
            "javaType": "com.sos.joc.model.yade.Operation",
            "type": "string",
            "enum": [
                "UNKNOWN",
                "COPY",
                "MOVE",
                "GETLIST",
                "RENAME",
                "COPYTOINTERNET",
                "COPYFROMINTERNET",
                "REMOVE"
            ]
        },
        "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"
                },
                "message": {
                    "type": "string"
                }
            }
        },
        "source": {
            "javaType": "com.sos.joc.model.yade.ProtocolFragment",
            "type": "object",
            "properties": {
                "host": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                },
                "protocol": {
                    "javaType": "com.sos.joc.model.yade.Protocol",
                    "type": "string",
                    "enum": [
                        "UNKNOWN",
                        "AZURE_BLOB_STORAGE",
                        "FTP",
                        "FTPS",
                        "HTTP",
                        "HTTPS",
                        "LOCAL",
                        "SFTP",
                        "SMB",
                        "WEBDAV",
                        "WEBDAVS"
                    ]
                },
                "port": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 65535
                },
                "account": {
                    "type": "string",
                    "maxLength": 255
                }
            }
        },
        "target": {
            "javaType": "com.sos.joc.model.yade.ProtocolFragment",
            "type": "object",
            "properties": {
                "host": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                },
                "protocol": {
                    "javaType": "com.sos.joc.model.yade.Protocol",
                    "type": "string",
                    "enum": [
                        "UNKNOWN",
                        "AZURE_BLOB_STORAGE",
                        "FTP",
                        "FTPS",
                        "HTTP",
                        "HTTPS",
                        "LOCAL",
                        "SFTP",
                        "SMB",
                        "WEBDAV",
                        "WEBDAVS"
                    ]
                },
                "port": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 65535
                },
                "account": {
                    "type": "string",
                    "maxLength": 255
                }
            }
        },
        "jump": {
            "javaType": "com.sos.joc.model.yade.ProtocolFragment",
            "type": "object",
            "properties": {
                "host": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255,
                    "minLength": 1
                },
                "protocol": {
                    "javaType": "com.sos.joc.model.yade.Protocol",
                    "type": "string",
                    "enum": [
                        "UNKNOWN",
                        "AZURE_BLOB_STORAGE",
                        "FTP",
                        "FTPS",
                        "HTTP",
                        "HTTPS",
                        "LOCAL",
                        "SFTP",
                        "SMB",
                        "WEBDAV",
                        "WEBDAVS"
                    ]
                },
                "port": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 65535
                },
                "account": {
                    "type": "string",
                    "maxLength": 255
                }
            }
        },
        "numOfFiles": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        },
        "controllerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "workflowPath": {
            "description": "absolute path of an object.",
            "type": "string",
            "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
            "maxLength": 255,
            "minLength": 1
        },
        "orderId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "job": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "jobPosition": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "historyId": {
            "type": "number",
            "format": "utc-millisec",
            "minimum": 0
        }
    }
}