| Package | Description | 
|---|---|
| com.google.cloud.compute.deprecated | A client for Google Compute Engine – High-performance, scalable virtual machines. | 
| com.google.cloud.compute.deprecated.testing | A testing helper for Google Compute Engine. | 
| Modifier and Type | Method and Description | 
|---|---|
| DiskId | DiskInfo. getDiskId()Returns the disk identity. | 
| DiskId | DiskImageConfiguration. getSourceDisk()Returns the identity of the source disk used to create this image. | 
| DiskId | AttachedDisk.PersistentDiskConfiguration. getSourceDisk()Returns the identity of the persistent disk to be attached. | 
| DiskId | SnapshotInfo. getSourceDisk()Returns the identity of the source disk used to create this snapshot. | 
| static DiskId | DiskId. of(String zone,
  String disk)Returns a disk identity given the zone and disk names. | 
| static DiskId | DiskId. of(String project,
  String zone,
  String disk)Returns a disk identity given project, zone and disks names. | 
| static DiskId | DiskId. of(ZoneId zoneId,
  String disk)Returns a disk identity given the zone identity and the disk name. | 
| Modifier and Type | Method and Description | 
|---|---|
| Operation | Compute. deleteDisk(DiskId disk,
          Compute.OperationOption... options)Deletes the requested disk. | 
| Disk | Compute. getDisk(DiskId diskId,
       Compute.DiskOption... options)Returns the requested disk or  nullif not found. | 
| static DiskImageConfiguration.Builder | DiskImageConfiguration. newBuilder(DiskId sourceDisk)Creates a builder for a  DiskImageConfigurationgiven the source disk identity. | 
| static AttachedDisk.PersistentDiskConfiguration.Builder | AttachedDisk.PersistentDiskConfiguration. newBuilder(DiskId sourceDisk)Returns a builder for a  PersistentDiskConfigurationobject given the identity of the
 persistent disk to attach. | 
| static DiskInfo.Builder | DiskInfo. newBuilder(DiskId diskId,
          DiskConfiguration configuration)Returns a builder for a  DiskInfoobject given its identity and configuration. | 
| static SnapshotInfo.Builder | SnapshotInfo. newBuilder(SnapshotId snapshotId,
          DiskId source)Returns a builder for a  SnapshotInfoobject given the snapshot identity and a source
 disk identity. | 
| static DiskImageConfiguration | DiskImageConfiguration. of(DiskId sourceId)Creates a  DiskImageConfigurationobject given the source disk identity. | 
| static AttachedDisk.PersistentDiskConfiguration | AttachedDisk.PersistentDiskConfiguration. of(DiskId sourceDisk)Returns a  PersistentDiskConfigurationobject given the identity of the persistent
 disk to attach. | 
| static DiskInfo | DiskInfo. of(DiskId diskId,
  DiskConfiguration configuration)Returns a  DiskInfoobject given its identity and configuration. | 
| static SnapshotInfo | SnapshotInfo. of(SnapshotId snapshotId,
  DiskId source)Returns a  SnapshotInfoobject given the snapshot identity and a source disk identity. | 
| Operation | Compute. resize(DiskId disk,
      long sizeGb,
      Compute.OperationOption... options)Resizes the disk to the requested size. | 
| Disk.Builder | Disk.Builder. setDiskId(DiskId diskId) | 
| abstract DiskInfo.Builder | DiskInfo.Builder. setDiskId(DiskId diskId)Sets the disk identity. | 
| DiskImageConfiguration.Builder | DiskImageConfiguration.Builder. setSourceDisk(DiskId sourceDisk)Sets the identity of the source disk used to create the image. | 
| AttachedDisk.PersistentDiskConfiguration.Builder | AttachedDisk.PersistentDiskConfiguration.Builder. setSourceDisk(DiskId sourceDisk)Sets the identity of the persistent disk to be attached. | 
| Snapshot.Builder | Snapshot.Builder. setSourceDisk(DiskId sourceDisk) | 
| abstract SnapshotInfo.Builder | SnapshotInfo.Builder. setSourceDisk(DiskId sourceDisk)Sets the identity of the source disk used to create the snapshot. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ResourceCleaner. add(DiskId diskId) | 
Copyright © 2019 Google LLC. All rights reserved.