2.7.0 (latest) 2.6.0 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 Violation : IMessage<Violation>, IEquatable<Violation>, IDeepCloneable<Violation>, IBufferMessage, IMessage

Reference documentation and code samples for the Assured Workloads v1 API class Violation.

Workload monitoring Violation.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Violation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.Violation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Violation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.Violation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Violation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.Violation.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.AssuredWorkloads.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.md.txt)

## Assembly

Google.Cloud.AssuredWorkloads.V1.dll

## Constructors

### Violation()

    public Violation()

### Violation(Violation)

    public Violation(Violation other)

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

## Properties

### Acknowledged

    public bool Acknowledged { get; set; }

Output only. A boolean that indicates if the violation is acknowledged

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

### AcknowledgementTime

    public Timestamp AcknowledgementTime { get; set; }

Optional. Timestamp when this violation was acknowledged last.
This will be absent when acknowledged field is marked as false.

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

### AuditLogLink

    public string AuditLogLink { get; set; }

Output only. Immutable. Audit Log Link for violated resource
Format:
https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}

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

### BeginTime

    public Timestamp BeginTime { get; set; }

Output only. Time of the event which triggered the Violation.

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

### Category

    public string Category { get; set; }

Output only. Category under which this violation is mapped.
e.g. Location, Service Usage, Access, Encryption, etc.

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

### Description

    public string Description { get; set; }

Output only. Description for the Violation.
e.g. OrgPolicy gcp.resourceLocations has non compliant value.

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

### ExceptionAuditLogLink

    public string ExceptionAuditLogLink { get; set; }

Output only. Immutable. Audit Log link to find business justification provided for violation
exception. Format:
https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}

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

### Name

    public string Name { get; set; }

Output only. Immutable. Name of the Violation.
Format:
organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}

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

### NonCompliantOrgPolicy

    public string NonCompliantOrgPolicy { get; set; }

Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and
resulted this violation.
Format:
projects/{project_number}/policies/{constraint_name}
folders/{folder_id}/policies/{constraint_name}
organizations/{organization_id}/policies/{constraint_name}

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

### OrgPolicyConstraint

    public string OrgPolicyConstraint { get; set; }

Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in
this violation.

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

### Remediation

    public Violation.Types.Remediation Remediation { get; set; }

Output only. Compliance violation remediation

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

### ResolveTime

    public Timestamp ResolveTime { get; set; }

Output only. Time of the event which fixed the Violation.
If the violation is ACTIVE this will be empty.

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

### State

    public Violation.Types.State State { get; set; }

Output only. State of the violation

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The last time when the Violation record was updated.

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

### ViolationName

    public ViolationName ViolationName { get; set; }

[ViolationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.ViolationName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.Violation.md.txt#Google_Cloud_AssuredWorkloads_V1_Violation_Name) resource name property.

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