Google_Service_Compute_Snapshots_Resource

The "snapshots" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Compute.php  
  1. class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes the specified persistent disk snapshot resource. (snapshots.delete) 
  5. * @param string $project Name of the project scoping this request. 
  6. * @param string $snapshot Name of the persistent disk snapshot resource to 
  7. * delete. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_Compute_Operation 
  10. */ 
  11. public function delete($project, $snapshot, $optParams = array()) 
  12. $params = array('project' => $project, 'snapshot' => $snapshot); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 
  15.  
  16. /** 
  17. * Returns the specified persistent disk snapshot resource. (snapshots.get) 
  18. * @param string $project Name of the project scoping this request. 
  19. * @param string $snapshot Name of the persistent disk snapshot resource to 
  20. * return. 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_Service_Compute_Snapshot 
  23. */ 
  24. public function get($project, $snapshot, $optParams = array()) 
  25. $params = array('project' => $project, 'snapshot' => $snapshot); 
  26. $params = array_merge($params, $optParams); 
  27. return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); 
  28.  
  29. /** 
  30. * Retrieves the list of persistent disk snapshot resources contained within the 
  31. * specified project. (snapshots.listSnapshots) 
  32. * @param string $project Name of the project scoping this request. 
  33. * @param array $optParams Optional parameters. 
  34. * @opt_param string filter Optional. Filter expression for filtering listed 
  35. * resources. 
  36. * @opt_param string pageToken Optional. Tag returned by a previous list request 
  37. * truncated by maxResults. Used to continue a previous list request. 
  38. * @opt_param string maxResults Optional. Maximum count of results to be 
  39. * returned. Maximum value is 500 and default value is 500. 
  40. * @return Google_Service_Compute_SnapshotList 
  41. */ 
  42. public function listSnapshots($project, $optParams = array()) 
  43. $params = array('project' => $project); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('list', array($params), "Google_Service_Compute_SnapshotList");