-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
NetworkInterface.cs
78 lines (72 loc) · 3.88 KB
/
NetworkInterface.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.ConnectedVMwarevSphere.Models
{
/// <summary> Network Interface model. </summary>
public partial class NetworkInterface
{
/// <summary> Initializes a new instance of NetworkInterface. </summary>
public NetworkInterface()
{
IPAddresses = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of NetworkInterface. </summary>
/// <param name="name"> Gets or sets the name of the network interface. </param>
/// <param name="label"> Gets or sets the label of the virtual network in vCenter that the nic is connected to. </param>
/// <param name="ipAddresses"> Gets or sets the nic ip addresses. </param>
/// <param name="macAddress"> Gets or sets the NIC MAC address. </param>
/// <param name="networkId"> Gets or sets the ARM Id of the network resource to connect the virtual machine. </param>
/// <param name="nicType"> NIC type. </param>
/// <param name="powerOnBoot"> Gets or sets the power on boot. </param>
/// <param name="networkMoRefId">
/// Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network
/// that the nic is connected to.
/// </param>
/// <param name="networkMoName"> Gets or sets the name of the virtual network in vCenter that the nic is connected to. </param>
/// <param name="deviceKey"> Gets or sets the device key value. </param>
/// <param name="ipSettings"> Gets or sets the ipsettings. </param>
internal NetworkInterface(string name, string label, IReadOnlyList<string> ipAddresses, string macAddress, string networkId, NICType? nicType, PowerOnBootOption? powerOnBoot, string networkMoRefId, string networkMoName, int? deviceKey, NicIPSettings ipSettings)
{
Name = name;
Label = label;
IPAddresses = ipAddresses;
MacAddress = macAddress;
NetworkId = networkId;
NicType = nicType;
PowerOnBoot = powerOnBoot;
NetworkMoRefId = networkMoRefId;
NetworkMoName = networkMoName;
DeviceKey = deviceKey;
IPSettings = ipSettings;
}
/// <summary> Gets or sets the name of the network interface. </summary>
public string Name { get; set; }
/// <summary> Gets or sets the label of the virtual network in vCenter that the nic is connected to. </summary>
public string Label { get; }
/// <summary> Gets or sets the nic ip addresses. </summary>
public IReadOnlyList<string> IPAddresses { get; }
/// <summary> Gets or sets the NIC MAC address. </summary>
public string MacAddress { get; }
/// <summary> Gets or sets the ARM Id of the network resource to connect the virtual machine. </summary>
public string NetworkId { get; set; }
/// <summary> NIC type. </summary>
public NICType? NicType { get; set; }
/// <summary> Gets or sets the power on boot. </summary>
public PowerOnBootOption? PowerOnBoot { get; set; }
/// <summary>
/// Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network
/// that the nic is connected to.
/// </summary>
public string NetworkMoRefId { get; }
/// <summary> Gets or sets the name of the virtual network in vCenter that the nic is connected to. </summary>
public string NetworkMoName { get; }
/// <summary> Gets or sets the device key value. </summary>
public int? DeviceKey { get; set; }
/// <summary> Gets or sets the ipsettings. </summary>
public NicIPSettings IPSettings { get; set; }
}
}