Compute Engine API v1beta13 (revision 22)



com.google.api.services.compute
Class Compute

java.lang.Object
  extended by com.google.api.client.googleapis.services.AbstractGoogleClient
      extended by com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
          extended by com.google.api.services.compute.Compute

public class Compute
extends AbstractGoogleJsonClient

Service definition for Compute (v1beta13).

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.

Upgrade warning: this class now extends AbstractGoogleJsonClient, whereas in prior version 1.8 it extended GoogleClient.

Since:
1.3
Author:
Google, Inc.

Nested Class Summary
static class Compute.Builder
          Builder for Compute.
 class Compute.Disks
          The "disks" collection of methods.
 class Compute.Firewalls
          The "firewalls" collection of methods.
 class Compute.Images
          The "images" collection of methods.
 class Compute.Instances
          The "instances" collection of methods.
 class Compute.Kernels
          The "kernels" collection of methods.
 class Compute.MachineTypes
          The "machineTypes" collection of methods.
 class Compute.Networks
          The "networks" collection of methods.
 class Compute.Operations
          The "operations" collection of methods.
 class Compute.Projects
          The "projects" collection of methods.
 class Compute.Snapshots
          The "snapshots" collection of methods.
 class Compute.Zones
          The "zones" collection of methods.
 
Field Summary
static String DEFAULT_BASE_URL
          Deprecated. (scheduled to be removed in 1.13)
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 Summary
Compute(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
          Constructor.
 
Method Summary
 Compute.Disks disks()
          An accessor for creating requests from the Disks collection.
 Compute.Firewalls firewalls()
          An accessor for creating requests from the Firewalls 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.Kernels kernels()
          An accessor for creating requests from the Kernels 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.Operations operations()
          An accessor for creating requests from the Operations collection.
 Compute.Projects projects()
          An accessor for creating requests from the Projects collection.
 Compute.Snapshots snapshots()
          An accessor for creating requests from the Snapshots collection.
 Compute.Zones zones()
          An accessor for creating requests from the Zones collection.
 
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
getJsonFactory, getObjectParser
 
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClient
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ROOT_URL

public static final String DEFAULT_ROOT_URL
The default encoded root URL of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
See Also:
Constant Field Values

DEFAULT_SERVICE_PATH

public static final String DEFAULT_SERVICE_PATH
The default encoded service path of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
See Also:
Constant Field Values

DEFAULT_BASE_URL

@Deprecated
public static final String DEFAULT_BASE_URL
Deprecated. (scheduled to be removed in 1.13)
The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.

See Also:
Constant Field Values
Constructor Detail

Compute

public Compute(HttpTransport transport,
               JsonFactory jsonFactory,
               HttpRequestInitializer httpRequestInitializer)
Constructor.

Use Compute.Builder if you need to specify any of the optional parameters.

Parameters:
transport - HTTP transport
jsonFactory - JSON factory
httpRequestInitializer - HTTP request initializer or null for none
Since:
1.7
Method Detail

initialize

protected void initialize(AbstractGoogleClientRequest<?> httpClientRequest)
                   throws IOException
Overrides:
initialize in class AbstractGoogleClient
Throws:
IOException

disks

public Compute.Disks disks()
An accessor for creating requests from the Disks collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Disks.List request = compute.disks().list(parameters ...)
 

Returns:
the resource collection

firewalls

public Compute.Firewalls firewalls()
An accessor for creating requests from the Firewalls collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Firewalls.List request = compute.firewalls().list(parameters ...)
 

Returns:
the resource collection

images

public Compute.Images images()
An accessor for creating requests from the Images collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Images.List request = compute.images().list(parameters ...)
 

Returns:
the resource collection

instances

public Compute.Instances instances()
An accessor for creating requests from the Instances collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Instances.List request = compute.instances().list(parameters ...)
 

Returns:
the resource collection

kernels

public Compute.Kernels kernels()
An accessor for creating requests from the Kernels collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Kernels.List request = compute.kernels().list(parameters ...)
 

Returns:
the resource collection

machineTypes

public Compute.MachineTypes machineTypes()
An accessor for creating requests from the MachineTypes collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)
 

Returns:
the resource collection

networks

public Compute.Networks networks()
An accessor for creating requests from the Networks collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Networks.List request = compute.networks().list(parameters ...)
 

Returns:
the resource collection

operations

public Compute.Operations operations()
An accessor for creating requests from the Operations collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Operations.List request = compute.operations().list(parameters ...)
 

Returns:
the resource collection

projects

public Compute.Projects projects()
An accessor for creating requests from the Projects collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Projects.List request = compute.projects().list(parameters ...)
 

Returns:
the resource collection

snapshots

public Compute.Snapshots snapshots()
An accessor for creating requests from the Snapshots collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Snapshots.List request = compute.snapshots().list(parameters ...)
 

Returns:
the resource collection

zones

public Compute.Zones zones()
An accessor for creating requests from the Zones collection.

The typical use is:

   Compute compute = new Compute(...);
   Compute.Zones.List request = compute.zones().list(parameters ...)
 

Returns:
the resource collection