Google_Service_Compute_TargetInstances_Resource

The "targetInstances" 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_TargetInstances_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves the list of target instances grouped by scope. 
  5. * (targetInstances.aggregatedList) 
  6. * @param string $project Name of the project scoping this request. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string filter Optional. Filter expression for filtering listed 
  9. * resources. 
  10. * @opt_param string pageToken Optional. Tag returned by a previous list request 
  11. * truncated by maxResults. Used to continue a previous list request. 
  12. * @opt_param string maxResults Optional. Maximum count of results to be 
  13. * returned. Maximum value is 500 and default value is 500. 
  14. * @return Google_Service_Compute_TargetInstanceAggregatedList 
  15. */ 
  16. public function aggregatedList($project, $optParams = array()) 
  17. $params = array('project' => $project); 
  18. $params = array_merge($params, $optParams); 
  19. return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); 
  20.  
  21. /** 
  22. * Deletes the specified TargetInstance resource. (targetInstances.delete) 
  23. * @param string $project Name of the project scoping this request. 
  24. * @param string $zone Name of the zone scoping this request. 
  25. * @param string $targetInstance Name of the TargetInstance resource to delete. 
  26. * @param array $optParams Optional parameters. 
  27. * @return Google_Service_Compute_Operation 
  28. */ 
  29. public function delete($project, $zone, $targetInstance, $optParams = array()) 
  30. $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); 
  31. $params = array_merge($params, $optParams); 
  32. return $this->call('delete', array($params), "Google_Service_Compute_Operation"); 
  33.  
  34. /** 
  35. * Returns the specified TargetInstance resource. (targetInstances.get) 
  36. * @param string $project Name of the project scoping this request. 
  37. * @param string $zone Name of the zone scoping this request. 
  38. * @param string $targetInstance Name of the TargetInstance resource to return. 
  39. * @param array $optParams Optional parameters. 
  40. * @return Google_Service_Compute_TargetInstance 
  41. */ 
  42. public function get($project, $zone, $targetInstance, $optParams = array()) 
  43. $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); 
  46.  
  47. /** 
  48. * Creates a TargetInstance resource in the specified project and zone using the 
  49. * data included in the request. (targetInstances.insert) 
  50. * @param string $project Name of the project scoping this request. 
  51. * @param string $zone Name of the zone scoping this request. 
  52. * @param Google_TargetInstance $postBody 
  53. * @param array $optParams Optional parameters. 
  54. * @return Google_Service_Compute_Operation 
  55. */ 
  56. public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) 
  57. $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); 
  58. $params = array_merge($params, $optParams); 
  59. return $this->call('insert', array($params), "Google_Service_Compute_Operation"); 
  60.  
  61. /** 
  62. * Retrieves the list of TargetInstance resources available to the specified 
  63. * project and zone. (targetInstances.listTargetInstances) 
  64. * @param string $project Name of the project scoping this request. 
  65. * @param string $zone Name of the zone scoping this request. 
  66. * @param array $optParams Optional parameters. 
  67. * @opt_param string filter Optional. Filter expression for filtering listed 
  68. * resources. 
  69. * @opt_param string pageToken Optional. Tag returned by a previous list request 
  70. * truncated by maxResults. Used to continue a previous list request. 
  71. * @opt_param string maxResults Optional. Maximum count of results to be 
  72. * returned. Maximum value is 500 and default value is 500. 
  73. * @return Google_Service_Compute_TargetInstanceList 
  74. */ 
  75. public function listTargetInstances($project, $zone, $optParams = array()) 
  76. $params = array('project' => $project, 'zone' => $zone); 
  77. $params = array_merge($params, $optParams); 
  78. return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList");