com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.ResourceClaimSpecPatch.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.v1alpha3.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
* @property controller Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
* Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
* This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
* @property devices Devices defines how to request devices.
*/
public data class ResourceClaimSpecPatch(
public val controller: String? = null,
public val devices: DeviceClaimPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.ResourceClaimSpecPatch): ResourceClaimSpecPatch = ResourceClaimSpecPatch(
controller = javaType.controller().map({ args0 -> args0 }).orElse(null),
devices = javaType.devices().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceClaimPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy