Google_FirewallsServiceResource

The "firewalls" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_ComputeService.php  
  1. class Google_FirewallsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Deletes the specified firewall resource. (firewalls.delete) 
  6. * @param string $project Name of the project scoping this request. 
  7. * @param string $firewall Name of the firewall resource to delete. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Operation 
  10. */ 
  11. public function delete($project, $firewall, $optParams = array()) { 
  12. $params = array('project' => $project, 'firewall' => $firewall); 
  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. * Returns the specified firewall resource. (firewalls.get) 
  21. * @param string $project Name of the project scoping this request. 
  22. * @param string $firewall Name of the firewall resource to return. 
  23. * @param array $optParams Optional parameters. 
  24. * @return Google_Firewall 
  25. */ 
  26. public function get($project, $firewall, $optParams = array()) { 
  27. $params = array('project' => $project, 'firewall' => $firewall); 
  28. $params = array_merge($params, $optParams); 
  29. $data = $this->__call('get', array($params)); 
  30. if ($this->useObjects()) { 
  31. return new Google_Firewall($data); 
  32. } else { 
  33. return $data; 
  34. /** 
  35. * Creates a firewall resource in the specified project using the data included in the request. 
  36. * (firewalls.insert) 
  37. * @param string $project Name of the project scoping this request. 
  38. * @param Google_Firewall $postBody 
  39. * @param array $optParams Optional parameters. 
  40. * @return Google_Operation 
  41. */ 
  42. public function insert($project, Google_Firewall $postBody, $optParams = array()) { 
  43. $params = array('project' => $project, 'postBody' => $postBody); 
  44. $params = array_merge($params, $optParams); 
  45. $data = $this->__call('insert', array($params)); 
  46. if ($this->useObjects()) { 
  47. return new Google_Operation($data); 
  48. } else { 
  49. return $data; 
  50. /** 
  51. * Retrieves the list of firewall resources available to the specified project. (firewalls.list) 
  52. * @param string $project Name of the project scoping this request. 
  53. * @param array $optParams Optional parameters. 
  54. * @opt_param string filter Optional. Filter expression for filtering listed resources. 
  55. * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100. 
  56. * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. 
  57. * @return Google_FirewallList 
  58. */ 
  59. public function listFirewalls($project, $optParams = array()) { 
  60. $params = array('project' => $project); 
  61. $params = array_merge($params, $optParams); 
  62. $data = $this->__call('list', array($params)); 
  63. if ($this->useObjects()) { 
  64. return new Google_FirewallList($data); 
  65. } else { 
  66. return $data; 
  67. /** 
  68. * Updates the specified firewall resource with the data included in the request. This method 
  69. * supports patch semantics. (firewalls.patch) 
  70. * @param string $project Name of the project scoping this request. 
  71. * @param string $firewall Name of the firewall resource to update. 
  72. * @param Google_Firewall $postBody 
  73. * @param array $optParams Optional parameters. 
  74. * @return Google_Operation 
  75. */ 
  76. public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) { 
  77. $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); 
  78. $params = array_merge($params, $optParams); 
  79. $data = $this->__call('patch', array($params)); 
  80. if ($this->useObjects()) { 
  81. return new Google_Operation($data); 
  82. } else { 
  83. return $data; 
  84. /** 
  85. * Updates the specified firewall resource with the data included in the request. (firewalls.update) 
  86. * @param string $project Name of the project scoping this request. 
  87. * @param string $firewall Name of the firewall resource to update. 
  88. * @param Google_Firewall $postBody 
  89. * @param array $optParams Optional parameters. 
  90. * @return Google_Operation 
  91. */ 
  92. public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) { 
  93. $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); 
  94. $params = array_merge($params, $optParams); 
  95. $data = $this->__call('update', array($params)); 
  96. if ($this->useObjects()) { 
  97. return new Google_Operation($data); 
  98. } else { 
  99. return $data;