InstanceNetworkInterface

data class InstanceNetworkInterface(val accessConfigs: List<InstanceNetworkInterfaceAccessConfig>? = null, val aliasIpRanges: List<InstanceNetworkInterfaceAliasIpRange>? = null, val internalIpv6PrefixLength: Int? = null, val ipv6AccessConfigs: List<InstanceNetworkInterfaceIpv6AccessConfig>? = null, val ipv6AccessType: String? = null, val ipv6Address: String? = null, val name: String? = null, val network: String? = null, val networkAttachment: String? = null, val networkIp: String? = null, val nicType: String? = null, val queueCount: Int? = null, val securityPolicy: String? = null, val stackType: String? = null, val subnetwork: String? = null, val subnetworkProject: String? = null)

Constructors

Link copied to clipboard
constructor(accessConfigs: List<InstanceNetworkInterfaceAccessConfig>? = null, aliasIpRanges: List<InstanceNetworkInterfaceAliasIpRange>? = null, internalIpv6PrefixLength: Int? = null, ipv6AccessConfigs: List<InstanceNetworkInterfaceIpv6AccessConfig>? = null, ipv6AccessType: String? = null, ipv6Address: String? = null, name: String? = null, network: String? = null, networkAttachment: String? = null, networkIp: String? = null, nicType: String? = null, queueCount: Int? = null, securityPolicy: String? = null, stackType: String? = null, subnetwork: String? = null, subnetworkProject: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Access configurations, i.e. IPs via which this instance can be accessed via the Internet.

Link copied to clipboard

An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.

Link copied to clipboard

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. Structure documented below.

Link copied to clipboard
val ipv6AccessType: String? = null

One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

Link copied to clipboard
val ipv6Address: String? = null

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.

Link copied to clipboard
val name: String? = null

A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

Link copied to clipboard
val network: String? = null

The name or self_link of the network to attach this interface to. Either network or subnetwork must be provided. If network isn't provided it will be inferred from the subnetwork.

Link copied to clipboard

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

Link copied to clipboard
val networkIp: String? = null

The private IP address to assign to the instance. If empty, the address will be automatically assigned.

Link copied to clipboard
val nicType: String? = null

The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET.

Link copied to clipboard
val queueCount: 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 will be empty if not specified.

Link copied to clipboard
val securityPolicy: String? = null

A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.

Link copied to clipboard
val stackType: String? = null

The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6 or IPV4_ONLY. If not specified, IPV4_ONLY will be used.

Link copied to clipboard
val subnetwork: String? = null

The name or self_link of the subnetwork to attach this interface to. Either network or subnetwork must be provided. If network isn't provided it will be inferred from the subnetwork. The subnetwork must exist in the same region this instance will be created in. 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.

Link copied to clipboard

The project in which the subnetwork belongs. If the subnetwork is a self_link, this field is ignored in favor of the project defined in the subnetwork self_link. If the subnetwork is a name and this field is not provided, the provider project is used.