class ProjectsLocationsSources extends Resource (View source)

The "sources" collection of methods.

Typical usage is:

 $vmmigrationService = new Google\Service\VMMigrationService(...);
 $sources = $vmmigrationService->projects_locations_sources;

Methods

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

Creates a new Source in a given project and location. (sources.create)

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

Deletes a single Source. (sources.delete)

fetchInventory(string $source, array $optParams = [])

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. (sources.fetchInventory)

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

Gets details of a single Source. (sources.get)

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

Lists Sources in a given project and location.

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

Updates the parameters of a single Source. (sources.patch)

Details

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

Creates a new Source in a given project and location. (sources.create)

Parameters

string $parent

Required. The Source's parent.

Source $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single Source. (sources.delete)

Parameters

string $name

Required. The Source name.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FetchInventoryResponse fetchInventory(string $source, array $optParams = [])

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. (sources.fetchInventory)

Parameters

string $source

Required. The name of the Source.

array $optParams

Optional parameters.

Return Value

FetchInventoryResponse

Exceptions

Exception

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

Gets details of a single Source. (sources.get)

Parameters

string $name

Required. The Source name.

array $optParams

Optional parameters.

Return Value

Source

Exceptions

Exception

ListSourcesResponse listProjectsLocationsSources(string $parent, array $optParams = [])

Lists Sources in a given project and location.

(sources.listProjectsLocationsSources)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListSourcesResponse

Exceptions

Exception

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

Updates the parameters of a single Source. (sources.patch)

Parameters

string $name

Output only. The Source name.

Source $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception