public sealed class OnDeployUpdatePolicy : IMessage<OnDeployUpdatePolicy>, IEquatable<OnDeployUpdatePolicy>, IDeepCloneable<OnDeployUpdatePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2beta API class OnDeployUpdatePolicy.
Security patches are only applied when a function is redeployed.
[[["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\u003eThe latest version of the \u003ccode\u003eOnDeployUpdatePolicy\u003c/code\u003e class is 1.0.0-beta07, found within the Cloud Functions v2beta API.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eOnDeployUpdatePolicy\u003c/code\u003e, is a sealed class that 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.\u003c/p\u003e\n"],["\u003cp\u003eSecurity patches are applied to a function only when it is redeployed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOnDeployUpdatePolicy\u003c/code\u003e class includes two constructors and a \u003ccode\u003eRuntimeVersion\u003c/code\u003e property, which is output-only and indicates the runtime version during the latest function deployment.\u003c/p\u003e\n"],["\u003cp\u003eThe class is found within the namespace \u003ccode\u003eGoogle.Cloud.Functions.V2Beta\u003c/code\u003e, and in the assembly \u003ccode\u003eGoogle.Cloud.Functions.V2Beta.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2beta API - Class OnDeployUpdatePolicy (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.OnDeployUpdatePolicy)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/1.0.0-beta06/Google.Cloud.Functions.V2Beta.OnDeployUpdatePolicy) \n\n public sealed class OnDeployUpdatePolicy : IMessage\u003cOnDeployUpdatePolicy\u003e, IEquatable\u003cOnDeployUpdatePolicy\u003e, IDeepCloneable\u003cOnDeployUpdatePolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2beta API class OnDeployUpdatePolicy.\n\nSecurity patches are only applied when a function is redeployed. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OnDeployUpdatePolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OnDeployUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.OnDeployUpdatePolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OnDeployUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.OnDeployUpdatePolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OnDeployUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.OnDeployUpdatePolicy), [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.V2Beta](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2Beta.dll\n\nConstructors\n------------\n\n### OnDeployUpdatePolicy()\n\n public OnDeployUpdatePolicy()\n\n### OnDeployUpdatePolicy(OnDeployUpdatePolicy)\n\n public OnDeployUpdatePolicy(OnDeployUpdatePolicy other)\n\nProperties\n----------\n\n### RuntimeVersion\n\n public string RuntimeVersion { get; set; }\n\nOutput only. contains the runtime version which was used during latest\nfunction deployment."]]