com.pulumi.kubernetes.resource.v1beta1.kotlin.inputs.DeviceClassSpecPatchArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1beta1.inputs.DeviceClassSpecPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* 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 DeviceClassSpecPatchArgs(
public val config: Output>? = null,
public val selectors: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1beta1.inputs.DeviceClassSpecPatchArgs =
com.pulumi.kubernetes.resource.v1beta1.inputs.DeviceClassSpecPatchArgs.builder()
.config(config?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.selectors(
selectors?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [DeviceClassSpecPatchArgs].
*/
@PulumiTagMarker
public class DeviceClassSpecPatchArgsBuilder internal constructor() {
private var config: Output>? = null
private var selectors: Output>? = null
/**
* @param value 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.
*/
@JvmName("fkscmooxrxgbwuur")
public suspend fun config(`value`: Output>) {
this.config = value
}
@JvmName("mavvbssxrnhyakws")
public suspend fun config(vararg values: Output) {
this.config = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("qpcyscaaksifxuuj")
public suspend fun config(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy