com.pulumi.vault.kotlin.outputs.GetRaftAutopilotStateResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-vault-kotlin Show documentation
Show all versions of pulumi-vault-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.vault.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* A collection of values returned by getRaftAutopilotState.
* @property failureTolerance How many nodes could fail before the cluster becomes unhealthy.
* @property healthy Cluster health status.
* @property id The provider-assigned unique ID for this managed resource.
* @property leader The current leader of Vault.
* @property namespace
* @property optimisticFailureTolerance The cluster-level optimistic failure tolerance.
* @property redundancyZones Additional output related to redundancy zones stored as a serialized map of strings.
* @property redundancyZonesJson Additional output related to redundancy zones.
* @property servers Additionaly output related to servers in the cluster stored as a serialized map of strings.
* @property serversJson Additionaly output related to servers in the cluster.
* @property upgradeInfo Additional output related to upgrade information stored as a serialized map of strings.
* @property upgradeInfoJson Additional output related to upgrade information.
* @property voters The voters in the Vault cluster.
*/
public data class GetRaftAutopilotStateResult(
public val failureTolerance: Int,
public val healthy: Boolean,
public val id: String,
public val leader: String,
public val namespace: String? = null,
public val optimisticFailureTolerance: Int,
public val redundancyZones: Map,
public val redundancyZonesJson: String,
public val servers: Map,
public val serversJson: String,
public val upgradeInfo: Map,
public val upgradeInfoJson: String,
public val voters: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.outputs.GetRaftAutopilotStateResult): GetRaftAutopilotStateResult = GetRaftAutopilotStateResult(
failureTolerance = javaType.failureTolerance(),
healthy = javaType.healthy(),
id = javaType.id(),
leader = javaType.leader(),
namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
optimisticFailureTolerance = javaType.optimisticFailureTolerance(),
redundancyZones = javaType.redundancyZones().map({ args0 -> args0.key.to(args0.value) }).toMap(),
redundancyZonesJson = javaType.redundancyZonesJson(),
servers = javaType.servers().map({ args0 -> args0.key.to(args0.value) }).toMap(),
serversJson = javaType.serversJson(),
upgradeInfo = javaType.upgradeInfo().map({ args0 -> args0.key.to(args0.value) }).toMap(),
upgradeInfoJson = javaType.upgradeInfoJson(),
voters = javaType.voters().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy