public sealed class OrgPolicyViolationInfo : IMessage<OrgPolicyViolationInfo>, IEquatable<OrgPolicyViolationInfo>, IDeepCloneable<OrgPolicyViolationInfo>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Audit API class OrgPolicyViolationInfo.
Optional. Resource payload that is currently in scope and is subjected to orgpolicy
conditions. This payload may be the subset of the actual Resource that may
come in the request. This payload should not contain any core content.
public MapField<string, string> ResourceTags { get; }
Optional. Tags referenced on the resource at the time of evaluation. These also
include the federated tags, if they are supplied in the CheckOrgPolicy
or CheckCustomConstraints Requests.
Optional field as of now. These tags are the Cloud tags that are
available on the resource during the policy evaluation and will
be available as part of the OrgPolicy check response for logging purposes.
[[["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-28 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eOrgPolicyViolationInfo\u003c/code\u003e class in the Google Cloud Audit API is 2.5.0, with previous versions available from 1.0.0 up to 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOrgPolicyViolationInfo\u003c/code\u003e is a class that represents organizational policy violation information and implements multiple interfaces including \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\u003eThis class contains properties like \u003ccode\u003ePayload\u003c/code\u003e, \u003ccode\u003eResourceTags\u003c/code\u003e, \u003ccode\u003eResourceType\u003c/code\u003e, and \u003ccode\u003eViolationInfo\u003c/code\u003e, providing details about the resource, its tags, type, and the specific policy violations encountered.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors: a default constructor \u003ccode\u003eOrgPolicyViolationInfo()\u003c/code\u003e and another one \u003ccode\u003eOrgPolicyViolationInfo(OrgPolicyViolationInfo other)\u003c/code\u003e that allows cloning an instance of the \u003ccode\u003eOrgPolicyViolationInfo\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and is found in the \u003ccode\u003eGoogle.Cloud.Audit\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Audit.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Audit API - Class OrgPolicyViolationInfo (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Audit/2.4.0/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Audit/2.3.0/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Audit/2.2.0/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Audit/2.1.0/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Audit/2.0.0/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Audit/1.1.0/Google.Cloud.Audit.OrgPolicyViolationInfo)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Audit/1.0.0/Google.Cloud.Audit.OrgPolicyViolationInfo) \n\n public sealed class OrgPolicyViolationInfo : IMessage\u003cOrgPolicyViolationInfo\u003e, IEquatable\u003cOrgPolicyViolationInfo\u003e, IDeepCloneable\u003cOrgPolicyViolationInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Audit API class OrgPolicyViolationInfo.\n\nRepresents OrgPolicy Violation information. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OrgPolicyViolationInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OrgPolicyViolationInfo](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OrgPolicyViolationInfo](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OrgPolicyViolationInfo](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Audit](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit)\n\nAssembly\n--------\n\nGoogle.Cloud.Audit.dll\n\nConstructors\n------------\n\n### OrgPolicyViolationInfo()\n\n public OrgPolicyViolationInfo()\n\n### OrgPolicyViolationInfo(OrgPolicyViolationInfo)\n\n public OrgPolicyViolationInfo(OrgPolicyViolationInfo other)\n\nProperties\n----------\n\n### Payload\n\n public Struct Payload { get; set; }\n\nOptional. Resource payload that is currently in scope and is subjected to orgpolicy\nconditions. This payload may be the subset of the actual Resource that may\ncome in the request. This payload should not contain any core content.\n\n### ResourceTags\n\n public MapField\u003cstring, string\u003e ResourceTags { get; }\n\nOptional. Tags referenced on the resource at the time of evaluation. These also\ninclude the federated tags, if they are supplied in the CheckOrgPolicy\nor CheckCustomConstraints Requests.\n\nOptional field as of now. These tags are the Cloud tags that are\navailable on the resource during the policy evaluation and will\nbe available as part of the OrgPolicy check response for logging purposes.\n\n### ResourceType\n\n public string ResourceType { get; set; }\n\nOptional. Resource type that the orgpolicy is checked against.\nExample: compute.googleapis.com/Instance, store.googleapis.com/bucket\n\n### ViolationInfo\n\n public RepeatedField\u003cViolationInfo\u003e ViolationInfo { get; }\n\nOptional. Policy violations"]]