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

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

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






Compute.Networks (Compute Engine API alpha-rev20200526-1.30.9)












com.google.api.services.compute

Class Compute.Networks

  • Enclosing class:
    Compute


    public class Compute.Networks
    extends Object
    The "networks" collection of methods.
    • Constructor Detail

      • Networks

        public Networks()
    • Method Detail

      • delete

        public Compute.Networks.Delete delete(String project,
                                              String network)
                                       throws IOException
        Deletes the specified network. Create a request for the method "networks.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.
        network - Name of the network to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.Networks.Get get(String project,
                                        String network)
                                 throws IOException
        Returns the specified network. Gets a list of available networks by making a list() request. Create a request for the method "networks.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.
        network - Name of the network to return.
        Returns:
        the request
        Throws:
        IOException
      • getEffectiveFirewalls

        public Compute.Networks.GetEffectiveFirewalls getEffectiveFirewalls(String project,
                                                                            String network)
                                                                     throws IOException
        Returns the effective firewalls on a given network. Create a request for the method "networks.getEffectiveFirewalls". 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.
        network - Name of the network for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.Networks.Insert insert(String project,
                                              Network content)
                                       throws IOException
        Creates a network in the specified project using the data included in the request. Create a request for the method "networks.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 Network
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.Networks.List list(String project)
                                   throws IOException
        Retrieves the list of networks available to the specified project. Create a request for the method "networks.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
      • listIpAddresses

        public Compute.Networks.ListIpAddresses listIpAddresses(String project,
                                                                String network)
                                                         throws IOException
        Lists the internal IP addresses in the specified network. Create a request for the method "networks.listIpAddresses". 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.
        network - Name of the network for this request.
        Returns:
        the request
        Throws:
        IOException
      • listIpOwners

        public Compute.Networks.ListIpOwners listIpOwners(String project,
                                                          String network)
                                                   throws IOException
        Lists the internal IP owners in the specified network. Create a request for the method "networks.listIpOwners". 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.
        network - Name of the network to return.
        Returns:
        the request
        Throws:
        IOException
      • listPeeringRoutes

        public Compute.Networks.ListPeeringRoutes listPeeringRoutes(String project,
                                                                    String network)
                                                             throws IOException
        Lists the peering routes exchanged over peering connection. Create a request for the method "networks.listPeeringRoutes". 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.
        network - Name of the network for this request.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Compute.Networks.Patch patch(String project,
                                            String network,
                                            Network content)
                                     throws IOException
        Patches the specified network with the data included in the request. Only the following fields can be modified: routingConfig.routingMode. Create a request for the method "networks.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.
        network - Name of the network to update.
        content - the Network
        Returns:
        the request
        Throws:
        IOException
      • switchToCustomMode

        public Compute.Networks.SwitchToCustomMode switchToCustomMode(String project,
                                                                      String network)
                                                               throws IOException
        Switches the network mode from auto subnet mode to custom subnet mode. Create a request for the method "networks.switchToCustomMode". 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.
        network - Name of the network to be updated.
        Returns:
        the request
        Throws:
        IOException
      • updatePeering

        public Compute.Networks.UpdatePeering updatePeering(String project,
                                                            String network,
                                                            NetworksUpdatePeeringRequest content)
                                                     throws IOException
        Updates the specified network peering with the data included in the request Only the following fields can be modified: NetworkPeering.export_custom_routes, and NetworkPeering.import_custom_routes Create a request for the method "networks.updatePeering". 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.
        network - Name of the network resource which the updated peering is belonging to.
        content - the NetworksUpdatePeeringRequest
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy