{
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "affinity": {
          "pattern": "^(host|virtual):[a-zA-Z0-9\\.\\-_]+$",
          "type": "string"
        },
        "affinityClaimTime": {
          "format": "date-time",
          "type": "string"
        },
        "allocations": {
          "items": {
            "type": "integer",
            "nullable": true
          },
          "type": "array"
        },
        "attributes": {
          "items": {
            "properties": {
              "handle_id": {
                "type": "string"
              },
              "secondary": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "cidr": {
          "format": "cidr",
          "type": "string"
        },
        "deleted": {
          "type": "boolean"
        },
        "sequenceNumber": {
          "default": 0,
          "format": "int64",
          "type": "integer"
        },
        "sequenceNumberForAllocation": {
          "additionalProperties": {
            "format": "int64",
            "type": "integer"
          },
          "type": "object"
        },
        "strictAffinity": {
          "type": "boolean"
        },
        "unallocated": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "allocations",
        "attributes",
        "cidr",
        "strictAffinity",
        "unallocated"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
