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"]],[["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\u003eThis document provides reference information for the \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v2 API, specifically version 1.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e is a request message used for updating a policy 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\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes properties such as \u003ccode\u003ePolicy\u003c/code\u003e, which is a required field representing the policy to be updated, along with inherited members from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e: a default constructor and one that takes another \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicy\u003c/code\u003e property requires an \u003ccode\u003eetag\u003c/code\u003e value that matches the value stored in IAM to prevent conflicting updates, otherwise resulting in a \u003ccode\u003e409\u003c/code\u003e error.\u003c/p\u003e\n"]]],[],null,[]]