public sealed class PrivateConnection : IMessage<PrivateConnection>, IEquatable<PrivateConnection>, IDeepCloneable<PrivateConnection>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class PrivateConnection.
The PrivateConnection resource is used to establish private connectivity
with the customer's network.
The resource labels for private connections to use to annotate any related
underlying resources such as Compute Engine VMs. An object containing a
list of "key": "value" pairs.
[[["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\u003eThis documentation covers the \u003ccode\u003ePrivateConnection\u003c/code\u003e class within the Google Cloud Database Migration v1 API, designed for establishing private network connectivity.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003ePrivateConnection\u003c/code\u003e class is 2.5.0, with previous versions ranging from 1.0.0 to 2.4.0 also being available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePrivateConnection\u003c/code\u003e objects are resources used to set up private connectivity with a customer's network and can have associated labels for organization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePrivateConnection\u003c/code\u003e 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, and inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003ePrivateConnection\u003c/code\u003e class include \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eUpdateTime\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, \u003ccode\u003eState\u003c/code\u003e, \u003ccode\u003eError\u003c/code\u003e, \u003ccode\u003eLabels\u003c/code\u003e, and \u003ccode\u003eVpcPeeringConfig\u003c/code\u003e to define, control, and provide information about the private connection resource.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class PrivateConnection (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.PrivateConnection)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.PrivateConnection)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.PrivateConnection) \n\n public sealed class PrivateConnection : IMessage\u003cPrivateConnection\u003e, IEquatable\u003cPrivateConnection\u003e, IDeepCloneable\u003cPrivateConnection\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class PrivateConnection.\n\nThe PrivateConnection resource is used to establish private connectivity\nwith the customer's network. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PrivateConnection \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PrivateConnection](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PrivateConnection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PrivateConnection](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PrivateConnection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PrivateConnection](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PrivateConnection), [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### PrivateConnection()\n\n public PrivateConnection()\n\n### PrivateConnection(PrivateConnection)\n\n public PrivateConnection(PrivateConnection other)\n\nProperties\n----------\n\n### ConnectivityCase\n\n public PrivateConnection.ConnectivityOneofCase ConnectivityCase { get; }\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The create time of the resource.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nThe private connection display name.\n\n### Error\n\n public Status Error { get; set; }\n\nOutput only. The error details in case of state FAILED.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nThe resource labels for private connections to use to annotate any related\nunderlying resources such as Compute Engine VMs. An object containing a\nlist of \"key\": \"value\" pairs.\n\nExample: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`.\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the resource.\n\n### PrivateConnectionName\n\n public PrivateConnectionName PrivateConnectionName { get; set; }\n\n[PrivateConnectionName](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PrivateConnectionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.PrivateConnection#Google_Cloud_CloudDms_V1_PrivateConnection_Name) resource name property.\n\n### State\n\n public PrivateConnection.Types.State State { get; set; }\n\nOutput only. The state of the private connection.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The last update time of the resource.\n\n### VpcPeeringConfig\n\n public VpcPeeringConfig VpcPeeringConfig { get; set; }\n\nVPC peering configuration."]]