{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-ip-allocation-list-result-schema.json",
  "title": "IpAllocationListResult",
  "description": "The response of a IpAllocation list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-ipallocations-api-openapi.yml#/components/schemas/IpAllocationListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The IpAllocation items on this page",
      "items": {
        "$ref": "#/$defs/IpAllocation"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "IPVersion": {
      "type": "string",
      "description": "IP address version.",
      "enum": [
        "IPv4",
        "IPv6"
      ],
      "x-ms-enum": {
        "name": "IPVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "IPv4",
            "value": "IPv4",
            "description": "IPv4"
          },
          {
            "name": "IPv6",
            "value": "IPv6",
            "description": "IPv6"
          }
        ]
      }
    },
    "IpAllocation": {
      "type": "object",
      "description": "IpAllocation resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/IpAllocationPropertiesFormat",
          "description": "Properties of the IpAllocation.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "A unique read-only string that changes whenever the resource is updated.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "IpAllocationPropertiesFormat": {
      "type": "object",
      "description": "Properties of the IpAllocation.",
      "properties": {
        "subnet": {
          "$ref": "#/$defs/SubResource",
          "description": "The Subnet that using the prefix of this IpAllocation resource.",
          "readOnly": true
        },
        "virtualNetwork": {
          "$ref": "#/$defs/SubResource",
          "description": "The VirtualNetwork that using the prefix of this IpAllocation resource.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/IpAllocationType",
          "description": "The type for the IpAllocation."
        },
        "prefix": {
          "type": "string",
          "description": "The address prefix for the IpAllocation."
        },
        "prefixLength": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "The address prefix length for the IpAllocation.",
          "default": 0
        },
        "prefixType": {
          "$ref": "#/$defs/IPVersion",
          "description": "The address prefix Type for the IpAllocation."
        },
        "ipamAllocationId": {
          "type": "string",
          "description": "The IPAM allocation ID."
        },
        "allocationTags": {
          "type": "object",
          "description": "IpAllocation tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "IpAllocationType": {
      "type": "string",
      "description": "IpAllocation type.",
      "enum": [
        "Undefined",
        "Hypernet"
      ],
      "x-ms-enum": {
        "name": "IpAllocationType",
        "modelAsString": true,
        "values": [
          {
            "name": "Undefined",
            "value": "Undefined",
            "description": "Undefined"
          },
          {
            "name": "Hypernet",
            "value": "Hypernet",
            "description": "Hypernet"
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    }
  }
}