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

com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAllocationResult.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.v1alpha3.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 * DeviceAllocationResult is the result of allocating devices.
 * @property config This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
 * This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
 * @property results Results lists all allocated devices.
 */
public data class DeviceAllocationResult(
    public val config: List? = null,
    public val results: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAllocationResult): DeviceAllocationResult = DeviceAllocationResult(
            config = javaType.config().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAllocationConfiguration.Companion.toKotlin(args0)
                })
            }),
            results = javaType.results().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceRequestAllocationResult.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy