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"]],[["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 Organization Policy v2 API, specifically version 2.3.0, and outlines how to use the class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e is a class used to send requests to the \u003ccode\u003eUpdatePolicy\u003c/code\u003e method of the \u003ccode\u003eOrgPolicy\u003c/code\u003e API, 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 includes two constructors, one default and one that accepts another \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e object, allowing for initialization and cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties, \u003ccode\u003ePolicy\u003c/code\u003e and \u003ccode\u003eUpdateMask\u003c/code\u003e, where \u003ccode\u003ePolicy\u003c/code\u003e represents the policy that is required to be updated, and \u003ccode\u003eUpdateMask\u003c/code\u003e is used to specify the fields to overwrite within the policy.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists other versions of the \u003ccode\u003eUpdatePolicyRequest\u003c/code\u003e class, from version 1.0.0 to the latest version 2.7.0, and a link to the documentation for each is provided.\u003c/p\u003e\n"]]],[],null,[]]