{
    "title": "agent",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.agent.SubAgent",
    "type": "object",
    "required": [
        "subagentId",
        "url",
        "isDirector"
    ],
    "properties": {
        "agentId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "subagentId": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "url": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "isDirector": {
            "javaType": "com.sos.joc.model.agent.SubagentDirectorType",
            "type": "string",
            "enum": [
                "NO_DIRECTOR",
                "PRIMARY_DIRECTOR",
                "SECONDARY_DIRECTOR"
            ],
            "default": "NO_DIRECTOR"
        },
        "title": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "syncState": {
            "javaType": "com.sos.controller.model.common.SyncState",
            "type": "object",
            "required": [
                "severity",
                "_text"
            ],
            "properties": {
                "severity": {
                    "type": "integer"
                },
                "_text": {
                    "javaType": "com.sos.controller.model.common.SyncStateText",
                    "type": "string",
                    "enum": [
                        "IN_SYNC",
                        "NOT_IN_SYNC",
                        "NOT_DEPLOYED",
                        "UNKNOWN"
                    ]
                }
            }
        },
        "disabled": {
            "type": "boolean",
            "default": false
        },
        "deployed": {
            "type": "boolean",
            "default": false
        },
        "isClusterWatcher": {
            "type": "boolean",
            "default": false
        },
        "withGenerateSubagentCluster": {
            "type": "boolean",
            "default": false
        },
        "ordering": {
            "alias": "position",
            "type": "integer",
            "minimum": 1
        }
    },
    "additionalProperties": false
}