All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs.AllocationResultPatch.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs

import com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelectorPatch
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 AllocationResultPatch(
    public val devices: DeviceAllocationResultPatch? = null,
    public val nodeSelector: NodeSelectorPatch? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1beta1.outputs.AllocationResultPatch): AllocationResultPatch = AllocationResultPatch(
            devices = javaType.devices().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs.DeviceAllocationResultPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            nodeSelector = javaType.nodeSelector().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelectorPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy