See: Description
Interface | Description |
---|---|
Compute |
An interface for Google Cloud Compute Engine.
|
ComputeFactory |
An interface for Compute factories.
|
Class | Description |
---|---|
Address |
A Google Compute Engine address.
|
Address.Builder |
A builder for
Address objects. |
AddressId |
Base class for Google Compute Engine address identities.
|
AddressInfo |
A Google Compute Engine address.
|
AddressInfo.Builder |
A builder for
AddressInfo objects. |
AddressInfo.GlobalForwardingUsage |
Usage information for a Google Compute Engine global address assigned to one or more global
forwarding rules.
|
AddressInfo.InstanceUsage |
Usage information for a Google Compute Engine region address assigned to a virtual machine
instance.
|
AddressInfo.RegionForwardingUsage |
Usage information for a Google Compute Engine region address assigned to one or more region
forwarding rules.
|
AddressInfo.Usage |
Base class for a Google Compute Engine address's usage information.
|
AttachedDisk |
A disk attached to a Google Compute Engine instance.
|
AttachedDisk.AttachedDiskConfiguration |
Base class for
AttachedDisk configuration. |
AttachedDisk.Builder |
A builder for
AttachedDisk objects. |
AttachedDisk.CreateDiskConfiguration |
An attached disk configuration for bootable persistent disks that must be created with the
instance they are attached to.
|
AttachedDisk.CreateDiskConfiguration.Builder |
A builder for
CreateDiskConfiguration objects. |
AttachedDisk.PersistentDiskConfiguration |
An attached disk configuration for existing persistent disks.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
A builder for
PersistentDiskConfiguration objects. |
AttachedDisk.ScratchDiskConfiguration |
An attached disk configuration for scratch disks.
|
AttachedDisk.ScratchDiskConfiguration.Builder |
A builder for
ScratchDiskConfiguration objects. |
Compute.AddressAggregatedListOption |
Class for specifying address aggregated list options.
|
Compute.AddressFilter |
Class for filtering address lists.
|
Compute.AddressListOption |
Class for specifying address list options.
|
Compute.AddressOption |
Class for specifying address get options.
|
Compute.DiskAggregatedListOption |
Class for specifying disk aggregated list options.
|
Compute.DiskFilter |
Class for filtering disk lists.
|
Compute.DiskListOption |
Class for specifying disk list options.
|
Compute.DiskOption |
Class for specifying disk get options.
|
Compute.DiskTypeAggregatedListOption |
Class for specifying disk type aggregated list options.
|
Compute.DiskTypeFilter |
Class for filtering disk type lists.
|
Compute.DiskTypeListOption |
Class for specifying disk type list options.
|
Compute.DiskTypeOption |
Class for specifying disk type get options.
|
Compute.ImageFilter |
Class for filtering image lists.
|
Compute.ImageListOption |
Class for specifying image list options.
|
Compute.ImageOption |
Class for specifying image get options.
|
Compute.InstanceAggregatedListOption |
Class for specifying instance aggregated list options.
|
Compute.InstanceFilter |
Class for filtering instance lists.
|
Compute.InstanceListOption |
Class for specifying instance list options.
|
Compute.InstanceOption |
Class for specifying instance get options.
|
Compute.LicenseOption |
Class for specifying license get options.
|
Compute.ListFilter |
Base class for list filters.
|
Compute.MachineTypeAggregatedListOption |
Class for specifying machine type aggregated list options.
|
Compute.MachineTypeFilter |
Class for filtering machine type lists.
|
Compute.MachineTypeListOption |
Class for specifying machine type list options.
|
Compute.MachineTypeOption |
Class for specifying machine type get options.
|
Compute.NetworkFilter |
Class for filtering network lists.
|
Compute.NetworkListOption |
Class for specifying network list options.
|
Compute.NetworkOption |
Class for specifying network get options.
|
Compute.OperationFilter |
Class for filtering operation lists.
|
Compute.OperationListOption |
Class for specifying operation list options.
|
Compute.OperationOption |
Class for specifying operation get options.
|
Compute.RegionFilter |
Class for filtering region lists.
|
Compute.RegionListOption |
Class for specifying region list options.
|
Compute.RegionOption |
Class for specifying region get options.
|
Compute.SnapshotFilter |
Class for filtering snapshot lists.
|
Compute.SnapshotListOption |
Class for specifying snapshot list options.
|
Compute.SnapshotOption |
Class for specifying snapshot get options.
|
Compute.SubnetworkAggregatedListOption |
Class for specifying subnetwork aggregated list options.
|
Compute.SubnetworkFilter |
Class for filtering subnetwork lists.
|
Compute.SubnetworkListOption |
Class for specifying subnetwork list options.
|
Compute.SubnetworkOption |
Class for specifying subnetwork get options.
|
Compute.ZoneFilter |
Class for filtering zone lists.
|
Compute.ZoneListOption |
Class for specifying zone list options.
|
Compute.ZoneOption |
Class for specifying zone get options.
|
ComputeOptions | |
ComputeOptions.Builder | |
ComputeOptions.DefaultComputeFactory | |
ComputeOptions.DefaultComputeRpcFactory | |
DeprecationStatus<T extends ResourceId> |
The deprecation status associated to a Google Compute Engine resource.
|
DeprecationStatus.Builder<T extends ResourceId> |
A builder for
DeprecationStatus objects. |
Disk |
A Google Compute Engine persistent disk.
|
Disk.Builder |
A builder for
Disk objects. |
DiskConfiguration |
Base class for Google Compute Engine disk configurations.
|
DiskConfiguration.Builder<T extends DiskConfiguration,B extends DiskConfiguration.Builder<T,B>> |
Base builder for disk configurations.
|
DiskId |
Identity for a Google Compute Engine disk.
|
DiskImageConfiguration |
A Google Compute Engine disk image configuration.
|
DiskImageConfiguration.Builder |
A builder for
DiskImageConfiguration objects. |
DiskInfo |
A Google Compute Engine persistent disk.
|
DiskInfo.Builder |
Builder for
DiskInfo objects. |
DiskType |
A Google Compute Engine disk type.
|
DiskTypeId |
Identity for a Google Compute Engine disk type.
|
ForwardingRuleId |
Base class for Google Compute Engine forwarding rule identities.
|
GlobalAddressId |
Identity for a Google Compute Engine global address.
|
GlobalForwardingRuleId |
Identity for a Google Compute Engine global forwarding rule.
|
GlobalOperationId |
Identity for a Google Compute Engine global operation.
|
Image |
A Google Compute Engine Image.
|
Image.Builder |
A builder for
Image objects. |
ImageConfiguration |
Base class for Google Compute Engine image configuration.
|
ImageConfiguration.Builder<T extends ImageConfiguration,B extends ImageConfiguration.Builder<T,B>> |
Base builder for image configurations.
|
ImageDiskConfiguration |
A Google Compute Engine disk configuration to create a disk from a Google Compute Engine image.
|
ImageDiskConfiguration.Builder |
A builder for
ImageDiskConfiguration objects. |
ImageId |
Identity for a Google Compute Engine image.
|
ImageInfo |
A Google Compute Engine Image.
|
ImageInfo.Builder |
A builder for
ImageInfo objects. |
Instance |
A Google Compute Engine VM Instance.
|
Instance.Builder |
A builder for
Instance objects. |
InstanceId |
Identity for a Google Compute Engine virtual machine instance.
|
InstanceInfo |
A Google Compute Engine VM Instance.
|
InstanceInfo.Builder |
A builder for
InstanceInfo objects. |
InstanceInfo.BuilderImpl | |
License |
A Google Compute Engine License.
|
LicenseId |
Identity for a Google Compute Engine license.
|
MachineType |
A Google Compute Engine machine type.
|
MachineTypeId |
Identity for a Google Compute Engine machine type.
|
Metadata |
Metadata for Google Compute Engine Instance as ket/value pairs.
|
Metadata.Builder |
A builder for
Metadata objects. |
Network |
A Google Compute Engine Network.
|
Network.Builder |
A builder for
Network objects. |
NetworkConfiguration |
Base class for Google Compute Engine network configuration.
|
NetworkId |
Identity for a Google Compute Engine network.
|
NetworkInfo |
A Google Compute Engine Network.
|
NetworkInfo.Builder |
A builder for
NetworkInfo objects. |
NetworkInterface |
A network interface for a Google Compute Engine instance.
|
NetworkInterface.AccessConfig |
Access configuration for a Google Compute Engine instance's network interface.
|
NetworkInterface.AccessConfig.Builder | |
NetworkInterface.AccessConfig.Type |
The type of network access configuration.
|
NetworkInterface.Builder | |
Operation |
Google Compute Engine operations.
|
Operation.OperationError |
An error that can occur during the processing of a Google Compute Engine operation.
|
Operation.OperationWarning |
A warning message that is generated during the processing of a Google Compute Engine operation.
|
OperationId |
Base class for Google Compute Engine operation identities.
|
Region |
A Google Compute Engine region.
|
Region.Quota |
A quota assigned to this region.
|
Region.Status |
Status of the region.
|
RegionAddressId |
Identity for a Google Compute Engine region address.
|
RegionForwardingRuleId |
Identity for a Google Compute Engine region's forwarding rule.
|
RegionId |
A Google Compute Engine region identity.
|
RegionOperationId |
Identity for a Google Compute Engine region's operation.
|
ResourceId |
Base class for Google Compute Engine resource identities.
|
SchedulingOptions |
A Google Compute Engine instance scheduling options.
|
SchedulingOptions.Maintenance |
Defines the maintenance behavior for this instance.
|
ServiceAccount |
A service account, with its specified scopes, authorized for this instance.
|
Snapshot |
A Google Compute Engine snapshot.
|
Snapshot.Builder |
A builder for
Snapshot objects. |
SnapshotDiskConfiguration |
A Google Compute Engine disk configuration to create a disk from a Google Compute Engine
snapshot.
|
SnapshotDiskConfiguration.Builder |
A builder for
SnapshotDiskConfiguration objects. |
SnapshotId |
Identity for a Google Compute Engine snapshot.
|
SnapshotInfo |
A Google Compute Engine snapshot.
|
SnapshotInfo.Builder |
A builder for
SnapshotInfo objects. |
StandardDiskConfiguration |
A Google Compute Engine standard persistent disk configuration.
|
StandardDiskConfiguration.Builder |
A builder for
StandardDiskConfiguration objects. |
StandardNetworkConfiguration |
A Google Compute Engine standard network configuration.
|
StorageImageConfiguration |
A Google Compute Engine image configuration used to create images from a Google Cloud Storage URL
where the disk image is stored.
|
StorageImageConfiguration.Builder |
A builder for
StorageImageConfiguration objects. |
SubnetNetworkConfiguration |
A Google Compute Engine configuration for networks that support subnetworks, up to one per
region, each with its own address range.
|
Subnetwork |
A Google Compute Engine Subnetwork.
|
Subnetwork.Builder |
A builder for
Subnetwork objects. |
SubnetworkId |
Identity for a Google Compute Engine subnetwork.
|
SubnetworkInfo |
A Google Compute Engine subnetwork.
|
SubnetworkInfo.Builder |
A builder for
SubnetworkInfo objects. |
Tags |
A list of tags for a Google Compute Engine Instance; with associated fingerprint.
|
Tags.Builder |
A builder for
Tags objects. |
Zone |
A Google Compute Engine zone.
|
Zone.Status |
Status of the region.
|
ZoneId |
A Google Compute Engine zone identity.
|
ZoneOperationId |
Identity for a Google Compute Engine zone operation.
|
Enum | Description |
---|---|
AddressInfo.Status |
The status of the address.
|
AttachedDisk.AttachedDiskConfiguration.InterfaceType |
Specifies the disk interface to use for attaching this disk, which is either
SCSI or
NVME . |
AttachedDisk.AttachedDiskConfiguration.Type |
Specifies the type of the attached disk.
|
AttachedDisk.PersistentDiskConfiguration.Mode |
Specifies the mode in which to attach the disk.
|
Compute.AddressField |
Fields of a Compute Engine Address resource.
|
Compute.DiskField |
Fields of a Compute Engine Disk resource.
|
Compute.DiskTypeField |
Fields of a Compute Engine DiskType resource.
|
Compute.ImageField |
Fields of a Compute Engine Image resource.
|
Compute.InstanceField |
Fields of a Compute Engine Instance resource.
|
Compute.LicenseField |
Fields of a Compute Engine License resource.
|
Compute.MachineTypeField |
Fields of a Compute Engine MachineType resource.
|
Compute.NetworkField |
Fields of a Compute Engine Network resource.
|
Compute.OperationField |
Fields of a Compute Engine Operation resource.
|
Compute.RegionField |
Fields of a Compute Engine Region resource.
|
Compute.SnapshotField |
Fields of a Compute Engine Snapshot resource.
|
Compute.SubnetworkField |
Fields of a Compute Engine Subnetwork resource.
|
Compute.ZoneField |
Fields of a Compute Engine Zone resource.
|
DeprecationStatus.Status |
The deprecation status of a Google Compute Engine resource.
|
DiskConfiguration.Type |
Type of a Google Compute Engine disk configuration.
|
DiskInfo.CreationStatus |
The status of disk creation.
|
ImageConfiguration.SourceType |
Image source type.
|
ImageConfiguration.Type |
Type of a Google Compute Engine image.
|
ImageInfo.Status |
The status of a Google Compute Engine Image.
|
InstanceInfo.Status |
The status of the instance.
|
NetworkConfiguration.Type |
Type of a Google Compute Engine disk configuration.
|
Operation.Status |
Status of an operation.
|
SnapshotInfo.Status |
The status of a Google Compute Engine snapshot.
|
SnapshotInfo.StorageBytesStatus |
An indicator of whether
SnapshotInfo.getStorageBytes() is in a stable state or it is
being adjusted as a result of shared storage reallocation. |
StorageImageConfiguration.ContainerType |
The format used to encode and transmit the block device.
|
Exception | Description |
---|---|
ComputeException |
Compute Engine service exception.
|
Here's a simple usage example for using google-cloud from App/Compute Engine. This example shows how to create a snapshot from an existing disk. For the complete source code see CreateSnapshot.java.
Compute compute = ComputeOptions.getDefaultInstance().getService();
DiskId diskId = DiskId.of("us-central1-a", "disk-name");
Disk disk = compute.getDisk(diskId, Compute.DiskOption.fields());
if (disk != null) {
String snapshotName = "disk-name-snapshot";
Operation operation = disk.createSnapshot(snapshotName);
operation = operation.waitFor();
if (operation.getErrors() == null) {
// use snapshot
Snapshot snapshot = compute.getSnapshot(snapshotName);
}
}
This second example shows how to create a virtual machine instance. Complete source code can be found at CreateInstance.java.
Compute compute = ComputeOptions.getDefaultInstance().getService();
ImageId imageId = ImageId.of("debian-cloud", "debian-8-jessie-v20160329");
NetworkId networkId = NetworkId.of("default");
AttachedDisk attachedDisk = AttachedDisk.of(AttachedDisk.CreateDiskConfiguration.of(imageId));
NetworkInterface networkInterface = NetworkInterface.of(networkId);
InstanceId instanceId = InstanceId.of("us-central1-a", "instance-name");
MachineTypeId machineTypeId = MachineTypeId.of("us-central1-a", "n1-standard-1");
Operation operation =
compute.create(InstanceInfo.of(instanceId, machineTypeId, attachedDisk, networkInterface));
operation = operation.waitFor();
if (operation.getErrors() == null) {
// use instance
Instance instance = compute.getInstance(instanceId);
}
Copyright © 2019 Google LLC. All rights reserved.