# Policy Simulator v1 API - Class ListOrgPolicyViolationsRequest (1.4.0)

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

- [1.4.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.3.0/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.2.0/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.1.0/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.0.0/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest)

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

Reference documentation and code samples for the Policy Simulator v1 API class ListOrgPolicyViolationsRequest.

ListOrgPolicyViolationsRequest is the request message for
\[OrgPolicyViolationsPreviewService.ListOrgPolicyViolations\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations\].

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.PolicySimulator.V1.dll

## Constructors

### ListOrgPolicyViolationsRequest()

    public ListOrgPolicyViolationsRequest()

### ListOrgPolicyViolationsRequest(ListOrgPolicyViolationsRequest)

    public ListOrgPolicyViolationsRequest(ListOrgPolicyViolationsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest` |

## Properties

### PageSize

    public int PageSize { get; set; }

Optional. The maximum number of items to return. The service may return
fewer than this value. If unspecified, at most 1000 items will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.

| **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 call. Provide this to
retrieve the subsequent page.

When paginating, all other parameters must match the call that provided the
page token.

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

### Parent

    public string Parent { get; set; }

Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from.
Format:
organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}

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

### ParentAsOrgPolicyViolationsPreviewName

    public OrgPolicyViolationsPreviewName ParentAsOrgPolicyViolationsPreviewName { get; set; }

[OrgPolicyViolationsPreviewName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest#Google_Cloud_PolicySimulator_V1_ListOrgPolicyViolationsRequest_Parent) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewName` |   |