{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-hyperv-job-schema.json",
  "title": "HypervJob",
  "description": "A job resource belonging to a site resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-hypervjobs-api-openapi.yml#/components/schemas/HypervJob",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/JobProperties",
      "description": "The resource-specific properties for this resource.",
      "x-ms-client-flatten": true,
      "x-ms-mutability": [
        "read",
        "create"
      ]
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "ErrorDetails": {
      "type": "object",
      "description": "Error contract returned when some exception occurs in Rest API.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Gets the error code.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "Gets the error message.",
          "readOnly": true
        },
        "possibleCauses": {
          "type": "string",
          "description": "Gets the possible causes of error.",
          "readOnly": true
        },
        "recommendedAction": {
          "type": "string",
          "description": "Gets the recommended action to resolve error.",
          "readOnly": true
        },
        "severity": {
          "type": "string",
          "description": "Gets the error severity.",
          "readOnly": true
        },
        "isAgentReportedError": {
          "type": "boolean",
          "description": "Gets a value indicating whether the error originated from a agent or not.",
          "readOnly": true
        },
        "agentErrorCode": {
          "type": "string",
          "description": "Gets the agent error code.",
          "readOnly": true
        },
        "agentErrorMessage": {
          "type": "string",
          "description": "Gets the error message from the agent.",
          "readOnly": true
        },
        "agentErrorPossibleCauses": {
          "type": "string",
          "description": "Gets possible causes for the agent error.",
          "readOnly": true
        },
        "agentErrorRecommendedAction": {
          "type": "string",
          "description": "Gets the recommended action for the agent error.",
          "readOnly": true
        }
      }
    },
    "JobProperties": {
      "type": "object",
      "description": "Job REST Resource.",
      "properties": {
        "status": {
          "type": "string",
          "description": "Gets operation status.",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "description": "Gets operation start time.",
          "readOnly": true
        },
        "endTime": {
          "type": "string",
          "description": "Gets operation end time.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Gets or sets the display name of the Job.",
          "readOnly": true
        },
        "clientRequestId": {
          "type": "string",
          "description": "Gets the client request Id used in the operation execution context.",
          "readOnly": true
        },
        "activityId": {
          "type": "string",
          "description": "Gets the activity Id used in the operation execution context.",
          "readOnly": true
        },
        "errors": {
          "type": "array",
          "description": "Gets the errors.",
          "items": {
            "$ref": "#/$defs/ErrorDetails"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The status of the last operation.",
          "readOnly": true
        }
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "The status of the current operation.",
      "enum": [
        "Created",
        "Updated",
        "Running",
        "Completed",
        "Failed",
        "Succeeded",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Created",
            "value": "Created",
            "description": "Created value."
          },
          {
            "name": "Updated",
            "value": "Updated",
            "description": "Updated value."
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "Running value."
          },
          {
            "name": "Completed",
            "value": "Completed",
            "description": "Completed value."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed value."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded value."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled value."
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}