class ProjectsLocationsSources extends Resource (View source)

The "sources" collection of methods.

Typical usage is:

 $migrationcenterService = new Google\Service\MigrationCenterAPI(...);
 $sources = $migrationcenterService->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 source. (sources.delete)

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

Gets the details of a source. (sources.get)

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

Lists all the sources in a given project and location.

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

Updates the parameters of a 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. Value for parent.

Source $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a source. (sources.delete)

Parameters

string $name

Required. Name of the resource.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets the details of a source. (sources.get)

Parameters

string $name

Required. Name of the resource.

array $optParams

Optional parameters.

Return Value

Source

Exceptions

Exception

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

Lists all the sources in a given project and location.

(sources.listProjectsLocationsSources)

Parameters

string $parent

Required. Parent value for ListSourcesRequest.

array $optParams

Optional parameters.

Return Value

ListSourcesResponse

Exceptions

Exception

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

Updates the parameters of a source. (sources.patch)

Parameters

string $name

Output only. The full name of the source.

Source $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception