LocalDiskArgs

data class LocalDiskArgs(val initializeParams: Output<LocalDiskInitializeParamsArgs>? = null, val interface: Output<String>? = null, val mode: Output<String>? = null, val source: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<LocalDiskArgs>

A Local attached disk resource.

Constructors

Link copied to clipboard
fun LocalDiskArgs(initializeParams: Output<LocalDiskInitializeParamsArgs>? = null, interface: Output<String>? = null, mode: Output<String>? = null, source: Output<String>? = null, type: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): LocalDiskArgs

Properties

Link copied to clipboard

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.

Link copied to clipboard
val interface: Output<String>? = null

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 * SCSI

Link copied to clipboard
val mode: Output<String>? = null

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Valid values: * READ_ONLY * READ_WRITE

Link copied to clipboard
val source: Output<String>? = null

Specifies a valid partial or full URL to an existing Persistent Disk resource.

Link copied to clipboard
val type: Output<String>? = null

Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values: * PERSISTENT * SCRATCH