Google_OperationsServiceResource

The "operations" collection of methods.

Defined (1)

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

/src/contrib/Google_SQLAdminService.php  
  1. class Google_OperationsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Retrieves an instance operation that has been performed on an instance. (operations.get) 
  5. * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 
  6. * @param string $instance Database instance ID. This does not include the project ID. 
  7. * @param string $operation Instance operation ID. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_InstanceOperation 
  10. */ 
  11. public function get($project, $instance, $operation, $optParams = array()) { 
  12. $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('get', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_InstanceOperation($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Lists all instance operations that have been performed on the given database instance in the 
  21. * reverse chronological order of the start time. (operations.list) 
  22. * @param string $project Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. 
  23. * @param string $instance Database instance ID. This does not include the project ID. 
  24. * @param array $optParams Optional parameters. 
  25. * @opt_param string maxResults Maximum number of operations per response. 
  26. * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view. 
  27. * @return Google_OperationsListResponse 
  28. */ 
  29. public function listOperations($project, $instance, $optParams = array()) { 
  30. $params = array('project' => $project, 'instance' => $instance); 
  31. $params = array_merge($params, $optParams); 
  32. $data = $this->__call('list', array($params)); 
  33. if ($this->useObjects()) { 
  34. return new Google_OperationsListResponse($data); 
  35. } else { 
  36. return $data;