[[["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-09-09 UTC."],[],[],null,["# Cloud Database Migration Service V1 API - Class Google::Cloud::CloudDMS::V1::CreateMappingRuleRequest (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.3.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [1.2.2](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.2.2/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.1.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.0.1/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.8.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.7.2/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.6.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.5.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.4.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.3.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.2.0/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest)\n- [0.1.5](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.1.5/Google-Cloud-CloudDMS-V1-CreateMappingRuleRequest) \nReference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::CreateMappingRuleRequest.\n\nRequest message for 'CreateMappingRule' command. \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### #mapping_rule\n\n def mapping_rule() -\u003e ::Google::Cloud::CloudDMS::V1::MappingRule\n\n**Returns**\n\n- ([::Google::Cloud::CloudDMS::V1::MappingRule](./Google-Cloud-CloudDMS-V1-MappingRule)) --- Required. Represents a [mapping rule](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules) object.\n\n### #mapping_rule=\n\n def mapping_rule=(value) -\u003e ::Google::Cloud::CloudDMS::V1::MappingRule\n\n**Parameter**\n\n- **value** ([::Google::Cloud::CloudDMS::V1::MappingRule](./Google-Cloud-CloudDMS-V1-MappingRule)) --- Required. Represents a [mapping rule](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules) object. \n**Returns**\n\n- ([::Google::Cloud::CloudDMS::V1::MappingRule](./Google-Cloud-CloudDMS-V1-MappingRule)) --- Required. Represents a [mapping rule](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules) object.\n\n### #mapping_rule_id\n\n def mapping_rule_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID of the rule to create.\n\n### #mapping_rule_id=\n\n def mapping_rule_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The ID of the rule to create. \n**Returns**\n\n- (::String) --- Required. The ID of the rule to create.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent which owns this collection of mapping rules.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent which owns this collection of mapping rules. \n**Returns**\n\n- (::String) --- Required. The parent which owns this collection of mapping rules.\n\n### #request_id\n\n def request_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.\n\n It is recommended to always set this value to a UUID.\n\n The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores\n (_), and hyphens (-). The maximum length is 40 characters.\n\n### #request_id=\n\n def request_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.\n\n\n It is recommended to always set this value to a UUID.\n\n The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores\n(_), and hyphens (-). The maximum length is 40 characters. \n**Returns**\n\n- (::String) --- A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored.\n\n It is recommended to always set this value to a UUID.\n\n The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores\n (_), and hyphens (-). The maximum length is 40 characters."]]