com.pulumi.gcp.compute.kotlin.outputs.PerInstanceConfigPreservedStateDisk.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property deleteRule 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`.
* @property deviceName A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance.
* @property mode The mode of the disk.
* Default value is `READ_WRITE`.
* Possible values are: `READ_ONLY`, `READ_WRITE`.
* @property source 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`.
*/
public data class PerInstanceConfigPreservedStateDisk(
public val deleteRule: String? = null,
public val deviceName: String,
public val mode: String? = null,
public val source: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.PerInstanceConfigPreservedStateDisk): PerInstanceConfigPreservedStateDisk = PerInstanceConfigPreservedStateDisk(
deleteRule = javaType.deleteRule().map({ args0 -> args0 }).orElse(null),
deviceName = javaType.deviceName(),
mode = javaType.mode().map({ args0 -> args0 }).orElse(null),
source = javaType.source(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy