com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.DeviceClaimPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1alpha3.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.v1alpha3.inputs.DeviceClaimPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* DeviceClaim defines how to request devices with a ResourceClaim.
* @property config This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
* @property constraints These constraints must be satisfied by the set of devices that get allocated for the claim.
* @property requests Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
*/
public data class DeviceClaimPatchArgs(
public val config: Output>? = null,
public val constraints: Output>? = null,
public val requests: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceClaimPatchArgs =
com.pulumi.kubernetes.resource.v1alpha3.inputs.DeviceClaimPatchArgs.builder()
.config(config?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.constraints(
constraints?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.requests(
requests?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [DeviceClaimPatchArgs].
*/
@PulumiTagMarker
public class DeviceClaimPatchArgsBuilder internal constructor() {
private var config: Output>? = null
private var constraints: Output>? = null
private var requests: Output>? = null
/**
* @param value This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
*/
@JvmName("jwterwlagvijnoir")
public suspend fun config(`value`: Output>) {
this.config = value
}
@JvmName("fexdnjawyjybltcq")
public suspend fun config(vararg values: Output) {
this.config = Output.all(values.asList())
}
/**
* @param values This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
*/
@JvmName("nyxsesmbumgmmpsy")
public suspend fun config(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy