Google_ImagesServiceResource

The "images" collection of methods.

Defined (1)

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

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