{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/leaseweb/main/json-schema/leaseweb-import-resource-record-sets-result-schema.json",
  "title": "importResourceRecordSetsResult",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leaseweb-dns-openapi.yml#/components/schemas/importResourceRecordSetsResult",
  "properties": {
    "infoMessage": {
      "description": "Optional additional information",
      "type": "string"
    },
    "resourceRecordSets": {
      "description": "Array of resource record sets",
      "items": {
        "$ref": "#/$defs/resourceRecordSetDetails"
      },
      "type": "array"
    },
    "_links": {
      "$ref": "#/$defs/links"
    }
  },
  "type": "object",
  "$defs": {
    "collection": {
      "description": "Link to the resource record sets collection",
      "properties": {
        "href": {
          "description": "Hyperlink to the resource record sets collection location",
          "type": "string"
        }
      },
      "required": [
        "href"
      ],
      "title": "collection",
      "type": "object"
    },
    "editable": {
      "description": "May the set be edited",
      "type": "boolean"
    },
    "ldLinks": {
      "description": "Links to related resource locations",
      "properties": {
        "self": {
          "$ref": "#/$defs/self"
        },
        "collection": {
          "$ref": "#/$defs/collection"
        }
      },
      "required": [
        "collection",
        "self"
      ],
      "title": "ldLinks",
      "type": "object"
    },
    "links": {
      "description": "Links to related resource locations",
      "properties": {
        "self": {
          "$ref": "#/$defs/self"
        },
        "parent": {
          "$ref": "#/$defs/parent"
        },
        "validateSet": {
          "$ref": "#/$defs/validateSet"
        }
      },
      "required": [
        "parent",
        "self",
        "validateSet"
      ],
      "title": "links",
      "type": "object"
    },
    "parent": {
      "description": "Link to the parent resource",
      "properties": {
        "href": {
          "description": "Hyperlink to the parent resource location",
          "type": "string"
        }
      },
      "required": [
        "href"
      ],
      "title": "parent",
      "type": "object"
    },
    "resourceRecordSet": {
      "properties": {
        "name": {
          "description": "Name of the resource record set",
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/resourceRecordSetType"
        },
        "content": {
          "description": "Array of resource record set content entries",
          "items": {
            "description": "Content entries for the resource record set",
            "type": "string"
          },
          "title": "resourceRecordSetContent",
          "type": "array"
        },
        "ttl": {
          "$ref": "#/$defs/ttl"
        }
      },
      "required": [
        "content",
        "name",
        "ttl",
        "type"
      ],
      "title": "resourceRecordSet",
      "type": "object"
    },
    "resourceRecordSetDetails": {
      "allOf": [
        {
          "properties": {
            "editable": {
              "$ref": "#/$defs/editable"
            },
            "_links": {
              "$ref": "#/$defs/ldLinks"
            }
          },
          "required": [
            "_links",
            "editable"
          ],
          "title": "resourceRecordSetDetails",
          "type": "object"
        },
        {
          "$ref": "#/$defs/resourceRecordSet"
        }
      ]
    },
    "resourceRecordSetType": {
      "description": "Type of the resource record set",
      "enum": [
        "A",
        "AAAA",
        "CAA",
        "CNAME",
        "MX",
        "NS",
        "SRV",
        "TXT",
        "SOA",
        "DS",
        "TLSA"
      ],
      "type": "string"
    },
    "self": {
      "description": "Link to the resource record set resource",
      "properties": {
        "href": {
          "description": "Hyperlink to the resource record set's location",
          "type": "string"
        }
      },
      "required": [
        "href"
      ],
      "title": "self",
      "type": "object"
    },
    "ttl": {
      "description": "Time to live of the resource record set",
      "enum": [
        60,
        300,
        1800,
        3600,
        14400,
        28800,
        43200,
        86400
      ],
      "type": "integer"
    },
    "validateSet": {
      "description": "Link to validate a single resource record set",
      "properties": {
        "href": {
          "description": "Hyperlink to validate a single resource record set for a domain",
          "type": "string"
        }
      },
      "required": [
        "href"
      ],
      "title": "validateSet",
      "type": "object"
    }
  }
}