com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.AllocationResult.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.v1alpha3.kotlin.outputs
import com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelector
import kotlin.String
import kotlin.Suppress
/**
* AllocationResult contains attributes of an allocated resource.
* @property controller Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
* A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
* This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
* @property devices Devices is the result of allocating devices.
* @property nodeSelector NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
*/
public data class AllocationResult(
public val controller: String? = null,
public val devices: DeviceAllocationResult? = null,
public val nodeSelector: NodeSelector? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.AllocationResult): AllocationResult = AllocationResult(
controller = javaType.controller().map({ args0 -> args0 }).orElse(null),
devices = javaType.devices().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAllocationResult.Companion.toKotlin(args0)
})
}).orElse(null),
nodeSelector = javaType.nodeSelector().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelector.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy