com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceClaimPatch.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.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 DeviceClaimPatch(
public val config: List? = null,
public val constraints: List? = null,
public val requests: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceClaimPatch): DeviceClaimPatch = DeviceClaimPatch(
config = javaType.config().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceClaimConfigurationPatch.Companion.toKotlin(args0)
})
}),
constraints = javaType.constraints().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceConstraintPatch.Companion.toKotlin(args0)
})
}),
requests = javaType.requests().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceRequestPatch.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy