Google_ZoneOperationsServiceResource

The "zoneOperations" collection of methods.

Defined (1)

The class is defined in the following location(s).

/google-api/src/contrib/Google_ComputeService.php  
  1. class Google_ZoneOperationsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Deletes the specified zone-specific operation resource. (zoneOperations.delete) 
  6. * @param string $project Name of the project scoping this request. 
  7. * @param string $zone Name of the zone scoping this request. 
  8. * @param string $operation Name of the operation resource to delete. 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($project, $zone, $operation, $optParams = array()) { 
  12. $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('delete', array($params)); 
  15. return $data; 
  16. /** 
  17. * Retrieves the specified zone-specific operation resource. (zoneOperations.get) 
  18. * @param string $project Name of the project scoping this request. 
  19. * @param string $zone Name of the zone scoping this request. 
  20. * @param string $operation Name of the operation resource to return. 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_Operation 
  23. */ 
  24. public function get($project, $zone, $operation, $optParams = array()) { 
  25. $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); 
  26. $params = array_merge($params, $optParams); 
  27. $data = $this->__call('get', array($params)); 
  28. if ($this->useObjects()) { 
  29. return new Google_Operation($data); 
  30. } else { 
  31. return $data; 
  32. /** 
  33. * Retrieves the list of operation resources contained within the specified zone. 
  34. * (zoneOperations.list) 
  35. * @param string $project Name of the project scoping this request. 
  36. * @param string $zone Name of the zone scoping this request. 
  37. * @param array $optParams Optional parameters. 
  38. * @opt_param string filter Optional. Filter expression for filtering listed resources. 
  39. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100. 
  40. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 
  41. * @return Google_OperationList 
  42. */ 
  43. public function listZoneOperations($project, $zone, $optParams = array()) { 
  44. $params = array('project' => $project, 'zone' => $zone); 
  45. $params = array_merge($params, $optParams); 
  46. $data = $this->__call('list', array($params)); 
  47. if ($this->useObjects()) { 
  48. return new Google_OperationList($data); 
  49. } else { 
  50. return $data;