public sealed class DeletePolicyRequest : IMessage<DeletePolicyRequest>, IEquatable<DeletePolicyRequest>, IDeepCloneable<DeletePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class DeletePolicyRequest.
Optional. The expected etag of the policy to delete. If the value does not match
the value that is stored in IAM, the request fails with a 409 error code
and ABORTED status.
If you omit this field, the policy is deleted regardless of its current
etag.
Required. The resource name of the policy to delete. Format:
policies/{attachment_point}/denypolicies/{policy_id}
Use the URL-encoded full resource name, which means that the forward-slash
character, /, must be written as %2F. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy.
For organizations and folders, use the numeric ID in the full resource
name. For projects, you can use the alphanumeric or the numeric ID.
[[["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-03-21 UTC."],[[["The `DeletePolicyRequest` class is part of the Google Cloud Identity and Access Management (IAM) v2 API, serving as the request message for deleting policies."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from `object`."],["The `DeletePolicyRequest` class offers two constructors: a default constructor and one that takes another `DeletePolicyRequest` instance as a parameter."],["It includes properties such as `Etag`, which represents the expected etag of the policy to delete, and `Name`, which represents the resource name of the policy to delete, formatted as `policies/{attachment_point}/denypolicies/{policy_id}`."],["There are four versions of this documentation, ranging from 1.0.0 to 1.3.0, with 1.3.0 being the most recent."]]],[]]