{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-job-list-result-v2-schema.json",
  "title": "JobListResultV2",
  "description": "The response model for the list job operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-job-api-openapi.yml#/components/schemas/JobListResultV2",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The JobCollectionItem items on this page",
      "items": {
        "$ref": "#/$defs/JobCollectionItem"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "JobCollectionItem": {
      "type": "object",
      "description": "Job collection item properties.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/JobCollectionItemProperties",
          "description": "Job properties.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "properties"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "JobCollectionItemProperties": {
      "type": "object",
      "description": "Job collection item properties.",
      "properties": {
        "runbook": {
          "$ref": "#/$defs/RunbookAssociationProperty",
          "description": "The runbook association.",
          "readOnly": true
        },
        "jobId": {
          "type": "string",
          "format": "uuid",
          "description": "The id of the job.",
          "readOnly": true
        },
        "startedBy": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or sets the job started by.",
          "readOnly": true
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The creation time of the job.",
          "readOnly": true
        },
        "status": {
          "$ref": "#/$defs/JobStatus",
          "description": "The status of the job.",
          "readOnly": true
        },
        "startTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The start time of the job.",
          "readOnly": true
        },
        "endTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The end time of the job.",
          "readOnly": true
        },
        "lastModifiedTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "The last modified time of the job.",
          "readOnly": true
        },
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state of a resource.",
          "readOnly": true
        },
        "jobRuntimeEnvironment": {
          "$ref": "#/$defs/JobRuntimeEnvironment",
          "description": "Runtime Environment Property"
        },
        "runOn": {
          "type": "string",
          "description": "Specifies the runOn group name where the job was executed."
        }
      }
    },
    "JobRuntimeEnvironment": {
      "type": "object",
      "description": "The runbook property associated with the entity.",
      "properties": {
        "runtimeEnvironmentName": {
          "type": "string",
          "description": "Name of Runtime Environment."
        }
      }
    },
    "JobStatus": {
      "type": "string",
      "description": "Gets or sets the status of the job.",
      "enum": [
        "New",
        "Activating",
        "Running",
        "Completed",
        "Failed",
        "Stopped",
        "Blocked",
        "Suspended",
        "Disconnected",
        "Suspending",
        "Stopping",
        "Resuming",
        "Removing"
      ],
      "x-ms-enum": {
        "name": "JobStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "New",
            "value": "New",
            "description": "New"
          },
          {
            "name": "Activating",
            "value": "Activating",
            "description": "Activating"
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "Running"
          },
          {
            "name": "Completed",
            "value": "Completed",
            "description": "Completed"
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Stopped",
            "value": "Stopped",
            "description": "Stopped"
          },
          {
            "name": "Blocked",
            "value": "Blocked",
            "description": "Blocked"
          },
          {
            "name": "Suspended",
            "value": "Suspended",
            "description": "Suspended"
          },
          {
            "name": "Disconnected",
            "value": "Disconnected",
            "description": "Disconnected"
          },
          {
            "name": "Suspending",
            "value": "Suspending",
            "description": "Suspending"
          },
          {
            "name": "Stopping",
            "value": "Stopping",
            "description": "Stopping"
          },
          {
            "name": "Resuming",
            "value": "Resuming",
            "description": "Resuming"
          },
          {
            "name": "Removing",
            "value": "Removing",
            "description": "Removing"
          }
        ]
      }
    },
    "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"
        }
      ]
    },
    "RunbookAssociationProperty": {
      "type": "object",
      "description": "The runbook property associated with the entity.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the runbook."
        }
      }
    }
  }
}