public sealed class CreateDataPolicyRequest : IMessage<CreateDataPolicyRequest>, IEquatable<CreateDataPolicyRequest>, IDeepCloneable<CreateDataPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the BigQuery Data Policy v1beta1 API class CreateDataPolicyRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateDataPolicyRequest\u003c/code\u003e class is part of the BigQuery Data Policy v1beta1 API, specifically for creating data policies within a project.\u003c/p\u003e\n"],["\u003cp\u003eThis class is a request message for the \u003ccode\u003eCreateDataPolicy\u003c/code\u003e method, and it inherits from \u003ccode\u003eobject\u003c/code\u003e while implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateDataPolicyRequest\u003c/code\u003e class contains properties to specify the data policy to be created (\u003ccode\u003eDataPolicy\u003c/code\u003e) and the project and location where the policy will reside (\u003ccode\u003eParent\u003c/code\u003e and \u003ccode\u003eParentAsLocationName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe latest available version of the \u003ccode\u003eCreateDataPolicyRequest\u003c/code\u003e is \u003ccode\u003e1.0.0-beta04\u003c/code\u003e, but there is also a previous version of \u003ccode\u003e1.0.0-beta03\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# BigQuery Data Policy v1beta1 API - Class CreateDataPolicyRequest (1.0.0-beta04)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta04 (latest)](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.CreateDataPolicyRequest)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/1.0.0-beta03/Google.Cloud.BigQuery.DataPolicies.V1Beta1.CreateDataPolicyRequest) \n\n public sealed class CreateDataPolicyRequest : IMessage\u003cCreateDataPolicyRequest\u003e, IEquatable\u003cCreateDataPolicyRequest\u003e, IDeepCloneable\u003cCreateDataPolicyRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the BigQuery Data Policy v1beta1 API class CreateDataPolicyRequest.\n\nRequest message for the CreateDataPolicy method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateDataPolicyRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.CreateDataPolicyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.CreateDataPolicyRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.CreateDataPolicyRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.BigQuery.DataPolicies.V1Beta1](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.BigQuery.DataPolicies.V1Beta1.dll\n\nConstructors\n------------\n\n### CreateDataPolicyRequest()\n\n public CreateDataPolicyRequest()\n\n### CreateDataPolicyRequest(CreateDataPolicyRequest)\n\n public CreateDataPolicyRequest(CreateDataPolicyRequest other)\n\nProperties\n----------\n\n### DataPolicy\n\n public DataPolicy DataPolicy { get; set; }\n\nRequired. The data policy to create. The `name` field does not need to be\nprovided for the data policy creation.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Resource name of the project that the data policy will belong to. The\nformat is `projects/{project_number}/locations/{location_id}`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1Beta1/latest/Google.Cloud.BigQuery.DataPolicies.V1Beta1.CreateDataPolicyRequest#Google_Cloud_BigQuery_DataPolicies_V1Beta1_CreateDataPolicyRequest_Parent) resource name property."]]