{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-backup/json-schema/microsoft-azure-backup-backup-resource-encryption-config-extended-resource-schema.json",
  "title": "BackupResourceEncryptionConfigExtendedResource",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-backup-backupresourceencryptionconfigs-api-openapi.yml#/components/schemas/BackupResourceEncryptionConfigExtendedResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/BackupResourceEncryptionConfigExtended",
      "description": "The properties of the backup resource encryption config extended resource"
    },
    "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."
    },
    "BackupResourceEncryptionConfig": {
      "type": "object",
      "properties": {
        "encryptionAtRestType": {
          "$ref": "#/$defs/EncryptionAtRestType",
          "description": "Encryption At Rest Type"
        },
        "keyUri": {
          "type": "string",
          "description": "Key Vault Key URI"
        },
        "subscriptionId": {
          "type": "string",
          "description": "Key Vault Subscription Id"
        },
        "lastUpdateStatus": {
          "$ref": "#/$defs/LastUpdateStatus"
        },
        "infrastructureEncryptionState": {
          "$ref": "#/$defs/InfrastructureEncryptionState"
        }
      }
    },
    "BackupResourceEncryptionConfigExtended": {
      "type": "object",
      "properties": {
        "userAssignedIdentity": {
          "type": "string",
          "description": "User Assigned Identity Id"
        },
        "useSystemAssignedIdentity": {
          "type": "boolean",
          "description": "bool to indicate whether to use system Assigned Identity or not"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/BackupResourceEncryptionConfig"
        }
      ]
    },
    "EncryptionAtRestType": {
      "type": "string",
      "description": "Encryption At Rest Type",
      "enum": [
        "Invalid",
        "MicrosoftManaged",
        "CustomerManaged"
      ],
      "x-ms-enum": {
        "name": "EncryptionAtRestType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "MicrosoftManaged",
            "value": "MicrosoftManaged"
          },
          {
            "name": "CustomerManaged",
            "value": "CustomerManaged"
          }
        ]
      }
    },
    "InfrastructureEncryptionState": {
      "type": "string",
      "enum": [
        "Invalid",
        "Disabled",
        "Enabled"
      ],
      "x-ms-enum": {
        "name": "InfrastructureEncryptionState",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          },
          {
            "name": "Enabled",
            "value": "Enabled"
          }
        ]
      }
    },
    "LastUpdateStatus": {
      "type": "string",
      "enum": [
        "Invalid",
        "NotEnabled",
        "PartiallySucceeded",
        "PartiallyFailed",
        "Failed",
        "Succeeded",
        "Initialized",
        "FirstInitialization"
      ],
      "x-ms-enum": {
        "name": "LastUpdateStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "NotEnabled",
            "value": "NotEnabled"
          },
          {
            "name": "PartiallySucceeded",
            "value": "PartiallySucceeded"
          },
          {
            "name": "PartiallyFailed",
            "value": "PartiallyFailed"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Initialized",
            "value": "Initialized"
          },
          {
            "name": "FirstInitialization",
            "value": "FirstInitialization"
          }
        ]
      }
    }
  }
}