{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-resource-guard-resource-list-schema.json",
  "title": "ResourceGuardResourceList",
  "description": "List of ResourceGuard resources",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-resourceguardresources-api-openapi.yml#/components/schemas/ResourceGuardResourceList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "List of resources.",
      "items": {
        "$ref": "#/$defs/ResourceGuardResource"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/DppTrackedResourceList"
    }
  ],
  "$defs": {
    "DppTrackedResourceList": {
      "type": "object",
      "properties": {
        "nextLink": {
          "type": "string",
          "description": "The uri to fetch the next page of resources. Call ListNext() fetches next page of resources."
        }
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning state of the BackupVault resource",
      "enum": [
        "Failed",
        "Provisioning",
        "Succeeded",
        "Unknown",
        "Updating"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Provisioning",
            "value": "Provisioning"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Unknown",
            "value": "Unknown"
          },
          {
            "name": "Updating",
            "value": "Updating"
          }
        ]
      },
      "readOnly": true
    },
    "ResourceGuard": {
      "type": "object",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "Provisioning state of the BackupVault resource",
          "readOnly": true
        },
        "allowAutoApprovals": {
          "type": "boolean",
          "description": "This flag indicates whether auto approval is allowed or not.",
          "readOnly": true
        },
        "resourceGuardOperations": {
          "type": "array",
          "description": "{readonly} List of operation details those are protected by the ResourceGuard resource",
          "items": {
            "$ref": "#/$defs/ResourceGuardOperation"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        },
        "vaultCriticalOperationExclusionList": {
          "type": "array",
          "description": "List of critical operations which are not protected by this resourceGuard",
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string",
          "description": "Description about the pre-req steps to perform all the critical operations.",
          "readOnly": true
        }
      }
    },
    "ResourceGuardOperation": {
      "type": "object",
      "description": "This class contains all the details about a critical operation.",
      "properties": {
        "vaultCriticalOperation": {
          "type": "string",
          "description": "Name of the critical operation.",
          "readOnly": true
        },
        "requestResourceType": {
          "type": "string",
          "description": "Type of resource request.",
          "readOnly": true
        }
      }
    },
    "ResourceGuardResource": {
      "type": "object",
      "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/ResourceGuard",
          "description": "ResourceGuardResource properties"
        },
        "eTag": {
          "type": "string",
          "description": "Optional ETag."
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource"
        }
      ]
    }
  }
}