# Policy Simulator v1 API - Class OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient (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.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.3.0/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.2.0/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.1.0/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/1.0.0/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient)

    public class OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient : ClientBase<OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient>

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

Client for OrgPolicyViolationsPreviewService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[OrgPolicyViolationsPreviewService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService)[OrgPolicyViolationsPreviewServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient) \> OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient

## Inherited Members

[ClientBase\<OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient\>.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

### OrgPolicyViolationsPreviewServiceClient()

    protected OrgPolicyViolationsPreviewServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### OrgPolicyViolationsPreviewServiceClient(CallInvoker)

    public OrgPolicyViolationsPreviewServiceClient(CallInvoker callInvoker)

Creates a new client for OrgPolicyViolationsPreviewService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallInvoker.html` The callInvoker to use to make remote calls. |

### OrgPolicyViolationsPreviewServiceClient(ChannelBase)

    public OrgPolicyViolationsPreviewServiceClient(ChannelBase channel)

Creates a new client for OrgPolicyViolationsPreviewService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelBase.html` The channel to use to make remote calls. |

### OrgPolicyViolationsPreviewServiceClient(ClientBaseConfiguration)

    protected OrgPolicyViolationsPreviewServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` The client configuration. |

## Methods

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.html) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.html` | A new Operations client for the same target as this client. |

### CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest, CallOptions)

    public virtual Operation CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request, CallOptions options)

CreateOrgPolicyViolationsPreview creates an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
for the proposed changes in the provided
\[OrgPolicyViolationsPreview.OrgPolicyOverlay\]\[\]. The changes to OrgPolicy
are specified by this `OrgPolicyOverlay`. The resources to scan are
inferred from these specified changes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.CreateOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response received from the server. |

### CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation CreateOrgPolicyViolationsPreview(CreateOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

CreateOrgPolicyViolationsPreview creates an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
for the proposed changes in the provided
\[OrgPolicyViolationsPreview.OrgPolicyOverlay\]\[\]. The changes to OrgPolicy
are specified by this `OrgPolicyOverlay`. The resources to scan are
inferred from these specified changes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.CreateOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response received from the server. |

### CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest request, CallOptions options)

CreateOrgPolicyViolationsPreview creates an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
for the proposed changes in the provided
\[OrgPolicyViolationsPreview.OrgPolicyOverlay\]\[\]. The changes to OrgPolicy
are specified by this `OrgPolicyOverlay`. The resources to scan are
inferred from these specified changes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.CreateOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The call object. |

### CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> CreateOrgPolicyViolationsPreviewAsync(CreateOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

CreateOrgPolicyViolationsPreview creates an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
for the proposed changes in the provided
\[OrgPolicyViolationsPreview.OrgPolicyOverlay\]\[\]. The changes to OrgPolicy
are specified by this `OrgPolicyOverlay`. The resources to scan are
inferred from these specified changes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.CreateOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The call object. |

### GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest, CallOptions)

    public virtual OrgPolicyViolationsPreview GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request, CallOptions options)

GetOrgPolicyViolationsPreview gets the specified
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].
Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.GetOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreview` | The response received from the server. |

### GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)

    public virtual OrgPolicyViolationsPreview GetOrgPolicyViolationsPreview(GetOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

GetOrgPolicyViolationsPreview gets the specified
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].
Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.GetOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreview` | The response received from the server. |

### GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest, CallOptions)

    public virtual AsyncUnaryCall<OrgPolicyViolationsPreview> GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest request, CallOptions options)

GetOrgPolicyViolationsPreview gets the specified
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].
Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.GetOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreview` | The call object. |

### GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<OrgPolicyViolationsPreview> GetOrgPolicyViolationsPreviewAsync(GetOrgPolicyViolationsPreviewRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

GetOrgPolicyViolationsPreview gets the specified
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].
Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.GetOrgPolicyViolationsPreviewRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreview` | The call object. |

### ListOrgPolicyViolations(ListOrgPolicyViolationsRequest, CallOptions)

    public virtual ListOrgPolicyViolationsResponse ListOrgPolicyViolations(ListOrgPolicyViolationsRequest request, CallOptions options)

ListOrgPolicyViolations lists the \[OrgPolicyViolations\]\[\] that are present
in an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsResponse` | The response received from the server. |

### ListOrgPolicyViolations(ListOrgPolicyViolationsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListOrgPolicyViolationsResponse ListOrgPolicyViolations(ListOrgPolicyViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

ListOrgPolicyViolations lists the \[OrgPolicyViolations\]\[\] that are present
in an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsResponse` | The response received from the server. |

### ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListOrgPolicyViolationsResponse> ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest request, CallOptions options)

ListOrgPolicyViolations lists the \[OrgPolicyViolations\]\[\] that are present
in an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsResponse` | The call object. |

### ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListOrgPolicyViolationsResponse> ListOrgPolicyViolationsAsync(ListOrgPolicyViolationsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

ListOrgPolicyViolations lists the \[OrgPolicyViolations\]\[\] that are present
in an
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsResponse` | The call object. |

### ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest, CallOptions)

    public virtual ListOrgPolicyViolationsPreviewsResponse ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request, CallOptions options)

ListOrgPolicyViolationsPreviews lists each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
in an organization. Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsResponse` | The response received from the server. |

### ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListOrgPolicyViolationsPreviewsResponse ListOrgPolicyViolationsPreviews(ListOrgPolicyViolationsPreviewsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

ListOrgPolicyViolationsPreviews lists each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
in an organization. Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsResponse` | The response received from the server. |

### ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListOrgPolicyViolationsPreviewsResponse> ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest request, CallOptions options)

ListOrgPolicyViolationsPreviews lists each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
in an organization. Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsResponse` | The call object. |

### ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListOrgPolicyViolationsPreviewsResponse> ListOrgPolicyViolationsPreviewsAsync(ListOrgPolicyViolationsPreviewsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

ListOrgPolicyViolationsPreviews lists each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
in an organization. Each
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
is available for at least 7 days.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ListOrgPolicyViolationsPreviewsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.PolicySimulator.V1.OrgPolicyViolationsPreviewService.OrgPolicyViolationsPreviewServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)