com.pulumi.gcp.compute.kotlin.outputs.RegionPerInstanceConfigPreservedState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.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 RegionPerInstanceConfigPreservedState(
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.RegionPerInstanceConfigPreservedState): RegionPerInstanceConfigPreservedState = RegionPerInstanceConfigPreservedState(
disks = javaType.disks().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RegionPerInstanceConfigPreservedStateDisk.Companion.toKotlin(args0)
})
}),
externalIps = javaType.externalIps().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RegionPerInstanceConfigPreservedStateExternalIp.Companion.toKotlin(args0)
})
}),
internalIps = javaType.internalIps().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.RegionPerInstanceConfigPreservedStateInternalIp.Companion.toKotlin(args0)
})
}),
metadata = javaType.metadata().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy