public sealed class UpdatePolicyRequest : IMessage<UpdatePolicyRequest>, IEquatable<UpdatePolicyRequest>, IDeepCloneable<UpdatePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class UpdatePolicyRequest.
To prevent conflicting updates, the etag value must match the value that
is stored in IAM. If the etag values do not match, the request fails with
a 409 error code and ABORTED status.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class is part of the Google Cloud Identity and Access Management (IAM) v2 API, serving as a request message for updating a policy.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities such as deep cloning and protocol buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and contains constructors to create new instances, either empty or by copying from another \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a \u003ccode\u003ePolicy\u003c/code\u003e property which is required for the update, and it ensures data integrity by checking the \u003ccode\u003eetag\u003c/code\u003e value to avoid conflicting updates, failing with a \u003ccode\u003e409\u003c/code\u003e error if they don't match.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e can be found at version \u003ccode\u003e1.3.0\u003c/code\u003e of the documentation, with older versions available going back to \u003ccode\u003e1.0.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]