{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-module-list-result-schema.json",
  "title": "ModuleListResult",
  "description": "The response of a Module list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-module-api-openapi.yml#/components/schemas/ModuleListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The Module items on this page",
      "items": {
        "$ref": "#/$defs/Module"
      }
    },
    "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."
        }
      }
    },
    "Module": {
      "type": "object",
      "description": "Definition of the module type.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ModuleProperties",
          "description": "Gets or sets the module properties.",
          "x-ms-client-flatten": true
        },
        "etag": {
          "type": "string",
          "description": "Gets or sets the etag of the resource."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/TrackedResource"
        }
      ]
    },
    "ModuleErrorInfo": {
      "type": "object",
      "description": "Definition of the module error info type.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Gets or sets the error code."
        },
        "message": {
          "type": "string",
          "description": "Gets or sets the error message."
        }
      }
    },
    "ModuleProperties": {
      "type": "object",
      "description": "Definition of the module property type.",
      "properties": {
        "isGlobal": {
          "type": "boolean",
          "description": "Gets or sets the isGlobal flag of the module."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the module."
        },
        "sizeInBytes": {
          "type": "integer",
          "format": "int64",
          "description": "Gets or sets the size in bytes of the module."
        },
        "activityCount": {
          "type": "integer",
          "format": "int32",
          "description": "Gets or sets the activity count of the module."
        },
        "provisioningState": {
          "$ref": "#/$defs/ModuleProvisioningState",
          "description": "Gets or sets the provisioning state of the module."
        },
        "contentLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets or sets the contentLink of the module."
        },
        "error": {
          "$ref": "#/$defs/ModuleErrorInfo",
          "description": "Gets or sets the error info of the module."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the creation time."
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the last modified time."
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description."
        },
        "isComposite": {
          "type": "boolean",
          "description": "Gets or sets type of module, if its composite or not."
        }
      }
    },
    "ModuleProvisioningState": {
      "type": "string",
      "description": "Gets or sets the provisioning state of the module.",
      "enum": [
        "Created",
        "Creating",
        "StartingImportModuleRunbook",
        "RunningImportModuleRunbook",
        "ContentRetrieved",
        "ContentDownloaded",
        "ContentValidated",
        "ConnectionTypeImported",
        "ContentStored",
        "ModuleDataStored",
        "ActivitiesStored",
        "ModuleImportRunbookComplete",
        "Succeeded",
        "Failed",
        "Canceled",
        "Updating"
      ],
      "x-ms-enum": {
        "name": "ModuleProvisioningState",
        "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"
          }
        ]
      }
    },
    "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"
        }
      ]
    }
  }
}