{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-maps/json-schema/microsoft-azure-maps-maps-operations-schema.json",
  "title": "MapsOperations",
  "description": "The set of operations available for Maps.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-maps-operations-api-openapi.yml#/components/schemas/MapsOperations",
  "type": "object",
  "properties": {
    "value": {
      "description": "An operation available for Maps.",
      "type": "array",
      "readOnly": true,
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/OperationDetail"
      },
      "x-ms-identifiers": [
        "name"
      ]
    },
    "nextLink": {
      "description": "URL client should use to fetch the next page (per server side paging).\nIt's null for now, added for future use.",
      "type": "string"
    }
  },
  "$defs": {
    "Dimension": {
      "description": "Dimension of map account, for example API Category, Api Name, Result Type, and Response Code.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Display name of dimension."
        },
        "displayName": {
          "type": "string",
          "description": "Display name of dimension."
        },
        "internalName": {
          "type": "string",
          "description": "Internal name of the dimension."
        },
        "internalMetricName": {
          "type": "string",
          "description": "Internal metric name of the dimension."
        },
        "sourceMdmNamespace": {
          "type": "string",
          "description": "Source Mdm Namespace of the dimension."
        },
        "toBeExportedToShoebox": {
          "type": "boolean",
          "description": "Flag to indicate exporting to Azure Monitor."
        }
      }
    },
    "MetricSpecification": {
      "description": "Metric specification of operation.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of metric specification."
        },
        "displayName": {
          "type": "string",
          "description": "Display name of metric specification."
        },
        "displayDescription": {
          "type": "string",
          "description": "Display description of metric specification."
        },
        "unit": {
          "type": "string",
          "description": "Unit could be Count."
        },
        "dimensions": {
          "description": "Dimensions of map account.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Dimension"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "aggregationType": {
          "type": "string",
          "description": "Aggregation type could be Average."
        },
        "fillGapWithZero": {
          "type": "boolean",
          "description": "The property to decide fill gap with zero or not."
        },
        "category": {
          "type": "string",
          "description": "The category this metric specification belong to, could be Capacity."
        },
        "resourceIdDimensionNameOverride": {
          "type": "string",
          "description": "Account Resource Id."
        },
        "sourceMdmAccount": {
          "type": "string",
          "description": "Source metrics account."
        },
        "internalMetricName": {
          "type": "string",
          "description": "Internal metric name."
        },
        "lockAggregationType": {
          "type": "string",
          "description": "Lock aggregation type for metrics."
        },
        "sourceMdmNamespace": {
          "type": "string",
          "description": "Metrics namespace."
        },
        "supportedAggregationTypes": {
          "type": "string",
          "description": "Allowed aggregation types for metrics."
        }
      }
    },
    "OperationDetail": {
      "description": "Operation detail payload",
      "type": "object",
      "properties": {
        "name": {
          "description": "Name of the operation",
          "type": "string"
        },
        "isDataAction": {
          "description": "Indicates whether the operation is a data action",
          "type": "boolean"
        },
        "display": {
          "$ref": "#/$defs/OperationDisplay",
          "description": "Display of the operation"
        },
        "origin": {
          "description": "Origin of the operation",
          "type": "string"
        },
        "properties": {
          "x-ms-client-flatten": true,
          "$ref": "#/$defs/OperationProperties",
          "description": "Properties of the operation"
        }
      }
    },
    "OperationDisplay": {
      "description": "Operation display payload",
      "type": "object",
      "properties": {
        "provider": {
          "description": "Resource provider of the operation",
          "type": "string"
        },
        "resource": {
          "description": "Resource of the operation",
          "type": "string"
        },
        "operation": {
          "description": "Localized friendly name for the operation",
          "type": "string"
        },
        "description": {
          "description": "Localized friendly description for the operation",
          "type": "string"
        }
      }
    },
    "OperationProperties": {
      "description": "Properties of operation, include metric specifications.",
      "type": "object",
      "properties": {
        "serviceSpecification": {
          "$ref": "#/$defs/ServiceSpecification",
          "description": "One property of operation, include metric specifications."
        }
      }
    },
    "ServiceSpecification": {
      "description": "One property of operation, include metric specifications.",
      "type": "object",
      "properties": {
        "metricSpecifications": {
          "description": "Metric specifications of operation.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetricSpecification"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    }
  }
}