public sealed class NetworkInterface : IMessage<NetworkInterface>, IEquatable<NetworkInterface>, IDeepCloneable<NetworkInterface>, IBufferMessage, IMessage
Reference documentation and code samples for the Notebooks v2 API class NetworkInterface.
The definition of a network interface resource attached to a VM.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eNetworkInterface\u003c/code\u003e class defines a network interface resource attached to a virtual machine (VM) within the Notebooks v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetworkInterface\u003c/code\u003e class has properties to define the \u003ccode\u003eNetwork\u003c/code\u003e, \u003ccode\u003eNicType\u003c/code\u003e, and \u003ccode\u003eSubnet\u003c/code\u003e that the virtual machine is connected to.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNetwork\u003c/code\u003e and \u003ccode\u003eSubnet\u003c/code\u003e properties take the form of a formatted string with the project ID and network or subnetwork ID, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for creating a new \u003ccode\u003eNetworkInterface\u003c/code\u003e object: a default constructor and a constructor that accepts another \u003ccode\u003eNetworkInterface\u003c/code\u003e object as an argument.\u003c/p\u003e\n"]]],[],null,[]]