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

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







Compute.GlobalOperations (Compute Engine API v1-rev20200104-1.30.8)












com.google.api.services.compute

Class Compute.GlobalOperations

  • Enclosing class:
    Compute


    public class Compute.GlobalOperations
    extends Object
    The "globalOperations" collection of methods.
    • Constructor Detail

      • GlobalOperations

        public GlobalOperations()
    • Method Detail

      • delete

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

        public Compute.GlobalOperations.Get get(String project,
                                                String operation)
                                         throws IOException
        Retrieves the specified Operations resource. Gets a list of operations by making a list() request. Create a request for the method "globalOperations.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.
        operation - Name of the Operations resource to return.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.GlobalOperations.List list(String project)
                                           throws IOException
        Retrieves a list of Operation resources contained within the specified project. Create a request for the method "globalOperations.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
      • wait

        public Compute.GlobalOperations.Wait wait(String project,
                                                  String operation)
                                           throws IOException
        Waits for the specified Operation resource to return as DONE or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the GET method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be DONE or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not DONE. Create a request for the method "globalOperations.wait". 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.
        operation - Name of the Operations resource to return.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy