{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "BatchEndpointsDefaultsSchema": {
            "properties": {
                "deployment_name": {
                    "title": "deployment_name",
                    "type": "string",
                    "description": "Name of the deployment that will be default for the endpoint.\n             This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked."
                }
            },
            "type": "object",
            "additionalProperties": false
        },
        "IdentitySchema": {
            "properties": {
                "principal_id": {
                    "title": "principal_id",
                    "type": "string"
                },
                "tenant_id": {
                    "title": "tenant_id",
                    "type": "string"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "system_assigned",
                        "user_assigned",
                        "none"
                    ],
                    "title": "type"
                },
                "user_assigned_identities": {
                    "title": "user_assigned_identities",
                    "type": "array",
                    "items": {
                        "title": "user_assigned_identities",
                        "type": "object",
                        "additionalProperties": {
                            "title": "user_assigned_identities",
                            "type": "string"
                        }
                    }
                }
            },
            "type": "object",
            "additionalProperties": false
        },
        "BatchEndpointSchema": {
            "properties": {
                "auth_mode": {
                    "type": "string",
                    "enum": [
                        "aml_token",
                        "key",
                        "aad_token"
                    ],
                    "title": "auth_mode"
                },
                "defaults": {
                    "type": "object",
                    "$ref": "#/definitions/BatchEndpointsDefaultsSchema"
                },
                "description": {
                    "title": "description",
                    "type": "string",
                    "description": "Description of the inference endpoint."
                },
                "id": {
                    "title": "id",
                    "type": "string"
                },
                "identity": {
                    "type": "object",
                    "$ref": "#/definitions/IdentitySchema"
                },
                "location": {
                    "title": "location",
                    "type": "string"
                },
                "name": {
                    "title": "name",
                    "type": "string",
                    "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
                },
                "openapi_uri": {
                    "title": "openapi_uri",
                    "type": "string",
                    "description": "Endpoint Open API URI."
                },
                "properties": {
                    "title": "properties",
                    "type": "object",
                    "additionalProperties": {}
                },
                "provisioning_state": {
                    "title": "provisioning_state",
                    "type": "string",
                    "description": "Provisioning state for the endpoint."
                },
                "$schema": {
                    "title": "$schema",
                    "type": "string",
                    "readonly": true
                },
                "scoring_uri": {
                    "title": "scoring_uri",
                    "type": "string",
                    "description": "The endpoint uri that can be used for scoring"
                },
                "tags": {
                    "title": "tags",
                    "type": "object",
                    "additionalProperties": {}
                }
            },
            "type": "object",
            "required": [
                "name"
            ],
            "additionalProperties": false
        }
    },
    "$ref": "#/definitions/BatchEndpointSchema"
}