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

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

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * DeviceRequestAllocationResult contains the allocation result for one request.
 * @property device Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
 * @property driver Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
 * Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
 * @property pool This name together with the driver name and the device name field identify which device was allocated (`//`).
 * Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
 * @property request Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
 */
public data class DeviceRequestAllocationResultPatch(
    public val device: String? = null,
    public val driver: String? = null,
    public val pool: String? = null,
    public val request: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceRequestAllocationResultPatch): DeviceRequestAllocationResultPatch = DeviceRequestAllocationResultPatch(
            device = javaType.device().map({ args0 -> args0 }).orElse(null),
            driver = javaType.driver().map({ args0 -> args0 }).orElse(null),
            pool = javaType.pool().map({ args0 -> args0 }).orElse(null),
            request = javaType.request().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy