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

com.pulumi.gcp.compute.kotlin.outputs.RegionInstanceGroupManagerStatus.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property allInstancesConfigs Properties to set on all instances in the group. After setting
 * allInstancesConfig on the group, you must update the group's instances to
 * apply the configuration.
 * @property isStable A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
 * @property statefuls Stateful status of the given Instance Group Manager.
 * @property versionTargets A bit indicating whether version target has been reached in this managed instance group, i.e. all instances are in their target version. Instances' target version are specified by version field on Instance Group Manager.
 */
public data class RegionInstanceGroupManagerStatus(
    public val allInstancesConfigs: List? = null,
    public val isStable: Boolean? = null,
    public val statefuls: List? = null,
    public val versionTargets: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionInstanceGroupManagerStatus): RegionInstanceGroupManagerStatus = RegionInstanceGroupManagerStatus(
            allInstancesConfigs = javaType.allInstancesConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RegionInstanceGroupManagerStatusAllInstancesConfig.Companion.toKotlin(args0)
                })
            }),
            isStable = javaType.isStable().map({ args0 -> args0 }).orElse(null),
            statefuls = javaType.statefuls().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RegionInstanceGroupManagerStatusStateful.Companion.toKotlin(args0)
                })
            }),
            versionTargets = javaType.versionTargets().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RegionInstanceGroupManagerStatusVersionTarget.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy