public class Compute
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
Creates and runs virtual machines on Google Cloud Platform.
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.
|
class |
Compute.Autoscalers
The "autoscalers" collection of methods.
|
class |
Compute.BackendServices
The "backendServices" 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.GlobalAddresses
The "globalAddresses" collection of methods.
|
class |
Compute.GlobalForwardingRules
The "globalForwardingRules" collection of methods.
|
class |
Compute.GlobalOperations
The "globalOperations" collection of methods.
|
class |
Compute.HealthChecks
The "healthChecks" collection of methods.
|
class |
Compute.HttpHealthChecks
The "httpHealthChecks" collection of methods.
|
class |
Compute.HttpsHealthChecks
The "httpsHealthChecks" collection of methods.
|
class |
Compute.Images
The "images" collection of methods.
|
class |
Compute.InstanceGroupManagers
The "instanceGroupManagers" collection of methods.
|
class |
Compute.InstanceGroups
The "instanceGroups" collection of methods.
|
class |
Compute.Instances
The "instances" collection of methods.
|
class |
Compute.InstanceTemplates
The "instanceTemplates" collection of methods.
|
class |
Compute.Licenses
The "licenses" 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.Routers
The "routers" collection of methods.
|
class |
Compute.Routes
The "routes" collection of methods.
|
class |
Compute.Snapshots
The "snapshots" collection of methods.
|
class |
Compute.SslCertificates
The "sslCertificates" collection of methods.
|
class |
Compute.Subnetworks
The "subnetworks" collection of methods.
|
class |
Compute.TargetHttpProxies
The "targetHttpProxies" collection of methods.
|
class |
Compute.TargetHttpsProxies
The "targetHttpsProxies" collection of methods.
|
class |
Compute.TargetInstances
The "targetInstances" collection of methods.
|
class |
Compute.TargetPools
The "targetPools" collection of methods.
|
class |
Compute.TargetSslProxies
The "targetSslProxies" collection of methods.
|
class |
Compute.TargetVpnGateways
The "targetVpnGateways" collection of methods.
|
class |
Compute.UrlMaps
The "urlMaps" collection of methods.
|
class |
Compute.VpnTunnels
The "vpnTunnels" 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 java.lang.String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static java.lang.String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static java.lang.String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
Compute(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Compute.Addresses |
addresses()
An accessor for creating requests from the Addresses collection.
|
Compute.Autoscalers |
autoscalers()
An accessor for creating requests from the Autoscalers collection.
|
Compute.BackendServices |
backendServices()
An accessor for creating requests from the BackendServices 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.GlobalAddresses |
globalAddresses()
An accessor for creating requests from the GlobalAddresses collection.
|
Compute.GlobalForwardingRules |
globalForwardingRules()
An accessor for creating requests from the GlobalForwardingRules collection.
|
Compute.GlobalOperations |
globalOperations()
An accessor for creating requests from the GlobalOperations collection.
|
Compute.HealthChecks |
healthChecks()
An accessor for creating requests from the HealthChecks collection.
|
Compute.HttpHealthChecks |
httpHealthChecks()
An accessor for creating requests from the HttpHealthChecks collection.
|
Compute.HttpsHealthChecks |
httpsHealthChecks()
An accessor for creating requests from the HttpsHealthChecks collection.
|
Compute.Images |
images()
An accessor for creating requests from the Images collection.
|
protected void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
Compute.InstanceGroupManagers |
instanceGroupManagers()
An accessor for creating requests from the InstanceGroupManagers collection.
|
Compute.InstanceGroups |
instanceGroups()
An accessor for creating requests from the InstanceGroups collection.
|
Compute.Instances |
instances()
An accessor for creating requests from the Instances collection.
|
Compute.InstanceTemplates |
instanceTemplates()
An accessor for creating requests from the InstanceTemplates collection.
|
Compute.Licenses |
licenses()
An accessor for creating requests from the Licenses 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.Routers |
routers()
An accessor for creating requests from the Routers 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.SslCertificates |
sslCertificates()
An accessor for creating requests from the SslCertificates collection.
|
Compute.Subnetworks |
subnetworks()
An accessor for creating requests from the Subnetworks collection.
|
Compute.TargetHttpProxies |
targetHttpProxies()
An accessor for creating requests from the TargetHttpProxies collection.
|
Compute.TargetHttpsProxies |
targetHttpsProxies()
An accessor for creating requests from the TargetHttpsProxies 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.TargetSslProxies |
targetSslProxies()
An accessor for creating requests from the TargetSslProxies collection.
|
Compute.TargetVpnGateways |
targetVpnGateways()
An accessor for creating requests from the TargetVpnGateways collection.
|
Compute.UrlMaps |
urlMaps()
An accessor for creating requests from the UrlMaps collection.
|
Compute.VpnTunnels |
vpnTunnels()
An accessor for creating requests from the VpnTunnels 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
public static final java.lang.String DEFAULT_ROOT_URL
public static final java.lang.String DEFAULT_SERVICE_PATH
public static final java.lang.String DEFAULT_BASE_URL
public Compute(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.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
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
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(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
java.io.IOException
public Compute.Addresses addresses()
The typical use is:
Compute compute = new Compute(...);
Compute.Addresses.List request = compute.addresses().list(parameters ...)
public Compute.Autoscalers autoscalers()
The typical use is:
Compute compute = new Compute(...);
Compute.Autoscalers.List request = compute.autoscalers().list(parameters ...)
public Compute.BackendServices backendServices()
The typical use is:
Compute compute = new Compute(...);
Compute.BackendServices.List request = compute.backendServices().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.GlobalAddresses globalAddresses()
The typical use is:
Compute compute = new Compute(...);
Compute.GlobalAddresses.List request = compute.globalAddresses().list(parameters ...)
public Compute.GlobalForwardingRules globalForwardingRules()
The typical use is:
Compute compute = new Compute(...);
Compute.GlobalForwardingRules.List request = compute.globalForwardingRules().list(parameters ...)
public Compute.GlobalOperations globalOperations()
The typical use is:
Compute compute = new Compute(...);
Compute.GlobalOperations.List request = compute.globalOperations().list(parameters ...)
public Compute.HealthChecks healthChecks()
The typical use is:
Compute compute = new Compute(...);
Compute.HealthChecks.List request = compute.healthChecks().list(parameters ...)
public Compute.HttpHealthChecks httpHealthChecks()
The typical use is:
Compute compute = new Compute(...);
Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)
public Compute.HttpsHealthChecks httpsHealthChecks()
The typical use is:
Compute compute = new Compute(...);
Compute.HttpsHealthChecks.List request = compute.httpsHealthChecks().list(parameters ...)
public Compute.Images images()
The typical use is:
Compute compute = new Compute(...);
Compute.Images.List request = compute.images().list(parameters ...)
public Compute.InstanceGroupManagers instanceGroupManagers()
The typical use is:
Compute compute = new Compute(...);
Compute.InstanceGroupManagers.List request = compute.instanceGroupManagers().list(parameters ...)
public Compute.InstanceGroups instanceGroups()
The typical use is:
Compute compute = new Compute(...);
Compute.InstanceGroups.List request = compute.instanceGroups().list(parameters ...)
public Compute.InstanceTemplates instanceTemplates()
The typical use is:
Compute compute = new Compute(...);
Compute.InstanceTemplates.List request = compute.instanceTemplates().list(parameters ...)
public Compute.Instances instances()
The typical use is:
Compute compute = new Compute(...);
Compute.Instances.List request = compute.instances().list(parameters ...)
public Compute.Licenses licenses()
The typical use is:
Compute compute = new Compute(...);
Compute.Licenses.List request = compute.licenses().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.Routers routers()
The typical use is:
Compute compute = new Compute(...);
Compute.Routers.List request = compute.routers().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.SslCertificates sslCertificates()
The typical use is:
Compute compute = new Compute(...);
Compute.SslCertificates.List request = compute.sslCertificates().list(parameters ...)
public Compute.Subnetworks subnetworks()
The typical use is:
Compute compute = new Compute(...);
Compute.Subnetworks.List request = compute.subnetworks().list(parameters ...)
public Compute.TargetHttpProxies targetHttpProxies()
The typical use is:
Compute compute = new Compute(...);
Compute.TargetHttpProxies.List request = compute.targetHttpProxies().list(parameters ...)
public Compute.TargetHttpsProxies targetHttpsProxies()
The typical use is:
Compute compute = new Compute(...);
Compute.TargetHttpsProxies.List request = compute.targetHttpsProxies().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.TargetSslProxies targetSslProxies()
The typical use is:
Compute compute = new Compute(...);
Compute.TargetSslProxies.List request = compute.targetSslProxies().list(parameters ...)
public Compute.TargetVpnGateways targetVpnGateways()
The typical use is:
Compute compute = new Compute(...);
Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)
public Compute.UrlMaps urlMaps()
The typical use is:
Compute compute = new Compute(...);
Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)
public Compute.VpnTunnels vpnTunnels()
The typical use is:
Compute compute = new Compute(...);
Compute.VpnTunnels.List request = compute.vpnTunnels().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 ...)