{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-batch/json-schema/microsoft-azure-batch-list-application-packages-result-schema.json",
  "title": "ListApplicationPackagesResult",
  "description": "The result of performing list application packages.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-batch-applicationpackage-api-openapi.yml#/components/schemas/ListApplicationPackagesResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The ApplicationPackage items on this page",
      "items": {
        "$ref": "#/$defs/ApplicationPackage"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ApplicationPackage": {
      "type": "object",
      "description": "An application package which represents a particular version of an application.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ApplicationPackageProperties",
          "description": "The properties associated with the Application Package.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "The ETag of the resource, used for concurrency statements.",
          "readOnly": true
        },
        "tags": {
          "type": "object",
          "description": "The tags of the resource.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "ApplicationPackageProperties": {
      "type": "object",
      "description": "Properties of an application package",
      "properties": {
        "state": {
          "$ref": "#/$defs/PackageState",
          "description": "The current state of the application package.",
          "readOnly": true
        },
        "format": {
          "type": "string",
          "description": "The format of the application package, if the package is active.",
          "readOnly": true
        },
        "storageUrl": {
          "type": "string",
          "description": "The URL for the application package in Azure Storage.",
          "readOnly": true
        },
        "storageUrlExpiry": {
          "type": "string",
          "format": "date-time",
          "description": "The UTC time at which the Azure Storage URL will expire.",
          "readOnly": true
        },
        "lastActivationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the package was last activated, if the package is active.",
          "readOnly": true
        }
      }
    },
    "PackageState": {
      "type": "string",
      "description": "The current state of the application package.",
      "enum": [
        "Pending",
        "Active"
      ],
      "x-ms-enum": {
        "name": "PackageState",
        "modelAsString": false,
        "values": [
          {
            "name": "Pending",
            "value": "Pending",
            "description": "The application package has been created but has not yet been activated."
          },
          {
            "name": "Active",
            "value": "Active",
            "description": "The application package is ready for use."
          }
        ]
      }
    }
  }
}