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

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







Compute.TargetInstances (Compute Engine API beta-rev20220726-2.0.0)












com.google.api.services.compute

Class Compute.TargetInstances

  • Enclosing class:
    Compute


    public class Compute.TargetInstances
    extends Object
    The "targetInstances" collection of methods.
    • Constructor Detail

      • TargetInstances

        public TargetInstances()
    • Method Detail

      • delete

        public Compute.TargetInstances.Delete delete(String project,
                                                     String zone,
                                                     String targetInstance)
                                              throws IOException
        Deletes the specified TargetInstance resource. Create a request for the method "targetInstances.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.
        zone - Name of the zone scoping this request.
        targetInstance - Name of the TargetInstance resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.TargetInstances.Get get(String project,
                                               String zone,
                                               String targetInstance)
                                        throws IOException
        Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request. Create a request for the method "targetInstances.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.
        zone - Name of the zone scoping this request.
        targetInstance - Name of the TargetInstance resource to return.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.TargetInstances.Insert insert(String project,
                                                     String zone,
                                                     TargetInstance content)
                                              throws IOException
        Creates a TargetInstance resource in the specified project and zone using the data included in the request. Create a request for the method "targetInstances.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.
        zone - Name of the zone scoping this request.
        content - the TargetInstance
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.TargetInstances.List list(String project,
                                                 String zone)
                                          throws IOException
        Retrieves a list of TargetInstance resources available to the specified project and zone. Create a request for the method "targetInstances.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.
        zone - Name of the zone scoping this request.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy