{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-cross-region-restore-request-object-schema.json",
  "title": "CrossRegionRestoreRequestObject",
  "description": "Cross Region Restore Request Object",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-subscriptions-api-openapi.yml#/components/schemas/CrossRegionRestoreRequestObject",
  "type": "object",
  "properties": {
    "restoreRequestObject": {
      "$ref": "#/$defs/AzureBackupRestoreRequest",
      "description": "Gets or sets the restore request object."
    },
    "crossRegionRestoreDetails": {
      "$ref": "#/$defs/CrossRegionRestoreDetails",
      "description": "Cross region restore details."
    }
  },
  "required": [
    "restoreRequestObject",
    "crossRegionRestoreDetails"
  ],
  "$defs": {
    "AzureBackupRestoreRequest": {
      "type": "object",
      "description": "Azure backup restore request",
      "properties": {
        "objectType": {
          "type": "string"
        },
        "restoreTargetInfo": {
          "$ref": "#/$defs/RestoreTargetInfoBase",
          "description": "Gets or sets the restore target information."
        },
        "sourceDataStoreType": {
          "$ref": "#/$defs/SourceDataStoreType",
          "description": "Gets or sets the type of the source data store."
        },
        "sourceResourceId": {
          "type": "string",
          "description": "Fully qualified Azure Resource Manager ID of the datasource which is being recovered."
        },
        "resourceGuardOperationRequests": {
          "type": "array",
          "description": "ResourceGuardOperationRequests on which LAC check will be performed",
          "items": {
            "type": "string"
          }
        },
        "identityDetails": {
          "$ref": "#/$defs/IdentityDetails",
          "description": "Contains information of the Identity Details for the BI.\nIf it is null, default will be considered as System Assigned."
        }
      },
      "required": [
        "objectType",
        "restoreTargetInfo",
        "sourceDataStoreType"
      ]
    },
    "CrossRegionRestoreDetails": {
      "type": "object",
      "description": "Cross Region Restore details",
      "properties": {
        "sourceRegion": {
          "type": "string"
        },
        "sourceBackupInstanceId": {
          "type": "string"
        }
      },
      "required": [
        "sourceRegion",
        "sourceBackupInstanceId"
      ]
    },
    "IdentityDetails": {
      "type": "object",
      "properties": {
        "useSystemAssignedIdentity": {
          "type": "boolean",
          "description": "Specifies if the BI is protected by System Identity."
        },
        "userAssignedIdentityArmUrl": {
          "type": "string",
          "description": "ARM URL for User Assigned Identity."
        }
      }
    },
    "RecoveryOption": {
      "type": "string",
      "description": "Recovery Option",
      "enum": [
        "FailIfExists"
      ],
      "x-ms-enum": {
        "name": "RecoveryOption",
        "modelAsString": true,
        "values": [
          {
            "name": "FailIfExists",
            "value": "FailIfExists"
          }
        ]
      }
    },
    "RestoreTargetInfoBase": {
      "type": "object",
      "description": "Base class common to RestoreTargetInfo and RestoreFilesTargetInfo",
      "properties": {
        "objectType": {
          "type": "string",
          "description": "Type of Datasource object, used to initialize the right inherited type"
        },
        "recoveryOption": {
          "$ref": "#/$defs/RecoveryOption",
          "description": "Recovery Option"
        },
        "restoreLocation": {
          "type": "string",
          "description": "Target Restore region"
        }
      },
      "required": [
        "objectType",
        "recoveryOption"
      ]
    },
    "SourceDataStoreType": {
      "type": "string",
      "description": "Gets or sets the type of the source data store.",
      "enum": [
        "ArchiveStore",
        "SnapshotStore",
        "OperationalStore",
        "VaultStore"
      ],
      "x-ms-enum": {
        "name": "SourceDataStoreType",
        "modelAsString": true,
        "values": [
          {
            "name": "ArchiveStore",
            "value": "ArchiveStore"
          },
          {
            "name": "SnapshotStore",
            "value": "SnapshotStore"
          },
          {
            "name": "OperationalStore",
            "value": "OperationalStore"
          },
          {
            "name": "VaultStore",
            "value": "VaultStore"
          }
        ]
      }
    }
  }
}