2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    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.

Request message for 'CreateMappingRule' command.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CreateMappingRuleRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateMappingRuleRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateMappingRuleRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateMappingRuleRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudDms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.md.txt)

## Assembly

Google.Cloud.CloudDms.V1.dll

## Constructors

### CreateMappingRuleRequest()

    public CreateMappingRuleRequest()

### CreateMappingRuleRequest(CreateMappingRuleRequest)

    public CreateMappingRuleRequest(CreateMappingRuleRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `CreateMappingRuleRequest` |

## Properties

### MappingRule

    public MappingRule MappingRule { get; set; }

Required. Represents a [mapping rule](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
object.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MappingRule` |   |

### MappingRuleId

    public string MappingRuleId { get; set; }

Required. The ID of the rule to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Parent

    public string Parent { get; set; }

Required. The parent which owns this collection of mapping rules.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentAsConversionWorkspaceName

    public ConversionWorkspaceName ParentAsConversionWorkspaceName { get; set; }

[ConversionWorkspaceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ConversionWorkspaceName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreateMappingRuleRequest.md.txt#Google_Cloud_CloudDms_V1_CreateMappingRuleRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConversionWorkspaceName` |   |

### RequestId

    public string RequestId { get; set; }

A unique ID used to identify the request. If the server receives two
requests with the same ID, then the second request is ignored.

It is recommended to always set this value to a UUID.

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
(_), and hyphens (-). The maximum length is 40 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |