![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.Zones.html Maven / Gradle / Ivy
Compute.Zones (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.Zones
- java.lang.Object
-
- com.google.api.services.compute.Compute.Zones
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.Zones.Get
class
Compute.Zones.List
-
Constructor Summary
Constructors
Constructor and Description
Zones()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.Zones.Get
get(String project,
String zone)
Returns the specified Zone resource.
Compute.Zones.List
list(String project)
Retrieves the list of Zone resources available to the specified project.
-
-
Method Detail
-
get
public Compute.Zones.Get get(String project,
String zone)
throws IOException
Returns the specified Zone resource. Gets a list of available zones by making a list() request.
Create a request for the method "zones.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.
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 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
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy