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 ListViolationsRequest : IMessage<ListViolationsRequest>, IEquatable<ListViolationsRequest>, IDeepCloneable<ListViolationsRequest>, IBufferMessage, IMessage, IPageRequest

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

Request for fetching violations in an organization.

## Inheritance

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

## Implements

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

### ListViolationsRequest()

    public ListViolationsRequest()

### ListViolationsRequest(ListViolationsRequest)

    public ListViolationsRequest(ListViolationsRequest other)

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

## Properties

### Filter

    public string Filter { get; set; }

Optional. A custom filter for filtering by the Violations properties.

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

### Interval

    public TimeWindow Interval { get; set; }

Optional. Specifies the time window for retrieving active Violations.
When specified, retrieves Violations that were active between start_time
and end_time.

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

### PageSize

    public int PageSize { get; set; }

Optional. Page size.

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

### PageToken

    public string PageToken { get; set; }

Optional. Page token returned from previous request.

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

### Parent

    public string Parent { get; set; }

Required. The Workload name.
Format `organizations/{org_id}/locations/{location}/workloads/{workload}`.

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

### ParentAsWorkloadName

    public WorkloadName ParentAsWorkloadName { get; set; }

[WorkloadName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.WorkloadName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.ListViolationsRequest.md.txt#Google_Cloud_AssuredWorkloads_V1_ListViolationsRequest_Parent) resource name property.

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