com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.OpaqueDeviceConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs
import com.google.gson.JsonParser
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.resource.v1alpha3.inputs.OpaqueDeviceConfigurationArgs.builder
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
* @property driver Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
* An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
* Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
* @property parameters Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
*/
public data class OpaqueDeviceConfigurationArgs(
public val driver: Output,
public val parameters: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.OpaqueDeviceConfigurationArgs =
com.pulumi.kubernetes.resource.v1alpha3.inputs.OpaqueDeviceConfigurationArgs.builder()
.driver(driver.applyValue({ args0 -> args0 }))
.parameters(
parameters.applyValue({ args0 ->
JsonParser.parseString(Json.encodeToString(JsonElement.serializer(), args0))
}),
).build()
}
/**
* Builder for [OpaqueDeviceConfigurationArgs].
*/
@PulumiTagMarker
public class OpaqueDeviceConfigurationArgsBuilder internal constructor() {
private var driver: Output? = null
private var parameters: Output? = null
/**
* @param value Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
* An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
* Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
*/
@JvmName("uvqwevpljfckhrmd")
public suspend fun driver(`value`: Output) {
this.driver = value
}
/**
* @param value Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
*/
@JvmName("xkhwfastiosrxmep")
public suspend fun parameters(`value`: Output) {
this.parameters = value
}
/**
* @param value Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
* An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
* Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
*/
@JvmName("mmsifrvtddeitupi")
public suspend fun driver(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.driver = mapped
}
/**
* @param value Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
*/
@JvmName("rxjfxctynrvxxkrc")
public suspend fun parameters(`value`: JsonElement) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parameters = mapped
}
internal fun build(): OpaqueDeviceConfigurationArgs = OpaqueDeviceConfigurationArgs(
driver = driver ?: throw PulumiNullFieldException("driver"),
parameters = parameters ?: throw PulumiNullFieldException("parameters"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy