{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-protection-policy-resource-schema.json",
  "title": "ProtectionPolicyResource",
  "description": "Base class for backup policy. Workload-specific backup policies are derived from this class.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-protectionpolicyoperationresults-api-openapi.yml#/components/schemas/ProtectionPolicyResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ProtectionPolicy",
      "description": "ProtectionPolicyResource properties"
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "location": {
      "$ref": "#/$defs/Azure.Core.azureLocation",
      "description": "The geo-location where the resource lives",
      "x-ms-mutability": [
        "read",
        "create"
      ]
    },
    "eTag": {
      "type": "string",
      "description": "Optional ETag."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "Azure.Core.azureLocation": {
      "type": "string",
      "description": "Represents an Azure geography region where supported resource providers live."
    },
    "ProtectionPolicy": {
      "type": "object",
      "description": "Base class for backup policy. Workload-specific backup policies are derived from this class.",
      "properties": {
        "protectedItemsCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of items associated with this policy."
        },
        "backupManagementType": {
          "type": "string",
          "description": "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."
        },
        "resourceGuardOperationRequests": {
          "type": "array",
          "description": "ResourceGuard Operation Requests",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "backupManagementType"
      ]
    }
  }
}