com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAllocationConfiguration.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
import kotlin.collections.List
/**
* DeviceAllocationConfiguration gets embedded in an AllocationResult.
* @property opaque Opaque provides driver-specific configuration parameters.
* @property requests Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
* @property source Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
*/
public data class DeviceAllocationConfiguration(
public val opaque: OpaqueDeviceConfiguration? = null,
public val requests: List? = null,
public val source: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAllocationConfiguration): DeviceAllocationConfiguration = DeviceAllocationConfiguration(
opaque = javaType.opaque().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.OpaqueDeviceConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
requests = javaType.requests().map({ args0 -> args0 }),
source = javaType.source(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy