Class AttachDisk
- java.lang.Object
-
- org.jclouds.googlecomputeengine.domain.AttachDisk
-
public abstract class AttachDisk extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttachDisk.DiskInterface
static class
AttachDisk.InitializeParams
static class
AttachDisk.Mode
static class
AttachDisk.Type
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
autoDelete()
True if this disk will be deleted when the instance is delete.abstract boolean
boot()
True if this is a boot disk.static AttachDisk
create(AttachDisk.Type type, AttachDisk.Mode mode, URI source, String deviceName, boolean boot, AttachDisk.InitializeParams initializeParams, boolean autoDelete, List<String> licenses, AttachDisk.DiskInterface diskInterface)
abstract String
deviceName()
Must be unique within the instance when specified.abstract AttachDisk.DiskInterface
diskInterface()
static AttachDisk
existingBootDisk(URI existingBootDisk)
static AttachDisk
existingDisk(URI existingDisk)
abstract AttachDisk.InitializeParams
initializeParams()
Set to automatically create a boot diskabstract List<String>
licenses()
abstract AttachDisk.Mode
mode()
static AttachDisk
newBootDisk(URI sourceImage)
static AttachDisk
newBootDisk(URI sourceImage, URI diskType)
abstract URI
source()
Use an existingBootDiskboot disk
.abstract AttachDisk.Type
type()
-
-
-
Method Detail
-
type
public abstract AttachDisk.Type type()
-
mode
@Nullable public abstract AttachDisk.Mode mode()
-
deviceName
@Nullable public abstract String deviceName()
Must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
-
boot
public abstract boolean boot()
True if this is a boot disk. VM will use the first partition of the disk for its root filesystem.
-
initializeParams
@Nullable public abstract AttachDisk.InitializeParams initializeParams()
Set to automatically create a boot disk
-
autoDelete
public abstract boolean autoDelete()
True if this disk will be deleted when the instance is delete.
-
diskInterface
@Nullable public abstract AttachDisk.DiskInterface diskInterface()
-
existingBootDisk
public static AttachDisk existingBootDisk(URI existingBootDisk)
-
newBootDisk
public static AttachDisk newBootDisk(URI sourceImage)
-
newBootDisk
public static AttachDisk newBootDisk(URI sourceImage, URI diskType)
-
existingDisk
public static AttachDisk existingDisk(URI existingDisk)
-
create
public static AttachDisk create(AttachDisk.Type type, AttachDisk.Mode mode, URI source, String deviceName, boolean boot, AttachDisk.InitializeParams initializeParams, boolean autoDelete, List<String> licenses, AttachDisk.DiskInterface diskInterface)
-
-