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.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eCreateDataPolicyRequest\u003c/code\u003e class within the BigQuery Data Policy v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateDataPolicyRequest\u003c/code\u003e class is used to send a request to create a new data policy, and it implements interfaces like \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 class includes properties such as \u003ccode\u003eDataPolicy\u003c/code\u003e, which specifies the data policy to create, and \u003ccode\u003eParent\u003c/code\u003e, which denotes the project and location where the policy will reside, which are required fields.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API covered is 1.5.0, with older versions also having documentation, ranging down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes constructors to create new instances, either empty or by copying another \u003ccode\u003eCreateDataPolicyRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# BigQuery Data Policy v1 API - Class CreateDataPolicyRequest (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.4.0/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.3.0/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.2.0/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.1.0/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.0.0/Google.Cloud.BigQuery.DataPolicies.V1.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 v1 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.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.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.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.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.V1](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BigQuery.DataPolicies.V1.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.\nThe format 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.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest#Google_Cloud_BigQuery_DataPolicies_V1_CreateDataPolicyRequest_Parent) resource name property."]]