{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-entra-recovery-services-recovery-job-schema.json",
  "title": "microsoft.graph.entraRecoveryServices.recoveryJob",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-directory-recovery-api-openapi.yml#/components/schemas/microsoft.graph.entraRecoveryServices.recoveryJob",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entraRecoveryServices.recoveryJobBase"
    },
    {
      "title": "recoveryJob",
      "type": "object",
      "properties": {
        "totalFailedChanges": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "format": "int32"
        },
        "totalLinksModified": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "format": "int32"
        },
        "totalObjectsModified": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.entraRecoveryServices.recoveryJobBase": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "recoveryJobBase",
          "type": "object",
          "properties": {
            "filteringCriteria": {
              "$ref": "#/$defs/microsoft.graph.entraRecoveryServices.recoveryJobFilteringCriteriaBase"
            },
            "jobCompletionDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "jobStartDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": "string",
              "format": "date-time"
            },
            "status": {
              "$ref": "#/$defs/microsoft.graph.entraRecoveryServices.recoveryStatus"
            },
            "targetStateDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": "string",
              "format": "date-time"
            },
            "totalChangedLinksCalculated": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": [
                "number",
                "null"
              ],
              "format": "int32"
            },
            "totalChangedObjectsCalculated": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": [
                "number",
                "null"
              ],
              "format": "int32"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.entraRecoveryServices.recoveryJobFilteringCriteriaBase": {
      "title": "recoveryJobFilteringCriteriaBase",
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "microsoft.graph.entraRecoveryServices.recoveryStatus": {
      "title": "recoveryStatus",
      "enum": [
        "initialized",
        "running",
        "successful",
        "failed",
        "abandoned",
        "unknownFutureValue",
        "calculating",
        "loadingData"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "recoveryStatus",
        "modelAsString": false,
        "values": [
          {
            "value": "initialized",
            "description": "Represents a job that has been initialized but has not been started yet",
            "name": "initialized"
          },
          {
            "value": "running",
            "description": "Represents a job that is in progress",
            "name": "running"
          },
          {
            "value": "successful",
            "description": "Represents a job that ran successfully and is now complete",
            "name": "successful"
          },
          {
            "value": "failed",
            "description": "Represents a job that we were not able to run successfully",
            "name": "failed"
          },
          {
            "value": "abandoned",
            "description": "Represents a job that was abandoned by the user",
            "name": "abandoned"
          },
          {
            "value": "unknownFutureValue",
            "description": "This will help in making this enum evolable and adding more values in the future-",
            "name": "unknownFutureValue"
          },
          {
            "value": "calculating",
            "description": "Represents a job for which we have started calculating the diff/preview.",
            "name": "calculating"
          },
          {
            "value": "loadingData",
            "description": "Represents a job for which we have started loading data of the snapshot.",
            "name": "loadingData"
          }
        ]
      }
    }
  }
}