Compute Engine API v1beta15 (revision 1)
com.google.api.services.compute
Class Compute.Regions
java.lang.Object
com.google.api.services.compute.Compute.Regions
- Enclosing class:
- Compute
public class Compute.Regions
- extends Object
The "regions" collection of methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Compute.Regions
public Compute.Regions()
get
public Compute.Regions.Get get(String project,
String region)
throws IOException
- Returns the specified region resource.
Create a request for the method "regions.get".
This request holds the parameters needed by the the compute server. After setting any optional
parameters, call the
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Name of the project scoping this request.region
- Name of the region resource to return.
- Returns:
- the request
- Throws:
IOException
list
public Compute.Regions.List list(String project)
throws IOException
- Retrieves the list of region resources available to the specified project.
Create a request for the method "regions.list".
This request holds the parameters needed by the the compute server. After setting any optional
parameters, call the
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Name of the project scoping this request.
- Returns:
- the request
- Throws:
IOException