public sealed class CreatePrivateConnectionRequest : IMessage<CreatePrivateConnectionRequest>, IEquatable<CreatePrivateConnectionRequest>, IDeepCloneable<CreatePrivateConnectionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class CreatePrivateConnectionRequest.
Request message to create a new private connection in the specified project
and region.
[[["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\u003eCreatePrivateConnectionRequest\u003c/code\u003e class is part of the Database Migration v1 API within the \u003ccode\u003eGoogle.Cloud.CloudDms.V1\u003c/code\u003e namespace, used to request the creation of a new private connection in a specified project and region.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<CreatePrivateConnectionRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<CreatePrivateConnectionRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in managing and transmitting data.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003ePrivateConnection\u003c/code\u003e, \u003ccode\u003ePrivateConnectionId\u003c/code\u003e, \u003ccode\u003eRequestId\u003c/code\u003e, and \u003ccode\u003eSkipValidation\u003c/code\u003e, which define the parameters and resources involved in creating a private connection, like the location, connection details, unique identifier, and optional validation skipping.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API for this request is 2.5.0, with older versions from 2.4.0 down to 1.0.0 also documented and available, allowing for version specific documentation lookup.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePrivateConnectionRequest\u003c/code\u003e Class includes two constructors to either create a fresh connection request or clone one from an existing one.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class CreatePrivateConnectionRequest (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.CreatePrivateConnectionRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest) \n\n public sealed class CreatePrivateConnectionRequest : IMessage\u003cCreatePrivateConnectionRequest\u003e, IEquatable\u003cCreatePrivateConnectionRequest\u003e, IDeepCloneable\u003cCreatePrivateConnectionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class CreatePrivateConnectionRequest.\n\nRequest message to create a new private connection in the specified project\nand region. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreatePrivateConnectionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreatePrivateConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreatePrivateConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreatePrivateConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest), [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### CreatePrivateConnectionRequest()\n\n public CreatePrivateConnectionRequest()\n\n### CreatePrivateConnectionRequest(CreatePrivateConnectionRequest)\n\n public CreatePrivateConnectionRequest(CreatePrivateConnectionRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent that owns the collection of PrivateConnections.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CreatePrivateConnectionRequest#Google_Cloud_CloudDms_V1_CreatePrivateConnectionRequest_Parent) resource name property.\n\n### PrivateConnection\n\n public PrivateConnection PrivateConnection { get; set; }\n\nRequired. The private connection resource to create.\n\n### PrivateConnectionId\n\n public string PrivateConnectionId { get; set; }\n\nRequired. The private connection identifier.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A unique ID used to identify the request. If the server receives\ntwo requests 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.\n\n### SkipValidation\n\n public bool SkipValidation { get; set; }\n\nOptional. If set to true, will skip validations."]]