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

    public sealed class CreateOrgPolicyViolationsPreviewRequest : IMessage<CreateOrgPolicyViolationsPreviewRequest>, IEquatable<CreateOrgPolicyViolationsPreviewRequest>, IDeepCloneable<CreateOrgPolicyViolationsPreviewRequest>, IBufferMessage, IMessage

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

CreateOrgPolicyViolationsPreviewRequest is the request message for
\[OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview\].

## Inheritance

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

## Implements

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

### CreateOrgPolicyViolationsPreviewRequest()

    public CreateOrgPolicyViolationsPreviewRequest()

### CreateOrgPolicyViolationsPreviewRequest(CreateOrgPolicyViolationsPreviewRequest)

    public CreateOrgPolicyViolationsPreviewRequest(CreateOrgPolicyViolationsPreviewRequest other)

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

## Properties

### OrgPolicyViolationsPreview

    public OrgPolicyViolationsPreview OrgPolicyViolationsPreview { get; set; }

Required. The
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
to generate.

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

### OrgPolicyViolationsPreviewId

    public string OrgPolicyViolationsPreviewId { get; set; }

Optional. An optional user-specified ID for the
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\].
If not provided, a random ID will be generated.

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

### Parent

    public string Parent { get; set; }

Required. The organization under which this
\[OrgPolicyViolationsPreview\]\[google.cloud.policysimulator.v1.OrgPolicyViolationsPreview\]
will be created.

Example: `organizations/my-example-org/locations/global`

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

### ParentAsOrganizationLocationName

    public OrganizationLocationName ParentAsOrganizationLocationName { get; set; }

[OrganizationLocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.OrganizationLocationName)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.CreateOrgPolicyViolationsPreviewRequest#Google_Cloud_PolicySimulator_V1_CreateOrgPolicyViolationsPreviewRequest_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.OrganizationLocationName` |   |