LocalDisk class
A Local attached disk resource.
Constructors
-
LocalDisk({Input<
LocalDiskInitializeParams> ? initializeParams, Input<String> ? interface, Input<String> ? mode, Input<String> ? source, Input<String> ? type}) -
Creates a new LocalDisk.
initializeParamsInput only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.interfaceSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *NVME*SCSImodeThe mode in which to attach this disk, eitherREAD_WRITEorREAD_ONLY. If not specified, the default is to attach the disk inREAD_WRITEmode. Valid values: *READ_ONLY*READ_WRITEsourceSpecifies a valid partial or full URL to an existing Persistent Disk resource.typeSpecifies the type of the disk, eitherSCRATCHorPERSISTENT. If not specified, the default isPERSISTENT. Valid values: *PERSISTENT*SCRATCHconst -
LocalDisk.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initializeParams
→ Input<
LocalDiskInitializeParams> ? -
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
final
-
interface
→ Input<
String> ? -
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values: *
NVME*SCSIfinal -
mode
→ Input<
String> ? -
The mode in which to attach this disk, either
READ_WRITEorREAD_ONLY. If not specified, the default is to attach the disk inREAD_WRITEmode. Valid values: *READ_ONLY*READ_WRITEfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Input<
String> ? -
Specifies a valid partial or full URL to an existing Persistent Disk resource.
final
-
type
→ Input<
String> ? -
Specifies the type of the disk, either
SCRATCHorPERSISTENT. If not specified, the default isPERSISTENT. Valid values: *PERSISTENT*SCRATCHfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited