public sealed class SecretVolume.Types.SecretVersion : IMessage<SecretVolume.Types.SecretVersion>, IEquatable<SecretVolume.Types.SecretVersion>, IDeepCloneable<SecretVolume.Types.SecretVersion>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v1 API class SecretVolume.Types.SecretVersion.
Relative path of the file under the mount path where the secret value for
this version will be fetched and made available. For example, setting the
mount_path as '/etc/secrets' and path as /secret_foo would mount the
secret value file at /etc/secrets/secret_foo.
Version of the secret (version number or the string 'latest'). It is
preferable to use latest version with secret volumes as secret value
changes are reflected immediately.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eSecretVolume.Types.SecretVersion\u003c/code\u003e class within the Cloud Functions v1 API, detailing its properties and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretVersion\u003c/code\u003e class is used to configure a specific version of a secret, and it implements interfaces like \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 offers two constructors: a default constructor and one that takes another \u003ccode\u003eSecretVersion\u003c/code\u003e object for creating copies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePath\u003c/code\u003e property specifies the relative file path under the mount point where the secret's value will be accessible, while the \u003ccode\u003eVersion\u003c/code\u003e property indicates the secret version number or 'latest'.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of this document are available, ranging from version 1.1.0 to the most recent 2.7.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v1 API - Class SecretVolume.Types.SecretVersion (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.6.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.5.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.4.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.3.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.2.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.1.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.0.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.3.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.2.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.1.0/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion) \n\n public sealed class SecretVolume.Types.SecretVersion : IMessage\u003cSecretVolume.Types.SecretVersion\u003e, IEquatable\u003cSecretVolume.Types.SecretVersion\u003e, IDeepCloneable\u003cSecretVolume.Types.SecretVersion\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v1 API class SecretVolume.Types.SecretVersion.\n\nConfiguration for a single version. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SecretVolume.Types.SecretVersion \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SecretVolume](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume)[Types](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types)[SecretVersion](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecretVolume](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume)[Types](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types)[SecretVersion](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SecretVolume](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume)[Types](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types)[SecretVersion](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.SecretVolume.Types.SecretVersion), [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.Functions.V1](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V1.dll\n\nConstructors\n------------\n\n### SecretVersion()\n\n public SecretVersion()\n\n### SecretVersion(SecretVersion)\n\n public SecretVersion(SecretVolume.Types.SecretVersion other)\n\nProperties\n----------\n\n### Path\n\n public string Path { get; set; }\n\nRelative path of the file under the mount path where the secret value for\nthis version will be fetched and made available. For example, setting the\nmount_path as '/etc/secrets' and path as `/secret_foo` would mount the\nsecret value file at `/etc/secrets/secret_foo`.\n\n### Version\n\n public string Version { get; set; }\n\nVersion of the secret (version number or the string 'latest'). It is\npreferable to use `latest` version with secret volumes as secret value\nchanges are reflected immediately."]]