Share via


ArmConnectedVMwarevSphereModelFactory.NetworkInterface Method

Definition

Initializes a new instance of NetworkInterface.

public static Azure.ResourceManager.ConnectedVMwarevSphere.Models.NetworkInterface NetworkInterface (string name = default, string label = default, System.Collections.Generic.IEnumerable<string> ipAddresses = default, string macAddress = default, string networkId = default, Azure.ResourceManager.ConnectedVMwarevSphere.Models.NICType? nicType = default, Azure.ResourceManager.ConnectedVMwarevSphere.Models.PowerOnBootOption? powerOnBoot = default, string networkMoRefId = default, string networkMoName = default, int? deviceKey = default, Azure.ResourceManager.ConnectedVMwarevSphere.Models.NicIPSettings ipSettings = default);
static member NetworkInterface : string * string * seq<string> * string * string * Nullable<Azure.ResourceManager.ConnectedVMwarevSphere.Models.NICType> * Nullable<Azure.ResourceManager.ConnectedVMwarevSphere.Models.PowerOnBootOption> * string * string * Nullable<int> * Azure.ResourceManager.ConnectedVMwarevSphere.Models.NicIPSettings -> Azure.ResourceManager.ConnectedVMwarevSphere.Models.NetworkInterface
Public Shared Function NetworkInterface (Optional name As String = Nothing, Optional label As String = Nothing, Optional ipAddresses As IEnumerable(Of String) = Nothing, Optional macAddress As String = Nothing, Optional networkId As String = Nothing, Optional nicType As Nullable(Of NICType) = Nothing, Optional powerOnBoot As Nullable(Of PowerOnBootOption) = Nothing, Optional networkMoRefId As String = Nothing, Optional networkMoName As String = Nothing, Optional deviceKey As Nullable(Of Integer) = Nothing, Optional ipSettings As NicIPSettings = Nothing) As NetworkInterface

Parameters

name
String

Gets or sets the name of the network interface.

label
String

Gets or sets the label of the virtual network in vCenter that the nic is connected to.

ipAddresses
IEnumerable<String>

Gets or sets the nic ip addresses.

macAddress
String

Gets or sets the NIC MAC address.

networkId
String

Gets or sets the ARM Id of the network resource to connect the virtual machine.

nicType
Nullable<NICType>

NIC type.

powerOnBoot
Nullable<PowerOnBootOption>

Gets or sets the power on boot.

networkMoRefId
String

Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to.

networkMoName
String

Gets or sets the name of the virtual network in vCenter that the nic is connected to.

deviceKey
Nullable<Int32>

Gets or sets the device key value.

ipSettings
NicIPSettings

Gets or sets the ipsettings.

Returns

A new NetworkInterface instance for mocking.

Applies to