com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.DriverRequestsPatch.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.v1alpha2.kotlin.outputs
import com.google.gson.GsonBuilder
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* DriverRequests describes all resources that are needed from one particular driver.
* @property driverName DriverName is the name used by the DRA driver kubelet plugin.
* @property requests Requests describes all resources that are needed from the driver.
* @property vendorParameters VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
*/
public data class DriverRequestsPatch(
public val driverName: String? = null,
public val requests: List? = null,
public val vendorParameters: JsonElement? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.DriverRequestsPatch): DriverRequestsPatch = DriverRequestsPatch(
driverName = javaType.driverName().map({ args0 -> args0 }).orElse(null),
requests = javaType.requests().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.ResourceRequestPatch.Companion.toKotlin(args0)
})
}),
vendorParameters = javaType.vendorParameters().map({ args0 ->
Json.parseToJsonElement(GsonBuilder().serializeNulls().create().toJson(args0))
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy