Class ProjectsResource.LocationsResource.SourcesResource.FetchInventoryRequest
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
Inheritance
Inherited Members
Namespace: Google.Apis.VMMigrationService.v1alpha1
Assembly: Google.Apis.VMMigrationService.v1alpha1.dll
Syntax
public class ProjectsResource.LocationsResource.SourcesResource.FetchInventoryRequest : VMMigrationServiceBaseServiceRequest<FetchInventoryResponse>, IClientServiceRequest<FetchInventoryResponse>, IClientServiceRequest
Constructors
FetchInventoryRequest(IClientService, string)
Constructs a new FetchInventory request.
Declaration
public FetchInventoryRequest(IClientService service, string source)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | source |
Properties
ForceRefresh
If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower.
Declaration
[RequestParameter("forceRefresh", RequestParameterType.Query)]
public virtual bool? ForceRefresh { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PageSize
The maximum number of VMs to return. The service may return fewer than this value. For AWS source: If unspecified, at most 500 VMs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. For VMWare source: If unspecified, all VMs will be returned. There is no limit for maximum value.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
A page token, received from a previous FetchInventory
call. Provide this to retrieve the
subsequent page. When paginating, all other parameters provided to FetchInventory
must match
the call that provided the page token.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Source
Required. The name of the Source.
Declaration
[RequestParameter("source", RequestParameterType.Path)]
public virtual string Source { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes FetchInventory parameter list.
Declaration
protected override void InitParameters()