RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs

data class RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs(val autoDelete: Output<Boolean>? = null, val boot: Output<Boolean>? = null, val deviceName: Output<String>? = null, val guestOsFeatures: Output<List<String>>? = null, val index: Output<Int>? = null, val initializeParams: Output<RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs>? = null, val interface: Output<String>? = null, val kind: Output<String>? = null, val licenses: Output<List<String>>? = null, val mode: Output<String>? = null, val source: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<RuntimeVirtualMachineVirtualMachineConfigDataDiskArgs>

Constructors

constructor(autoDelete: Output<Boolean>? = null, boot: Output<Boolean>? = null, deviceName: Output<String>? = null, guestOsFeatures: Output<List<String>>? = null, index: Output<Int>? = null, initializeParams: Output<RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsArgs>? = null, interface: Output<String>? = null, kind: Output<String>? = null, licenses: Output<List<String>>? = null, mode: Output<String>? = null, source: Output<String>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val autoDelete: Output<Boolean>? = null

(Output) Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

Link copied to clipboard
val boot: Output<Boolean>? = null

(Output) Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

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

(Output) Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.

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

(Output) Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available features, read https://cloud.google.com/compute/docs/ images/create-delete-deprecate-private-images#guest-os-features options. ``

Link copied to clipboard
val index: Output<Int>? = null

(Output) Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.

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. Structure is documented below.

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 kind: Output<String>? = null

(Output) Type of the resource. Always compute#attachedDisk for attached disks.

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

(Output) Output only. Any valid publicly visible licenses.

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.

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.

Functions

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