com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAllocationResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
* DeviceAllocationResult is the result of allocating devices.
* @property config This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
* This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
* @property results Results lists all allocated devices.
*/
public data class DeviceAllocationResult(
public val config: List? = null,
public val results: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAllocationResult): DeviceAllocationResult = DeviceAllocationResult(
config = javaType.config().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAllocationConfiguration.Companion.toKotlin(args0)
})
}),
results = javaType.results().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceRequestAllocationResult.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy