{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/NetworkRuleSet",
  "title": "NetworkRuleSet",
  "type": "object",
  "description": "A set of rules governing the network accessibility.",
  "properties": {
    "defaultAction": {
      "type": "string",
      "enum": [
        "Allow",
        "Deny"
      ],
      "description": "The default action when no rule matches.",
      "example": "Allow"
    },
    "ipRules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "An IPv4 address range in CIDR notation."
          }
        }
      },
      "description": "The list of IP address rules.",
      "example": []
    },
    "virtualNetworkRules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Full resource ID of a vnet subnet."
          },
          "state": {
            "type": "string"
          },
          "ignoreMissingVnetServiceEndpoint": {
            "type": "boolean"
          }
        }
      },
      "description": "The list of virtual network rules.",
      "example": []
    }
  }
}