class Firewalls extends Resource (View source)

The "firewalls" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $firewalls = $computeService->firewalls;

Methods

delete(string $project, string $firewall, array $optParams = [])

Deletes the specified firewall. (firewalls.delete)

get(string $project, string $firewall, array $optParams = [])

Returns the specified firewall. (firewalls.get)

insert(string $project, Firewall $postBody, array $optParams = [])

Creates a firewall rule in the specified project using the data included in the request. (firewalls.insert)

listFirewalls(string $project, array $optParams = [])

Retrieves the list of firewall rules available to the specified project.

patch(string $project, string $firewall, Firewall $postBody, array $optParams = [])

Updates the specified firewall rule with the data included in the request.

update(string $project, string $firewall, Firewall $postBody, array $optParams = [])

Updates the specified firewall rule with the data included in the request.

Details

Operation delete(string $project, string $firewall, array $optParams = [])

Deletes the specified firewall. (firewalls.delete)

Parameters

string $project

Project ID for this request.

string $firewall

Name of the firewall rule to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Firewall get(string $project, string $firewall, array $optParams = [])

Returns the specified firewall. (firewalls.get)

Parameters

string $project

Project ID for this request.

string $firewall

Name of the firewall rule to return.

array $optParams

Optional parameters.

Return Value

Firewall

Exceptions

Exception

Operation insert(string $project, Firewall $postBody, array $optParams = [])

Creates a firewall rule in the specified project using the data included in the request. (firewalls.insert)

Parameters

string $project

Project ID for this request.

Firewall $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

FirewallList listFirewalls(string $project, array $optParams = [])

Retrieves the list of firewall rules available to the specified project.

(firewalls.listFirewalls)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

FirewallList

Exceptions

Exception

Operation patch(string $project, string $firewall, Firewall $postBody, array $optParams = [])

Updates the specified firewall rule with the data included in the request.

This method supports PATCH semantics and uses the JSON merge patch format and processing rules. (firewalls.patch)

Parameters

string $project

Project ID for this request.

string $firewall

Name of the firewall rule to patch.

Firewall $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation update(string $project, string $firewall, Firewall $postBody, array $optParams = [])

Updates the specified firewall rule with the data included in the request.

Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead. (firewalls.update)

Parameters

string $project

Project ID for this request.

string $firewall

Name of the firewall rule to update.

Firewall $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception