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

com.pulumi.googlenative.compute.v1.kotlin.enums.AutoscalingPolicyMode.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.compute.v1.kotlin.enums

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

/**
 * Defines operating mode for this policy.
 */
public enum class AutoscalingPolicyMode(
    public val javaValue: com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode,
) : ConvertibleToJava {
    /**
     * Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled.
     */
    Off(com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode.Off),

    /**
     * Automatically scale the MIG in and out according to the policy.
     */
    On(com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode.On),

    /**
     * Automatically create VMs according to the policy, but do not scale the MIG in.
     */
    OnlyScaleOut(com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode.OnlyScaleOut),

    /**
     * Automatically create VMs according to the policy, but do not scale the MIG in.
     */
    OnlyUp(com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode.OnlyUp),
    ;

    override fun toJava(): com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.v1.enums.AutoscalingPolicyMode): AutoscalingPolicyMode = AutoscalingPolicyMode.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy