Class VmMigration.VmMigrationBase (2.0.0)

[BindServiceMethod(typeof(VmMigration), "BindService")]
public abstract class VmMigrationBase

Base class for server-side implementations of VmMigration

Inheritance

Object > VmMigration.VmMigrationBase

Namespace

Google.Cloud.VMMigration.V1

Assembly

Google.Cloud.VMMigration.V1.dll

Methods

AddGroupMigration(AddGroupMigrationRequest, ServerCallContext)

public virtual Task<Operation> AddGroupMigration(AddGroupMigrationRequest request, ServerCallContext context)

Adds a MigratingVm to a Group.

Parameters
NameDescription
requestAddGroupMigrationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CancelCloneJob(CancelCloneJobRequest, ServerCallContext)

public virtual Task<Operation> CancelCloneJob(CancelCloneJobRequest request, ServerCallContext context)

Initiates the cancellation of a running clone job.

Parameters
NameDescription
requestCancelCloneJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CancelCutoverJob(CancelCutoverJobRequest, ServerCallContext)

public virtual Task<Operation> CancelCutoverJob(CancelCutoverJobRequest request, ServerCallContext context)

Initiates the cancellation of a running cutover job.

Parameters
NameDescription
requestCancelCutoverJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateCloneJob(CreateCloneJobRequest, ServerCallContext)

public virtual Task<Operation> CreateCloneJob(CreateCloneJobRequest request, ServerCallContext context)

Initiates a Clone of a specific migrating VM.

Parameters
NameDescription
requestCreateCloneJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateCutoverJob(CreateCutoverJobRequest, ServerCallContext)

public virtual Task<Operation> CreateCutoverJob(CreateCutoverJobRequest request, ServerCallContext context)

Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.

Parameters
NameDescription
requestCreateCutoverJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateDatacenterConnector(CreateDatacenterConnectorRequest, ServerCallContext)

public virtual Task<Operation> CreateDatacenterConnector(CreateDatacenterConnectorRequest request, ServerCallContext context)

Creates a new DatacenterConnector in a given Source.

Parameters
NameDescription
requestCreateDatacenterConnectorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateGroup(CreateGroupRequest, ServerCallContext)

public virtual Task<Operation> CreateGroup(CreateGroupRequest request, ServerCallContext context)

Creates a new Group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateMigratingVm(CreateMigratingVmRequest, ServerCallContext)

public virtual Task<Operation> CreateMigratingVm(CreateMigratingVmRequest request, ServerCallContext context)

Creates a new MigratingVm in a given Source.

Parameters
NameDescription
requestCreateMigratingVmRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateSource(CreateSourceRequest, ServerCallContext)

public virtual Task<Operation> CreateSource(CreateSourceRequest request, ServerCallContext context)

Creates a new Source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateTargetProject(CreateTargetProjectRequest, ServerCallContext)

public virtual Task<Operation> CreateTargetProject(CreateTargetProjectRequest request, ServerCallContext context)

Creates a new TargetProject in a given project.

NOTE: TargetProject is a global resource; hence the only supported value for location is global.

Parameters
NameDescription
requestCreateTargetProjectRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateUtilizationReport(CreateUtilizationReportRequest, ServerCallContext)

public virtual Task<Operation> CreateUtilizationReport(CreateUtilizationReportRequest request, ServerCallContext context)

Creates a new UtilizationReport.

Parameters
NameDescription
requestCreateUtilizationReportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteDatacenterConnector(DeleteDatacenterConnectorRequest, ServerCallContext)

public virtual Task<Operation> DeleteDatacenterConnector(DeleteDatacenterConnectorRequest request, ServerCallContext context)

Deletes a single DatacenterConnector.

Parameters
NameDescription
requestDeleteDatacenterConnectorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteGroup(DeleteGroupRequest, ServerCallContext)

public virtual Task<Operation> DeleteGroup(DeleteGroupRequest request, ServerCallContext context)

Deletes a single Group.

Parameters
NameDescription
requestDeleteGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteMigratingVm(DeleteMigratingVmRequest, ServerCallContext)

public virtual Task<Operation> DeleteMigratingVm(DeleteMigratingVmRequest request, ServerCallContext context)

Deletes a single MigratingVm.

Parameters
NameDescription
requestDeleteMigratingVmRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteSource(DeleteSourceRequest, ServerCallContext)

public virtual Task<Operation> DeleteSource(DeleteSourceRequest request, ServerCallContext context)

Deletes a single Source.

Parameters
NameDescription
requestDeleteSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteTargetProject(DeleteTargetProjectRequest, ServerCallContext)

public virtual Task<Operation> DeleteTargetProject(DeleteTargetProjectRequest request, ServerCallContext context)

Deletes a single TargetProject.

NOTE: TargetProject is a global resource; hence the only supported value for location is global.

Parameters
NameDescription
requestDeleteTargetProjectRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteUtilizationReport(DeleteUtilizationReportRequest, ServerCallContext)

public virtual Task<Operation> DeleteUtilizationReport(DeleteUtilizationReportRequest request, ServerCallContext context)

Deletes a single Utilization Report.

Parameters
NameDescription
requestDeleteUtilizationReportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

FetchInventory(FetchInventoryRequest, ServerCallContext)

public virtual Task<FetchInventoryResponse> FetchInventory(FetchInventoryRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestFetchInventoryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<FetchInventoryResponse>

The response to send back to the client (wrapped by a task).

FinalizeMigration(FinalizeMigrationRequest, ServerCallContext)

public virtual Task<Operation> FinalizeMigration(FinalizeMigrationRequest request, ServerCallContext context)

Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.

Parameters
NameDescription
requestFinalizeMigrationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

GetCloneJob(GetCloneJobRequest, ServerCallContext)

public virtual Task<CloneJob> GetCloneJob(GetCloneJobRequest request, ServerCallContext context)

Gets details of a single CloneJob.

Parameters
NameDescription
requestGetCloneJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<CloneJob>

The response to send back to the client (wrapped by a task).

GetCutoverJob(GetCutoverJobRequest, ServerCallContext)

public virtual Task<CutoverJob> GetCutoverJob(GetCutoverJobRequest request, ServerCallContext context)

Gets details of a single CutoverJob.

Parameters
NameDescription
requestGetCutoverJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<CutoverJob>

The response to send back to the client (wrapped by a task).

GetDatacenterConnector(GetDatacenterConnectorRequest, ServerCallContext)

public virtual Task<DatacenterConnector> GetDatacenterConnector(GetDatacenterConnectorRequest request, ServerCallContext context)

Gets details of a single DatacenterConnector.

Parameters
NameDescription
requestGetDatacenterConnectorRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<DatacenterConnector>

The response to send back to the client (wrapped by a task).

GetGroup(GetGroupRequest, ServerCallContext)

public virtual Task<Group> GetGroup(GetGroupRequest request, ServerCallContext context)

Gets details of a single Group.

Parameters
NameDescription
requestGetGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Group>

The response to send back to the client (wrapped by a task).

GetMigratingVm(GetMigratingVmRequest, ServerCallContext)

public virtual Task<MigratingVm> GetMigratingVm(GetMigratingVmRequest request, ServerCallContext context)

Gets details of a single MigratingVm.

Parameters
NameDescription
requestGetMigratingVmRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<MigratingVm>

The response to send back to the client (wrapped by a task).

GetSource(GetSourceRequest, ServerCallContext)

public virtual Task<Source> GetSource(GetSourceRequest request, ServerCallContext context)

Gets details of a single Source.

Parameters
NameDescription
requestGetSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Source>

The response to send back to the client (wrapped by a task).

GetTargetProject(GetTargetProjectRequest, ServerCallContext)

public virtual Task<TargetProject> GetTargetProject(GetTargetProjectRequest request, ServerCallContext context)

Gets details of a single TargetProject.

NOTE: TargetProject is a global resource; hence the only supported value for location is global.

Parameters
NameDescription
requestGetTargetProjectRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TargetProject>

The response to send back to the client (wrapped by a task).

GetUtilizationReport(GetUtilizationReportRequest, ServerCallContext)

public virtual Task<UtilizationReport> GetUtilizationReport(GetUtilizationReportRequest request, ServerCallContext context)

Gets a single Utilization Report.

Parameters
NameDescription
requestGetUtilizationReportRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<UtilizationReport>

The response to send back to the client (wrapped by a task).

ListCloneJobs(ListCloneJobsRequest, ServerCallContext)

public virtual Task<ListCloneJobsResponse> ListCloneJobs(ListCloneJobsRequest request, ServerCallContext context)

Lists CloneJobs of a given migrating VM.

Parameters
NameDescription
requestListCloneJobsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListCloneJobsResponse>

The response to send back to the client (wrapped by a task).

ListCutoverJobs(ListCutoverJobsRequest, ServerCallContext)

public virtual Task<ListCutoverJobsResponse> ListCutoverJobs(ListCutoverJobsRequest request, ServerCallContext context)

Lists CutoverJobs of a given migrating VM.

Parameters
NameDescription
requestListCutoverJobsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListCutoverJobsResponse>

The response to send back to the client (wrapped by a task).

ListDatacenterConnectors(ListDatacenterConnectorsRequest, ServerCallContext)

public virtual Task<ListDatacenterConnectorsResponse> ListDatacenterConnectors(ListDatacenterConnectorsRequest request, ServerCallContext context)

Lists DatacenterConnectors in a given Source.

Parameters
NameDescription
requestListDatacenterConnectorsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListDatacenterConnectorsResponse>

The response to send back to the client (wrapped by a task).

ListGroups(ListGroupsRequest, ServerCallContext)

public virtual Task<ListGroupsResponse> ListGroups(ListGroupsRequest request, ServerCallContext context)

Lists Groups in a given project and location.

Parameters
NameDescription
requestListGroupsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListGroupsResponse>

The response to send back to the client (wrapped by a task).

ListMigratingVms(ListMigratingVmsRequest, ServerCallContext)

public virtual Task<ListMigratingVmsResponse> ListMigratingVms(ListMigratingVmsRequest request, ServerCallContext context)

Lists MigratingVms in a given Source.

Parameters
NameDescription
requestListMigratingVmsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListMigratingVmsResponse>

The response to send back to the client (wrapped by a task).

ListSources(ListSourcesRequest, ServerCallContext)

public virtual Task<ListSourcesResponse> ListSources(ListSourcesRequest request, ServerCallContext context)

Lists Sources in a given project and location.

Parameters
NameDescription
requestListSourcesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListSourcesResponse>

The response to send back to the client (wrapped by a task).

ListTargetProjects(ListTargetProjectsRequest, ServerCallContext)

public virtual Task<ListTargetProjectsResponse> ListTargetProjects(ListTargetProjectsRequest request, ServerCallContext context)

Lists TargetProjects in a given project.

NOTE: TargetProject is a global resource; hence the only supported value for location is global.

Parameters
NameDescription
requestListTargetProjectsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListTargetProjectsResponse>

The response to send back to the client (wrapped by a task).

ListUtilizationReports(ListUtilizationReportsRequest, ServerCallContext)

public virtual Task<ListUtilizationReportsResponse> ListUtilizationReports(ListUtilizationReportsRequest request, ServerCallContext context)

Lists Utilization Reports of the given Source.

Parameters
NameDescription
requestListUtilizationReportsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListUtilizationReportsResponse>

The response to send back to the client (wrapped by a task).

PauseMigration(PauseMigrationRequest, ServerCallContext)

public virtual Task<Operation> PauseMigration(PauseMigrationRequest request, ServerCallContext context)

Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.

Parameters
NameDescription
requestPauseMigrationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

RemoveGroupMigration(RemoveGroupMigrationRequest, ServerCallContext)

public virtual Task<Operation> RemoveGroupMigration(RemoveGroupMigrationRequest request, ServerCallContext context)

Removes a MigratingVm from a Group.

Parameters
NameDescription
requestRemoveGroupMigrationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

ResumeMigration(ResumeMigrationRequest, ServerCallContext)

public virtual Task<Operation> ResumeMigration(ResumeMigrationRequest request, ServerCallContext context)

Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.

Parameters
NameDescription
requestResumeMigrationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

StartMigration(StartMigrationRequest, ServerCallContext)

public virtual Task<Operation> StartMigration(StartMigrationRequest request, ServerCallContext context)

Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.

Parameters
NameDescription
requestStartMigrationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateGroup(UpdateGroupRequest, ServerCallContext)

public virtual Task<Operation> UpdateGroup(UpdateGroupRequest request, ServerCallContext context)

Updates the parameters of a single Group.

Parameters
NameDescription
requestUpdateGroupRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateMigratingVm(UpdateMigratingVmRequest, ServerCallContext)

public virtual Task<Operation> UpdateMigratingVm(UpdateMigratingVmRequest request, ServerCallContext context)

Updates the parameters of a single MigratingVm.

Parameters
NameDescription
requestUpdateMigratingVmRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateSource(UpdateSourceRequest, ServerCallContext)

public virtual Task<Operation> UpdateSource(UpdateSourceRequest request, ServerCallContext context)

Updates the parameters of a single Source.

Parameters
NameDescription
requestUpdateSourceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateTargetProject(UpdateTargetProjectRequest, ServerCallContext)

public virtual Task<Operation> UpdateTargetProject(UpdateTargetProjectRequest request, ServerCallContext context)

Updates the parameters of a single TargetProject.

NOTE: TargetProject is a global resource; hence the only supported value for location is global.

Parameters
NameDescription
requestUpdateTargetProjectRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).