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

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

The newest version!






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












com.google.api.services.compute

Class Compute.VpnGateways

  • Enclosing class:
    Compute


    public class Compute.VpnGateways
    extends Object
    The "vpnGateways" collection of methods.
    • Constructor Detail

      • VpnGateways

        public VpnGateways()
    • Method Detail

      • aggregatedList

        public Compute.VpnGateways.AggregatedList aggregatedList(String project)
                                                          throws IOException
        Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "vpnGateways.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
      • delete

        public Compute.VpnGateways.Delete delete(String project,
                                                 String region,
                                                 String vpnGateway)
                                          throws IOException
        Deletes the specified VPN gateway. Create a request for the method "vpnGateways.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.
        region - Name of the region for this request.
        vpnGateway - Name of the VPN gateway to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.VpnGateways.Get get(String project,
                                           String region,
                                           String vpnGateway)
                                    throws IOException
        Returns the specified VPN gateway. Create a request for the method "vpnGateways.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.
        region - Name of the region for this request.
        vpnGateway - Name of the VPN gateway to return.
        Returns:
        the request
        Throws:
        IOException
      • getStatus

        public Compute.VpnGateways.GetStatus getStatus(String project,
                                                       String region,
                                                       String vpnGateway)
                                                throws IOException
        Returns the status for the specified VPN gateway. Create a request for the method "vpnGateways.getStatus". 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.
        region - Name of the region for this request.
        vpnGateway - Name of the VPN gateway to return.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.VpnGateways.Insert insert(String project,
                                                 String region,
                                                 VpnGateway content)
                                          throws IOException
        Creates a VPN gateway in the specified project and region using the data included in the request. Create a request for the method "vpnGateways.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.
        region - Name of the region for this request.
        content - the VpnGateway
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.VpnGateways.List list(String project,
                                             String region)
                                      throws IOException
        Retrieves a list of VPN gateways available to the specified project and region. Create a request for the method "vpnGateways.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.
        region - Name of the region for this request.
        Returns:
        the request
        Throws:
        IOException
      • setLabels

        public Compute.VpnGateways.SetLabels setLabels(String project,
                                                       String region,
                                                       String resource,
                                                       RegionSetLabelsRequest content)
                                                throws IOException
        Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. Create a request for the method "vpnGateways.setLabels". 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.
        region - The region for this request.
        resource - Name or id of the resource for this request.
        content - the RegionSetLabelsRequest
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Compute.VpnGateways.TestIamPermissions testIamPermissions(String project,
                                                                         String region,
                                                                         String resource,
                                                                         TestPermissionsRequest content)
                                                                  throws IOException
        Returns permissions that a caller has on the specified resource. Create a request for the method "vpnGateways.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.
        region - The name of the region 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