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

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

The newest version!






Compute.NetworkFirewallPolicies (Compute Engine API v1-rev20250320-2.0.0)












com.google.api.services.compute

Class Compute.NetworkFirewallPolicies

  • java.lang.Object
    • com.google.api.services.compute.Compute.NetworkFirewallPolicies
  • Enclosing class:
    Compute


    public class Compute.NetworkFirewallPolicies
    extends Object
    The "networkFirewallPolicies" collection of methods.
    • Constructor Detail

      • NetworkFirewallPolicies

        public NetworkFirewallPolicies()
    • 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
      • addPacketMirroringRule

        public Compute.NetworkFirewallPolicies.AddPacketMirroringRule addPacketMirroringRule(String project,
                                                                                             String firewallPolicy,
                                                                                             FirewallPolicyRule content)
                                                                                      throws IOException
        Inserts a packet mirroring rule into a firewall policy. Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". 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
      • 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
      • aggregatedList

        public Compute.NetworkFirewallPolicies.AggregatedList aggregatedList(String project)
                                                                      throws IOException
        Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "networkFirewallPolicies.aggregatedList". 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
      • 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
      • getPacketMirroringRule

        public Compute.NetworkFirewallPolicies.GetPacketMirroringRule getPacketMirroringRule(String project,
                                                                                             String firewallPolicy)
                                                                                      throws IOException
        Gets a packet mirroring rule of the specified priority. Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". 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
      • 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
      • patchPacketMirroringRule

        public Compute.NetworkFirewallPolicies.PatchPacketMirroringRule patchPacketMirroringRule(String project,
                                                                                                 String firewallPolicy,
                                                                                                 FirewallPolicyRule content)
                                                                                          throws IOException
        Patches a packet mirroring rule of the specified priority. Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". 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
      • 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
      • removePacketMirroringRule

        public Compute.NetworkFirewallPolicies.RemovePacketMirroringRule removePacketMirroringRule(String project,
                                                                                                   String firewallPolicy)
                                                                                            throws IOException
        Deletes a packet mirroring rule of the specified priority. Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". 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–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy