public sealed class UpdatePolicyRequest : IMessage<UpdatePolicyRequest>, IEquatable<UpdatePolicyRequest>, IDeepCloneable<UpdatePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class UpdatePolicyRequest.
The request sent to the [UpdatePolicyRequest]
[google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.
Field mask used to specify the fields to be overwritten in the policy
by the set. The fields specified in the update_mask are relative to the
policy, not the full request.
[[["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 latest version of the \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class is 2.7.0, accessible via a direct link provided in the content.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the Organization Policy v2 API within the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2\u003c/code\u003e namespace, specifically in the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class is used to send update requests to the \u003ccode\u003eUpdatePolicy\u003c/code\u003e method, implementing interfaces such as \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 \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class has two constructors: a default constructor and another that accepts another \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e object as a parameter, and includes two properties, one for \u003ccode\u003ePolicy\u003c/code\u003e to update, and another for \u003ccode\u003eUpdateMask\u003c/code\u003e for which fields to be updated.\u003c/p\u003e\n"],["\u003cp\u003eThere are 11 different versions of \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e available, starting from 1.0.0 up to the latest version 2.7.0.\u003c/p\u003e\n"]]],[],null,[]]