public class Compute extends AbstractGoogleJsonClient
API for the Google Compute Engine service.
For more information about this service, see the API Documentation
This service uses ComputeRequestInitializer
to initialize global parameters via its
Compute.Builder
.
Modifier and Type | Class and Description |
---|---|
class |
Compute.Addresses
The "addresses" collection of methods.
|
static class |
Compute.Builder
Builder for
Compute . |
class |
Compute.Disks
The "disks" collection of methods.
|
class |
Compute.DiskTypes
The "diskTypes" collection of methods.
|
class |
Compute.Firewalls
The "firewalls" collection of methods.
|
class |
Compute.ForwardingRules
The "forwardingRules" collection of methods.
|
class |
Compute.GlobalOperations
The "globalOperations" collection of methods.
|
class |
Compute.HttpHealthChecks
The "httpHealthChecks" collection of methods.
|
class |
Compute.Images
The "images" collection of methods.
|
class |
Compute.Instances
The "instances" collection of methods.
|
class |
Compute.MachineTypes
The "machineTypes" collection of methods.
|
class |
Compute.Networks
The "networks" collection of methods.
|
class |
Compute.Projects
The "projects" collection of methods.
|
class |
Compute.RegionOperations
The "regionOperations" collection of methods.
|
class |
Compute.Regions
The "regions" collection of methods.
|
class |
Compute.Routes
The "routes" collection of methods.
|
class |
Compute.Snapshots
The "snapshots" collection of methods.
|
class |
Compute.TargetInstances
The "targetInstances" collection of methods.
|
class |
Compute.TargetPools
The "targetPools" collection of methods.
|
class |
Compute.ZoneOperations
The "zoneOperations" collection of methods.
|
class |
Compute.Zones
The "zones" collection of methods.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
Compute(HttpTransport transport,
JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Compute.Addresses |
addresses()
An accessor for creating requests from the Addresses collection.
|
Compute.Disks |
disks()
An accessor for creating requests from the Disks collection.
|
Compute.DiskTypes |
diskTypes()
An accessor for creating requests from the DiskTypes collection.
|
Compute.Firewalls |
firewalls()
An accessor for creating requests from the Firewalls collection.
|
Compute.ForwardingRules |
forwardingRules()
An accessor for creating requests from the ForwardingRules collection.
|
Compute.GlobalOperations |
globalOperations()
An accessor for creating requests from the GlobalOperations collection.
|
Compute.HttpHealthChecks |
httpHealthChecks()
An accessor for creating requests from the HttpHealthChecks collection.
|
Compute.Images |
images()
An accessor for creating requests from the Images collection.
|
protected void |
initialize(AbstractGoogleClientRequest<?> httpClientRequest) |
Compute.Instances |
instances()
An accessor for creating requests from the Instances collection.
|
Compute.MachineTypes |
machineTypes()
An accessor for creating requests from the MachineTypes collection.
|
Compute.Networks |
networks()
An accessor for creating requests from the Networks collection.
|
Compute.Projects |
projects()
An accessor for creating requests from the Projects collection.
|
Compute.RegionOperations |
regionOperations()
An accessor for creating requests from the RegionOperations collection.
|
Compute.Regions |
regions()
An accessor for creating requests from the Regions collection.
|
Compute.Routes |
routes()
An accessor for creating requests from the Routes collection.
|
Compute.Snapshots |
snapshots()
An accessor for creating requests from the Snapshots collection.
|
Compute.TargetInstances |
targetInstances()
An accessor for creating requests from the TargetInstances collection.
|
Compute.TargetPools |
targetPools()
An accessor for creating requests from the TargetPools collection.
|
Compute.ZoneOperations |
zoneOperations()
An accessor for creating requests from the ZoneOperations collection.
|
Compute.Zones |
zones()
An accessor for creating requests from the Zones collection.
|
getJsonFactory, getObjectParser
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks
public static final String DEFAULT_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
public static final String DEFAULT_BASE_URL
public Compute(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
Use Compute.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
GoogleNetHttpTransport
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize
in class AbstractGoogleClient
IOException
public Compute.Addresses addresses()
The typical use is:
Compute compute = new Compute(...);
Compute.Addresses.List request = compute.addresses().list(parameters ...)
public Compute.DiskTypes diskTypes()
The typical use is:
Compute compute = new Compute(...);
Compute.DiskTypes.List request = compute.diskTypes().list(parameters ...)
public Compute.Disks disks()
The typical use is:
Compute compute = new Compute(...);
Compute.Disks.List request = compute.disks().list(parameters ...)
public Compute.Firewalls firewalls()
The typical use is:
Compute compute = new Compute(...);
Compute.Firewalls.List request = compute.firewalls().list(parameters ...)
public Compute.ForwardingRules forwardingRules()
The typical use is:
Compute compute = new Compute(...);
Compute.ForwardingRules.List request = compute.forwardingRules().list(parameters ...)
public Compute.GlobalOperations globalOperations()
The typical use is:
Compute compute = new Compute(...);
Compute.GlobalOperations.List request = compute.globalOperations().list(parameters ...)
public Compute.HttpHealthChecks httpHealthChecks()
The typical use is:
Compute compute = new Compute(...);
Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)
public Compute.Images images()
The typical use is:
Compute compute = new Compute(...);
Compute.Images.List request = compute.images().list(parameters ...)
public Compute.Instances instances()
The typical use is:
Compute compute = new Compute(...);
Compute.Instances.List request = compute.instances().list(parameters ...)
public Compute.MachineTypes machineTypes()
The typical use is:
Compute compute = new Compute(...);
Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)
public Compute.Networks networks()
The typical use is:
Compute compute = new Compute(...);
Compute.Networks.List request = compute.networks().list(parameters ...)
public Compute.Projects projects()
The typical use is:
Compute compute = new Compute(...);
Compute.Projects.List request = compute.projects().list(parameters ...)
public Compute.RegionOperations regionOperations()
The typical use is:
Compute compute = new Compute(...);
Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)
public Compute.Regions regions()
The typical use is:
Compute compute = new Compute(...);
Compute.Regions.List request = compute.regions().list(parameters ...)
public Compute.Routes routes()
The typical use is:
Compute compute = new Compute(...);
Compute.Routes.List request = compute.routes().list(parameters ...)
public Compute.Snapshots snapshots()
The typical use is:
Compute compute = new Compute(...);
Compute.Snapshots.List request = compute.snapshots().list(parameters ...)
public Compute.TargetInstances targetInstances()
The typical use is:
Compute compute = new Compute(...);
Compute.TargetInstances.List request = compute.targetInstances().list(parameters ...)
public Compute.TargetPools targetPools()
The typical use is:
Compute compute = new Compute(...);
Compute.TargetPools.List request = compute.targetPools().list(parameters ...)
public Compute.ZoneOperations zoneOperations()
The typical use is:
Compute compute = new Compute(...);
Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)
public Compute.Zones zones()
The typical use is:
Compute compute = new Compute(...);
Compute.Zones.List request = compute.zones().list(parameters ...)