NetworkInterface class

A network interface resource attached to an instance.

Constructors

NetworkInterface()
NetworkInterface.fromJson(Map _json)

Properties

accessConfigs List<AccessConfig>
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.
read / write
aliasIpRanges List<AliasIpRange>
An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
read / write
fingerprint String
Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet.
read / write
fingerprintAsBytes List<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
ipv6Address String
Output Only An IPv6 internal network address for this network interface.
read / write
kind String
Output Only Type of the resource. Always compute#networkInterface for network interfaces.
read / write
name String
Output Only The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc.
read / write
network String
URL of the 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 network is not specified but the subnetwork is specified, the network is inferred. [...]
read / write
networkIP String
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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subnetwork String
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: [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited