All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceClaimConfiguration.kt Maven / Gradle / Ivy

Go to download

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

/**
 * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
 * @property opaque Opaque provides driver-specific configuration parameters.
 * @property requests Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
 */
public data class DeviceClaimConfiguration(
    public val opaque: OpaqueDeviceConfiguration? = null,
    public val requests: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceClaimConfiguration): DeviceClaimConfiguration = DeviceClaimConfiguration(
            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 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy