Required. The name of the subnet the Compute instance will use for private
connectivity. Must be supplied in the form of
projects/{project}/regions/{region}/subnetworks/{subnetwork}.
Note: the region for the subnet must match the Compute instance region.
Optional. The Google Cloud Platform zone to create the VM in. The fully
qualified name of the zone must be specified, including the region name,
for example "us-central1-b". If not specified, uses the "-b" zone of the
destination Connection Profile's 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\u003eGenerateTcpProxyScriptRequest\u003c/code\u003e class is used to request the generation of a TCP proxy script within the Database Migration v1 API, which is part of the Google Cloud Platform.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports various versions, with the latest being 2.5.0, and older versions are also accessible, down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGenerateTcpProxyScriptRequest\u003c/code\u003e implements several 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 from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eMigrationJob\u003c/code\u003e, \u003ccode\u003eVmMachineType\u003c/code\u003e, \u003ccode\u003eVmName\u003c/code\u003e, \u003ccode\u003eVmSubnet\u003c/code\u003e, and \u003ccode\u003eVmZone\u003c/code\u003e to define parameters for the TCP proxy script generation, including its placement on a compute instance.\u003c/p\u003e\n"],["\u003cp\u003eThe user can specify the name of the subnet in the specific format \u003ccode\u003eprojects/{project}/regions/{region}/subnetworks/{subnetwork}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class GenerateTcpProxyScriptRequest (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.GenerateTcpProxyScriptRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest) \n\n public sealed class GenerateTcpProxyScriptRequest : IMessage\u003cGenerateTcpProxyScriptRequest\u003e, IEquatable\u003cGenerateTcpProxyScriptRequest\u003e, IDeepCloneable\u003cGenerateTcpProxyScriptRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class GenerateTcpProxyScriptRequest.\n\nRequest message for 'GenerateTcpProxyScript' request. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GenerateTcpProxyScriptRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenerateTcpProxyScriptRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateTcpProxyScriptRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenerateTcpProxyScriptRequest](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest), [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### GenerateTcpProxyScriptRequest()\n\n public GenerateTcpProxyScriptRequest()\n\n### GenerateTcpProxyScriptRequest(GenerateTcpProxyScriptRequest)\n\n public GenerateTcpProxyScriptRequest(GenerateTcpProxyScriptRequest other)\n\nProperties\n----------\n\n### MigrationJob\n\n public string MigrationJob { get; set; }\n\nName of the migration job resource to generate the TCP Proxy script.\n\n### MigrationJobAsMigrationJobName\n\n public MigrationJobName MigrationJobAsMigrationJobName { get; set; }\n\n[MigrationJobName](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MigrationJobName)-typed view over the [MigrationJob](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.GenerateTcpProxyScriptRequest#Google_Cloud_CloudDms_V1_GenerateTcpProxyScriptRequest_MigrationJob) resource name property.\n\n### VmMachineType\n\n public string VmMachineType { get; set; }\n\nRequired. The type of the Compute instance that will host the proxy.\n\n### VmName\n\n public string VmName { get; set; }\n\nRequired. The name of the Compute instance that will host the proxy.\n\n### VmSubnet\n\n public string VmSubnet { get; set; }\n\nRequired. The name of the subnet the Compute instance will use for private\nconnectivity. Must be supplied in the form of\nprojects/{project}/regions/{region}/subnetworks/{subnetwork}.\nNote: the region for the subnet must match the Compute instance region.\n\n### VmZone\n\n public string VmZone { get; set; }\n\nOptional. The Google Cloud Platform zone to create the VM in. The fully\nqualified name of the zone must be specified, including the region name,\nfor example \"us-central1-b\". If not specified, uses the \"-b\" zone of the\ndestination Connection Profile's region."]]