public sealed class FetchInventoryRequest : IMessage<FetchInventoryRequest>, IEquatable<FetchInventoryRequest>, IDeepCloneable<FetchInventoryRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the VM Migration v1 API class FetchInventoryRequest.
Request message for
[fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eFetchInventoryRequest\u003c/code\u003e class within the Google Cloud VM Migration v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eFetchInventoryRequest\u003c/code\u003e is 2.6.0, and there are seven previous versions available, ranging from 2.5.0 down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFetchInventoryRequest\u003c/code\u003e is a request message for the \u003ccode\u003efetchInventory\u003c/code\u003e function, used in the VM Migration process, inheriting properties from the base object class and implementing multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default one, and one that takes a \u003ccode\u003eFetchInventoryRequest\u003c/code\u003e as a parameter, and properties such as \u003ccode\u003eForceRefresh\u003c/code\u003e, \u003ccode\u003eSource\u003c/code\u003e, and \u003ccode\u003eSourceAsSourceName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eForceRefresh\u003c/code\u003e property of the class can be set to true, to query the source rather than use cached results, and the \u003ccode\u003eSource\u003c/code\u003e and \u003ccode\u003eSourceAsSourceName\u003c/code\u003e properties provide details about the location being queried.\u003c/p\u003e\n"]]],[],null,["# VM Migration v1 API - Class FetchInventoryRequest (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.5.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.4.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.3.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.2.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.1.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/2.0.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/1.0.0/Google.Cloud.VMMigration.V1.FetchInventoryRequest) \n\n public sealed class FetchInventoryRequest : IMessage\u003cFetchInventoryRequest\u003e, IEquatable\u003cFetchInventoryRequest\u003e, IDeepCloneable\u003cFetchInventoryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the VM Migration v1 API class FetchInventoryRequest.\n\nRequest message for\n\\[fetchInventory\\]\\[google.cloud.vmmigration.v1.VmMigration.FetchInventory\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FetchInventoryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[FetchInventoryRequest](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.FetchInventoryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FetchInventoryRequest](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.FetchInventoryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FetchInventoryRequest](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.FetchInventoryRequest), [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.VMMigration.V1](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.VMMigration.V1.dll\n\nConstructors\n------------\n\n### FetchInventoryRequest()\n\n public FetchInventoryRequest()\n\n### FetchInventoryRequest(FetchInventoryRequest)\n\n public FetchInventoryRequest(FetchInventoryRequest other)\n\nProperties\n----------\n\n### ForceRefresh\n\n public bool ForceRefresh { get; set; }\n\nIf this flag is set to true, the source will be queried instead of using\ncached results. Using this flag will make the call slower.\n\n### Source\n\n public string Source { get; set; }\n\nRequired. The name of the Source.\n\n### SourceAsSourceName\n\n public SourceName SourceAsSourceName { get; set; }\n\n[SourceName](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.SourceName)-typed view over the [Source](/dotnet/docs/reference/Google.Cloud.VMMigration.V1/latest/Google.Cloud.VMMigration.V1.FetchInventoryRequest#Google_Cloud_VMMigration_V1_FetchInventoryRequest_Source) resource name property."]]