public sealed class CloudFunction.Types.OnDeployUpdatePolicy : IMessage<CloudFunction.Types.OnDeployUpdatePolicy>, IEquatable<CloudFunction.Types.OnDeployUpdatePolicy>, IDeepCloneable<CloudFunction.Types.OnDeployUpdatePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v1 API class CloudFunction.Types.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\u003eThis document provides reference documentation for the \u003ccode\u003eCloudFunction.Types.OnDeployUpdatePolicy\u003c/code\u003e class within the Cloud Functions v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eCloudFunction.Types.OnDeployUpdatePolicy\u003c/code\u003e is a sealed class that 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 for Cloud Functions are applied only when a function is redeployed, as noted within this documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eCloudFunction.Types.OnDeployUpdatePolicy\u003c/code\u003e is version 2.7.0, with older versions ranging down to 1.1.0 also listed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRuntimeVersion\u003c/code\u003e property, a string, indicates the runtime version used during the function's latest deployment and is output-only.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v1 API - Class CloudFunction.Types.OnDeployUpdatePolicy (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.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.6.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.5.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.4.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.3.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.2.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.1.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.0.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.3.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.2.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.1.0/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy) \n\n public sealed class CloudFunction.Types.OnDeployUpdatePolicy : IMessage\u003cCloudFunction.Types.OnDeployUpdatePolicy\u003e, IEquatable\u003cCloudFunction.Types.OnDeployUpdatePolicy\u003e, IDeepCloneable\u003cCloudFunction.Types.OnDeployUpdatePolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v1 API class CloudFunction.Types.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 CloudFunction.Types.OnDeployUpdatePolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CloudFunction](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction)[Types](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction.Types)[OnDeployUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudFunction](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction)[Types](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction.Types)[OnDeployUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction.Types.OnDeployUpdatePolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudFunction](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction)[Types](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction.Types)[OnDeployUpdatePolicy](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunction.Types.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.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### OnDeployUpdatePolicy()\n\n public OnDeployUpdatePolicy()\n\n### OnDeployUpdatePolicy(OnDeployUpdatePolicy)\n\n public OnDeployUpdatePolicy(CloudFunction.Types.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."]]