Google_KernelsServiceResource

The "kernels" collection of methods.

Defined (1)

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

/src/contrib/Google_ComputeService.php  
  1. class Google_KernelsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Returns the specified kernel resource. (kernels.get) 
  5. * @param string $project Name of the project scoping this request. 
  6. * @param string $kernel Name of the kernel resource to return. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Kernel 
  9. */ 
  10. public function get($project, $kernel, $optParams = array()) { 
  11. $params = array('project' => $project, 'kernel' => $kernel); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Kernel($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Retrieves the list of kernel resources available to the specified project. (kernels.list) 
  20. * @param string $project Name of the project scoping this request. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string filter Optional. Filter expression for filtering listed resources. 
  23. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100. 
  24. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 
  25. * @return Google_KernelList 
  26. */ 
  27. public function listKernels($project, $optParams = array()) { 
  28. $params = array('project' => $project); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('list', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_KernelList($data); 
  33. } else { 
  34. return $data;