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

com.pulumi.gcp.compute.kotlin.outputs.PerInstanceConfigPreservedState.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.compute.kotlin.outputs

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

/**
 *
 * @property disks Stateful disks for the instance.
 * Structure is documented below.
 * @property externalIps Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
 * Structure is documented below.
 * @property internalIps Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
 * Structure is documented below.
 * @property metadata Preserved metadata defined for this instance. This is a list of key->value pairs.
 */
public data class PerInstanceConfigPreservedState(
    public val disks: List? = null,
    public val externalIps: List? = null,
    public val internalIps: List? = null,
    public val metadata: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.PerInstanceConfigPreservedState): PerInstanceConfigPreservedState = PerInstanceConfigPreservedState(
            disks = javaType.disks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.PerInstanceConfigPreservedStateDisk.Companion.toKotlin(args0)
                })
            }),
            externalIps = javaType.externalIps().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.PerInstanceConfigPreservedStateExternalIp.Companion.toKotlin(args0)
                })
            }),
            internalIps = javaType.internalIps().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.PerInstanceConfigPreservedStateInternalIp.Companion.toKotlin(args0)
                })
            }),
            metadata = javaType.metadata().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy