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