2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

    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.

Represents OrgPolicy Violation information.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> OrgPolicyViolationInfo

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[OrgPolicyViolationInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OrgPolicyViolationInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[OrgPolicyViolationInfo](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.OrgPolicyViolationInfo.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Audit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.md.txt)

## Assembly

Google.Cloud.Audit.dll

## Constructors

### OrgPolicyViolationInfo()

    public OrgPolicyViolationInfo()

### OrgPolicyViolationInfo(OrgPolicyViolationInfo)

    public OrgPolicyViolationInfo(OrgPolicyViolationInfo other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `OrgPolicyViolationInfo` |

## Properties

### Payload

    public Struct Payload { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### ResourceTags

    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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### ResourceType

    public string ResourceType { get; set; }

Optional. Resource type that the orgpolicy is checked against.
Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ViolationInfo

    public RepeatedField<ViolationInfo> ViolationInfo { get; }

Optional. Policy violations

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldViolationInfo` |   |