![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.GlobalOperations.html Maven / Gradle / Ivy
Compute.GlobalOperations (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.GlobalOperations
- java.lang.Object
-
- com.google.api.services.compute.Compute.GlobalOperations
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.GlobalOperations.AggregatedList
class
Compute.GlobalOperations.Delete
class
Compute.GlobalOperations.Get
class
Compute.GlobalOperations.List
class
Compute.GlobalOperations.Wait
-
Constructor Summary
Constructors
Constructor and Description
GlobalOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.GlobalOperations.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of all operations.
Compute.GlobalOperations.Delete
delete(String project,
String operation)
Deletes the specified Operations resource.
Compute.GlobalOperations.Get
get(String project,
String operation)
Retrieves the specified Operations resource.
Compute.GlobalOperations.List
list(String project)
Retrieves a list of Operation resources contained within the specified project.
Compute.GlobalOperations.Wait
wait(String project,
String operation)
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.
-
-
Method Detail
-
aggregatedList
public Compute.GlobalOperations.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of all operations.
Create a request for the method "globalOperations.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.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.
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–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy