public sealed class CreateMappingRuleRequest : IMessage<CreateMappingRuleRequest>, IEquatable<CreateMappingRuleRequest>, IDeepCloneable<CreateMappingRuleRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class CreateMappingRuleRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateMappingRuleRequest\u003c/code\u003e class is used to send requests for creating mapping rules in the Database Migration v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it compatible with various Protobuf functionalities.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCreateMappingRuleRequest\u003c/code\u003e include \u003ccode\u003eMappingRule\u003c/code\u003e, \u003ccode\u003eMappingRuleId\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which are used to define the rule, its ID, and its location.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this is version 2.5.0, and multiple older versions are also documented, from 2.4.0 all the way down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThere are two Constructors available, one which is parameterless and one which accepts another \u003ccode\u003eCreateMappingRuleRequest\u003c/code\u003e object as its single parameter.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class CreateMappingRuleRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest) \n\n public sealed class CreateMappingRuleRequest : IMessage\u003cCreateMappingRuleRequest\u003e, IEquatable\u003cCreateMappingRuleRequest\u003e, IDeepCloneable\u003cCreateMappingRuleRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class CreateMappingRuleRequest.\n\nRequest message for 'CreateMappingRule' command. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateMappingRuleRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateMappingRuleRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateMappingRuleRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateMappingRuleRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### CreateMappingRuleRequest()\n\n public CreateMappingRuleRequest()\n\n### CreateMappingRuleRequest(CreateMappingRuleRequest)\n\n public CreateMappingRuleRequest(CreateMappingRuleRequest other)\n\nProperties\n----------\n\n### MappingRule\n\n public MappingRule MappingRule { get; set; }\n\nRequired. Represents a [mapping rule](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)\nobject.\n\n### MappingRuleId\n\n public string MappingRuleId { get; set; }\n\nRequired. The ID of the rule to create.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent which owns this collection of mapping rules.\n\n### ParentAsConversionWorkspaceName\n\n public ConversionWorkspaceName ParentAsConversionWorkspaceName { get; set; }\n\n[ConversionWorkspaceName](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ConversionWorkspaceName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest#Google_Cloud_CloudDms_V1_CreateMappingRuleRequest_Parent) resource name property.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nA unique ID used to identify the request. If the server receives two\nrequests with the same ID, then the second request is ignored.\n\nIt is recommended to always set this value to a UUID.\n\nThe ID must contain only letters (a-z, A-Z), numbers (0-9), underscores\n(_), and hyphens (-). The maximum length is 40 characters."]]