{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-ipam-pool-schema.json",
  "title": "IpamPool",
  "description": "Instance of Pool resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-ipampools-api-openapi.yml#/components/schemas/IpamPool",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/IpamPoolProperties",
      "description": "Properties of IpamPool resource properties which are specific to the Pool resource."
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "#/$defs/CommonTrackedResource"
    }
  ],
  "$defs": {
    "CommonResource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "CommonTrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/CommonResource"
        }
      ],
      "x-ms-azure-resource": true
    },
    "IpType": {
      "type": "string",
      "description": "Enumeration to indicate the IP type.",
      "enum": [
        "IPv4",
        "IPv6"
      ],
      "x-ms-enum": {
        "name": "IpType",
        "modelAsString": true,
        "values": [
          {
            "name": "IPv4",
            "value": "IPv4",
            "description": "IPv4"
          },
          {
            "name": "IPv6",
            "value": "IPv6",
            "description": "IPv6"
          }
        ]
      }
    },
    "IpamPoolProperties": {
      "type": "object",
      "description": "Properties of IpamPool resource properties which are specific to the Pool resource.",
      "properties": {
        "description": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "description": "String representing a friendly name for the resource."
        },
        "ipAddressType": {
          "type": "array",
          "description": "List of IP address type for the IpamPool.",
          "items": {
            "$ref": "#/$defs/IpType"
          },
          "readOnly": true
        },
        "parentPoolName": {
          "type": "string",
          "description": "String representing parent IpamPool resource name. If empty the IpamPool will be a root pool."
        },
        "addressPrefixes": {
          "type": "array",
          "description": "List of IP address prefixes of the resource.",
          "items": {
            "type": "string"
          }
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "Provisioning states of a resource.",
          "readOnly": true
        },
        "minAllocationSize": {
          "type": "string",
          "description": "Minimum number of IP addresses required for allocations from this IpamPool to be compliant. Must be less than or equal to the maximum allocation size. If not specified or empty, no minimum is enforced."
        },
        "maxAllocationSize": {
          "type": "string",
          "description": "Maximum number of IP addresses allowed for allocations from this IpamPool to be compliant. Must be greater than or equal to the minimum allocation size. If not specified or empty, no maximum is enforced."
        }
      },
      "required": [
        "addressPrefixes"
      ]
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning states of a resource.",
      "enum": [
        "Failed",
        "Succeeded",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    }
  }
}