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

com.pulumi.googlenative.logging.v2.kotlin.enums.MetricVersion.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.logging.v2.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
 */
public enum class MetricVersion(
    public val javaValue: com.pulumi.googlenative.logging.v2.enums.MetricVersion,
) : ConvertibleToJava {
    /**
     * Logging API v2.
     */
    V2(com.pulumi.googlenative.logging.v2.enums.MetricVersion.V2),

    /**
     * Logging API v1.
     */
    V1(com.pulumi.googlenative.logging.v2.enums.MetricVersion.V1),
    ;

    override fun toJava(): com.pulumi.googlenative.logging.v2.enums.MetricVersion = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.logging.v2.enums.MetricVersion): MetricVersion = MetricVersion.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy