-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
NicIPConfigurationResourceSettings.cs
67 lines (61 loc) · 3.86 KB
/
NicIPConfigurationResourceSettings.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
// 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.Migrate.Models
{
/// <summary> Defines NIC IP configuration properties. </summary>
public partial class NicIPConfigurationResourceSettings
{
/// <summary> Initializes a new instance of NicIPConfigurationResourceSettings. </summary>
public NicIPConfigurationResourceSettings()
{
LoadBalancerBackendAddressPools = new ChangeTrackingList<LoadBalancerBackendAddressPoolReference>();
LoadBalancerNatRules = new ChangeTrackingList<LoadBalancerNatRuleReference>();
}
/// <summary> Initializes a new instance of NicIPConfigurationResourceSettings. </summary>
/// <param name="name"> Gets or sets the IP configuration name. </param>
/// <param name="privateIPAddress"> Gets or sets the private IP address of the network interface IP Configuration. </param>
/// <param name="privateIPAllocationMethod"> Gets or sets the private IP address allocation method. </param>
/// <param name="subnet"> Defines reference to subnet. </param>
/// <param name="primary"> Gets or sets a value indicating whether this IP configuration is the primary. </param>
/// <param name="loadBalancerBackendAddressPools"> Gets or sets the references of the load balancer backend address pools. </param>
/// <param name="loadBalancerNatRules"> Gets or sets the references of the load balancer NAT rules. </param>
/// <param name="publicIP"> Defines reference to a public IP. </param>
internal NicIPConfigurationResourceSettings(string name, string privateIPAddress, string privateIPAllocationMethod, SubnetReference subnet, bool? primary, IList<LoadBalancerBackendAddressPoolReference> loadBalancerBackendAddressPools, IList<LoadBalancerNatRuleReference> loadBalancerNatRules, PublicIPReference publicIP)
{
Name = name;
PrivateIPAddress = privateIPAddress;
PrivateIPAllocationMethod = privateIPAllocationMethod;
Subnet = subnet;
Primary = primary;
LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
LoadBalancerNatRules = loadBalancerNatRules;
PublicIP = publicIP;
}
/// <summary> Gets or sets the IP configuration name. </summary>
public string Name { get; set; }
/// <summary> Gets or sets the private IP address of the network interface IP Configuration. </summary>
public string PrivateIPAddress { get; set; }
/// <summary> Gets or sets the private IP address allocation method. </summary>
public string PrivateIPAllocationMethod { get; set; }
/// <summary> Defines reference to subnet. </summary>
public SubnetReference Subnet { get; set; }
/// <summary> Gets or sets a value indicating whether this IP configuration is the primary. </summary>
public bool? Primary { get; set; }
/// <summary> Gets or sets the references of the load balancer backend address pools. </summary>
public IList<LoadBalancerBackendAddressPoolReference> LoadBalancerBackendAddressPools { get; }
/// <summary> Gets or sets the references of the load balancer NAT rules. </summary>
public IList<LoadBalancerNatRuleReference> LoadBalancerNatRules { get; }
/// <summary> Defines reference to a public IP. </summary>
internal PublicIPReference PublicIP { get; set; }
/// <summary> Gets the ARM resource ID of the tracked resource being referenced. </summary>
public string PublicIPSourceArmResourceId
{
get => PublicIP is null ? default : PublicIP.SourceArmResourceId;
set => PublicIP = new PublicIPReference(value);
}
}
}