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

com.pulumi.gcp.spanner.kotlin.outputs.GetInstanceResult.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.spanner.kotlin.outputs

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 getInstance.
 * @property autoscalingConfigs
 * @property config
 * @property displayName
 * @property effectiveLabels
 * @property forceDestroy
 * @property id The provider-assigned unique ID for this managed resource.
 * @property labels
 * @property name
 * @property numNodes
 * @property processingUnits
 * @property project
 * @property pulumiLabels
 * @property state
 */
public data class GetInstanceResult(
    public val autoscalingConfigs: List,
    public val config: String? = null,
    public val displayName: String? = null,
    public val effectiveLabels: Map,
    public val forceDestroy: Boolean,
    public val id: String,
    public val labels: Map,
    public val name: String,
    public val numNodes: Int,
    public val processingUnits: Int,
    public val project: String? = null,
    public val pulumiLabels: Map,
    public val state: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.spanner.outputs.GetInstanceResult): GetInstanceResult = GetInstanceResult(
            autoscalingConfigs = javaType.autoscalingConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.spanner.kotlin.outputs.GetInstanceAutoscalingConfig.Companion.toKotlin(args0)
                })
            }),
            config = javaType.config().map({ args0 -> args0 }).orElse(null),
            displayName = javaType.displayName().map({ args0 -> args0 }).orElse(null),
            effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            forceDestroy = javaType.forceDestroy(),
            id = javaType.id(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            name = javaType.name(),
            numNodes = javaType.numNodes(),
            processingUnits = javaType.processingUnits(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            state = javaType.state(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy