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 |
SnapshotInfo.getSourceDisk()
Returns the identity of the source disk used to create this snapshot.
|
DiskId |
AttachedDisk.PersistentDiskConfiguration.getSourceDisk()
Returns the identity of the persistent disk to be attached.
|
DiskId |
DiskImageConfiguration.getSourceDisk()
Returns the identity of the source disk used to create this image.
|
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
null if not found. |
static AttachedDisk.PersistentDiskConfiguration.Builder |
AttachedDisk.PersistentDiskConfiguration.newBuilder(DiskId sourceDisk)
Returns a builder for a
PersistentDiskConfiguration object given the identity of the
persistent disk to attach. |
static DiskImageConfiguration.Builder |
DiskImageConfiguration.newBuilder(DiskId sourceDisk)
Creates a builder for a
DiskImageConfiguration given the source disk identity. |
static DiskInfo.Builder |
DiskInfo.newBuilder(DiskId diskId,
DiskConfiguration configuration)
Returns a builder for a
DiskInfo object given its identity and configuration. |
static SnapshotInfo.Builder |
SnapshotInfo.newBuilder(SnapshotId snapshotId,
DiskId source)
Returns a builder for a
SnapshotInfo object given the snapshot identity and a source
disk identity. |
static AttachedDisk.PersistentDiskConfiguration |
AttachedDisk.PersistentDiskConfiguration.of(DiskId sourceDisk)
Returns a
PersistentDiskConfiguration object given the identity of the persistent
disk to attach. |
static DiskImageConfiguration |
DiskImageConfiguration.of(DiskId sourceId)
Creates a
DiskImageConfiguration object given the source disk identity. |
static DiskInfo |
DiskInfo.of(DiskId diskId,
DiskConfiguration configuration)
Returns a
DiskInfo object given its identity and configuration. |
static SnapshotInfo |
SnapshotInfo.of(SnapshotId snapshotId,
DiskId source)
Returns a
SnapshotInfo object 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.
|
abstract SnapshotInfo.Builder |
SnapshotInfo.Builder.setSourceDisk(DiskId sourceDisk)
Sets the identity of the source disk used to create the snapshot.
|
AttachedDisk.PersistentDiskConfiguration.Builder |
AttachedDisk.PersistentDiskConfiguration.Builder.setSourceDisk(DiskId sourceDisk)
Sets the identity of the persistent disk to be attached.
|
DiskImageConfiguration.Builder |
DiskImageConfiguration.Builder.setSourceDisk(DiskId sourceDisk)
Sets the identity of the source disk used to create the image.
|
Snapshot.Builder |
Snapshot.Builder.setSourceDisk(DiskId sourceDisk) |
Modifier and Type | Method and Description |
---|---|
void |
ResourceCleaner.add(DiskId diskId) |
Copyright © 2019 Google LLC. All rights reserved.