com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.PodsMetricStatusPatch.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.autoscaling.v2.kotlin.outputs
import kotlin.Suppress
/**
* PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
* @property current current contains the current value for the given metric
* @property metric metric identifies the target metric by name and selector
*/
public data class PodsMetricStatusPatch(
public val current: MetricValueStatusPatch? = null,
public val metric: MetricIdentifierPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2.outputs.PodsMetricStatusPatch): PodsMetricStatusPatch = PodsMetricStatusPatch(
current = javaType.current().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.MetricValueStatusPatch.Companion.toKotlin(args0)
})
}).orElse(null),
metric = javaType.metric().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.MetricIdentifierPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy