/
NicIPSettings.cs
62 lines (56 loc) · 3.16 KB
/
NicIPSettings.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
// 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> Defines the network interface ip settings. </summary>
public partial class NicIPSettings
{
/// <summary> Initializes a new instance of NicIPSettings. </summary>
public NicIPSettings()
{
DnsServers = new ChangeTrackingList<string>();
Gateway = new ChangeTrackingList<string>();
IPAddressInfo = new ChangeTrackingList<NicIPAddressSettings>();
}
/// <summary> Initializes a new instance of NicIPSettings. </summary>
/// <param name="allocationMethod"> Gets or sets the nic allocation method. </param>
/// <param name="dnsServers"> Gets or sets the dns servers. </param>
/// <param name="gateway"> Gets or sets the gateway. </param>
/// <param name="ipAddress"> Gets or sets the ip address for the nic. </param>
/// <param name="subnetMask"> Gets or sets the mask. </param>
/// <param name="primaryWinsServer"> Gets or sets the primary server. </param>
/// <param name="secondaryWinsServer"> Gets or sets the secondary server. </param>
/// <param name="ipAddressInfo"> Gets or sets the IP address information being reported for this NIC. This contains the same IPv4 information above plus IPV6 information. </param>
internal NicIPSettings(IPAddressAllocationMethod? allocationMethod, IList<string> dnsServers, IList<string> gateway, string ipAddress, string subnetMask, string primaryWinsServer, string secondaryWinsServer, IReadOnlyList<NicIPAddressSettings> ipAddressInfo)
{
AllocationMethod = allocationMethod;
DnsServers = dnsServers;
Gateway = gateway;
IPAddress = ipAddress;
SubnetMask = subnetMask;
PrimaryWinsServer = primaryWinsServer;
SecondaryWinsServer = secondaryWinsServer;
IPAddressInfo = ipAddressInfo;
}
/// <summary> Gets or sets the nic allocation method. </summary>
public IPAddressAllocationMethod? AllocationMethod { get; set; }
/// <summary> Gets or sets the dns servers. </summary>
public IList<string> DnsServers { get; }
/// <summary> Gets or sets the gateway. </summary>
public IList<string> Gateway { get; }
/// <summary> Gets or sets the ip address for the nic. </summary>
public string IPAddress { get; set; }
/// <summary> Gets or sets the mask. </summary>
public string SubnetMask { get; set; }
/// <summary> Gets or sets the primary server. </summary>
public string PrimaryWinsServer { get; }
/// <summary> Gets or sets the secondary server. </summary>
public string SecondaryWinsServer { get; }
/// <summary> Gets or sets the IP address information being reported for this NIC. This contains the same IPv4 information above plus IPV6 information. </summary>
public IReadOnlyList<NicIPAddressSettings> IPAddressInfo { get; }
}
}