![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.NetworkFirewallPolicies.html Maven / Gradle / Ivy
Compute.NetworkFirewallPolicies (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.NetworkFirewallPolicies
- java.lang.Object
-
- com.google.api.services.compute.Compute.NetworkFirewallPolicies
-
-
Nested Class Summary
-
Constructor Summary
Constructors
Constructor and Description
NetworkFirewallPolicies()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.NetworkFirewallPolicies.AddAssociation
addAssociation(String project,
String firewallPolicy,
FirewallPolicyAssociation content)
Inserts an association for the specified firewall policy.
Compute.NetworkFirewallPolicies.AddRule
addRule(String project,
String firewallPolicy,
FirewallPolicyRule content)
Inserts a rule into a firewall policy.
Compute.NetworkFirewallPolicies.CloneRules
cloneRules(String project,
String firewallPolicy)
Copies rules to the specified firewall policy.
Compute.NetworkFirewallPolicies.Delete
delete(String project,
String firewallPolicy)
Deletes the specified policy.
Compute.NetworkFirewallPolicies.Get
get(String project,
String firewallPolicy)
Returns the specified network firewall policy.
Compute.NetworkFirewallPolicies.GetAssociation
getAssociation(String project,
String firewallPolicy)
Gets an association with the specified name.
Compute.NetworkFirewallPolicies.GetIamPolicy
getIamPolicy(String project,
String resource)
Gets the access control policy for a resource.
Compute.NetworkFirewallPolicies.GetRule
getRule(String project,
String firewallPolicy)
Gets a rule of the specified priority.
Compute.NetworkFirewallPolicies.Insert
insert(String project,
FirewallPolicy content)
Creates a new policy in the specified project using the data included in the request.
Compute.NetworkFirewallPolicies.List
list(String project)
Lists all the policies that have been configured for the specified project.
Compute.NetworkFirewallPolicies.Patch
patch(String project,
String firewallPolicy,
FirewallPolicy content)
Patches the specified policy with the data included in the request.
Compute.NetworkFirewallPolicies.PatchRule
patchRule(String project,
String firewallPolicy,
FirewallPolicyRule content)
Patches a rule of the specified priority.
Compute.NetworkFirewallPolicies.RemoveAssociation
removeAssociation(String project,
String firewallPolicy)
Removes an association for the specified firewall policy.
Compute.NetworkFirewallPolicies.RemoveRule
removeRule(String project,
String firewallPolicy)
Deletes a rule of the specified priority.
Compute.NetworkFirewallPolicies.SetIamPolicy
setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.NetworkFirewallPolicies.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
addAssociation
public Compute.NetworkFirewallPolicies.AddAssociation addAssociation(String project,
String firewallPolicy,
FirewallPolicyAssociation content)
throws IOException
Inserts an association for the specified firewall policy.
Create a request for the method "networkFirewallPolicies.addAssociation".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicyAssociation
- Returns:
- the request
- Throws:
IOException
-
addRule
public Compute.NetworkFirewallPolicies.AddRule addRule(String project,
String firewallPolicy,
FirewallPolicyRule content)
throws IOException
Inserts a rule into a firewall policy.
Create a request for the method "networkFirewallPolicies.addRule".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicyRule
- Returns:
- the request
- Throws:
IOException
-
cloneRules
public Compute.NetworkFirewallPolicies.CloneRules cloneRules(String project,
String firewallPolicy)
throws IOException
Copies rules to the specified firewall policy.
Create a request for the method "networkFirewallPolicies.cloneRules".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
delete
public Compute.NetworkFirewallPolicies.Delete delete(String project,
String firewallPolicy)
throws IOException
Deletes the specified policy.
Create a request for the method "networkFirewallPolicies.delete".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.NetworkFirewallPolicies.Get get(String project,
String firewallPolicy)
throws IOException
Returns the specified network firewall policy.
Create a request for the method "networkFirewallPolicies.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to get.
- Returns:
- the request
- Throws:
IOException
-
getAssociation
public Compute.NetworkFirewallPolicies.GetAssociation getAssociation(String project,
String firewallPolicy)
throws IOException
Gets an association with the specified name.
Create a request for the method "networkFirewallPolicies.getAssociation".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to which the queried association belongs.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.NetworkFirewallPolicies.GetIamPolicy getIamPolicy(String project,
String resource)
throws IOException
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Create a request for the method "networkFirewallPolicies.getIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
- Returns:
- the request
- Throws:
IOException
-
getRule
public Compute.NetworkFirewallPolicies.GetRule getRule(String project,
String firewallPolicy)
throws IOException
Gets a rule of the specified priority.
Create a request for the method "networkFirewallPolicies.getRule".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to which the queried rule belongs.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.NetworkFirewallPolicies.Insert insert(String project,
FirewallPolicy content)
throws IOException
Creates a new policy in the specified project using the data included in the request.
Create a request for the method "networkFirewallPolicies.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
content
- the FirewallPolicy
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.NetworkFirewallPolicies.List list(String project)
throws IOException
Lists all the policies that have been configured for the specified project.
Create a request for the method "networkFirewallPolicies.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
- Returns:
- the request
- Throws:
IOException
-
patch
public Compute.NetworkFirewallPolicies.Patch patch(String project,
String firewallPolicy,
FirewallPolicy content)
throws IOException
Patches the specified policy with the data included in the request.
Create a request for the method "networkFirewallPolicies.patch".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicy
- Returns:
- the request
- Throws:
IOException
-
patchRule
public Compute.NetworkFirewallPolicies.PatchRule patchRule(String project,
String firewallPolicy,
FirewallPolicyRule content)
throws IOException
Patches a rule of the specified priority.
Create a request for the method "networkFirewallPolicies.patchRule".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicyRule
- Returns:
- the request
- Throws:
IOException
-
removeAssociation
public Compute.NetworkFirewallPolicies.RemoveAssociation removeAssociation(String project,
String firewallPolicy)
throws IOException
Removes an association for the specified firewall policy.
Create a request for the method "networkFirewallPolicies.removeAssociation".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
removeRule
public Compute.NetworkFirewallPolicies.RemoveRule removeRule(String project,
String firewallPolicy)
throws IOException
Deletes a rule of the specified priority.
Create a request for the method "networkFirewallPolicies.removeRule".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public Compute.NetworkFirewallPolicies.SetIamPolicy setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.
Create a request for the method "networkFirewallPolicies.setIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
content
- the GlobalSetPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.NetworkFirewallPolicies.TestIamPermissions testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "networkFirewallPolicies.testIamPermissions".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy