{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-operation-list-schema.json",
  "title": "OperationList",
  "description": "Paged collection of Operation items",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-postgresql-operations-api-openapi.yml#/components/schemas/OperationList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The Operation items on this page",
      "items": {
        "$ref": "#/$defs/Operation"
      },
      "x-ms-identifiers": [
        "name"
      ]
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "LogSpecification": {
      "type": "object",
      "description": "Log specification for an operation.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the log."
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the log."
        },
        "blobDuration": {
          "type": "string",
          "description": "Blob duration for the log."
        }
      }
    },
    "MetricSpecification": {
      "type": "object",
      "description": "Metric specification for an operation.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the metric."
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the metric."
        },
        "displayDescription": {
          "type": "string",
          "description": "Display description of the metric."
        },
        "unit": {
          "type": "string",
          "description": "Unit of the metric."
        },
        "aggregationType": {
          "type": "string",
          "description": "Aggregation type of the metric."
        },
        "supportedAggregationTypes": {
          "type": "array",
          "description": "Supported aggregation types for the metric.",
          "items": {
            "type": "string"
          }
        },
        "supportedTimeGrainTypes": {
          "type": "array",
          "description": "Supported time grain types for the metric.",
          "items": {
            "type": "string"
          }
        },
        "category": {
          "type": "string",
          "description": "Category of the metric."
        }
      }
    },
    "Operation": {
      "type": "object",
      "description": "REST API operation definition.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the operation being performed on this particular object.",
          "readOnly": true
        },
        "display": {
          "$ref": "#/$defs/OperationDisplay",
          "description": "Localized display information for this particular operation or action.",
          "readOnly": true
        },
        "isDataAction": {
          "type": "boolean",
          "description": "Indicates if the operation is a data action."
        },
        "origin": {
          "$ref": "#/$defs/OperationOrigin",
          "description": "Intended executor of the operation.",
          "readOnly": true
        },
        "properties": {
          "$ref": "#/$defs/OperationProperties",
          "description": "Additional descriptions for the operation.",
          "readOnly": true
        }
      }
    },
    "OperationDisplay": {
      "type": "object",
      "description": "Display metadata associated with the operation.",
      "properties": {
        "provider": {
          "type": "string",
          "description": "Name of the resource provider.",
          "readOnly": true
        },
        "resource": {
          "type": "string",
          "description": "Type of resource on which the operation is performed.",
          "readOnly": true
        },
        "operation": {
          "type": "string",
          "description": "Name of the operation.",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "Description of the operation.",
          "readOnly": true
        }
      }
    },
    "OperationOrigin": {
      "type": "string",
      "description": "Intended executor of the operation.",
      "enum": [
        "NotSpecified",
        "user",
        "system"
      ],
      "x-ms-enum": {
        "name": "OperationOrigin",
        "modelAsString": true,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified"
          },
          {
            "name": "user",
            "value": "user"
          },
          {
            "name": "system",
            "value": "system"
          }
        ]
      }
    },
    "OperationProperties": {
      "type": "object",
      "description": "Additional properties for operation metadata.",
      "properties": {
        "serviceSpecification": {
          "$ref": "#/$defs/ServiceSpecification",
          "description": "Service specification for the operation."
        }
      }
    },
    "ServiceSpecification": {
      "type": "object",
      "description": "Service specification for an operation.",
      "properties": {
        "metricSpecifications": {
          "type": "array",
          "description": "Metric specifications for the operation.",
          "items": {
            "$ref": "#/$defs/MetricSpecification"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        },
        "logSpecifications": {
          "type": "array",
          "description": "Log specifications for the operation.",
          "items": {
            "$ref": "#/$defs/LogSpecification"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    }
  }
}