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

com.pulumi.nomad.kotlin.outputs.GetVariableResult.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * A collection of values returned by getVariable.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property items `(map[string]string)` - Map of items in the variable.
 * @property namespace `(string)` - The namespace in which the variable exists.
 * @property path `(string)` - The path at which the variable exists.
 */
public data class GetVariableResult(
    public val id: String,
    public val items: Map,
    public val namespace: String? = null,
    public val path: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.nomad.outputs.GetVariableResult): GetVariableResult =
            GetVariableResult(
                id = javaType.id(),
                items = javaType.items().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
                path = javaType.path(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy