{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-traffic-manager/json-schema/microsoft-azure-traffic-manager-traffic-manager-geographic-hierarchy-schema.json",
  "title": "TrafficManagerGeographicHierarchy",
  "description": "Class representing the Geographic hierarchy used with the Geographic traffic routing method.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-traffic-manager-trafficmanagergeographichierarchies-api-openapi.yml#/components/schemas/TrafficManagerGeographicHierarchy",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/GeographicHierarchyProperties",
      "description": "The properties of the Geographic Hierarchy resource.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "GeographicHierarchyProperties": {
      "type": "object",
      "description": "Class representing the properties of the Geographic hierarchy used with the Geographic traffic routing method.",
      "properties": {
        "geographicHierarchy": {
          "$ref": "#/$defs/Region",
          "description": "The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved."
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Region": {
      "type": "object",
      "description": "Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method.",
      "properties": {
        "code": {
          "type": "string",
          "description": "The code of the region"
        },
        "name": {
          "type": "string",
          "description": "The name of the region"
        },
        "regions": {
          "type": "array",
          "description": "The list of Regions grouped under this Region in the Geographic Hierarchy.",
          "items": {
            "$ref": "#/$defs/Region"
          }
        }
      }
    },
    "Resource": {
      "type": "object",
      "description": "The core properties of ARM resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}"
        },
        "name": {
          "type": "string",
          "description": "The name of the resource"
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles."
        }
      },
      "x-ms-azure-resource": true
    }
  }
}