{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-operation-status-schema.json",
  "title": "OperationStatus",
  "description": "Operation status.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupoperationstatuses-api-openapi.yml#/components/schemas/OperationStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the operation."
    },
    "name": {
      "type": "string",
      "description": "Name of the operation."
    },
    "status": {
      "$ref": "#/$defs/OperationStatusValues",
      "description": "Operation status."
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "Operation start time. Format: ISO-8601."
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "Operation end time. Format: ISO-8601."
    },
    "error": {
      "$ref": "#/$defs/OperationStatusError",
      "description": "Error information related to this operation."
    },
    "properties": {
      "$ref": "#/$defs/OperationStatusExtendedInfo",
      "description": "Additional information associated with this operation."
    }
  },
  "$defs": {
    "OperationStatusError": {
      "type": "object",
      "description": "Error information associated with operation status call.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Error code of the operation failure."
        },
        "message": {
          "type": "string",
          "description": "Error message displayed if the operation failure."
        }
      }
    },
    "OperationStatusExtendedInfo": {
      "type": "object",
      "description": "Base class for additional information of operation status.",
      "properties": {
        "objectType": {
          "type": "string",
          "description": "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."
        }
      },
      "required": [
        "objectType"
      ]
    },
    "OperationStatusValues": {
      "type": "string",
      "description": "Operation status.",
      "enum": [
        "Invalid",
        "InProgress",
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "OperationStatusValues",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "InProgress",
            "value": "InProgress"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          }
        ]
      }
    }
  }
}