{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-operation-status-schema.json",
  "title": "OperationStatus",
  "description": "Operation status REST resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-hypervoperationsstatuscontroller-api-openapi.yml#/components/schemas/OperationStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Gets the Id.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Gets the operation name.",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "description": "Gets the status of the operation. ARM expects the terminal status to be one\nof\n            Succeeded/ Failed/ Canceled. All other values imply that the\noperation is still running.",
      "readOnly": true
    },
    "startTime": {
      "type": "string",
      "description": "Gets the start time.",
      "readOnly": true
    },
    "endTime": {
      "type": "string",
      "description": "Gets the start time.",
      "readOnly": true
    },
    "error": {
      "$ref": "#/$defs/OperationStatusError",
      "description": "Gets the error.",
      "readOnly": true
    },
    "properties": {
      "$ref": "#/$defs/OperationStatusProperties",
      "description": "Operation status properties",
      "readOnly": true
    }
  },
  "$defs": {
    "OperationStatusError": {
      "type": "object",
      "description": "Class for operation status errors.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Gets the error code.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "Gets the error message.",
          "readOnly": true
        }
      }
    },
    "OperationStatusProperties": {
      "type": "object",
      "description": "Class for operation result properties.",
      "properties": {
        "result": {
          "type": "string",
          "description": "Gets or sets the result or output of the workflow."
        }
      }
    }
  }
}