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

com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs.DeviceClassSpec.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 kotlin.Suppress
import kotlin.collections.List

/**
 * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
 * @property config Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
 * They are passed to the driver, but are not considered while allocating the claim.
 * @property selectors Each selector must be satisfied by a device which is claimed via this class.
 */
public data class DeviceClassSpec(
    public val config: List? = null,
    public val selectors: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1beta1.outputs.DeviceClassSpec): DeviceClassSpec = DeviceClassSpec(
            config = javaType.config().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs.DeviceClassConfiguration.Companion.toKotlin(args0)
                })
            }),
            selectors = javaType.selectors().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1beta1.kotlin.outputs.DeviceSelector.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy