{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-backup-resource-config-resource-schema.json",
  "title": "BackupResourceConfigResource",
  "description": "The resource storage details.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupresourcestorageconfigsnoncrr-api-openapi.yml#/components/schemas/BackupResourceConfigResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/BackupResourceConfig",
      "description": "BackupResourceConfigResource 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."
    },
    "BackupResourceConfig": {
      "type": "object",
      "description": "The resource storage 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."
        },
        "crossRegionRestoreFlag": {
          "type": "boolean",
          "description": "Opt in details of Cross Region Restore feature."
        },
        "dedupState": {
          "$ref": "#/$defs/DedupState",
          "description": "Vault Dedup state"
        },
        "xcoolState": {
          "$ref": "#/$defs/XcoolState",
          "description": "Vault x-cool state"
        }
      }
    },
    "DedupState": {
      "type": "string",
      "description": "Vault Dedup state",
      "enum": [
        "Invalid",
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "DedupState",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    },
    "XcoolState": {
      "type": "string",
      "description": "Vault x-cool state",
      "enum": [
        "Invalid",
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "XcoolState",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    }
  }
}