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

com.pulumi.googlenative.osconfig.v1beta.kotlin.enums.PatchRolloutMode.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.osconfig.v1beta.kotlin.enums

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

/**
 * Mode of the patch rollout.
 */
public enum class PatchRolloutMode(
    public val javaValue: com.pulumi.googlenative.osconfig.v1beta.enums.PatchRolloutMode,
) : ConvertibleToJava {
    /**
     * Mode must be specified.
     */
    ModeUnspecified(com.pulumi.googlenative.osconfig.v1beta.enums.PatchRolloutMode.ModeUnspecified),

    /**
     * Patches are applied one zone at a time. The patch job begins in the region with the lowest number of targeted VMs. Within the region, patching begins in the zone with the lowest number of targeted VMs. If multiple regions (or zones within a region) have the same number of targeted VMs, a tie-breaker is achieved by sorting the regions or zones in alphabetical order.
     */
    ZoneByZone(com.pulumi.googlenative.osconfig.v1beta.enums.PatchRolloutMode.ZoneByZone),

    /**
     * Patches are applied to VMs in all zones at the same time.
     */
    ConcurrentZones(com.pulumi.googlenative.osconfig.v1beta.enums.PatchRolloutMode.ConcurrentZones),
    ;

    override fun toJava(): com.pulumi.googlenative.osconfig.v1beta.enums.PatchRolloutMode = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.osconfig.v1beta.enums.PatchRolloutMode): PatchRolloutMode = PatchRolloutMode.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy