com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterStorageArgs.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.gkeonprem.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property lvpNodeMountsConfig Specifies the config for local PersistentVolumes backed
* by mounted node disks. These disks need to be formatted and mounted by the
* user, which can be done before or after cluster creation.
* Structure is documented below.
* @property lvpShareConfig Specifies the config for local PersistentVolumes backed by
* subdirectories in a shared filesystem. These subdirectores are
* automatically created during cluster creation.
* Structure is documented below.
*/
public data class BareMetalAdminClusterStorageArgs(
public val lvpNodeMountsConfig: Output,
public val lvpShareConfig: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageArgs =
com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageArgs.builder()
.lvpNodeMountsConfig(
lvpNodeMountsConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.lvpShareConfig(
lvpShareConfig.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BareMetalAdminClusterStorageArgs].
*/
@PulumiTagMarker
public class BareMetalAdminClusterStorageArgsBuilder internal constructor() {
private var lvpNodeMountsConfig: Output? =
null
private var lvpShareConfig: Output? = null
/**
* @param value Specifies the config for local PersistentVolumes backed
* by mounted node disks. These disks need to be formatted and mounted by the
* user, which can be done before or after cluster creation.
* Structure is documented below.
*/
@JvmName("hdkexxhgqxpjitfg")
public suspend fun lvpNodeMountsConfig(`value`: Output) {
this.lvpNodeMountsConfig = value
}
/**
* @param value Specifies the config for local PersistentVolumes backed by
* subdirectories in a shared filesystem. These subdirectores are
* automatically created during cluster creation.
* Structure is documented below.
*/
@JvmName("oxmfdameebcmimwx")
public suspend fun lvpShareConfig(`value`: Output) {
this.lvpShareConfig = value
}
/**
* @param value Specifies the config for local PersistentVolumes backed
* by mounted node disks. These disks need to be formatted and mounted by the
* user, which can be done before or after cluster creation.
* Structure is documented below.
*/
@JvmName("loxycmivrvqvoabr")
public suspend fun lvpNodeMountsConfig(`value`: BareMetalAdminClusterStorageLvpNodeMountsConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lvpNodeMountsConfig = mapped
}
/**
* @param argument Specifies the config for local PersistentVolumes backed
* by mounted node disks. These disks need to be formatted and mounted by the
* user, which can be done before or after cluster creation.
* Structure is documented below.
*/
@JvmName("wdkpxkerqsusemid")
public suspend fun lvpNodeMountsConfig(argument: suspend BareMetalAdminClusterStorageLvpNodeMountsConfigArgsBuilder.() -> Unit) {
val toBeMapped = BareMetalAdminClusterStorageLvpNodeMountsConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.lvpNodeMountsConfig = mapped
}
/**
* @param value Specifies the config for local PersistentVolumes backed by
* subdirectories in a shared filesystem. These subdirectores are
* automatically created during cluster creation.
* Structure is documented below.
*/
@JvmName("tofupsdbgxhxooay")
public suspend fun lvpShareConfig(`value`: BareMetalAdminClusterStorageLvpShareConfigArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lvpShareConfig = mapped
}
/**
* @param argument Specifies the config for local PersistentVolumes backed by
* subdirectories in a shared filesystem. These subdirectores are
* automatically created during cluster creation.
* Structure is documented below.
*/
@JvmName("yidkcmsdewcrvaea")
public suspend fun lvpShareConfig(argument: suspend BareMetalAdminClusterStorageLvpShareConfigArgsBuilder.() -> Unit) {
val toBeMapped = BareMetalAdminClusterStorageLvpShareConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.lvpShareConfig = mapped
}
internal fun build(): BareMetalAdminClusterStorageArgs = BareMetalAdminClusterStorageArgs(
lvpNodeMountsConfig = lvpNodeMountsConfig ?: throw PulumiNullFieldException("lvpNodeMountsConfig"),
lvpShareConfig = lvpShareConfig ?: throw PulumiNullFieldException("lvpShareConfig"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy