# BigQuery Data Policy Service V1beta1 API - Class Google::Cloud::Bigquery::DataPolicies::V1beta1::UpdateDataPolicyRequest (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.1 0.6.0 0.5.1 0.4.2 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the BigQuery Data Policy Service V1beta1 API class Google::Cloud::Bigquery::DataPolicies::V1beta1::UpdateDataPolicyRequest.

Response message for the UpdateDataPolicy method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_policy

    def data_policy() -> ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy

**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataPolicy)) --- Required. Update the data policy's metadata.


  The target data policy is determined by the `name` field.
  Other fields are updated to the specified values based on the field masks.

### #data_policy=

    def data_policy=(value) -> ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy

**Parameter**

- **value** ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataPolicy)) --- Required. Update the data policy's metadata.


  The target data policy is determined by the `name` field.
  Other fields are updated to the specified values based on the field masks.
**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataPolicy)) --- Required. Update the data policy's metadata.


  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

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/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.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/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.