class ProjectsLocationsTargetProjects extends Resource (View source)

The "targetProjects" collection of methods.

Typical usage is:

 $vmmigrationService = new Google\Service\VMMigrationService(...);
 $targetProjects = $vmmigrationService->projects_locations_targetProjects;

Methods

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

Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is global.

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

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

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

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

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

Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is global.

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

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

Details

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

Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is global.

(targetProjects.create)

Parameters

string $parent

Required. The TargetProject's parent.

TargetProject $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

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

(targetProjects.delete)

Parameters

string $name

Required. The TargetProject name.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

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

(targetProjects.get)

Parameters

string $name

Required. The TargetProject name.

array $optParams

Optional parameters.

Return Value

TargetProject

Exceptions

Exception

ListTargetProjectsResponse listProjectsLocationsTargetProjects(string $parent, array $optParams = [])

Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is global.

(targetProjects.listProjectsLocationsTargetProjects)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListTargetProjectsResponse

Exceptions

Exception

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

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

(targetProjects.patch)

Parameters

string $name

Output only. The name of the target project.

TargetProject $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception