{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-package-list-result-schema.json",
  "title": "PackageListResult",
  "description": "The response of a Package list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-package-api-openapi.yml#/components/schemas/PackageListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The Package items on this page",
      "items": {
        "$ref": "#/$defs/Package"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ContentHash": {
      "type": "object",
      "description": "Definition of the runbook property type.",
      "properties": {
        "algorithm": {
          "type": "string",
          "description": "Gets or sets the content hash algorithm used to hash the content."
        },
        "value": {
          "type": "string",
          "description": "Gets or sets expected hash value of the content."
        }
      },
      "required": [
        "algorithm",
        "value"
      ]
    },
    "ContentLink": {
      "type": "object",
      "description": "Definition of the content link.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Gets or sets the uri of content."
        },
        "contentHash": {
          "$ref": "#/$defs/ContentHash",
          "description": "Gets or sets the hash."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the content."
        }
      }
    },
    "Package": {
      "type": "object",
      "description": "Definition of the Package type.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/PackageProperties",
          "description": "Gets or sets the Package properties.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/TrackedResource"
        }
      ]
    },
    "PackageErrorInfo": {
      "type": "object",
      "description": "Definition of the package error info type.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Package import error code."
        },
        "message": {
          "type": "string",
          "description": "Package import error message."
        }
      }
    },
    "PackageProperties": {
      "type": "object",
      "description": "Definition of the package property type.",
      "properties": {
        "default": {
          "type": "boolean",
          "description": "Gets or sets the isGlobal flag of the package."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the Package."
        },
        "sizeInBytes": {
          "type": "integer",
          "format": "int64",
          "description": "Gets or sets the size in bytes of the Package."
        },
        "provisioningState": {
          "$ref": "#/$defs/PackageProvisioningState",
          "description": "Gets or sets the provisioning state of the Package.",
          "readOnly": true
        },
        "contentLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets or sets the contentLink of the Package."
        },
        "error": {
          "$ref": "#/$defs/PackageErrorInfo",
          "description": "Gets or sets the error info of the Package."
        },
        "allOf": {
          "$ref": "#/$defs/systemData",
          "description": "Metadata pertaining to creation and last modification of the resource."
        }
      }
    },
    "PackageProvisioningState": {
      "type": "string",
      "description": "Gets or sets the provisioning state of the Package.",
      "enum": [
        "Created",
        "Creating",
        "StartingImportModuleRunbook",
        "RunningImportModuleRunbook",
        "ContentRetrieved",
        "ContentDownloaded",
        "ContentValidated",
        "ConnectionTypeImported",
        "ContentStored",
        "ModuleDataStored",
        "ActivitiesStored",
        "ModuleImportRunbookComplete",
        "Succeeded",
        "Failed",
        "Canceled",
        "Updating"
      ],
      "x-ms-enum": {
        "name": "PackageProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Created",
            "value": "Created",
            "description": "Created"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "StartingImportModuleRunbook",
            "value": "StartingImportModuleRunbook",
            "description": "StartingImportModuleRunbook"
          },
          {
            "name": "RunningImportModuleRunbook",
            "value": "RunningImportModuleRunbook",
            "description": "RunningImportModuleRunbook"
          },
          {
            "name": "ContentRetrieved",
            "value": "ContentRetrieved",
            "description": "ContentRetrieved"
          },
          {
            "name": "ContentDownloaded",
            "value": "ContentDownloaded",
            "description": "ContentDownloaded"
          },
          {
            "name": "ContentValidated",
            "value": "ContentValidated",
            "description": "ContentValidated"
          },
          {
            "name": "ConnectionTypeImported",
            "value": "ConnectionTypeImported",
            "description": "ConnectionTypeImported"
          },
          {
            "name": "ContentStored",
            "value": "ContentStored",
            "description": "ContentStored"
          },
          {
            "name": "ModuleDataStored",
            "value": "ModuleDataStored",
            "description": "ModuleDataStored"
          },
          {
            "name": "ActivitiesStored",
            "value": "ActivitiesStored",
            "description": "ActivitiesStored"
          },
          {
            "name": "ModuleImportRunbookComplete",
            "value": "ModuleImportRunbookComplete",
            "description": "ModuleImportRunbookComplete"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          }
        ]
      }
    },
    "Resource": {
      "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
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "systemData": {
      "type": "object",
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      },
      "readOnly": true
    }
  }
}