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

com.pulumi.gcp.tpu.kotlin.outputs.V2VmNetworkConfig.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.tpu.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property canIpForward Allows the TPU node to send and receive packets with non-matching destination or source
 * IPs. This is required if you plan to use the TPU workers to forward routes.
 * @property enableExternalIps Indicates that external IP addresses would be associated with the TPU workers. If set to
 * false, the specified subnetwork or network should have Private Google Access enabled.
 * @property network The name of the network for the TPU node. It must be a preexisting Google Compute Engine
 * network. If both network and subnetwork are specified, the given subnetwork must belong
 * to the given network. If network is not specified, it will be looked up from the
 * subnetwork if one is provided, or otherwise use "default".
 * @property subnetwork The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
 * Engine subnetwork. If both network and subnetwork are specified, the given subnetwork
 * must belong to the given network. If subnetwork is not specified, the subnetwork with the
 * same name as the network will be used.
 */
public data class V2VmNetworkConfig(
    public val canIpForward: Boolean? = null,
    public val enableExternalIps: Boolean? = null,
    public val network: String? = null,
    public val subnetwork: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.tpu.outputs.V2VmNetworkConfig): V2VmNetworkConfig =
            V2VmNetworkConfig(
                canIpForward = javaType.canIpForward().map({ args0 -> args0 }).orElse(null),
                enableExternalIps = javaType.enableExternalIps().map({ args0 -> args0 }).orElse(null),
                network = javaType.network().map({ args0 -> args0 }).orElse(null),
                subnetwork = javaType.subnetwork().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy