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

com.pulumi.gcp.tpu.kotlin.inputs.V2VmNetworkConfigArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.tpu.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.tpu.inputs.V2VmNetworkConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 none is provided, "default" will be used.
 * @property queueCount Specifies networking queue count for TPU VM instance's network interface.
 * @property subnetwork The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
 * Engine subnetwork. If none is provided, "default" will be used.
 */
public data class V2VmNetworkConfigArgs(
    public val canIpForward: Output? = null,
    public val enableExternalIps: Output? = null,
    public val network: Output? = null,
    public val queueCount: Output? = null,
    public val subnetwork: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.tpu.inputs.V2VmNetworkConfigArgs =
        com.pulumi.gcp.tpu.inputs.V2VmNetworkConfigArgs.builder()
            .canIpForward(canIpForward?.applyValue({ args0 -> args0 }))
            .enableExternalIps(enableExternalIps?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .queueCount(queueCount?.applyValue({ args0 -> args0 }))
            .subnetwork(subnetwork?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [V2VmNetworkConfigArgs].
 */
@PulumiTagMarker
public class V2VmNetworkConfigArgsBuilder internal constructor() {
    private var canIpForward: Output? = null

    private var enableExternalIps: Output? = null

    private var network: Output? = null

    private var queueCount: Output? = null

    private var subnetwork: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("bebvrwihcjeyogna")
    public suspend fun canIpForward(`value`: Output) {
        this.canIpForward = value
    }

    /**
     * @param value 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.
     */
    @JvmName("dqcokuyuddcibqur")
    public suspend fun enableExternalIps(`value`: Output) {
        this.enableExternalIps = value
    }

    /**
     * @param value The name of the network for the TPU node. It must be a preexisting Google Compute Engine
     * network. If none is provided, "default" will be used.
     */
    @JvmName("oomganwwrcpnduuo")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value Specifies networking queue count for TPU VM instance's network interface.
     */
    @JvmName("nrairppfhnwklgva")
    public suspend fun queueCount(`value`: Output) {
        this.queueCount = value
    }

    /**
     * @param value The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
     * Engine subnetwork. If none is provided, "default" will be used.
     */
    @JvmName("dvyqrcptdvhgjwdj")
    public suspend fun subnetwork(`value`: Output) {
        this.subnetwork = value
    }

    /**
     * @param value 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.
     */
    @JvmName("xthsspypbbqqyrqg")
    public suspend fun canIpForward(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.canIpForward = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("bktcmiruuiyarehn")
    public suspend fun enableExternalIps(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableExternalIps = mapped
    }

    /**
     * @param value The name of the network for the TPU node. It must be a preexisting Google Compute Engine
     * network. If none is provided, "default" will be used.
     */
    @JvmName("lrrbpvrhgwtaknef")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value Specifies networking queue count for TPU VM instance's network interface.
     */
    @JvmName("wrjclgjosgdmcnpb")
    public suspend fun queueCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queueCount = mapped
    }

    /**
     * @param value The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
     * Engine subnetwork. If none is provided, "default" will be used.
     */
    @JvmName("ptvelnfhjeemytbs")
    public suspend fun subnetwork(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetwork = mapped
    }

    internal fun build(): V2VmNetworkConfigArgs = V2VmNetworkConfigArgs(
        canIpForward = canIpForward,
        enableExternalIps = enableExternalIps,
        network = network,
        queueCount = queueCount,
        subnetwork = subnetwork,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy