Google_NetworksServiceResource

The "networks" collection of methods.

Defined (1)

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

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