public sealed class UpdatePolicyRequest : IMessage<UpdatePolicyRequest>, IEquatable<UpdatePolicyRequest>, IDeepCloneable<UpdatePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Binary Authorization v1 API class UpdatePolicyRequest.
Request message for [BinauthzManagementService.UpdatePolicy][].
Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
the request URL, in the format projects/*/policy.
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e is 2.5.0, with multiple earlier versions available, including 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.0, and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e is a request message used for updating a policy via \u003ccode\u003eBinauthzManagementService.UpdatePolicy\u003c/code\u003e, inheriting from \u003ccode\u003eObject\u003c/code\u003e and implementing multiple 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 \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e is part of the \u003ccode\u003eGoogle.Cloud.BinaryAuthorization.V1\u003c/code\u003e namespace and is found in the \u003ccode\u003eGoogle.Cloud.BinaryAuthorization.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt includes two constructors, one default and another that takes an existing \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e object, enabling the creation of new instances or copies of existing ones.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicy\u003c/code\u003e property allows setting or getting a \u003ccode\u003ePolicy\u003c/code\u003e object, where the policy name will be overwritten by the service with the resource name from the request URL.\u003c/p\u003e\n"]]],[],null,[]]