![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.nomad.kotlin.outputs.GetPluginResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-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.nomad.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getPlugin.
* @property controllerRequired `(boolean)` Whether a controller is required.
* @property controllersExpected `(integer)` The number of registered controllers.
* @property controllersHealthy `(integer)` The number of healthy controllers.
* @property id The provider-assigned unique ID for this managed resource.
* @property nodes
* @property nodesExpected `(integer)` The number of registered nodes.
* @property nodesHealthy `(integer)` The number of healthy nodes.
* @property pluginId `(string)` ID of the plugin
* @property pluginProvider `(string)` Plugin provider name
* @property pluginProviderVersion `(string)` Plugin provider version
* @property waitForHealthy
* @property waitForRegistration
*/
public data class GetPluginResult(
public val controllerRequired: Boolean,
public val controllersExpected: Int,
public val controllersHealthy: Int,
public val id: String,
public val nodes: List,
public val nodesExpected: Int,
public val nodesHealthy: Int,
public val pluginId: String,
public val pluginProvider: String,
public val pluginProviderVersion: String,
public val waitForHealthy: Boolean? = null,
public val waitForRegistration: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.nomad.outputs.GetPluginResult): GetPluginResult =
GetPluginResult(
controllerRequired = javaType.controllerRequired(),
controllersExpected = javaType.controllersExpected(),
controllersHealthy = javaType.controllersHealthy(),
id = javaType.id(),
nodes = javaType.nodes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.nomad.kotlin.outputs.GetPluginNode.Companion.toKotlin(args0)
})
}),
nodesExpected = javaType.nodesExpected(),
nodesHealthy = javaType.nodesHealthy(),
pluginId = javaType.pluginId(),
pluginProvider = javaType.pluginProvider(),
pluginProviderVersion = javaType.pluginProviderVersion(),
waitForHealthy = javaType.waitForHealthy().map({ args0 -> args0 }).orElse(null),
waitForRegistration = javaType.waitForRegistration().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy