-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
LogicalNetworkData.cs
75 lines (68 loc) · 3.86 KB
/
LogicalNetworkData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Hci.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Hci
{
/// <summary>
/// A class representing the LogicalNetwork data model.
/// The logical network resource definition.
/// </summary>
public partial class LogicalNetworkData : TrackedResourceData
{
/// <summary> Initializes a new instance of <see cref="LogicalNetworkData"/>. </summary>
/// <param name="location"> The location. </param>
public LogicalNetworkData(AzureLocation location) : base(location)
{
Subnets = new ChangeTrackingList<Subnet>();
}
/// <summary> Initializes a new instance of <see cref="LogicalNetworkData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="extendedLocation"> The extendedLocation of the resource. </param>
/// <param name="dhcpOptions"> DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options. </param>
/// <param name="subnets"> Subnet - list of subnets under the logical network. </param>
/// <param name="provisioningState"> Provisioning state of the logical network. </param>
/// <param name="vmSwitchName"> name of the network switch to be used for VMs. </param>
/// <param name="status"> The observed state of logical networks. </param>
internal LogicalNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, ArcVmExtendedLocation extendedLocation, LogicalNetworkPropertiesDhcpOptions dhcpOptions, IList<Subnet> subnets, ProvisioningStateEnum? provisioningState, string vmSwitchName, LogicalNetworkStatus status) : base(id, name, resourceType, systemData, tags, location)
{
ExtendedLocation = extendedLocation;
DhcpOptions = dhcpOptions;
Subnets = subnets;
ProvisioningState = provisioningState;
VmSwitchName = vmSwitchName;
Status = status;
}
/// <summary> The extendedLocation of the resource. </summary>
public ArcVmExtendedLocation ExtendedLocation { get; set; }
/// <summary> DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options. </summary>
internal LogicalNetworkPropertiesDhcpOptions DhcpOptions { get; set; }
/// <summary> The list of DNS servers IP addresses. </summary>
public IList<string> DhcpOptionsDnsServers
{
get
{
if (DhcpOptions is null)
DhcpOptions = new LogicalNetworkPropertiesDhcpOptions();
return DhcpOptions.DnsServers;
}
}
/// <summary> Subnet - list of subnets under the logical network. </summary>
public IList<Subnet> Subnets { get; }
/// <summary> Provisioning state of the logical network. </summary>
public ProvisioningStateEnum? ProvisioningState { get; }
/// <summary> name of the network switch to be used for VMs. </summary>
public string VmSwitchName { get; set; }
/// <summary> The observed state of logical networks. </summary>
public LogicalNetworkStatus Status { get; }
}
}