The name of the Cloud KMS key that will be used to decrypt the secret
value. The VM service account must have the required permissions and
authentication scopes to invoke the decrypt method on the specified key.
[[["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 \u003ccode\u003eSecret\u003c/code\u003e class in the Google Cloud Life Sciences v2beta API is designed to hold encrypted data, which is decrypted and stored only in the worker VM's RAM during pipeline execution.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSecret\u003c/code\u003e class is 2.0.0-beta06, with previous versions available as 2.0.0-beta05 and 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecret\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling various functionalities like message handling and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eIt has two properties: \u003ccode\u003eCipherText\u003c/code\u003e, which stores the encrypted value, and \u003ccode\u003eKeyName\u003c/code\u003e, which specifies the Cloud KMS key used for decryption, requiring appropriate permissions for the VM service account.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: one empty, and another that accepts a \u003ccode\u003eSecret\u003c/code\u003e object as parameter.\u003c/p\u003e\n"]]],[],null,["# Cloud Life Sciences v2beta API - Class Secret (2.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Secret)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta05/Google.Cloud.LifeSciences.V2Beta.Secret)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.Secret) \n\n public sealed class Secret : IMessage\u003cSecret\u003e, IEquatable\u003cSecret\u003e, IDeepCloneable\u003cSecret\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Life Sciences v2beta API class Secret.\n\nHolds encrypted information that is only decrypted and stored in RAM\nby the worker VM when running the pipeline. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Secret \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Secret](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Secret), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Secret](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Secret), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Secret](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Secret), [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.LifeSciences.V2Beta](/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.LifeSciences.V2Beta.dll\n\nConstructors\n------------\n\n### Secret()\n\n public Secret()\n\n### Secret(Secret)\n\n public Secret(Secret other)\n\nProperties\n----------\n\n### CipherText\n\n public string CipherText { get; set; }\n\nThe value of the cipherText response from the `encrypt` method. This field\nis intentionally unaudited.\n\n### KeyName\n\n public string KeyName { get; set; }\n\nThe name of the Cloud KMS key that will be used to decrypt the secret\nvalue. The VM service account must have the required permissions and\nauthentication scopes to invoke the `decrypt` method on the specified key."]]