Google_TaskqueuesServiceResource

The "taskqueues" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_TaskqueueService.php  
  1. class Google_TaskqueuesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Get detailed information about a TaskQueue. (taskqueues.get) 
  6. * @param string $project The project under which the queue lies. 
  7. * @param string $taskqueue The id of the taskqueue to get the properties of. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param bool getStats Whether to get stats. Optional. 
  10. * @return Google_TaskQueue 
  11. */ 
  12. public function get($project, $taskqueue, $optParams = array()) { 
  13. $params = array('project' => $project, 'taskqueue' => $taskqueue); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('get', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_TaskQueue($data); 
  18. } else { 
  19. return $data;