PerInstanceConfigPreservedStateDiskArgs

data class PerInstanceConfigPreservedStateDiskArgs(val deleteRule: Output<String>? = null, val deviceName: Output<String>, val mode: Output<String>? = null, val source: Output<String>) : ConvertibleToJava<PerInstanceConfigPreservedStateDiskArgs>

Constructors

Link copied to clipboard
constructor(deleteRule: Output<String>? = null, deviceName: Output<String>, mode: Output<String>? = null, source: Output<String>)

Properties

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

A value that prescribes what should happen to the stateful disk when the VM instance is deleted. The available options are NEVER and ON_PERMANENT_INSTANCE_DELETION. NEVER - detach the disk when the VM is deleted, but do not delete the disk. ON_PERMANENT_INSTANCE_DELETION will delete the stateful disk when the VM is permanently deleted from the instance group. Default value is NEVER. Possible values are: NEVER, ON_PERMANENT_INSTANCE_DELETION.

Link copied to clipboard
val deviceName: Output<String>

A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance.

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

The mode of the disk. Default value is READ_WRITE. Possible values are: READ_ONLY, READ_WRITE.

Link copied to clipboard
val source: Output<String>

The URI of an existing persistent disk to attach under the specified device-name in the format projects/project-id/zones/zone/disks/disk-name.

Functions

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