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

com.pulumi.nomad.kotlin.outputs.GetNodePoolResult.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: 2.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getNodePool.
 * @property description `(string)` - The description of the node pool.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property meta `(map[string]string)` - Arbitrary KV metadata associated with the
 * node pool.
 * @property name
 * @property schedulerConfigs `(block)` - Scheduler configuration for the node pool.
 */
public data class GetNodePoolResult(
    public val description: String,
    public val id: String,
    public val meta: Map,
    public val name: String,
    public val schedulerConfigs: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.nomad.outputs.GetNodePoolResult): GetNodePoolResult =
            GetNodePoolResult(
                description = javaType.description(),
                id = javaType.id(),
                meta = javaType.meta().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                name = javaType.name(),
                schedulerConfigs = javaType.schedulerConfigs().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.nomad.kotlin.outputs.GetNodePoolSchedulerConfig.Companion.toKotlin(args0)
                    })
                }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy