# BigQuery Data Policy Service V1 API - Class Google::Cloud::Bigquery::DataPolicies::V1::RenameDataPolicyRequest (v1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::RenameDataPolicyRequest.

Request message for the RenameDataPolicy method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. Resource name of the data policy to rename. The format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Resource name of the data policy to rename. The format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`
**Returns**

- (::String) --- Required. Resource name of the data policy to rename. The format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`

### #new_data_policy_id

    def new_data_policy_id() -> ::String

**Returns**

- (::String) --- Required. The new data policy id.

### #new_data_policy_id=

    def new_data_policy_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The new data policy id.
**Returns**

- (::String) --- Required. The new data policy id.