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
- class Google_FirewallsServiceResource extends Google_ServiceResource {
- /**
- * Deletes the specified firewall resource. (firewalls.delete)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $firewall Name of the firewall resource to delete.
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function delete($project, $firewall, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the specified firewall resource. (firewalls.get)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $firewall Name of the firewall resource to return.
- * @param array $optParams Optional parameters.
- * @return Google_Firewall
- */
- public function get($project, $firewall, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Firewall($data);
- } else {
- return $data;
- }
- }
- /**
- * Creates a firewall resource in the specified project using the data included in the request.
- * (firewalls.insert)
- *
- * @param string $project Name of the project scoping this request.
- * @param Google_Firewall $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function insert($project, Google_Firewall $postBody, $optParams = array()) {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of firewall resources available to the specified project. (firewalls.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_FirewallList
- */
- public function listFirewalls($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_FirewallList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified firewall resource with the data included in the request. This method
- * supports patch semantics. (firewalls.patch)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $firewall Name of the firewall resource to update.
- * @param Google_Firewall $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified firewall resource with the data included in the request. (firewalls.update)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $firewall Name of the firewall resource to update.
- * @param Google_Firewall $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- }