{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-event-hubs/json-schema/microsoft-azure-event-hubs-application-group-schema.json",
  "title": "ApplicationGroup",
  "description": "The Application Group object",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-event-hubs-application-groups-api-openapi.yml#/components/schemas/ApplicationGroup",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ApplicationGroupProperties",
      "x-ms-client-flatten": true
    },
    "location": {
      "type": "string",
      "description": "The geo-location where the resource lives",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "ApplicationGroupPolicy": {
      "type": "object",
      "description": "Properties of the Application Group policy",
      "properties": {
        "name": {
          "type": "string",
          "description": "The Name of this policy"
        },
        "type": {
          "$ref": "#/$defs/ApplicationGroupPolicyType",
          "description": "Application Group Policy types"
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "ApplicationGroupPolicyType": {
      "type": "string",
      "description": "Application Group Policy types",
      "enum": [
        "ThrottlingPolicy"
      ],
      "x-ms-enum": {
        "name": "ApplicationGroupPolicyType",
        "modelAsString": true,
        "values": [
          {
            "name": "ThrottlingPolicy",
            "value": "ThrottlingPolicy"
          }
        ]
      }
    },
    "ApplicationGroupProperties": {
      "type": "object",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed"
        },
        "clientAppGroupIdentifier": {
          "type": "string",
          "description": "The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid)"
        },
        "policies": {
          "type": "array",
          "description": "List of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic.",
          "items": {
            "$ref": "#/$defs/ApplicationGroupPolicy"
          },
          "x-ms-identifiers": []
        }
      },
      "required": [
        "clientAppGroupIdentifier"
      ]
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}