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
defname()->::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=
defname=(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
defnew_data_policy_id()->::String
Returns
(::String) — Required. The new data policy id.
#new_data_policy_id=
defnew_data_policy_id=(value)->::String
Parameter
value (::String) — Required. The new data policy 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::RenameDataPolicyRequest (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-RenameDataPolicyRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/1.0.1/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.10.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.9.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.8.1/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.7.2/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.6.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.5.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.4.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.3.1](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.3.1/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.2.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-bigquery-data_policies-v1/0.1.0/Google-Cloud-Bigquery-DataPolicies-V1-RenameDataPolicyRequest) \nReference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::RenameDataPolicyRequest.\n\nRequest message for the RenameDataPolicy 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### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Resource name of the data policy to rename. The format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Resource name of the data policy to rename. The format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}` \n**Returns**\n\n- (::String) --- Required. Resource name of the data policy to rename. The format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`\n\n### #new_data_policy_id\n\n def new_data_policy_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The new data policy id.\n\n### #new_data_policy_id=\n\n def new_data_policy_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The new data policy id. \n**Returns**\n\n- (::String) --- Required. The new data policy id."]]