NetworkFirewallPolicies
class NetworkFirewallPolicies extends Resource (View source)
The "networkFirewallPolicies" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$networkFirewallPolicies = $computeService->networkFirewallPolicies;
Methods
Inserts an association for the specified firewall policy.
Inserts a rule into a firewall policy. (networkFirewallPolicies.addRule)
Copies rules to the specified firewall policy.
Deletes the specified policy. (networkFirewallPolicies.delete)
Returns the specified network firewall policy. (networkFirewallPolicies.get)
Gets an association with the specified name.
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (networkFirewallPolicies.getIamPolicy)
Gets a rule of the specified priority. (networkFirewallPolicies.getRule)
Creates a new policy in the specified project using the data included in the request. (networkFirewallPolicies.insert)
Lists all the policies that have been configured for the specified project.
Patches the specified policy with the data included in the request.
Patches a rule of the specified priority. (networkFirewallPolicies.patchRule)
Removes an association for the specified firewall policy.
Deletes a rule of the specified priority.
Sets the access control policy on the specified resource. Replaces any existing policy. (networkFirewallPolicies.setIamPolicy)
Returns permissions that a caller has on the specified resource.
Details
Operation
addAssociation(string $project, string $firewallPolicy, FirewallPolicyAssociation $postBody, array $optParams = [])
Inserts an association for the specified firewall policy.
(networkFirewallPolicies.addAssociation)
Operation
addRule(string $project, string $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])
Inserts a rule into a firewall policy. (networkFirewallPolicies.addRule)
Operation
cloneRules(string $project, string $firewallPolicy, array $optParams = [])
Copies rules to the specified firewall policy.
(networkFirewallPolicies.cloneRules)
Operation
delete(string $project, string $firewallPolicy, array $optParams = [])
Deletes the specified policy. (networkFirewallPolicies.delete)
FirewallPolicy
get(string $project, string $firewallPolicy, array $optParams = [])
Returns the specified network firewall policy. (networkFirewallPolicies.get)
FirewallPolicyAssociation
getAssociation(string $project, string $firewallPolicy, array $optParams = [])
Gets an association with the specified name.
(networkFirewallPolicies.getAssociation)
Policy
getIamPolicy(string $project, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (networkFirewallPolicies.getIamPolicy)
FirewallPolicyRule
getRule(string $project, string $firewallPolicy, array $optParams = [])
Gets a rule of the specified priority. (networkFirewallPolicies.getRule)
Operation
insert(string $project, FirewallPolicy $postBody, array $optParams = [])
Creates a new policy in the specified project using the data included in the request. (networkFirewallPolicies.insert)
FirewallPolicyList
listNetworkFirewallPolicies(string $project, array $optParams = [])
Lists all the policies that have been configured for the specified project.
(networkFirewallPolicies.listNetworkFirewallPolicies)
Operation
patch(string $project, string $firewallPolicy, FirewallPolicy $postBody, array $optParams = [])
Patches the specified policy with the data included in the request.
(networkFirewallPolicies.patch)
Operation
patchRule(string $project, string $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])
Patches a rule of the specified priority. (networkFirewallPolicies.patchRule)
Operation
removeAssociation(string $project, string $firewallPolicy, array $optParams = [])
Removes an association for the specified firewall policy.
(networkFirewallPolicies.removeAssociation)
Operation
removeRule(string $project, string $firewallPolicy, array $optParams = [])
Deletes a rule of the specified priority.
(networkFirewallPolicies.removeRule)
Policy
setIamPolicy(string $project, string $resource, GlobalSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (networkFirewallPolicies.setIamPolicy)
TestPermissionsResponse
testIamPermissions(string $project, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(networkFirewallPolicies.testIamPermissions)