{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-job-resource-schema.json",
  "title": "JobResource",
  "description": "Defines workload agnostic properties for a job.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-backup-job-details-api-openapi.yml#/components/schemas/JobResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/Job",
      "description": "JobResource properties"
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "location": {
      "$ref": "#/$defs/Azure.Core.azureLocation",
      "description": "The geo-location where the resource lives",
      "x-ms-mutability": [
        "read",
        "create"
      ]
    },
    "eTag": {
      "type": "string",
      "description": "Optional ETag."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "Azure.Core.azureLocation": {
      "type": "string",
      "description": "Represents an Azure geography region where supported resource providers live."
    },
    "BackupManagementType": {
      "type": "string",
      "description": "Backup management type to execute the current job.",
      "enum": [
        "Invalid",
        "AzureIaasVM",
        "MAB",
        "DPM",
        "AzureBackupServer",
        "AzureSql",
        "AzureStorage",
        "AzureWorkload",
        "DefaultBackup"
      ],
      "x-ms-enum": {
        "name": "BackupManagementType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "AzureIaasVM",
            "value": "AzureIaasVM"
          },
          {
            "name": "MAB",
            "value": "MAB"
          },
          {
            "name": "DPM",
            "value": "DPM"
          },
          {
            "name": "AzureBackupServer",
            "value": "AzureBackupServer"
          },
          {
            "name": "AzureSql",
            "value": "AzureSql"
          },
          {
            "name": "AzureStorage",
            "value": "AzureStorage"
          },
          {
            "name": "AzureWorkload",
            "value": "AzureWorkload"
          },
          {
            "name": "DefaultBackup",
            "value": "DefaultBackup"
          }
        ]
      }
    },
    "Job": {
      "type": "object",
      "description": "Defines workload agnostic properties for a job.",
      "properties": {
        "entityFriendlyName": {
          "type": "string",
          "description": "Friendly name of the entity on which the current job is executing."
        },
        "backupManagementType": {
          "$ref": "#/$defs/BackupManagementType",
          "description": "Backup management type to execute the current job."
        },
        "operation": {
          "type": "string",
          "description": "The operation name."
        },
        "status": {
          "type": "string",
          "description": "Job status."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time."
        },
        "activityId": {
          "type": "string",
          "description": "ActivityId of job."
        },
        "jobType": {
          "type": "string",
          "description": "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."
        }
      },
      "required": [
        "jobType"
      ]
    },
    "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",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "type": "object",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "systemData": {
      "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
    }
  }
}