class Zones extends Resource (View source)

The "zones" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $zones = $computeService->zones;

Methods

get(string $project, string $zone, array $optParams = [])

Returns the specified Zone resource. (zones.get)

listZones(string $project, array $optParams = [])

Retrieves the list of Zone resources available to the specified project.

Details

Zone get(string $project, string $zone, array $optParams = [])

Returns the specified Zone resource. (zones.get)

Parameters

string $project

Project ID for this request.

string $zone

Name of the zone resource to return.

array $optParams

Optional parameters.

Return Value

Zone

Exceptions

Exception

ZoneList listZones(string $project, array $optParams = [])

Retrieves the list of Zone resources available to the specified project.

(zones.listZones)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

ZoneList

Exceptions

Exception