public sealed class DeletePolicyRequest : IMessage<DeletePolicyRequest>, IEquatable<DeletePolicyRequest>, IDeepCloneable<DeletePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class DeletePolicyRequest.
The request sent to the [DeletePolicy]
[google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method.
Optional. The current etag of policy. If an etag is provided and does not
match the current etag of the policy, deletion will be blocked and an
ABORTED error will be returned.
[[["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\u003eDeletePolicyRequest\u003c/code\u003e class is 2.7.0, part of the Google.Cloud.OrgPolicy.V2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to construct requests for the \u003ccode\u003eDeletePolicy\u003c/code\u003e method within the Organization Policy v2 API, to allow users to delete a specific policy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeletePolicyRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<DeletePolicyRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<DeletePolicyRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality checks, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eDeletePolicyRequest\u003c/code\u003e include \u003ccode\u003eEtag\u003c/code\u003e, a string that, if provided, must match the policy's current Etag to avoid conflicts during deletion, \u003ccode\u003eName\u003c/code\u003e, which is a required string containing the name of the policy to delete, and \u003ccode\u003ePolicyName\u003c/code\u003e, a \u003ccode\u003ePolicyName\u003c/code\u003e-typed view of the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides a complete historical reference of prior versions of the DeletePolicyRequest, from version 1.0.0 up until the latest version 2.7.0.\u003c/p\u003e\n"]]],[],null,[]]