Compute Engine API v1beta15 (revision 1)



com.google.api.services.compute
Class Compute.Regions

java.lang.Object
  extended by com.google.api.services.compute.Compute.Regions
Enclosing class:
Compute

public class Compute.Regions
extends Object

The "regions" collection of methods.


Nested Class Summary
 class Compute.Regions.Get
           
 class Compute.Regions.List
           
 
Constructor Summary
Compute.Regions()
           
 
Method Summary
 Compute.Regions.Get get(String project, String region)
          Returns the specified region resource.
 Compute.Regions.List list(String project)
          Retrieves the list of region resources available to the specified project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compute.Regions

public Compute.Regions()
Method Detail

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