# Cloud Controls Partner v1beta API - Class ListViolationsRequest (1.0.0-beta05)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta05 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/1.0.0-beta04/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest)

    public sealed class ListViolationsRequest : IPageRequest, IMessage<ListViolationsRequest>, IEquatable<ListViolationsRequest>, IDeepCloneable<ListViolationsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Controls Partner v1beta API class ListViolationsRequest.

Message for requesting list of Violations

## Inheritance

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

## Implements

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

## 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.CloudControlsPartner.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta)

## Assembly

Google.Cloud.CloudControlsPartner.V1Beta.dll

## Constructors

### ListViolationsRequest()

    public ListViolationsRequest()

### ListViolationsRequest(ListViolationsRequest)

    public ListViolationsRequest(ListViolationsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest` |

## Properties

### Filter

    public string Filter { get; set; }

Optional. Filtering results

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Interval

    public Interval Interval { get; set; }

Optional. Specifies the interval for retrieving violations.
if unspecified, all violations will be returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Type.Interval.html` |   |

### OrderBy

    public string OrderBy { get; set; }

Optional. Hint for how to order the results

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PageSize

    public int PageSize { get; set; }

Optional. The maximum number of customers row to return. The service may
return fewer than this value. If unspecified, at most 10 customers will be
returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PageToken

    public string PageToken { get; set; }

Optional. A page token, received from a previous `ListViolations` call.
Provide this to retrieve the subsequent page.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Parent

    public string Parent { get; set; }

Required. Parent resource
Format
`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsWorkloadName

    public WorkloadName ParentAsWorkloadName { get; set; }

[WorkloadName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.WorkloadName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.ListViolationsRequest#Google_Cloud_CloudControlsPartner_V1Beta_ListViolationsRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudControlsPartner.V1Beta/latest/Google.Cloud.CloudControlsPartner.V1Beta.WorkloadName` |   |