com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.ResourceHandle.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.v1alpha2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
* @property data Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
* The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
* @property driverName DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
* @property structuredData If StructuredData is set, then it needs to be used instead of Data.
*/
public data class ResourceHandle(
public val `data`: String? = null,
public val driverName: String? = null,
public val structuredData: StructuredResourceHandle? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceHandle): ResourceHandle = ResourceHandle(
`data` = javaType.`data`().map({ args0 -> args0 }).orElse(null),
driverName = javaType.driverName().map({ args0 -> args0 }).orElse(null),
structuredData = javaType.structuredData().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.StructuredResourceHandle.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy