Reference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::CreateDataPolicyRequest.
(::String) — Required. Resource name of the project that the data policy will belong to.
The format is projects/{project_number}/locations/{location_id}.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. Resource name of the project that the data policy will belong to.
The format is projects/{project_number}/locations/{location_id}.
Returns
(::String) — Required. Resource name of the project that the data policy will belong to.
The format is projects/{project_number}/locations/{location_id}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# BigQuery Data Policy Service V1 API - Class Google::Cloud::Bigquery::DataPolicies::V1::CreateDataPolicyRequest (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/latest/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/1.0.1/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.10.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.9.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.8.1/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.7.2/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.6.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.5.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.4.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.3.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.3.1/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.2.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.1.0/Google-Cloud-Bigquery-DataPolicies-V1-CreateDataPolicyRequest) \nReference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::CreateDataPolicyRequest.\n\nRequest message for the CreateDataPolicy method. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #data_policy\n\n def data_policy() -\u003e ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy\n\n**Returns**\n\n- ([::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy](./Google-Cloud-Bigquery-DataPolicies-V1-DataPolicy)) --- Required. The data policy to create. The `name` field does not need to be provided for the data policy creation.\n\n### #data_policy=\n\n def data_policy=(value) -\u003e ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy](./Google-Cloud-Bigquery-DataPolicies-V1-DataPolicy)) --- Required. The data policy to create. The `name` field does not need to be provided for the data policy creation. \n**Returns**\n\n- ([::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy](./Google-Cloud-Bigquery-DataPolicies-V1-DataPolicy)) --- Required. The data policy to create. The `name` field does not need to be provided for the data policy creation.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Resource name of the project that the data policy will belong to. The format is `projects/{project_number}/locations/{location_id}`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Resource name of the project that the data policy will belong to. The format is `projects/{project_number}/locations/{location_id}`. \n**Returns**\n\n- (::String) --- Required. Resource name of the project that the data policy will belong to. The format is `projects/{project_number}/locations/{location_id}`."]]