{
    "title": "yade history",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.yade.Transfers",
    "type": "object",
    "required": [
        "deliveryDate",
        "transfers"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "transfers": {
            "type": "array",
            "items": {
                "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": "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
                    },
                    "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"
                            },
                            "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"
                            },
                            "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"
                            }
                        }
                    },
                    "target": {
                        "javaType": "com.sos.joc.model.yade.ProtocolFragment",
                        "type": "object",
                        "description": "compact=true -> only required fields",
                        "required": [
                            "protocol",
                            "host"
                        ],
                        "properties": {
                            "host": {
                                "type": "string"
                            },
                            "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"
                            }
                        }
                    },
                    "jump": {
                        "javaType": "com.sos.joc.model.yade.ProtocolFragment",
                        "type": "object",
                        "description": "compact=true -> only required fields",
                        "required": [
                            "protocol",
                            "host"
                        ],
                        "properties": {
                            "host": {
                                "type": "string"
                            },
                            "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"
                            }
                        }
                    },
                    "numOfFiles": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "hasIntervention": {
                        "type": "boolean",
                        "default": "false"
                    },
                    "controllerId": {
                        "type": "string"
                    },
                    "orderId": {
                        "type": "string"
                    },
                    "jobChain": {
                        "description": "absolute path of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "jobChainNode": {
                        "type": "string"
                    },
                    "job": {
                        "description": "absolute path of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "taskId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    }
                }
            }
        }
    }
}