com.pulumi.kubernetes.resource.v1alpha1.kotlin.outputs.AllocationResultPatch.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1alpha1.kotlin.outputs
import com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelectorPatch
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* AllocationResult contains attributed of an allocated resource.
* @property availableOnNodes This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.
* Setting this field is optional. If null, the resource is available everywhere.
* @property resourceHandle ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.
* The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
* @property shareable Shareable determines whether the resource supports more than one consumer at a time.
*/
public data class AllocationResultPatch(
public val availableOnNodes: NodeSelectorPatch? = null,
public val resourceHandle: String? = null,
public val shareable: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha1.outputs.AllocationResultPatch): AllocationResultPatch = AllocationResultPatch(
availableOnNodes = javaType.availableOnNodes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.NodeSelectorPatch.Companion.toKotlin(args0)
})
}).orElse(null),
resourceHandle = javaType.resourceHandle().map({ args0 -> args0 }).orElse(null),
shareable = javaType.shareable().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy