{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-backup-resource-vault-config-resource-schema.json",
  "title": "BackupResourceVaultConfigResource",
  "description": "Backup resource vault config details.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupresourcevaultconfigs-api-openapi.yml#/components/schemas/BackupResourceVaultConfigResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/BackupResourceVaultConfig",
      "description": "BackupResourceVaultConfigResource 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."
    },
    "BackupResourceVaultConfig": {
      "type": "object",
      "description": "Backup resource vault config details.",
      "properties": {
        "storageModelType": {
          "$ref": "#/$defs/StorageType",
          "description": "Storage type."
        },
        "storageType": {
          "$ref": "#/$defs/StorageType",
          "description": "Storage type."
        },
        "storageTypeState": {
          "$ref": "#/$defs/StorageTypeState",
          "description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked."
        },
        "enhancedSecurityState": {
          "$ref": "#/$defs/EnhancedSecurityState",
          "description": "Enabled or Disabled."
        },
        "softDeleteFeatureState": {
          "$ref": "#/$defs/SoftDeleteFeatureState",
          "description": "Soft Delete feature state"
        },
        "softDeleteRetentionPeriodInDays": {
          "type": "integer",
          "format": "int32",
          "description": "Soft delete retention period in days"
        },
        "resourceGuardOperationRequests": {
          "type": "array",
          "description": "ResourceGuard Operation Requests",
          "items": {
            "type": "string"
          }
        },
        "isSoftDeleteFeatureStateEditable": {
          "type": "boolean",
          "description": "This flag is no longer in use. Please use 'softDeleteFeatureState' to set the soft delete state for the vault"
        }
      }
    },
    "EnhancedSecurityState": {
      "type": "string",
      "description": "Enabled or Disabled.",
      "enum": [
        "Invalid",
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnhancedSecurityState",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "SoftDeleteFeatureState": {
      "type": "string",
      "description": "Soft Delete feature state",
      "enum": [
        "Invalid",
        "Enabled",
        "Disabled",
        "AlwaysON"
      ],
      "x-ms-enum": {
        "name": "SoftDeleteFeatureState",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          },
          {
            "name": "AlwaysON",
            "value": "AlwaysON"
          }
        ]
      }
    },
    "StorageType": {
      "type": "string",
      "description": "Storage type",
      "enum": [
        "Invalid",
        "GeoRedundant",
        "LocallyRedundant",
        "ZoneRedundant",
        "ReadAccessGeoZoneRedundant"
      ],
      "x-ms-enum": {
        "name": "StorageType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "GeoRedundant",
            "value": "GeoRedundant"
          },
          {
            "name": "LocallyRedundant",
            "value": "LocallyRedundant"
          },
          {
            "name": "ZoneRedundant",
            "value": "ZoneRedundant"
          },
          {
            "name": "ReadAccessGeoZoneRedundant",
            "value": "ReadAccessGeoZoneRedundant"
          }
        ]
      }
    },
    "StorageTypeState": {
      "type": "string",
      "description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked.",
      "enum": [
        "Invalid",
        "Locked",
        "Unlocked"
      ],
      "x-ms-enum": {
        "name": "StorageTypeState",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Locked",
            "value": "Locked"
          },
          {
            "name": "Unlocked",
            "value": "Unlocked"
          }
        ]
      }
    }
  }
}