com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.ExternalMetricSourcePatch.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs
import kotlin.Suppress
/**
* ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
* @property metric metric identifies the target metric by name and selector
* @property target target specifies the target value for the given metric
*/
public data class ExternalMetricSourcePatch(
public val metric: MetricIdentifierPatch? = null,
public val target: MetricTargetPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ExternalMetricSourcePatch): ExternalMetricSourcePatch = ExternalMetricSourcePatch(
metric = javaType.metric().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricIdentifierPatch.Companion.toKotlin(args0)
})
}).orElse(null),
target = javaType.target().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.MetricTargetPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy