Reference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::UpdateDataPolicyRequest.
The target data policy is determined by the name field.
Other fields are updated to the specified values based on the field masks.
#update_mask
defupdate_mask()->::Google::Protobuf::FieldMask
Returns
(::Google::Protobuf::FieldMask) — The update mask applies to the resource. For the FieldMask definition,
see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
If not set, defaults to all of the fields that are allowed to update.
Updates to the name and dataPolicyId fields are not allowed.
value (::Google::Protobuf::FieldMask) — The update mask applies to the resource. For the FieldMask definition,
see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
If not set, defaults to all of the fields that are allowed to update.
Updates to the name and dataPolicyId fields are not allowed.
Returns
(::Google::Protobuf::FieldMask) — The update mask applies to the resource. For the FieldMask definition,
see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
If not set, defaults to all of the fields that are allowed to update.
Updates to the name and dataPolicyId fields are not allowed.
[[["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::UpdateDataPolicyRequest (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-UpdateDataPolicyRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/1.0.1/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.10.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.9.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.8.1/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.7.2/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.6.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.5.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.4.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.3.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.3.1/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.2.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.1.0/Google-Cloud-Bigquery-DataPolicies-V1-UpdateDataPolicyRequest) \nReference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::UpdateDataPolicyRequest.\n\nResponse message for the UpdateDataPolicy 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. Update the data policy's metadata.\n\n\n The target data policy is determined by the `name` field.\n Other fields are updated to the specified values based on the field masks.\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. Update the data policy's metadata.\n\n\n The target data policy is determined by the `name` field.\nOther fields are updated to the specified values based on the field masks. \n**Returns**\n\n- ([::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy](./Google-Cloud-Bigquery-DataPolicies-V1-DataPolicy)) --- Required. Update the data policy's metadata.\n\n\n The target data policy is determined by the `name` field.\n Other fields are updated to the specified values based on the field masks.\n\n### #update_mask\n\n def update_mask() -\u003e ::Google::Protobuf::FieldMask\n\n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.\n\n\n Updates to the `name` and `dataPolicyId` fields are not allowed.\n\n### #update_mask=\n\n def update_mask=(value) -\u003e ::Google::Protobuf::FieldMask\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.\n\n\nUpdates to the `name` and `dataPolicyId` fields are not allowed. \n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.\n\n\n Updates to the `name` and `dataPolicyId` fields are not allowed."]]