com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs.AllocationResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs
import com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelector
import kotlin.Suppress
/**
* AllocationResult contains attributes of an allocated resource.
* @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 devices: DeviceAllocationResult? = null,
public val nodeSelector: NodeSelector? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1beta1.outputs.AllocationResult): AllocationResult = AllocationResult(
devices = javaType.devices().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1beta1.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 - 2025 Weber Informatics LLC | Privacy Policy