class ProjectsLocationsSourcesMigratingVms extends Resource (View source)

The "migratingVms" collection of methods.

Typical usage is:

 $vmmigrationService = new Google\Service\VMMigrationService(...);
 $migratingVms = $vmmigrationService->projects_locations_sources_migratingVms;

Methods

create(string $parent, MigratingVm $postBody, array $optParams = [])

Creates a new MigratingVm in a given Source. (migratingVms.create)

delete(string $name, array $optParams = [])

Deletes a single MigratingVm. (migratingVms.delete)

finalizeMigration(string $migratingVm, FinalizeMigrationRequest $postBody, array $optParams = [])

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

get(string $name, array $optParams = [])

Gets details of a single MigratingVm. (migratingVms.get)

listProjectsLocationsSourcesMigratingVms(string $parent, array $optParams = [])

Lists MigratingVms in a given Source.

patch(string $name, MigratingVm $postBody, array $optParams = [])

Updates the parameters of a single MigratingVm. (migratingVms.patch)

pauseMigration(string $migratingVm, PauseMigrationRequest $postBody, array $optParams = [])

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. (migratingVms.pauseMigration)

resumeMigration(string $migratingVm, ResumeMigrationRequest $postBody, array $optParams = [])

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.

startMigration(string $migratingVm, StartMigrationRequest $postBody, array $optParams = [])

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

Details

Operation create(string $parent, MigratingVm $postBody, array $optParams = [])

Creates a new MigratingVm in a given Source. (migratingVms.create)

Parameters

string $parent

Required. The MigratingVm's parent.

MigratingVm $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes a single MigratingVm. (migratingVms.delete)

Parameters

string $name

Required. The name of the MigratingVm.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation finalizeMigration(string $migratingVm, FinalizeMigrationRequest $postBody, array $optParams = [])

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

(migratingVms.finalizeMigration)

Parameters

string $migratingVm

Required. The name of the MigratingVm.

FinalizeMigrationRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

MigratingVm get(string $name, array $optParams = [])

Gets details of a single MigratingVm. (migratingVms.get)

Parameters

string $name

Required. The name of the MigratingVm.

array $optParams

Optional parameters.

Return Value

MigratingVm

Exceptions

Exception

ListMigratingVmsResponse listProjectsLocationsSourcesMigratingVms(string $parent, array $optParams = [])

Lists MigratingVms in a given Source.

(migratingVms.listProjectsLocationsSourcesMigratingVms)

Parameters

string $parent

Required. The parent, which owns this collection of MigratingVms.

array $optParams

Optional parameters.

Return Value

ListMigratingVmsResponse

Exceptions

Exception

Operation patch(string $name, MigratingVm $postBody, array $optParams = [])

Updates the parameters of a single MigratingVm. (migratingVms.patch)

Parameters

string $name

Output only. The identifier of the MigratingVm.

MigratingVm $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation pauseMigration(string $migratingVm, PauseMigrationRequest $postBody, array $optParams = [])

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. (migratingVms.pauseMigration)

Parameters

string $migratingVm

Required. The name of the MigratingVm.

PauseMigrationRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation resumeMigration(string $migratingVm, ResumeMigrationRequest $postBody, array $optParams = [])

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.

(migratingVms.resumeMigration)

Parameters

string $migratingVm

Required. The name of the MigratingVm.

ResumeMigrationRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation startMigration(string $migratingVm, StartMigrationRequest $postBody, array $optParams = [])

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

(migratingVms.startMigration)

Parameters

string $migratingVm

Required. The name of the MigratingVm.

StartMigrationRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception