Google_GlobalOperationsServiceResource

The "globalOperations" collection of methods.

Defined (1)

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

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