{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-entra/json-schema/microsoft-entra-microsoft-graph-archived-print-job-schema.json",
  "title": "archivedPrintJob",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-entra-reports-reportroot-functions-api-openapi.yml#/components/schemas/microsoft.graph.archivedPrintJob",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "acquiredByPrinter": {
      "type": "boolean",
      "description": "True if the job was acquired by a printer; false otherwise. Read-only."
    },
    "acquiredDateTime": {
      "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"
      ],
      "description": "The dateTimeOffset when the job was acquired by the printer, if any. Read-only.",
      "format": "date-time"
    },
    "completionDateTime": {
      "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"
      ],
      "description": "The dateTimeOffset when the job was completed, canceled, or aborted. Read-only.",
      "format": "date-time"
    },
    "copiesPrinted": {
      "maximum": 2147483647,
      "minimum": -2147483648,
      "type": "number",
      "description": "The number of copies that were printed. Read-only.",
      "format": "int32"
    },
    "createdBy": {
      "anyOf": [
        {
          "$ref": "#/$defs/microsoft.graph.userIdentity"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ],
      "description": "The user who created the print job. Read-only."
    },
    "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 dateTimeOffset when the job was created. Read-only.",
      "format": "date-time"
    },
    "id": {
      "type": "string",
      "description": "The archived print job's GUID. Read-only."
    },
    "printerId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The printer ID that the job was queued for. Read-only."
    },
    "printerName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The printer name that the job was queued for. Read-only."
    },
    "processingState": {
      "$ref": "#/$defs/microsoft.graph.printJobProcessingState"
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "microsoft.graph.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.printJobProcessingState": {
      "title": "printJobProcessingState",
      "enum": [
        "unknown",
        "pending",
        "processing",
        "paused",
        "stopped",
        "completed",
        "canceled",
        "aborted",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.userIdentity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        {
          "title": "userIdentity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "ipAddress": {
              "type": [
                "string",
                "null"
              ],
              "description": "Indicates the client IP address associated with the user performing the activity (audit log only)."
            },
            "userPrincipalName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The userPrincipalName attribute of the user."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.userIdentity"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.userIdentity"
    }
  }
}