Google_MachineTypesServiceResource

The "machineTypes" collection of methods.

Defined (1)

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

/src/contrib/Google_ComputeService.php  
  1. class Google_MachineTypesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Retrieves the list of machine type resources grouped by scope. (machineTypes.aggregatedList) 
  5. * @param string $project Name of the project scoping this request. 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string filter Optional. Filter expression for filtering listed resources. 
  8. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100. 
  9. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 
  10. * @return Google_MachineTypeAggregatedList 
  11. */ 
  12. public function aggregatedList($project, $optParams = array()) { 
  13. $params = array('project' => $project); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('aggregatedList', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_MachineTypeAggregatedList($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Returns the specified machine type resource. (machineTypes.get) 
  22. * @param string $project Name of the project scoping this request. 
  23. * @param string $zone Name of the zone scoping this request. 
  24. * @param string $machineType Name of the machine type resource to return. 
  25. * @param array $optParams Optional parameters. 
  26. * @return Google_MachineType 
  27. */ 
  28. public function get($project, $zone, $machineType, $optParams = array()) { 
  29. $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType); 
  30. $params = array_merge($params, $optParams); 
  31. $data = $this->__call('get', array($params)); 
  32. if ($this->useObjects()) { 
  33. return new Google_MachineType($data); 
  34. } else { 
  35. return $data; 
  36. /** 
  37. * Retrieves the list of machine type resources available to the specified project. 
  38. * (machineTypes.list) 
  39. * @param string $project Name of the project scoping this request. 
  40. * @param string $zone Name of the zone scoping this request. 
  41. * @param array $optParams Optional parameters. 
  42. * @opt_param string filter Optional. Filter expression for filtering listed resources. 
  43. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100. 
  44. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 
  45. * @return Google_MachineTypeList 
  46. */ 
  47. public function listMachineTypes($project, $zone, $optParams = array()) { 
  48. $params = array('project' => $project, 'zone' => $zone); 
  49. $params = array_merge($params, $optParams); 
  50. $data = $this->__call('list', array($params)); 
  51. if ($this->useObjects()) { 
  52. return new Google_MachineTypeList($data); 
  53. } else { 
  54. return $data;