{
    "additionalProperties": false,
    "description": "RecordSet",
    "properties": {
        "recordset": {
            "additionalProperties": false,
            "properties": {
                "action": {
                    "description": "Recordset Action",
                    "enum": [
                        "CREATE",
                        "DELETE",
                        "UPDATE",
                        "NONE"
                    ],
                    "readOnly": true,
                    "type": "string"
                },
                "created_at": {
                    "description": "Date and time of RecordSet creation",
                    "format": "date-time",
                    "readOnly": true,
                    "type": "string"
                },
                "description": {
                    "description": "Description for the RecordSet",
                    "maxLength": 160,
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "id": {
                    "description": "RecordSet identifier",
                    "format": "uuid",
                    "readOnly": true,
                    "type": "string"
                },
                "links": {
                    "additionalProperties": false,
                    "properties": {
                        "self": {
                            "format": "url",
                            "type": "string"
                        }
                    },
                    "type": "object"
                },
                "name": {
                    "description": "RecordSet name",
                    "format": "hostname",
                    "immutable": true,
                    "maxLength": 255,
                    "type": "string"
                },
                "records": {
                    "default": null,
                    "description": "Records in the RecordSet",
                    "type": [
                        "array",
                        "null"
                    ]
                },
                "status": {
                    "description": "Recordset Status",
                    "enum": [
                        "ACTIVE",
                        "PENDING",
                        "ERROR"
                    ],
                    "readOnly": true,
                    "type": "string"
                },
                "ttl": {
                    "default": null,
                    "description": "Default time to live",
                    "maximum": 2147483647,
                    "minimum": 0,
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "type": {
                    "description": "RecordSet type (TODO: Make types extensible)",
                    "enum": [
                        "A",
                        "AAAA",
                        "CNAME",
                        "MX",
                        "SRV",
                        "TXT",
                        "SPF",
                        "NS",
                        "PTR",
                        "SSHFP",
                        "SOA"
                    ],
                    "type": "string"
                },
                "updated_at": {
                    "description": "Date and time of last recordset modification",
                    "format": "date-time",
                    "readOnly": true,
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "version": {
                    "description": "RecordSet version number",
                    "readOnly": true,
                    "type": "integer"
                },
                "zone_id": {
                    "description": "Zone identifier",
                    "format": "uuid",
                    "immutable": true,
                    "type": "string"
                }
            },
            "required": [
                "name",
                "type"
            ],
            "type": "object"
        }
    },
    "required": [
        "recordset"
    ],
    "title": "recordset"
}