NetworkInterface class
The definition of a network interface resource attached to a VM.
Constructors
-
NetworkInterface({Input<
String> ? network, Input<NetworkInterfaceNicType> ? nicType, Input<String> ? subnet}) -
Creates a new NetworkInterface.
networkOptional. The name of the VPC that this VM instance is in. Format:projects/{project_id}/global/networks/{network_id}nicTypeOptional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.subnetOptional. The name of the subnet that this VM instance is in. Format:projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}const -
NetworkInterface.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
network
→ Input<
String> ? -
Optional. The name of the VPC that this VM instance is in. Format:
projects/{project_id}/global/networks/{network_id}final -
nicType
→ Input<
NetworkInterfaceNicType> ? -
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subnet
→ Input<
String> ? -
Optional. The name of the subnet that this VM instance is in. Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited