{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-test-labs/json-schema/azure-test-labs-disk-list-schema.json",
  "title": "DiskList",
  "description": "The response of a list operation.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-test-labs-disks-api-openapi.yml#/components/schemas/DiskList",
  "properties": {
    "nextLink": {
      "description": "Link for next set of results.",
      "type": "string"
    },
    "value": {
      "description": "Results of the list operation.",
      "items": {
        "$ref": "#/$defs/Disk"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "Disk": {
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ],
      "description": "A Disk.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/DiskProperties",
          "description": "The properties of the resource.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "properties"
      ],
      "type": "object"
    },
    "DiskProperties": {
      "description": "Properties of a disk.",
      "properties": {
        "createdDate": {
          "description": "The creation date of the disk.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "diskBlobName": {
          "description": "When backed by a blob, the name of the VHD blob without extension.",
          "type": "string"
        },
        "diskSizeGiB": {
          "description": "The size of the disk in GibiBytes.",
          "format": "int32",
          "type": "integer"
        },
        "diskType": {
          "description": "The storage type for the disk (i.e. Standard, Premium).",
          "enum": [
            "Standard",
            "Premium",
            "StandardSSD"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "StorageType"
          }
        },
        "diskUri": {
          "description": "When backed by a blob, the URI of underlying blob.",
          "type": "string"
        },
        "hostCaching": {
          "description": "The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).",
          "type": "string"
        },
        "leasedByLabVmId": {
          "description": "The resource ID of the VM to which this disk is leased.",
          "type": "string"
        },
        "managedDiskId": {
          "description": "When backed by managed disk, this is the ID of the compute disk resource.",
          "type": "string"
        },
        "provisioningState": {
          "description": "The provisioning status of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "uniqueIdentifier": {
          "description": "The unique immutable identifier of a resource (Guid).",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "Resource": {
      "description": "An Azure resource.",
      "properties": {
        "id": {
          "description": "The identifier of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "location": {
          "description": "The location of the resource.",
          "type": "string"
        },
        "name": {
          "description": "The name of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the resource.",
          "type": "object"
        },
        "type": {
          "description": "The type of the resource.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object",
      "x-ms-azure-resource": true
    }
  }
}