{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-firewall/json-schema/microsoft-azure-firewall-firewall-policy-rule-collection-group-draft-schema.json",
  "title": "FirewallPolicyRuleCollectionGroupDraft",
  "description": "Rule Collection Group resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-firewall-subscriptions-api-openapi.yml#/components/schemas/FirewallPolicyRuleCollectionGroupDraft",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/FirewallPolicyRuleCollectionGroupDraftProperties",
      "description": "The properties of the firewall policy rule collection group.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "./common.json#/definitions/SubResourceModel"
    }
  ],
  "$defs": {
    "FirewallPolicyRuleCollection": {
      "type": "object",
      "description": "Properties of the rule collection.",
      "properties": {
        "ruleCollectionType": {
          "$ref": "./common.json#/definitions/FirewallPolicyRuleCollectionType",
          "description": "The type of the rule collection."
        },
        "name": {
          "type": "string",
          "description": "The name of the rule collection."
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "Priority of the Firewall Policy Rule Collection resource.",
          "minimum": 100,
          "maximum": 65000
        }
      },
      "required": [
        "ruleCollectionType"
      ]
    },
    "FirewallPolicyRuleCollectionGroupDraftProperties": {
      "type": "object",
      "description": "Properties of the rule collection group draft.",
      "properties": {
        "size": {
          "type": "string",
          "description": "A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB)",
          "readOnly": true
        },
        "priority": {
          "type": "integer",
          "format": "int32",
          "description": "Priority of the Firewall Policy Rule Collection Group resource.",
          "minimum": 100,
          "maximum": 65000
        },
        "ruleCollections": {
          "type": "array",
          "description": "Group of Firewall Policy rule collections.",
          "items": {
            "$ref": "#/$defs/FirewallPolicyRuleCollection"
          },
          "x-ms-identifiers": []
        }
      }
    }
  }
}