com.pulumi.gcp.compute.kotlin.outputs.InstanceGroupManagerStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 InstanceGroupManagerStatus(
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.InstanceGroupManagerStatus): InstanceGroupManagerStatus = InstanceGroupManagerStatus(
allInstancesConfigs = javaType.allInstancesConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.InstanceGroupManagerStatusAllInstancesConfig.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.InstanceGroupManagerStatusStateful.Companion.toKotlin(args0)
})
}),
versionTargets = javaType.versionTargets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.InstanceGroupManagerStatusVersionTarget.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy