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

com.pulumi.googlenative.tpu.v2.kotlin.inputs.AttachedDiskArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.tpu.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.tpu.v2.inputs.AttachedDiskArgs.builder
import com.pulumi.googlenative.tpu.v2.kotlin.enums.AttachedDiskMode
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A node-attached disk resource. Next ID: 8;
 * @property mode The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
 * @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 AttachedDiskArgs(
    public val mode: Output? = null,
    public val sourceDisk: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.tpu.v2.inputs.AttachedDiskArgs =
        com.pulumi.googlenative.tpu.v2.inputs.AttachedDiskArgs.builder()
            .mode(mode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sourceDisk(sourceDisk?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AttachedDiskArgs].
 */
@PulumiTagMarker
public class AttachedDiskArgsBuilder internal constructor() {
    private var mode: Output? = null

    private var sourceDisk: Output? = null

    /**
     * @param value The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
     */
    @JvmName("ojyauovkbhvebqnu")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
     */
    @JvmName("dhxpclhbsgywhiuh")
    public suspend fun sourceDisk(`value`: Output) {
        this.sourceDisk = value
    }

    /**
     * @param value The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
     */
    @JvmName("dsbvussqfuwiqgpm")
    public suspend fun mode(`value`: AttachedDiskMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
     */
    @JvmName("nvmtjnuhqdcghbys")
    public suspend fun sourceDisk(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceDisk = mapped
    }

    internal fun build(): AttachedDiskArgs = AttachedDiskArgs(
        mode = mode,
        sourceDisk = sourceDisk,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy