public interface Compute extends com.google.cloud.Service<ComputeOptions>
Modifier and Type | Interface and Description |
---|---|
static class |
Compute.AddressAggregatedListOption
Class for specifying address aggregated list options.
|
static class |
Compute.AddressField
Fields of a Compute Engine Address resource.
|
static class |
Compute.AddressFilter
Class for filtering address lists.
|
static class |
Compute.AddressListOption
Class for specifying address list options.
|
static class |
Compute.AddressOption
Class for specifying address get options.
|
static class |
Compute.DiskAggregatedListOption
Class for specifying disk aggregated list options.
|
static class |
Compute.DiskField
Fields of a Compute Engine Disk resource.
|
static class |
Compute.DiskFilter
Class for filtering disk lists.
|
static class |
Compute.DiskListOption
Class for specifying disk list options.
|
static class |
Compute.DiskOption
Class for specifying disk get options.
|
static class |
Compute.DiskTypeAggregatedListOption
Class for specifying disk type aggregated list options.
|
static class |
Compute.DiskTypeField
Fields of a Compute Engine DiskType resource.
|
static class |
Compute.DiskTypeFilter
Class for filtering disk type lists.
|
static class |
Compute.DiskTypeListOption
Class for specifying disk type list options.
|
static class |
Compute.DiskTypeOption
Class for specifying disk type get options.
|
static class |
Compute.ImageField
Fields of a Compute Engine Image resource.
|
static class |
Compute.ImageFilter
Class for filtering image lists.
|
static class |
Compute.ImageListOption
Class for specifying image list options.
|
static class |
Compute.ImageOption
Class for specifying image get options.
|
static class |
Compute.InstanceAggregatedListOption
Class for specifying instance aggregated list options.
|
static class |
Compute.InstanceField
Fields of a Compute Engine Instance resource.
|
static class |
Compute.InstanceFilter
Class for filtering instance lists.
|
static class |
Compute.InstanceListOption
Class for specifying instance list options.
|
static class |
Compute.InstanceOption
Class for specifying instance get options.
|
static class |
Compute.LicenseField
Fields of a Compute Engine License resource.
|
static class |
Compute.LicenseOption
Class for specifying license get options.
|
static class |
Compute.ListFilter
Base class for list filters.
|
static class |
Compute.MachineTypeAggregatedListOption
Class for specifying machine type aggregated list options.
|
static class |
Compute.MachineTypeField
Fields of a Compute Engine MachineType resource.
|
static class |
Compute.MachineTypeFilter
Class for filtering machine type lists.
|
static class |
Compute.MachineTypeListOption
Class for specifying machine type list options.
|
static class |
Compute.MachineTypeOption
Class for specifying machine type get options.
|
static class |
Compute.NetworkField
Fields of a Compute Engine Network resource.
|
static class |
Compute.NetworkFilter
Class for filtering network lists.
|
static class |
Compute.NetworkListOption
Class for specifying network list options.
|
static class |
Compute.NetworkOption
Class for specifying network get options.
|
static class |
Compute.OperationField
Fields of a Compute Engine Operation resource.
|
static class |
Compute.OperationFilter
Class for filtering operation lists.
|
static class |
Compute.OperationListOption
Class for specifying operation list options.
|
static class |
Compute.OperationOption
Class for specifying operation get options.
|
static class |
Compute.RegionField
Fields of a Compute Engine Region resource.
|
static class |
Compute.RegionFilter
Class for filtering region lists.
|
static class |
Compute.RegionListOption
Class for specifying region list options.
|
static class |
Compute.RegionOption
Class for specifying region get options.
|
static class |
Compute.SnapshotField
Fields of a Compute Engine Snapshot resource.
|
static class |
Compute.SnapshotFilter
Class for filtering snapshot lists.
|
static class |
Compute.SnapshotListOption
Class for specifying snapshot list options.
|
static class |
Compute.SnapshotOption
Class for specifying snapshot get options.
|
static class |
Compute.SubnetworkAggregatedListOption
Class for specifying subnetwork aggregated list options.
|
static class |
Compute.SubnetworkField
Fields of a Compute Engine Subnetwork resource.
|
static class |
Compute.SubnetworkFilter
Class for filtering subnetwork lists.
|
static class |
Compute.SubnetworkListOption
Class for specifying subnetwork list options.
|
static class |
Compute.SubnetworkOption
Class for specifying subnetwork get options.
|
static class |
Compute.ZoneField
Fields of a Compute Engine Zone resource.
|
static class |
Compute.ZoneFilter
Class for filtering zone lists.
|
static class |
Compute.ZoneListOption
Class for specifying zone list options.
|
static class |
Compute.ZoneOption
Class for specifying zone get options.
|
Modifier and Type | Method and Description |
---|---|
Operation |
addAccessConfig(InstanceId instance,
String networkInterface,
NetworkInterface.AccessConfig accessConfig,
Compute.OperationOption... options)
Adds an access configuration to an instance's network interface.
|
Operation |
attachDisk(InstanceId instance,
AttachedDisk.PersistentDiskConfiguration configuration,
Compute.OperationOption... options)
Attaches a persistent disk to an instance given its configuration.
|
Operation |
attachDisk(InstanceId instance,
String deviceName,
AttachedDisk.PersistentDiskConfiguration configuration,
Compute.OperationOption... options)
Attaches a persistent disk to an instance given the device name and its configuration.
|
Operation |
attachDisk(InstanceId instance,
String deviceName,
AttachedDisk.PersistentDiskConfiguration configuration,
int index,
Compute.OperationOption... options)
Attaches a persistent disk to an instance given the device name, its configuration and the
device index.
|
Operation |
create(AddressInfo address,
Compute.OperationOption... options)
Creates a new address.
|
Operation |
create(DiskInfo disk,
Compute.OperationOption... options)
Creates a new disk.
|
Operation |
create(ImageInfo image,
Compute.OperationOption... options)
Creates a new image.
|
Operation |
create(InstanceInfo instance,
Compute.OperationOption... options)
Creates a new instance.
|
Operation |
create(NetworkInfo network,
Compute.OperationOption... options)
Creates a new network.
|
Operation |
create(SnapshotInfo snapshot,
Compute.OperationOption... options)
Creates a new snapshot.
|
Operation |
create(SubnetworkInfo subnetwork,
Compute.OperationOption... options) |
Operation |
deleteAccessConfig(InstanceId instance,
String networkInterface,
String accessConfig,
Compute.OperationOption... options)
Deletes an access configuration from an instance's network interface.
|
Operation |
deleteAddress(AddressId addressId,
Compute.OperationOption... options)
Deletes the requested address.
|
Operation |
deleteDisk(DiskId disk,
Compute.OperationOption... options)
Deletes the requested disk.
|
Operation |
deleteImage(ImageId image,
Compute.OperationOption... options)
Deletes the requested image.
|
Operation |
deleteInstance(InstanceId instance,
Compute.OperationOption... options)
Deletes the requested instance.
|
Operation |
deleteNetwork(NetworkId network,
Compute.OperationOption... options)
Deletes the requested network.
|
Operation |
deleteNetwork(String network,
Compute.OperationOption... options)
Deletes the requested network.
|
boolean |
deleteOperation(OperationId operation)
Deletes the requested operation.
|
Operation |
deleteSnapshot(SnapshotId snapshot,
Compute.OperationOption... options)
Deletes the requested snapshot.
|
Operation |
deleteSnapshot(String snapshot,
Compute.OperationOption... options)
Deletes the requested snapshot.
|
Operation |
deleteSubnetwork(SubnetworkId subnetwork,
Compute.OperationOption... options)
Deletes the requested subnetwork.
|
Operation |
deprecate(ImageId image,
DeprecationStatus<ImageId> deprecationStatus,
Compute.OperationOption... options)
Deprecates the requested image.
|
Operation |
detachDisk(InstanceId instance,
String deviceName,
Compute.OperationOption... options)
Detaches a disk from an instance.
|
Address |
getAddress(AddressId addressId,
Compute.AddressOption... options)
Returns the requested address or
null if not found. |
Disk |
getDisk(DiskId diskId,
Compute.DiskOption... options)
Returns the requested disk or
null if not found. |
DiskType |
getDiskType(DiskTypeId diskTypeId,
Compute.DiskTypeOption... options)
Returns the requested disk type or
null if not found. |
DiskType |
getDiskType(String zone,
String diskType,
Compute.DiskTypeOption... options)
Returns the requested disk type or
null if not found. |
Image |
getImage(ImageId imageId,
Compute.ImageOption... options)
Returns the requested image or
null if not found. |
Instance |
getInstance(InstanceId instance,
Compute.InstanceOption... options)
Returns the requested instance or
null if not found. |
License |
getLicense(LicenseId license,
Compute.LicenseOption... options)
Returns the requested license or
null if not found. |
License |
getLicense(String license,
Compute.LicenseOption... options)
Returns the requested license or
null if not found. |
MachineType |
getMachineType(MachineTypeId machineTypeId,
Compute.MachineTypeOption... options)
Returns the requested machine type or
null if not found. |
MachineType |
getMachineType(String zone,
String machineType,
Compute.MachineTypeOption... options)
Returns the requested machine type or
null if not found. |
Network |
getNetwork(String network,
Compute.NetworkOption... options)
Returns the requested network or
null if not found. |
Operation |
getOperation(OperationId operationId,
Compute.OperationOption... options)
Returns the requested operation or
null if not found. |
Region |
getRegion(String region,
Compute.RegionOption... options)
Returns the requested region or
null if not found. |
String |
getSerialPortOutput(InstanceId instance)
Returns the default serial port output for the provided instance.
|
String |
getSerialPortOutput(InstanceId instance,
int port)
Returns the serial port output for the provided instance and port number.
|
Snapshot |
getSnapshot(String snapshot,
Compute.SnapshotOption... options)
Returns the requested snapshot or
null if not found. |
Subnetwork |
getSubnetwork(SubnetworkId subnetworkId,
Compute.SubnetworkOption... options)
Returns the requested subnetwork or
null if not found. |
Zone |
getZone(String zone,
Compute.ZoneOption... options)
Returns the requested zone or
null if not found. |
com.google.api.gax.paging.Page<Address> |
listAddresses(Compute.AddressAggregatedListOption... options)
Lists both global and region addresses.
|
com.google.api.gax.paging.Page<Disk> |
listDisks(Compute.DiskAggregatedListOption... options)
Lists disks for all zones.
|
com.google.api.gax.paging.Page<Disk> |
listDisks(String zone,
Compute.DiskListOption... options)
Lists disks for the provided zone.
|
com.google.api.gax.paging.Page<DiskType> |
listDiskTypes(Compute.DiskTypeAggregatedListOption... options)
Lists the disk types in all zones.
|
com.google.api.gax.paging.Page<DiskType> |
listDiskTypes(String zone,
Compute.DiskTypeListOption... options)
Lists the disk types in the provided zone.
|
com.google.api.gax.paging.Page<Address> |
listGlobalAddresses(Compute.AddressListOption... options)
Lists the global addresses.
|
com.google.api.gax.paging.Page<Operation> |
listGlobalOperations(Compute.OperationListOption... options)
Lists the global operations.
|
com.google.api.gax.paging.Page<Image> |
listImages(Compute.ImageListOption... options)
Lists images in the current project.
|
com.google.api.gax.paging.Page<Image> |
listImages(String project,
Compute.ImageListOption... options)
Lists images in the provided project that are available to the current user.
|
com.google.api.gax.paging.Page<Instance> |
listInstances(Compute.InstanceAggregatedListOption... options)
Lists instances for all zones.
|
com.google.api.gax.paging.Page<Instance> |
listInstances(String zone,
Compute.InstanceListOption... options)
Lists instances for the provided zone.
|
com.google.api.gax.paging.Page<MachineType> |
listMachineTypes(Compute.MachineTypeAggregatedListOption... options)
Lists the machine types in all zones.
|
com.google.api.gax.paging.Page<MachineType> |
listMachineTypes(String zone,
Compute.MachineTypeListOption... options)
Lists the machine types in the provided zone.
|
com.google.api.gax.paging.Page<Network> |
listNetworks(Compute.NetworkListOption... options)
Lists networks.
|
com.google.api.gax.paging.Page<Address> |
listRegionAddresses(String region,
Compute.AddressListOption... options)
Lists the region addresses for the provided region.
|
com.google.api.gax.paging.Page<Operation> |
listRegionOperations(String region,
Compute.OperationListOption... options)
Lists the operations for the provided region.
|
com.google.api.gax.paging.Page<Region> |
listRegions(Compute.RegionListOption... options)
Lists the regions.
|
com.google.api.gax.paging.Page<Snapshot> |
listSnapshots(Compute.SnapshotListOption... options)
Lists snapshots.
|
com.google.api.gax.paging.Page<Subnetwork> |
listSubnetworks(Compute.SubnetworkAggregatedListOption... options)
Lists subnetworks for all regions.
|
com.google.api.gax.paging.Page<Subnetwork> |
listSubnetworks(String region,
Compute.SubnetworkListOption... options)
Lists subnetworks for the provided region.
|
com.google.api.gax.paging.Page<Operation> |
listZoneOperations(String zone,
Compute.OperationListOption... options)
Lists the operations for the provided zone.
|
com.google.api.gax.paging.Page<Zone> |
listZones(Compute.ZoneListOption... options)
Lists the zones.
|
Operation |
reset(InstanceId instance,
Compute.OperationOption... options)
Resets the provided instance.
|
Operation |
resize(DiskId disk,
long sizeGb,
Compute.OperationOption... options)
Resizes the disk to the requested size.
|
Operation |
setDiskAutoDelete(InstanceId instance,
String deviceName,
boolean autoDelete,
Compute.OperationOption... options)
Sets the auto-delete flag for a disk attached to the provided instance.
|
Operation |
setMachineType(InstanceId instance,
MachineTypeId machineType,
Compute.OperationOption... options)
Sets the machine type for the provided instance.
|
Operation |
setMetadata(InstanceId instance,
Metadata metadata,
Compute.OperationOption... options)
Sets the metadata for the provided instance.
|
Operation |
setSchedulingOptions(InstanceId instance,
SchedulingOptions scheduling,
Compute.OperationOption... options)
Sets the scheduling options for the provided instance.
|
Operation |
setTags(InstanceId instance,
Tags tags,
Compute.OperationOption... options)
Sets the tags for the provided instance.
|
Operation |
start(InstanceId instance,
Compute.OperationOption... options)
Starts the provided instance.
|
Operation |
stop(InstanceId instance,
Compute.OperationOption... options)
Stops the provided instance.
|
DiskType getDiskType(DiskTypeId diskTypeId, Compute.DiskTypeOption... options)
null
if not found.ComputeException
- upon failureDiskType getDiskType(String zone, String diskType, Compute.DiskTypeOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<DiskType> listDiskTypes(String zone, Compute.DiskTypeListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<DiskType> listDiskTypes(Compute.DiskTypeAggregatedListOption... options)
ComputeException
- upon failureMachineType getMachineType(MachineTypeId machineTypeId, Compute.MachineTypeOption... options)
null
if not found.ComputeException
- upon failureMachineType getMachineType(String zone, String machineType, Compute.MachineTypeOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<MachineType> listMachineTypes(String zone, Compute.MachineTypeListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<MachineType> listMachineTypes(Compute.MachineTypeAggregatedListOption... options)
ComputeException
- upon failureRegion getRegion(String region, Compute.RegionOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Region> listRegions(Compute.RegionListOption... options)
ComputeException
- upon failureZone getZone(String zone, Compute.ZoneOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Zone> listZones(Compute.ZoneListOption... options)
ComputeException
- upon failureLicense getLicense(String license, Compute.LicenseOption... options)
null
if not found.ComputeException
- upon failureLicense getLicense(LicenseId license, Compute.LicenseOption... options)
null
if not found.ComputeException
- upon failureOperation getOperation(OperationId operationId, Compute.OperationOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Operation> listGlobalOperations(Compute.OperationListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Operation> listRegionOperations(String region, Compute.OperationListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Operation> listZoneOperations(String zone, Compute.OperationListOption... options)
ComputeException
- upon failureboolean deleteOperation(OperationId operation)
true
if operation was deleted, false
if it was not foundComputeException
- upon failureAddress getAddress(AddressId addressId, Compute.AddressOption... options)
null
if not found.ComputeException
- upon failureOperation create(AddressInfo address, Compute.OperationOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Address> listGlobalAddresses(Compute.AddressListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Address> listRegionAddresses(String region, Compute.AddressListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Address> listAddresses(Compute.AddressAggregatedListOption... options)
ComputeException
- upon failureOperation deleteAddress(AddressId addressId, Compute.OperationOption... options)
null
if the address was not
foundComputeException
- upon failureOperation create(SnapshotInfo snapshot, Compute.OperationOption... options)
ComputeException
- upon failureSnapshot getSnapshot(String snapshot, Compute.SnapshotOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Snapshot> listSnapshots(Compute.SnapshotListOption... options)
ComputeException
- upon failureOperation deleteSnapshot(SnapshotId snapshot, Compute.OperationOption... options)
null
if the snapshot
was not foundComputeException
- upon failureOperation deleteSnapshot(String snapshot, Compute.OperationOption... options)
null
if the snapshot
was not foundComputeException
- upon failureOperation create(ImageInfo image, Compute.OperationOption... options)
ComputeException
- upon failureImage getImage(ImageId imageId, Compute.ImageOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Image> listImages(String project, Compute.ImageListOption... options)
centos-cloud
, coreos-cloud
, debian-cloud
, opensuse-cloud
, rhel-cloud
, suse-cloud
, ubuntu-os-cloud
and windows-cloud
. Attempting to delete or deprecate a publicly-available image will fail.ComputeException
- upon failurecom.google.api.gax.paging.Page<Image> listImages(Compute.ImageListOption... options)
ComputeException
- upon failureOperation deleteImage(ImageId image, Compute.OperationOption... options)
null
if the
image was not foundComputeException
- upon failure or if image
is a publicly-available imageOperation deprecate(ImageId image, DeprecationStatus<ImageId> deprecationStatus, Compute.OperationOption... options)
null
if the
image was not foundComputeException
- upon failure or if image
is a publicly-available imageDisk getDisk(DiskId diskId, Compute.DiskOption... options)
null
if not found.ComputeException
- upon failureOperation create(DiskInfo disk, Compute.OperationOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Disk> listDisks(String zone, Compute.DiskListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Disk> listDisks(Compute.DiskAggregatedListOption... options)
ComputeException
- upon failureOperation deleteDisk(DiskId disk, Compute.OperationOption... options)
null
if the disk was not
foundComputeException
- upon failureOperation resize(DiskId disk, long sizeGb, Compute.OperationOption... options)
null
if the disk was not
foundComputeException
- upon failure or if the new disk size is smaller than the previous oneOperation create(SubnetworkInfo subnetwork, Compute.OperationOption... options)
Subnetwork getSubnetwork(SubnetworkId subnetworkId, Compute.SubnetworkOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Subnetwork> listSubnetworks(String region, Compute.SubnetworkListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Subnetwork> listSubnetworks(Compute.SubnetworkAggregatedListOption... options)
ComputeException
- upon failureOperation deleteSubnetwork(SubnetworkId subnetwork, Compute.OperationOption... options)
null
if the
subnetwork was not foundComputeException
- upon failureOperation create(NetworkInfo network, Compute.OperationOption... options)
ComputeException
- upon failureNetwork getNetwork(String network, Compute.NetworkOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Network> listNetworks(Compute.NetworkListOption... options)
ComputeException
- upon failureOperation deleteNetwork(String network, Compute.OperationOption... options)
null
if the
network was not foundComputeException
- upon failureOperation deleteNetwork(NetworkId network, Compute.OperationOption... options)
null
if the
network was not foundComputeException
- upon failureOperation create(InstanceInfo instance, Compute.OperationOption... options)
ComputeException
- upon failureInstance getInstance(InstanceId instance, Compute.InstanceOption... options)
null
if not found.ComputeException
- upon failurecom.google.api.gax.paging.Page<Instance> listInstances(String zone, Compute.InstanceListOption... options)
ComputeException
- upon failurecom.google.api.gax.paging.Page<Instance> listInstances(Compute.InstanceAggregatedListOption... options)
ComputeException
- upon failureOperation deleteInstance(InstanceId instance, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation addAccessConfig(InstanceId instance, String networkInterface, NetworkInterface.AccessConfig accessConfig, Compute.OperationOption... options)
null
if the instance
was not foundComputeException
- upon failureOperation attachDisk(InstanceId instance, AttachedDisk.PersistentDiskConfiguration configuration, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation attachDisk(InstanceId instance, String deviceName, AttachedDisk.PersistentDiskConfiguration configuration, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation attachDisk(InstanceId instance, String deviceName, AttachedDisk.PersistentDiskConfiguration configuration, int index, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation deleteAccessConfig(InstanceId instance, String networkInterface, String accessConfig, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation detachDisk(InstanceId instance, String deviceName, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureString getSerialPortOutput(InstanceId instance, int port)
port
must be
between 1 and 4 (inclusive).null
if the instance was not foundComputeException
- upon failureString getSerialPortOutput(InstanceId instance)
null
if the instance was not foundComputeException
- upon failureOperation reset(InstanceId instance, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation setDiskAutoDelete(InstanceId instance, String deviceName, boolean autoDelete, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation setMachineType(InstanceId instance, MachineTypeId machineType, Compute.OperationOption... options)
InstanceInfo.Status.TERMINATED
state to be able to set its machine type.null
if the instance
was not foundComputeException
- upon failureOperation setMetadata(InstanceId instance, Metadata metadata, Compute.OperationOption... options)
null
if the instance
was not foundComputeException
- upon failureOperation setSchedulingOptions(InstanceId instance, SchedulingOptions scheduling, Compute.OperationOption... options)
null
if the instance
was not foundComputeException
- upon failureOperation setTags(InstanceId instance, Tags tags, Compute.OperationOption... options)
null
if the instance
was not foundComputeException
- upon failureOperation start(InstanceId instance, Compute.OperationOption... options)
null
if the
instance was not foundComputeException
- upon failureOperation stop(InstanceId instance, Compute.OperationOption... options)
null
if the instance
was not foundComputeException
- upon failureCopyright © 2019 Google LLC. All rights reserved.