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 classAttachDisk.DiskInterfacestatic classAttachDisk.InitializeParamsstatic classAttachDisk.Modestatic classAttachDisk.Type
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanautoDelete()True if this disk will be deleted when the instance is delete.abstract booleanboot()True if this is a boot disk.static AttachDiskcreate(AttachDisk.Type type, AttachDisk.Mode mode, URI source, String deviceName, boolean boot, AttachDisk.InitializeParams initializeParams, boolean autoDelete, List<String> licenses, AttachDisk.DiskInterface diskInterface)abstract StringdeviceName()Must be unique within the instance when specified.abstract AttachDisk.DiskInterfacediskInterface()static AttachDiskexistingBootDisk(URI existingBootDisk)static AttachDiskexistingDisk(URI existingDisk)abstract AttachDisk.InitializeParamsinitializeParams()Set to automatically create a boot diskabstract List<String>licenses()abstract AttachDisk.Modemode()static AttachDisknewBootDisk(URI sourceImage)static AttachDisknewBootDisk(URI sourceImage, URI diskType)abstract URIsource()Use an existingBootDiskboot disk.abstract AttachDisk.Typetype()
-
-
-
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)
-
-