-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DevTestLabNetworkInterface.cs
73 lines (67 loc) · 4.06 KB
/
DevTestLabNetworkInterface.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
// 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.DevTestLabs.Models
{
/// <summary> Properties of a network interface. </summary>
public partial class DevTestLabNetworkInterface
{
/// <summary> Initializes a new instance of DevTestLabNetworkInterface. </summary>
public DevTestLabNetworkInterface()
{
}
/// <summary> Initializes a new instance of DevTestLabNetworkInterface. </summary>
/// <param name="virtualNetworkId"> The resource ID of the virtual network. </param>
/// <param name="subnetId"> The resource ID of the sub net. </param>
/// <param name="publicIPAddressId"> The resource ID of the public IP address. </param>
/// <param name="publicIPAddress"> The public IP address. </param>
/// <param name="privateIPAddress"> The private IP address. </param>
/// <param name="dnsName"> The DNS name. </param>
/// <param name="rdpAuthority"> The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol). </param>
/// <param name="sshAuthority"> The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH. </param>
/// <param name="sharedPublicIPAddressConfiguration"> The configuration for sharing a public IP address across multiple virtual machines. </param>
internal DevTestLabNetworkInterface(ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier publicIPAddressId, string publicIPAddress, string privateIPAddress, string dnsName, string rdpAuthority, string sshAuthority, SharedPublicIPAddressConfiguration sharedPublicIPAddressConfiguration)
{
VirtualNetworkId = virtualNetworkId;
SubnetId = subnetId;
PublicIPAddressId = publicIPAddressId;
PublicIPAddress = publicIPAddress;
PrivateIPAddress = privateIPAddress;
DnsName = dnsName;
RdpAuthority = rdpAuthority;
SshAuthority = sshAuthority;
SharedPublicIPAddressConfiguration = sharedPublicIPAddressConfiguration;
}
/// <summary> The resource ID of the virtual network. </summary>
public ResourceIdentifier VirtualNetworkId { get; set; }
/// <summary> The resource ID of the sub net. </summary>
public ResourceIdentifier SubnetId { get; set; }
/// <summary> The resource ID of the public IP address. </summary>
public ResourceIdentifier PublicIPAddressId { get; set; }
/// <summary> The public IP address. </summary>
public string PublicIPAddress { get; set; }
/// <summary> The private IP address. </summary>
public string PrivateIPAddress { get; set; }
/// <summary> The DNS name. </summary>
public string DnsName { get; set; }
/// <summary> The RdpAuthority property is a server DNS host name or IP address followed by the service port number for RDP (Remote Desktop Protocol). </summary>
public string RdpAuthority { get; set; }
/// <summary> The SshAuthority property is a server DNS host name or IP address followed by the service port number for SSH. </summary>
public string SshAuthority { get; set; }
/// <summary> The configuration for sharing a public IP address across multiple virtual machines. </summary>
internal SharedPublicIPAddressConfiguration SharedPublicIPAddressConfiguration { get; set; }
/// <summary> The incoming NAT rules. </summary>
public IList<DevTestLabInboundNatRule> SharedPublicIPAddressInboundNatRules
{
get
{
if (SharedPublicIPAddressConfiguration is null)
SharedPublicIPAddressConfiguration = new SharedPublicIPAddressConfiguration();
return SharedPublicIPAddressConfiguration.InboundNatRules;
}
}
}
}