{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-synapse-analytics/json-schema/microsoft-azure-synapse-analytics-operation-resource-schema.json",
  "title": "OperationResource",
  "description": "An operation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-synapse-analytics-operations-api-openapi.yml#/components/schemas/OperationResource",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Operation ID"
    },
    "name": {
      "type": "string",
      "description": "Operation name"
    },
    "status": {
      "enum": [
        "InProgress",
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "description": "Operation status",
      "type": "string",
      "x-ms-enum": {
        "name": "OperationStatus",
        "modelAsString": true
      }
    },
    "properties": {
      "type": "object",
      "description": "Operation properties",
      "x-ms-client-flatten": true
    },
    "error": {
      "$ref": "#/$defs/ErrorDetail",
      "description": "Errors from the operation"
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "Operation start time"
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "Operation start time"
    },
    "percentComplete": {
      "type": "number",
      "description": "Completion percentage of the operation"
    }
  },
  "$defs": {
    "ErrorDetail": {
      "description": "The error detail.",
      "type": "object",
      "properties": {
        "code": {
          "readOnly": true,
          "type": "string",
          "description": "The error code."
        },
        "message": {
          "readOnly": true,
          "type": "string",
          "description": "The error message."
        },
        "target": {
          "readOnly": true,
          "type": "string",
          "description": "The error target."
        },
        "details": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorDetail"
          },
          "x-ms-identifiers": [
            "message",
            "target"
          ],
          "description": "The error details."
        },
        "additionalInfo": {
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorAdditionalInfo"
          },
          "x-ms-identifiers": [],
          "description": "The error additional info."
        }
      }
    }
  }
}