{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-workload-protectable-item-resource-list-schema.json",
  "title": "WorkloadProtectableItemResourceList",
  "description": "List of WorkloadProtectableItem resources",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupprotectableitems-api-openapi.yml#/components/schemas/WorkloadProtectableItemResourceList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "List of resources.",
      "items": {
        "$ref": "#/$defs/WorkloadProtectableItemResource"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ResourceList"
    }
  ],
  "$defs": {
    "Azure.Core.azureLocation": {
      "type": "string",
      "description": "Represents an Azure geography region where supported resource providers live."
    },
    "ProtectionStatus": {
      "type": "string",
      "description": "Specifies whether the container is registered or not",
      "enum": [
        "Invalid",
        "NotProtected",
        "Protecting",
        "Protected",
        "ProtectionFailed"
      ],
      "x-ms-enum": {
        "name": "ProtectionStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "NotProtected",
            "value": "NotProtected"
          },
          {
            "name": "Protecting",
            "value": "Protecting"
          },
          {
            "name": "Protected",
            "value": "Protected"
          },
          {
            "name": "ProtectionFailed",
            "value": "ProtectionFailed"
          }
        ]
      }
    },
    "ResourceList": {
      "type": "object",
      "description": "Base for all lists of resources.",
      "properties": {
        "nextLink": {
          "type": "string",
          "description": "The URI to fetch the next page of resources, with each API call returning up to 200 resources per page. Use ListNext() to fetch the next page if the total number of resources exceeds 200."
        }
      }
    },
    "WorkloadProtectableItem": {
      "type": "object",
      "description": "Base class for backup item. Workload-specific backup items are derived from this class.",
      "properties": {
        "backupManagementType": {
          "type": "string",
          "description": "Type of backup management to backup an item."
        },
        "workloadType": {
          "type": "string",
          "description": "Type of workload for the backup management"
        },
        "protectableItemType": {
          "type": "string",
          "description": "Type of the backup item."
        },
        "friendlyName": {
          "type": "string",
          "description": "Friendly name of the backup item."
        },
        "protectionState": {
          "$ref": "#/$defs/ProtectionStatus",
          "description": "State of the back up item."
        }
      },
      "required": [
        "protectableItemType"
      ]
    },
    "WorkloadProtectableItemResource": {
      "type": "object",
      "description": "Base class for backup item. Workload-specific backup items are derived from this class.",
      "properties": {
        "location": {
          "$ref": "#/$defs/Azure.Core.azureLocation",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "eTag": {
          "type": "string",
          "description": "Optional ETag."
        },
        "properties": {
          "$ref": "#/$defs/WorkloadProtectableItem",
          "description": "WorkloadProtectableItemResource properties"
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/Resource"
        }
      ]
    }
  }
}