[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eEncryptionKey\u003c/code\u003e class for the Backup for GKE v1 API is 2.6.0, and older versions are available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryptionKey\u003c/code\u003e class is a part of the \u003ccode\u003eGoogle.Cloud.GkeBackup.V1\u003c/code\u003e namespace and is defined in the \u003ccode\u003eGoogle.Cloud.GkeBackup.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis class is designed to define a customer-managed encryption key used to encrypt Backup artifacts, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eEncryptionKey\u003c/code\u003e includes properties for \u003ccode\u003eGcpKmsEncryptionKey\u003c/code\u003e, a string representing the Google Cloud KMS encryption key, and \u003ccode\u003eGcpKmsEncryptionKeyAsCryptoKeyName\u003c/code\u003e, a \u003ccode\u003eCryptoKeyName\u003c/code\u003e-typed view of the encryption key.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the class, one without parameters and the other taking an \u003ccode\u003eEncryptionKey\u003c/code\u003e object for deep cloning.\u003c/p\u003e\n"]]],[],null,["# Backup for GKE v1 API - Class EncryptionKey (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.7.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.6.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.5.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.4.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.3.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.2.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.1.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.0.0/Google.Cloud.GkeBackup.V1.EncryptionKey)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/1.0.0-beta01/Google.Cloud.GkeBackup.V1.EncryptionKey) \n\n public sealed class EncryptionKey : IMessage\u003cEncryptionKey\u003e, IEquatable\u003cEncryptionKey\u003e, IDeepCloneable\u003cEncryptionKey\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup for GKE v1 API class EncryptionKey.\n\nDefined a customer managed encryption key that will be used to encrypt Backup\nartifacts. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EncryptionKey \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EncryptionKey](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.EncryptionKey), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EncryptionKey](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.EncryptionKey), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EncryptionKey](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.EncryptionKey), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeBackup.V1](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeBackup.V1.dll\n\nConstructors\n------------\n\n### EncryptionKey()\n\n public EncryptionKey()\n\n### EncryptionKey(EncryptionKey)\n\n public EncryptionKey(EncryptionKey other)\n\nProperties\n----------\n\n### GcpKmsEncryptionKey\n\n public string GcpKmsEncryptionKey { get; set; }\n\nOptional. Google Cloud KMS encryption key. Format:\n`projects/*/locations/*/keyRings/*/cryptoKeys/*`\n\n### GcpKmsEncryptionKeyAsCryptoKeyName\n\n public CryptoKeyName GcpKmsEncryptionKeyAsCryptoKeyName { get; set; }\n\n[CryptoKeyName](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.CryptoKeyName)-typed view over the [GcpKmsEncryptionKey](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.EncryptionKey#Google_Cloud_GkeBackup_V1_EncryptionKey_GcpKmsEncryptionKey) resource name property."]]