{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-storage-accounts/json-schema/azure-storage-accounts-context-cache-update-schema.json",
  "title": "ContextCacheUpdate",
  "description": "The type used for update operations of the Context Cache.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-storage-accounts-contextcaches-api-openapi.yml#/components/schemas/ContextCacheUpdate",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity",
      "description": "The managed service identity."
    },
    "properties": {
      "$ref": "#/$defs/ContextCachePropertiesUpdate",
      "description": "The updatable properties of the Context Cache."
    }
  },
  "$defs": {
    "Azure.Core.uuid": {
      "type": "string",
      "format": "uuid",
      "description": "Universally Unique Identifier"
    },
    "Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption": {
      "type": "object",
      "description": "Customer-managed key encryption properties for the resource.",
      "properties": {
        "keyEncryptionKeyIdentity": {
          "$ref": "#/$defs/Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity",
          "description": "All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault."
        },
        "keyEncryptionKeyUrl": {
          "type": "string",
          "description": "key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek."
        }
      }
    },
    "Azure.ResourceManager.CommonTypes.Encryption": {
      "type": "object",
      "description": "(Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled.",
      "properties": {
        "infrastructureEncryption": {
          "$ref": "#/$defs/Azure.ResourceManager.CommonTypes.InfrastructureEncryption",
          "description": "Values are enabled and disabled."
        },
        "customerManagedKeyEncryption": {
          "$ref": "#/$defs/Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption",
          "description": "All Customer-managed key encryption properties for the resource."
        }
      }
    },
    "Azure.ResourceManager.CommonTypes.InfrastructureEncryption": {
      "type": "string",
      "description": "(Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled.",
      "enum": [
        "enabled",
        "disabled"
      ],
      "x-ms-enum": {
        "name": "InfrastructureEncryption",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "enabled",
            "description": "Encryption is enabled"
          },
          {
            "name": "Disabled",
            "value": "disabled",
            "description": "Encryption is disabled"
          }
        ]
      }
    },
    "Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity": {
      "type": "object",
      "description": "All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.",
      "properties": {
        "identityType": {
          "$ref": "#/$defs/Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentityType",
          "description": "The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or delegatedResourceIdentity."
        },
        "userAssignedIdentityResourceId": {
          "type": "string",
          "format": "arm-id",
          "description": "User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity."
        },
        "federatedClientId": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "application client identity to use for accessing key encryption key Url in a different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540"
        },
        "delegatedIdentityClientId": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only."
        }
      }
    },
    "Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentityType": {
      "type": "string",
      "description": "The type of identity to use.",
      "enum": [
        "systemAssignedIdentity",
        "userAssignedIdentity",
        "delegatedResourceIdentity"
      ],
      "x-ms-enum": {
        "name": "KeyEncryptionKeyIdentityType",
        "modelAsString": true,
        "values": [
          {
            "name": "SystemAssignedIdentity",
            "value": "systemAssignedIdentity",
            "description": "System assigned identity"
          },
          {
            "name": "UserAssignedIdentity",
            "value": "userAssignedIdentity",
            "description": "User assigned identity"
          },
          {
            "name": "DelegatedResourceIdentity",
            "value": "delegatedResourceIdentity",
            "description": "Delegated identity"
          }
        ]
      }
    },
    "ContextCachePropertiesUpdate": {
      "type": "object",
      "description": "Updatable properties of the Context Cache.",
      "properties": {
        "description": {
          "type": "string",
          "description": "Account description.",
          "maxLength": 250
        },
        "encryption": {
          "$ref": "#/$defs/Azure.ResourceManager.CommonTypes.Encryption",
          "description": "Encryption settings for the account."
        }
      }
    },
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Managed service identity (system assigned and/or user assigned identities)",
      "properties": {
        "principalId": {
          "type": "string",
          "format": "uuid",
          "description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "format": "uuid",
          "description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ManagedServiceIdentityType"
        },
        "userAssignedIdentities": {
          "$ref": "#/$defs/UserAssignedIdentities"
        }
      },
      "required": [
        "type"
      ]
    }
  }
}