com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.BasicDevicePatch.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.v1alpha3.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* BasicDevice defines one device instance.
* @property attributes Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
* The maximum number of attributes and capacities combined is 32.
* @property capacity Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
* The maximum number of attributes and capacities combined is 32.
*/
public data class BasicDevicePatch(
public val attributes: Map? = null,
public val capacity: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.BasicDevicePatch): BasicDevicePatch = BasicDevicePatch(
attributes = javaType.attributes().map({ args0 ->
args0.key.to(
args0.value.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAttribute.Companion.toKotlin(args0)
}),
)
}).toMap(),
capacity = javaType.capacity().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy