![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.FirewallPolicies.html Maven / Gradle / Ivy
Compute.FirewallPolicies (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.FirewallPolicies
- java.lang.Object
-
- com.google.api.services.compute.Compute.FirewallPolicies
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.FirewallPolicies.AddAssociation
class
Compute.FirewallPolicies.AddRule
class
Compute.FirewallPolicies.CloneRules
class
Compute.FirewallPolicies.Delete
class
Compute.FirewallPolicies.Get
class
Compute.FirewallPolicies.GetAssociation
class
Compute.FirewallPolicies.GetIamPolicy
class
Compute.FirewallPolicies.GetRule
class
Compute.FirewallPolicies.Insert
class
Compute.FirewallPolicies.List
class
Compute.FirewallPolicies.ListAssociations
class
Compute.FirewallPolicies.Move
class
Compute.FirewallPolicies.Patch
class
Compute.FirewallPolicies.PatchRule
class
Compute.FirewallPolicies.RemoveAssociation
class
Compute.FirewallPolicies.RemoveRule
class
Compute.FirewallPolicies.SetIamPolicy
class
Compute.FirewallPolicies.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
FirewallPolicies()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.FirewallPolicies.AddAssociation
addAssociation(String firewallPolicy,
FirewallPolicyAssociation content)
Inserts an association for the specified firewall policy.
Compute.FirewallPolicies.AddRule
addRule(String firewallPolicy,
FirewallPolicyRule content)
Inserts a rule into a firewall policy.
Compute.FirewallPolicies.CloneRules
cloneRules(String firewallPolicy)
Copies rules to the specified firewall policy.
Compute.FirewallPolicies.Delete
delete(String firewallPolicy)
Deletes the specified policy.
Compute.FirewallPolicies.Get
get(String firewallPolicy)
Returns the specified firewall policy.
Compute.FirewallPolicies.GetAssociation
getAssociation(String firewallPolicy)
Gets an association with the specified name.
Compute.FirewallPolicies.GetIamPolicy
getIamPolicy(String resource)
Gets the access control policy for a resource.
Compute.FirewallPolicies.GetRule
getRule(String firewallPolicy)
Gets a rule of the specified priority.
Compute.FirewallPolicies.Insert
insert(FirewallPolicy content)
Creates a new policy in the specified project using the data included in the request.
Compute.FirewallPolicies.List
list()
Lists all the policies that have been configured for the specified folder or organization.
Compute.FirewallPolicies.ListAssociations
listAssociations()
Lists associations of a specified target, i.e., organization or folder.
Compute.FirewallPolicies.Move
move(String firewallPolicy)
Moves the specified firewall policy.
Compute.FirewallPolicies.Patch
patch(String firewallPolicy,
FirewallPolicy content)
Patches the specified policy with the data included in the request.
Compute.FirewallPolicies.PatchRule
patchRule(String firewallPolicy,
FirewallPolicyRule content)
Patches a rule of the specified priority.
Compute.FirewallPolicies.RemoveAssociation
removeAssociation(String firewallPolicy)
Removes an association for the specified firewall policy.
Compute.FirewallPolicies.RemoveRule
removeRule(String firewallPolicy)
Deletes a rule of the specified priority.
Compute.FirewallPolicies.SetIamPolicy
setIamPolicy(String resource,
GlobalOrganizationSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.FirewallPolicies.TestIamPermissions
testIamPermissions(String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
addAssociation
public Compute.FirewallPolicies.AddAssociation addAssociation(String firewallPolicy,
FirewallPolicyAssociation content)
throws IOException
Inserts an association for the specified firewall policy.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicyAssociation
- Returns:
- the request
- Throws:
IOException
-
addRule
public Compute.FirewallPolicies.AddRule addRule(String firewallPolicy,
FirewallPolicyRule content)
throws IOException
Inserts a rule into a firewall policy.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicyRule
- Returns:
- the request
- Throws:
IOException
-
cloneRules
public Compute.FirewallPolicies.CloneRules cloneRules(String firewallPolicy)
throws IOException
Copies rules to the specified firewall policy.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
delete
public Compute.FirewallPolicies.Delete delete(String firewallPolicy)
throws IOException
Deletes the specified policy.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.FirewallPolicies.Get get(String firewallPolicy)
throws IOException
Returns the specified firewall policy.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to get.
- Returns:
- the request
- Throws:
IOException
-
getAssociation
public Compute.FirewallPolicies.GetAssociation getAssociation(String firewallPolicy)
throws IOException
Gets an association with the specified name.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to which the queried rule belongs.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.FirewallPolicies.GetIamPolicy getIamPolicy(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 "firewallPolicies.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:
resource
- Name or id of the resource for this request.
- Returns:
- the request
- Throws:
IOException
-
getRule
public Compute.FirewallPolicies.GetRule getRule(String firewallPolicy)
throws IOException
Gets a rule of the specified priority.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to which the queried rule belongs.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.FirewallPolicies.Insert insert(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 "firewallPolicies.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:
content
- the FirewallPolicy
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.FirewallPolicies.List list()
throws IOException
Lists all the policies that have been configured for the specified folder or organization.
Create a request for the method "firewallPolicies.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.
- Returns:
- the request
- Throws:
IOException
-
listAssociations
public Compute.FirewallPolicies.ListAssociations listAssociations()
throws IOException
Lists associations of a specified target, i.e., organization or folder.
Create a request for the method "firewallPolicies.listAssociations".
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.
- Returns:
- the request
- Throws:
IOException
-
move
public Compute.FirewallPolicies.Move move(String firewallPolicy)
throws IOException
Moves the specified firewall policy.
Create a request for the method "firewallPolicies.move".
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:
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
patch
public Compute.FirewallPolicies.Patch patch(String firewallPolicy,
FirewallPolicy content)
throws IOException
Patches the specified policy with the data included in the request.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicy
- Returns:
- the request
- Throws:
IOException
-
patchRule
public Compute.FirewallPolicies.PatchRule patchRule(String firewallPolicy,
FirewallPolicyRule content)
throws IOException
Patches a rule of the specified priority.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
content
- the FirewallPolicyRule
- Returns:
- the request
- Throws:
IOException
-
removeAssociation
public Compute.FirewallPolicies.RemoveAssociation removeAssociation(String firewallPolicy)
throws IOException
Removes an association for the specified firewall policy.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
removeRule
public Compute.FirewallPolicies.RemoveRule removeRule(String firewallPolicy)
throws IOException
Deletes a rule of the specified priority.
Create a request for the method "firewallPolicies.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:
firewallPolicy
- Name of the firewall policy to update.
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public Compute.FirewallPolicies.SetIamPolicy setIamPolicy(String resource,
GlobalOrganizationSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.
Create a request for the method "firewallPolicies.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:
resource
- Name or id of the resource for this request.
content
- the GlobalOrganizationSetPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.FirewallPolicies.TestIamPermissions testIamPermissions(String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "firewallPolicies.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:
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