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

com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.ObjectMetricStatusPatch.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.autoscaling.v2.kotlin.outputs

import kotlin.Suppress

/**
 * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
 * @property current current contains the current value for the given metric
 * @property describedObject DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
 * @property metric metric identifies the target metric by name and selector
 */
public data class ObjectMetricStatusPatch(
    public val current: MetricValueStatusPatch? = null,
    public val describedObject: CrossVersionObjectReferencePatch? = null,
    public val metric: MetricIdentifierPatch? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2.outputs.ObjectMetricStatusPatch): ObjectMetricStatusPatch = ObjectMetricStatusPatch(
            current = javaType.current().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.MetricValueStatusPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            describedObject = javaType.describedObject().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.CrossVersionObjectReferencePatch.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