All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.tpu.kotlin.outputs.V2VmDataDisk.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.tpu.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property mode The mode in which to attach this disk. If not specified, the default is READ_WRITE
 * mode. Only applicable to dataDisks.
 * Default value is `READ_WRITE`.
 * Possible values are: `READ_WRITE`, `READ_ONLY`.
 * @property sourceDisk Specifies the full path to an existing disk. For example:
 * "projects/my-project/zones/us-central1-c/disks/my-disk".
 */
public data class V2VmDataDisk(
    public val mode: String? = null,
    public val sourceDisk: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.tpu.outputs.V2VmDataDisk): V2VmDataDisk =
            V2VmDataDisk(
                mode = javaType.mode().map({ args0 -> args0 }).orElse(null),
                sourceDisk = javaType.sourceDisk(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy