Microsoft Graph · Schema

microsoft.graph.restoreSessionBase

Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoftgraphrestoresessionbase-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/microsoft.graph.restoreSessionBase",
  "title": "microsoft.graph.restoreSessionBase",
  "allOf": [
    {
      "$ref": "#/components/schemas/microsoft.graph.entity"
    },
    {
      "title": "restoreSessionBase",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "completedDateTime": {
          "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",
          "description": "The time of completion of the restore session.",
          "format": "date-time",
          "nullable": true
        },
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "The identity of person who created the restore session."
        },
        "createdDateTime": {
          "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",
          "description": "The time of creation of the restore session.",
          "format": "date-time",
          "nullable": true
        },
        "error": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.publicError"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Contains error details if the restore session fails or completes with an error."
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.identitySet"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Identity of the person who last modified the restore session."
        },
        "lastModifiedDateTime": {
          "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",
          "description": "Timestamp of the last modification of the restore session.",
          "format": "date-time",
          "nullable": true
        },
        "restoreJobType": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.restoreJobType"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Indicates whether the restore session was created normally or by a bulk job."
        },
        "restoreSessionArtifactCount": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.restoreSessionArtifactCount"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "The number of metadata artifacts that belong to this restore session."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.restoreSessionStatus"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Status of the restore session. The value is an aggregated status of the restored artifacts. The possible values are: draft, activating, active, completedWithError, completed, unknownFutureValue, failed. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: failed."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "discriminator": {
        "propertyName": "@odata.type",
        "mapping": {
          "#microsoft.graph.exchangeRestoreSession": "#/components/schemas/microsoft.graph.exchangeRestoreSession",
          "#microsoft.graph.oneDriveForBusinessRestoreSession": "#/components/schemas/microsoft.graph.oneDriveForBusinessRestoreSession",
          "#microsoft.graph.sharePointRestoreSession": "#/components/schemas/microsoft.graph.sharePointRestoreSession"
        }
      }
    }
  ]
}