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 VpcPeeringConfig : IMessage<VpcPeeringConfig>, IEquatable<VpcPeeringConfig>, IDeepCloneable<VpcPeeringConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Database Migration v1 API class VpcPeeringConfig.

The VPC peering configuration is used to create VPC peering with the
consumer's VPC.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[VpcPeeringConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VpcPeeringConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[VpcPeeringConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig.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

### VpcPeeringConfig()

    public VpcPeeringConfig()

### VpcPeeringConfig(VpcPeeringConfig)

    public VpcPeeringConfig(VpcPeeringConfig other)

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

## Properties

### Subnet

    public string Subnet { get; set; }

Required. A free subnet for peering. (CIDR of /29)

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

### VpcName

    public string VpcName { get; set; }

Required. Fully qualified name of the VPC that Database Migration Service
will peer to.

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

### VpcNameAsNetworksName

    public NetworksName VpcNameAsNetworksName { get; set; }

[NetworksName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.NetworksName.md.txt)-typed view over the [VpcName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig.md.txt#Google_Cloud_CloudDms_V1_VpcPeeringConfig_VpcName) resource name property.

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