class ProjectsLocations extends Resource (View source)

The "locations" collection of methods.

Typical usage is:

 $datamigrationService = new Google\Service\DatabaseMigrationService(...);
 $locations = $datamigrationService->projects_locations;

Methods

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

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

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

Gets information about a location. (locations.get)

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

Lists information about the supported locations for this service.

Details

FetchStaticIpsResponse fetchStaticIps(string $name, array $optParams = [])

Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.

(locations.fetchStaticIps)

Parameters

string $name

Required. The resource name for the location for which static IPs should be returned. Must be in the format projects/locations.

array $optParams

Optional parameters.

Return Value

FetchStaticIpsResponse

Exceptions

Exception

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

Gets information about a location. (locations.get)

Parameters

string $name

Resource name for the location.

array $optParams

Optional parameters.

Return Value

Location

Exceptions

Exception

ListLocationsResponse listProjectsLocations(string $name, array $optParams = [])

Lists information about the supported locations for this service.

(locations.listProjectsLocations)

Parameters

string $name

The resource that owns the locations collection, if applicable.

array $optParams

Optional parameters.

Return Value

ListLocationsResponse

Exceptions

Exception