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."],[[["This document provides reference documentation for the `PolicyViolation` class within the Google Cloud Deploy v1 API, detailing its structure and functionality."],["The latest version of `PolicyViolation` is 3.4.0, and the page specifically details version 3.3.0 while including links to past versions down to version 1.0.0."],["The `PolicyViolation` class, used to report policy violations, inherits from `object` and implements `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` interfaces."],["The class contains a `PolicyViolationDetails` property, which is a `RepeatedField` that provides specific details about any violations that have occurred."],["There are two constructors available for `PolicyViolation`, one being parameterless and the other taking another `PolicyViolation` object as a parameter for copying."]]],[]]