Integer octal mode bits to use on this file, must be a value between
01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
used.
Notes
Internally, a umask of 0222 will be applied to any non-zero value.
This is an integer representation of the mode bits. So, the octal
integer value should look exactly as the chmod numeric notation with a
leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal)
or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or
493 (base-10).
This might be in conflict with other options that affect the
file mode, like fsGroup, and the result can be other mode bits set.
[[["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-08 UTC."],[[["\u003cp\u003eThe latest version of the Google.Cloud.Run.V2 API is 2.13.0, with documentation available for multiple previous versions, down to 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVersionToPath\u003c/code\u003e class is a part of the Cloud Run Admin v2 API, and is designed to map a specific version of a secret to a relative file path for mounting.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVersionToPath\u003c/code\u003e 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, and is defined within the \u003ccode\u003eGoogle.Cloud.Run.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVersionToPath\u003c/code\u003e class includes properties for setting the file's mode (\u003ccode\u003eMode\u003c/code\u003e), the relative file path (\u003ccode\u003ePath\u003c/code\u003e), and the secret's version (\u003ccode\u003eVersion\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMode\u003c/code\u003e property controls the octal mode bits of the mounted secret file and should be set using chmod numeric notation.\u003c/p\u003e\n"]]],[],null,["# Cloud Run Admin v2 API - Class VersionToPath (2.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.0 (latest)](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VersionToPath)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.15.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.14.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.13.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.12.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.11.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.10.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.9.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.8.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.7.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.6.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.5.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.4.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.3.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.2.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.1.0/Google.Cloud.Run.V2.VersionToPath)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Run.V2/2.0.0/Google.Cloud.Run.V2.VersionToPath)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Run.V2/1.0.0-beta02/Google.Cloud.Run.V2.VersionToPath) \n\n public sealed class VersionToPath : IMessage\u003cVersionToPath\u003e, IEquatable\u003cVersionToPath\u003e, IDeepCloneable\u003cVersionToPath\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Run Admin v2 API class VersionToPath.\n\nVersionToPath maps a specific version of a secret to a relative file to mount\nto, relative to VolumeMount's mount_path. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VersionToPath \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VersionToPath](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VersionToPath), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VersionToPath](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VersionToPath), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VersionToPath](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2.VersionToPath), [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.Run.V2](/dotnet/docs/reference/Google.Cloud.Run.V2/latest/Google.Cloud.Run.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Run.V2.dll\n\nConstructors\n------------\n\n### VersionToPath()\n\n public VersionToPath()\n\n### VersionToPath(VersionToPath)\n\n public VersionToPath(VersionToPath other)\n\nProperties\n----------\n\n### Mode\n\n public int Mode { get; set; }\n\nInteger octal mode bits to use on this file, must be a value between\n01 and 0777 (octal). If 0 or not set, the Volume's default mode will be\nused.\n\nNotes\n\n- Internally, a umask of 0222 will be applied to any non-zero value.\n- This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).\n- This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.\n\n### Path\n\n public string Path { get; set; }\n\nRequired. The relative path of the secret in the container.\n\n### Version\n\n public string Version { get; set; }\n\nThe Cloud Secret Manager secret version.\nCan be 'latest' for the latest value, or an integer or a secret alias for a\nspecific version."]]