NetworkInterfaceArgs

data class NetworkInterfaceArgs(val accessConfigs: Output<List<AccessConfigArgs>>? = null, val aliasIpRanges: Output<List<AliasIpRangeArgs>>? = null, val internalIpv6PrefixLength: Output<Int>? = null, val ipv6AccessConfigs: Output<List<AccessConfigArgs>>? = null, val ipv6Address: Output<String>? = null, val network: Output<String>? = null, val networkAttachment: Output<String>? = null, val networkIP: Output<String>? = null, val nicType: Output<NetworkInterfaceNicType>? = null, val queueCount: Output<Int>? = null, val stackType: Output<NetworkInterfaceStackType>? = null, val subnetwork: Output<String>? = null) : ConvertibleToJava<NetworkInterfaceArgs>

A network interface resource attached to an instance.

Constructors

Link copied to clipboard
fun NetworkInterfaceArgs(accessConfigs: Output<List<AccessConfigArgs>>? = null, aliasIpRanges: Output<List<AliasIpRangeArgs>>? = null, internalIpv6PrefixLength: Output<Int>? = null, ipv6AccessConfigs: Output<List<AccessConfigArgs>>? = null, ipv6Address: Output<String>? = null, network: Output<String>? = null, networkAttachment: Output<String>? = null, networkIP: Output<String>? = null, nicType: Output<NetworkInterfaceNicType>? = null, queueCount: Output<Int>? = null, stackType: Output<NetworkInterfaceStackType>? = null, subnetwork: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): NetworkInterfaceArgs

Properties

Link copied to clipboard
val accessConfigs: Output<List<AccessConfigArgs>>? = null

An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

Link copied to clipboard
val aliasIpRanges: Output<List<AliasIpRangeArgs>>? = null

An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

Link copied to clipboard
val internalIpv6PrefixLength: Output<Int>? = null

The prefix length of the primary internal IPv6 range.

Link copied to clipboard

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.

Link copied to clipboard
val ipv6Address: Output<String>? = null

An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

Link copied to clipboard
val network: Output<String>? = null

URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default

Link copied to clipboard
val networkAttachment: Output<String>? = null

The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.

Link copied to clipboard
val networkIP: Output<String>? = null

An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

Link copied to clipboard
val nicType: Output<NetworkInterfaceNicType>? = null

The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

Link copied to clipboard
val queueCount: Output<Int>? = null

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'll be empty if not specified by the users.

Link copied to clipboard

The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.

Link copied to clipboard
val subnetwork: Output<String>? = null

The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/regions/region /subnetworks/subnetwork - regions/region/subnetworks/subnetwork