public abstract static class AttachedDisk.AttachedDiskConfiguration extends Object implements Serializable
AttachedDisk
configuration. Use AttachedDisk.PersistentDiskConfiguration
to
attach an existing persistent disk. Use AttachedDisk.CreateDiskConfiguration
to create a boot
persistent disk to attach to the instance. Use AttachedDisk.ScratchDiskConfiguration
to attach a
scratch disk.Modifier and Type | Class and Description |
---|---|
static class |
AttachedDisk.AttachedDiskConfiguration.InterfaceType
Specifies the disk interface to use for attaching this disk, which is either
SCSI or
NVME . |
static class |
AttachedDisk.AttachedDiskConfiguration.Type
Specifies the type of the attached disk.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
autoDelete()
Returns whether the disk should auto-delete when the instance to which it's attached is
deleted.
|
Boolean |
boot()
Returns whether to use the attached disk as a boot disk.
|
AttachedDisk.AttachedDiskConfiguration.InterfaceType |
getInterfaceType()
Returns the interface to use to attach the disk.
|
AttachedDisk.AttachedDiskConfiguration.Type |
getType()
Returns the type of the attached disk.
|
String |
toString() |
public AttachedDisk.AttachedDiskConfiguration.Type getType()
public AttachedDisk.AttachedDiskConfiguration.InterfaceType getInterfaceType()
AttachedDisk.AttachedDiskConfiguration.InterfaceType.SCSI
is used.public Boolean boot()
true
the virtual machine
will use the first partition of the disk for its root filesystem. If not specified, the disk
is not used as a boot disk.public Boolean autoDelete()
Copyright © 2019 Google LLC. All rights reserved.