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

com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.Device.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

/**
 * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
 * @property basic Basic defines one device instance.
 * @property name Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
 */
public data class Device(
    public val basic: BasicDevice? = null,
    public val name: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.Device): Device =
            Device(
                basic = javaType.basic().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.BasicDevice.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                name = javaType.name(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy