Google_ImagesServiceResource

The "images" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_ComputeService.php  
  1. class Google_ImagesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Creates an image resource in the specified project using the data included in the request. 
  6. * (images.insert) 
  7. * @param string $project Name of the project scoping this request. 
  8. * @param Google_Image $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Operation 
  11. */ 
  12. public function insert($project, Google_Image $postBody, $optParams = array()) { 
  13. $params = array('project' => $project, 'postBody' => $postBody); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('insert', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_Operation($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Returns the specified image resource. (images.get) 
  22. * @param string $project Name of the project scoping this request. 
  23. * @param string $image Name of the image resource to return. 
  24. * @param array $optParams Optional parameters. 
  25. * @return Google_Image 
  26. */ 
  27. public function get($project, $image, $optParams = array()) { 
  28. $params = array('project' => $project, 'image' => $image); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('get', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_Image($data); 
  33. } else { 
  34. return $data; 
  35. /** 
  36. * Retrieves the list of image resources available to the specified project. (images.list) 
  37. * @param string $project Name of the project scoping this request. 
  38. * @param array $optParams Optional parameters. 
  39. * @opt_param string filter Optional. Filter expression for filtering listed resources. 
  40. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 
  41. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100. 
  42. * @return Google_ImageList 
  43. */ 
  44. public function listImages($project, $optParams = array()) { 
  45. $params = array('project' => $project); 
  46. $params = array_merge($params, $optParams); 
  47. $data = $this->__call('list', array($params)); 
  48. if ($this->useObjects()) { 
  49. return new Google_ImageList($data); 
  50. } else { 
  51. return $data; 
  52. /** 
  53. * Deletes the specified image resource. (images.delete) 
  54. * @param string $project Name of the project scoping this request. 
  55. * @param string $image Name of the image resource to delete. 
  56. * @param array $optParams Optional parameters. 
  57. * @return Google_Operation 
  58. */ 
  59. public function delete($project, $image, $optParams = array()) { 
  60. $params = array('project' => $project, 'image' => $image); 
  61. $params = array_merge($params, $optParams); 
  62. $data = $this->__call('delete', array($params)); 
  63. if ($this->useObjects()) { 
  64. return new Google_Operation($data); 
  65. } else { 
  66. return $data;