com.pulumi.gcp.compute.kotlin.outputs.GetRegionInstanceTemplateNetworkInterface.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property accessConfigs
* @property aliasIpRanges An
* array of alias IP ranges for this network interface. Can only be specified for network
* interfaces on subnet-mode networks. Structure documented below.
* @property internalIpv6PrefixLength The prefix length of the primary internal IPv6 range.
* @property ipv6AccessConfigs An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
* @property ipv6AccessType One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
* @property ipv6Address An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
* @property name The name of the instance template. One of `name` or `filter` must be provided.
* @property network The name or self_link of the network to attach this interface to.
* Use `network` attribute for Legacy or Auto subnetted networks and
* `subnetwork` for custom subnetted networks.
* @property networkIp The private IP address to assign to the instance. If
* empty, the address will be automatically assigned.
* @property nicType The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET
* @property queueCount The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
* @property stackType The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
* @property subnetwork the name of the subnetwork to attach this interface
* to. The subnetwork must exist in the same `region` this instance will be
* created in. Either `network` or `subnetwork` must be provided.
* @property subnetworkProject The ID of the project in which the subnetwork belongs.
* If it is not provided, the provider project is used.
*/
public data class GetRegionInstanceTemplateNetworkInterface(
public val accessConfigs: List,
public val aliasIpRanges: List,
public val internalIpv6PrefixLength: Int,
public val ipv6AccessConfigs: List,
public val ipv6AccessType: String,
public val ipv6Address: String,
public val name: String,
public val network: String,
public val networkIp: String,
public val nicType: String,
public val queueCount: Int,
public val stackType: String,
public val subnetwork: String,
public val subnetworkProject: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetRegionInstanceTemplateNetworkInterface): GetRegionInstanceTemplateNetworkInterface = GetRegionInstanceTemplateNetworkInterface(
accessConfigs = javaType.accessConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionInstanceTemplateNetworkInterfaceAccessConfig.Companion.toKotlin(args0)
})
}),
aliasIpRanges = javaType.aliasIpRanges().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionInstanceTemplateNetworkInterfaceAliasIpRange.Companion.toKotlin(args0)
})
}),
internalIpv6PrefixLength = javaType.internalIpv6PrefixLength(),
ipv6AccessConfigs = javaType.ipv6AccessConfigs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig.Companion.toKotlin(args0)
})
}),
ipv6AccessType = javaType.ipv6AccessType(),
ipv6Address = javaType.ipv6Address(),
name = javaType.name(),
network = javaType.network(),
networkIp = javaType.networkIp(),
nicType = javaType.nicType(),
queueCount = javaType.queueCount(),
stackType = javaType.stackType(),
subnetwork = javaType.subnetwork(),
subnetworkProject = javaType.subnetworkProject(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy