All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.Compute.FirewallPolicies.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250320-2.0.0
Show newest version






Compute.FirewallPolicies (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute

Class Compute.FirewallPolicies

  • Enclosing class:
    Compute


    public class Compute.FirewallPolicies
    extends Object
    The "firewallPolicies" collection of methods.
    • Constructor Detail

      • FirewallPolicies

        public FirewallPolicies()
    • 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
      • 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–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy