Compute Engine API v1beta13 (revision 22)
com.google.api.services.compute
Class Compute.Zones
java.lang.Object
com.google.api.services.compute.Compute.Zones
- Enclosing class:
- Compute
public class Compute.Zones
- extends Object
The "zones" collection of methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Compute.Zones
public Compute.Zones()
get
public Compute.Zones.Get get(String project,
String zone)
throws IOException
- Returns the specified zone resource.
Create a request for the method "zones.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.zone
- Name of the zone resource to return.
- Returns:
- the request
- Throws:
IOException
list
public Compute.Zones.List list(String project)
throws IOException
- Retrieves the list of zone resources available to the specified project.
Create a request for the method "zones.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