com.pulumi.kubernetes.resource.v1beta1.kotlin.inputs.AllocatedDeviceStatusArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1beta1.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.kotlin.applySuspend
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ConditionArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ConditionArgsBuilder
import com.pulumi.kubernetes.resource.v1beta1.inputs.AllocatedDeviceStatusArgs.builder
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
* @property conditions Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
* @property data Data contains arbitrary driver-specific data.
* The length of the raw data must be smaller or equal to 10 Ki.
* @property device Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
* @property driver Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
* Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
* @property networkData NetworkData contains network-related information specific to the device.
* @property pool This name together with the driver name and the device name field identify which device was allocated (`//`).
* Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
*/
public data class AllocatedDeviceStatusArgs(
public val conditions: Output>? = null,
public val `data`: Output? = null,
public val device: Output,
public val driver: Output,
public val networkData: Output? = null,
public val pool: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1beta1.inputs.AllocatedDeviceStatusArgs =
com.pulumi.kubernetes.resource.v1beta1.inputs.AllocatedDeviceStatusArgs.builder()
.conditions(
conditions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.`data`(
`data`?.applyValue({ args0 ->
JsonParser.parseString(Json.encodeToString(JsonElement.serializer(), args0))
}),
)
.device(device.applyValue({ args0 -> args0 }))
.driver(driver.applyValue({ args0 -> args0 }))
.networkData(networkData?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.pool(pool.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AllocatedDeviceStatusArgs].
*/
@PulumiTagMarker
public class AllocatedDeviceStatusArgsBuilder internal constructor() {
private var conditions: Output>? = null
private var `data`: Output? = null
private var device: Output? = null
private var driver: Output? = null
private var networkData: Output? = null
private var pool: Output? = null
/**
* @param value Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
*/
@JvmName("cvmbmoatugwwrdof")
public suspend fun conditions(`value`: Output>) {
this.conditions = value
}
@JvmName("ygtusvownyltievv")
public suspend fun conditions(vararg values: Output) {
this.conditions = Output.all(values.asList())
}
/**
* @param values Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
*/
@JvmName("scmsyaxmcbpexclv")
public suspend fun conditions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy