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

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

The newest version!






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












com.google.api.services.compute

Class Compute.TargetVpnGateways

  • Enclosing class:
    Compute


    public class Compute.TargetVpnGateways
    extends Object
    The "targetVpnGateways" collection of methods.
    • Constructor Detail

      • TargetVpnGateways

        public TargetVpnGateways()
    • Method Detail

      • aggregatedList

        public Compute.TargetVpnGateways.AggregatedList aggregatedList(String project)
                                                                throws IOException
        Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "targetVpnGateways.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.TargetVpnGateways.Delete delete(String project,
                                                       String region,
                                                       String targetVpnGateway)
                                                throws IOException
        Deletes the specified target VPN gateway. Create a request for the method "targetVpnGateways.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.
        targetVpnGateway - Name of the target VPN gateway to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.TargetVpnGateways.Get get(String project,
                                                 String region,
                                                 String targetVpnGateway)
                                          throws IOException
        Returns the specified target VPN gateway. Create a request for the method "targetVpnGateways.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.
        targetVpnGateway - Name of the target VPN gateway to return.
        Returns:
        the request
        Throws:
        IOException
      • insert

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

        public Compute.TargetVpnGateways.List list(String project,
                                                   String region)
                                            throws IOException
        Retrieves a list of target VPN gateways available to the specified project and region. Create a request for the method "targetVpnGateways.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.TargetVpnGateways.SetLabels setLabels(String project,
                                                             String region,
                                                             String resource,
                                                             RegionSetLabelsRequest content)
                                                      throws IOException
        Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation. Create a request for the method "targetVpnGateways.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

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy