public sealed class MigrationSource : IMessage<MigrationSource>, IEquatable<MigrationSource>, IDeepCloneable<MigrationSource>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1 API class MigrationSource.
Subset of the source instance configuration that is available when reading
the cluster resource.
[[["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\u003eMigrationSource\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.AlloyDb.V1\u003c/code\u003e namespace is used for handling source instance configuration data when reading the cluster resource, and it's available in multiple versions ranging from 1.0.0 to the latest 1.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMigrationSource\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 is derived from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMigrationSource\u003c/code\u003e class provides constructors for creating instances, either default or by cloning another \u003ccode\u003eMigrationSource\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties like \u003ccode\u003eHostPort\u003c/code\u003e, \u003ccode\u003eReferenceId\u003c/code\u003e, and \u003ccode\u003eSourceType\u003c/code\u003e, which provide details about the migration source, including the on-premises host and port, external source identifier, and the migration source type, respectively, all of which are output-only.\u003c/p\u003e\n"],["\u003cp\u003eIt is contained within the Google.Cloud.AlloyDb.V1.dll assembly.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1 API - Class MigrationSource (1.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.10.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.9.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.8.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.7.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.6.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.5.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.4.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.3.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.2.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.1.0/Google.Cloud.AlloyDb.V1.MigrationSource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.0.0/Google.Cloud.AlloyDb.V1.MigrationSource) \n\n public sealed class MigrationSource : IMessage\u003cMigrationSource\u003e, IEquatable\u003cMigrationSource\u003e, IDeepCloneable\u003cMigrationSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1 API class MigrationSource.\n\nSubset of the source instance configuration that is available when reading\nthe cluster resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MigrationSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MigrationSource](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.MigrationSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MigrationSource](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.MigrationSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MigrationSource](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.MigrationSource), [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.AlloyDb.V1](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1.dll\n\nConstructors\n------------\n\n### MigrationSource()\n\n public MigrationSource()\n\n### MigrationSource(MigrationSource)\n\n public MigrationSource(MigrationSource other)\n\nProperties\n----------\n\n### HostPort\n\n public string HostPort { get; set; }\n\nOutput only. The host and port of the on-premises instance in host:port\nformat\n\n### ReferenceId\n\n public string ReferenceId { get; set; }\n\nOutput only. Place holder for the external source identifier(e.g DMS job\nname) that created the cluster.\n\n### SourceType\n\n public MigrationSource.Types.MigrationSourceType SourceType { get; set; }\n\nOutput only. Type of migration source."]]