public sealed class AutomaticUpdatePolicy : IMessage<AutomaticUpdatePolicy>, IEquatable<AutomaticUpdatePolicy>, IDeepCloneable<AutomaticUpdatePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2 API class AutomaticUpdatePolicy.
Security patches are applied automatically to the runtime without requiring
the function to be 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\u003eAutomaticUpdatePolicy\u003c/code\u003e class is 1.7.0, with older versions ranging from 1.6.0 down to 1.0.0 also available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAutomaticUpdatePolicy\u003c/code\u003e is a class within the Google.Cloud.Functions.V2 namespace, found in the Google.Cloud.Functions.V2.dll assembly, that implements multiple interfaces such as IMessage, IEquatable, and IDeepCloneable.\u003c/p\u003e\n"],["\u003cp\u003eSecurity patches are automatically applied to the runtime for this class without requiring function redeployment.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from the System.Object class and implements the following interfaces: IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the AutomaticUpdatePolicy class; one is parameterless and the other one takes an AutomaticUpdatePolicy object.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2 API - Class AutomaticUpdatePolicy (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.6.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.5.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.4.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.3.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.2.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.1.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.0.0/Google.Cloud.Functions.V2.AutomaticUpdatePolicy) \n\n public sealed class AutomaticUpdatePolicy : IMessage\u003cAutomaticUpdatePolicy\u003e, IEquatable\u003cAutomaticUpdatePolicy\u003e, IDeepCloneable\u003cAutomaticUpdatePolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2 API class AutomaticUpdatePolicy.\n\nSecurity patches are applied automatically to the runtime without requiring\nthe function to be redeployed. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AutomaticUpdatePolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutomaticUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.AutomaticUpdatePolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutomaticUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.AutomaticUpdatePolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutomaticUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.AutomaticUpdatePolicy), [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.V2](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2.dll\n\nConstructors\n------------\n\n### AutomaticUpdatePolicy()\n\n public AutomaticUpdatePolicy()\n\n### AutomaticUpdatePolicy(AutomaticUpdatePolicy)\n\n public AutomaticUpdatePolicy(AutomaticUpdatePolicy other)"]]