1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the BigQuery Data Policy v1 API class CreateDataPolicyRequest.

Request message for the CreateDataPolicy method.

## Inheritance

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

## Implements

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

## 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.BigQuery.DataPolicies.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.md.txt)

## Assembly

Google.Cloud.BigQuery.DataPolicies.V1.dll

## Constructors

### CreateDataPolicyRequest()

    public CreateDataPolicyRequest()

### CreateDataPolicyRequest(CreateDataPolicyRequest)

    public CreateDataPolicyRequest(CreateDataPolicyRequest other)

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

## Properties

### DataPolicy

    public DataPolicy DataPolicy { get; set; }

Required. The data policy to create. The `name` field does not need to be
provided for the data policy creation.

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

### Parent

    public string Parent { get; set; }

Required. Resource name of the project that the data policy will belong to.
The format is `projects/{project_number}/locations/{location_id}`.

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest.md.txt#Google_Cloud_BigQuery_DataPolicies_V1_CreateDataPolicyRequest_Parent) resource name property.

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