{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/gatewayBackup.json",
    "type": "object",
    "title": "Gateway backup",
    "required": [
        "software",
        "system"
    ],
    "additionalProperties": false,
    "properties": {
        "software": {
            "title": "Software backup",
            "description": "Select which software configuration to backup.",
            "type": "object",
            "required": [
                "iqrf",
                "mender",
                "monit"
            ],
            "additionalProperties": false,
            "properties": {
                "iqrf": {
                    "title": "IQRF Software",
                    "description": "Controller, Daemon, Webapp (including the server TLS certificate) and Uploader if available.",
                    "type": "boolean"
                },
                "mender": {
                    "title": "Mender",
                    "description": "Mender configuration.",
                    "type": "boolean"
                },
                "monit": {
                    "title": "Monit",
                    "description": "Monit configuration.",
                    "type": "boolean"
                }
            }
        },
        "system": {
            "title": "System backup",
            "description": "Select which system configuration to backup.",
            "type": "object",
            "required": [
                "hostname",
                "network",
                "time",
                "journal"
            ],
            "additionalProperties": false,
            "properties": {
                "hostname": {
                    "title": "Hostname",
                    "description": "Hostname and hosts configuration.",
                    "type": "boolean"
                },
                "network": {
                    "title": "NetworkManager",
                    "description": "NetworkManager configuration and connection profiles.",
                    "type": "boolean"
                },
                "time": {
                    "title": "Time",
                    "description": "Timezone and NTP configuration.",
                    "type": "boolean"
                },
                "journal": {
                    "title": "Systemd journald",
                    "description": "Systemd journald configuration.",
                    "type": "boolean"
                }
            }
        }
    }
}
