{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "AccountKeySchema": {
            "properties": {
                "account_key": {
                    "title": "account_key",
                    "type": "string"
                }
            },
            "type": "object",
            "required": [
                "account_key"
            ],
            "additionalProperties": false
        },
        "SasTokenSchema": {
            "properties": {
                "sas_token": {
                    "title": "sas_token",
                    "type": "string"
                }
            },
            "type": "object",
            "required": [
                "sas_token"
            ],
            "additionalProperties": false
        },
        "NoneCredentialsSchema": {
            "properties": {},
            "type": "object",
            "additionalProperties": false
        },
        "AzureBlobSchema": {
            "properties": {
                "account_name": {
                    "title": "account_name",
                    "type": "string"
                },
                "container_name": {
                    "title": "container_name",
                    "type": "string"
                },
                "credentials": {
                    "anyOf": [
                        {
                            "type": "object",
                            "$ref": "#/definitions/AccountKeySchema"
                        },
                        {
                            "type": "object",
                            "$ref": "#/definitions/SasTokenSchema"
                        },
                        {
                            "type": "object",
                            "$ref": "#/definitions/NoneCredentialsSchema"
                        }
                    ]
                },
                "description": {
                    "title": "description",
                    "type": "string"
                },
                "endpoint": {
                    "title": "endpoint",
                    "type": "string"
                },
                "id": {
                    "title": "id",
                    "type": "string",
                    "readonly": true
                },
                "name": {
                    "title": "name",
                    "type": "string"
                },
                "protocol": {
                    "title": "protocol",
                    "type": "string"
                },
                "$schema": {
                    "title": "$schema",
                    "type": "string",
                    "readonly": true
                },
                "tags": {
                    "title": "tags",
                    "type": "object",
                    "additionalProperties": {
                        "title": "tags",
                        "type": "string"
                    }
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "azure_blob"
                    ],
                    "title": "type"
                }
            },
            "type": "object",
            "required": [
                "account_name",
                "container_name",
                "name",
                "type"
            ],
            "additionalProperties": false
        }
    },
    "$ref": "#/definitions/AzureBlobSchema"
}