-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DataBoxEdgeNetworkAdapter.cs
89 lines (83 loc) · 4.77 KB
/
DataBoxEdgeNetworkAdapter.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
79
80
81
82
83
84
85
86
87
88
89
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.DataBoxEdge.Models
{
/// <summary> Represents the networkAdapter on a device. </summary>
public partial class DataBoxEdgeNetworkAdapter
{
/// <summary> Initializes a new instance of DataBoxEdgeNetworkAdapter. </summary>
internal DataBoxEdgeNetworkAdapter()
{
DnsServers = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of DataBoxEdgeNetworkAdapter. </summary>
/// <param name="adapterId"> Instance ID of network adapter. </param>
/// <param name="adapterPosition"> Hardware position of network adapter. </param>
/// <param name="index"> Logical index of the adapter. </param>
/// <param name="nodeId"> Node ID of the network adapter. </param>
/// <param name="networkAdapterName"> Network adapter name. </param>
/// <param name="label"> Hardware label for the adapter. </param>
/// <param name="macAddress"> MAC address. </param>
/// <param name="linkSpeed"> Link speed. </param>
/// <param name="status"> Value indicating whether this adapter is valid. </param>
/// <param name="rdmaStatus"> Value indicating whether this adapter is RDMA capable. </param>
/// <param name="dhcpStatus"> Value indicating whether this adapter has DHCP enabled. </param>
/// <param name="ipv4Configuration"> The IPv4 configuration of the network adapter. </param>
/// <param name="ipv6Configuration"> The IPv6 configuration of the network adapter. </param>
/// <param name="ipv6LinkLocalAddress"> The IPv6 local address. </param>
/// <param name="dnsServers"> The list of DNS Servers of the device. </param>
internal DataBoxEdgeNetworkAdapter(string adapterId, DataBoxEdgeNetworkAdapterPosition adapterPosition, int? index, Guid? nodeId, string networkAdapterName, string label, string macAddress, long? linkSpeed, DataBoxEdgeNetworkAdapterStatus? status, DataBoxEdgeNetworkAdapterRdmaStatus? rdmaStatus, DataBoxEdgeNetworkAdapterDhcpStatus? dhcpStatus, DataBoxEdgeIPv4Config ipv4Configuration, DataBoxEdgeIPv6Config ipv6Configuration, string ipv6LinkLocalAddress, IReadOnlyList<string> dnsServers)
{
AdapterId = adapterId;
AdapterPosition = adapterPosition;
Index = index;
NodeId = nodeId;
NetworkAdapterName = networkAdapterName;
Label = label;
MacAddress = macAddress;
LinkSpeed = linkSpeed;
Status = status;
RdmaStatus = rdmaStatus;
DhcpStatus = dhcpStatus;
IPv4Configuration = ipv4Configuration;
IPv6Configuration = ipv6Configuration;
IPv6LinkLocalAddress = ipv6LinkLocalAddress;
DnsServers = dnsServers;
}
/// <summary> Instance ID of network adapter. </summary>
public string AdapterId { get; }
/// <summary> Hardware position of network adapter. </summary>
public DataBoxEdgeNetworkAdapterPosition AdapterPosition { get; }
/// <summary> Logical index of the adapter. </summary>
public int? Index { get; }
/// <summary> Node ID of the network adapter. </summary>
public Guid? NodeId { get; }
/// <summary> Network adapter name. </summary>
public string NetworkAdapterName { get; }
/// <summary> Hardware label for the adapter. </summary>
public string Label { get; }
/// <summary> MAC address. </summary>
public string MacAddress { get; }
/// <summary> Link speed. </summary>
public long? LinkSpeed { get; }
/// <summary> Value indicating whether this adapter is valid. </summary>
public DataBoxEdgeNetworkAdapterStatus? Status { get; }
/// <summary> Value indicating whether this adapter is RDMA capable. </summary>
public DataBoxEdgeNetworkAdapterRdmaStatus? RdmaStatus { get; }
/// <summary> Value indicating whether this adapter has DHCP enabled. </summary>
public DataBoxEdgeNetworkAdapterDhcpStatus? DhcpStatus { get; }
/// <summary> The IPv4 configuration of the network adapter. </summary>
public DataBoxEdgeIPv4Config IPv4Configuration { get; }
/// <summary> The IPv6 configuration of the network adapter. </summary>
public DataBoxEdgeIPv6Config IPv6Configuration { get; }
/// <summary> The IPv6 local address. </summary>
public string IPv6LinkLocalAddress { get; }
/// <summary> The list of DNS Servers of the device. </summary>
public IReadOnlyList<string> DnsServers { get; }
}
}