public sealed class PolicyViolation : IMessage<PolicyViolation>, IEquatable<PolicyViolation>, IDeepCloneable<PolicyViolation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class PolicyViolation.
Returned from an action if one or more policies were
violated, and therefore the action was prevented. Contains information about
what policies were violated and why.
[[["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 latest version of the `PolicyViolation` class within the Google Cloud Deploy v1 API is 3.4.0, with documentation available at `/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.PolicyViolation`."],["This API class is used when an action is prevented due to one or more violated policies and contains information on why it was prevented."],["The `PolicyViolation` class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `PolicyViolationDetails` property provides specific details about policy violations through a `RepeatedField` containing instances of `PolicyViolationDetails`."],["Documentation for `PolicyViolation` class is available in versions ranging from 1.0.0 up to the latest 3.4.0, offering access to historical documentation."]]],[]]