{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-search/google-cloud-dns/refs/heads/main/json-schema/dns-managedzone.json",
  "title": "Google Cloud DNS Managed Zone",
  "description": "Represents a Cloud DNS managed zone resource, including its DNS name, name servers, visibility, DNSSEC configuration, and associated metadata.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the resource."
    },
    "name": {
      "type": "string",
      "description": "User-assigned name for this resource."
    },
    "dnsName": {
      "type": "string",
      "description": "The DNS name of this managed zone, for instance example.com."
    },
    "description": {
      "type": "string",
      "description": "A mutable string of at most 1024 characters associated with this resource."
    },
    "nameServers": {
      "type": "array",
      "description": "Delegate your managed zone to these virtual name servers.",
      "items": {
        "type": "string"
      }
    },
    "visibility": {
      "type": "string",
      "description": "The zone's visibility: public or private.",
      "enum": [
        "public",
        "private"
      ]
    },
    "dnssecConfig": {
      "type": "object",
      "description": "DNSSEC configuration for this managed zone.",
      "properties": {
        "state": {
          "type": "string",
          "description": "Specifies whether DNSSEC is enabled.",
          "enum": [
            "off",
            "on",
            "transfer"
          ]
        },
        "kind": {
          "type": "string"
        }
      }
    },
    "creationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time that this resource was created on the server."
    }
  },
  "required": ["name", "dnsName"]
}
