Google_ZonesServiceResource
The "zones" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_ComputeService.php
- class Google_ZonesServiceResource extends Google_ServiceResource {
- /**
- * Returns the specified zone resource. (zones.get)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone resource to return.
- * @param array $optParams Optional parameters.
- * @return Google_Zone
- */
- public function get($project, $zone, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Zone($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of zone resources available to the specified project. (zones.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_ZoneList
- */
- public function listZones($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ZoneList($data);
- } else {
- return $data;
- }
- }
- }