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"]],[["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\u003eThe latest version available for the Google Cloud Deploy v1 API class PolicyViolation is 3.4.0, with numerous previous versions also documented, ranging back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicyViolation\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Deploy.V1\u003c/code\u003e namespace, provides information on policy violations that prevent actions, and implements \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 \u003ccode\u003ePolicyViolation\u003c/code\u003e class contains a \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e property which holds a collection of specific details about the policy violations that have occurred, and it is of type \u003ccode\u003eRepeatedField\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation includes information about inheritance and lists the implemented interfaces, as well as the constructors, members, and the assembly \u003ccode\u003eGoogle.Cloud.Deploy.V1.dll\u003c/code\u003e to which the class belongs.\u003c/p\u003e\n"]]],[],null,[]]