-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VirtualNetworkResourceSettings.cs
75 lines (68 loc) · 3.67 KB
/
VirtualNetworkResourceSettings.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;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Migrate.Models
{
/// <summary> Defines the virtual network resource settings. </summary>
public partial class VirtualNetworkResourceSettings : ResourceSettings
{
/// <summary> Initializes a new instance of VirtualNetworkResourceSettings. </summary>
/// <param name="targetResourceName"> Gets or sets the target Resource name. </param>
/// <exception cref="ArgumentNullException"> <paramref name="targetResourceName"/> is null. </exception>
public VirtualNetworkResourceSettings(string targetResourceName) : base(targetResourceName)
{
if (targetResourceName == null)
{
throw new ArgumentNullException(nameof(targetResourceName));
}
Tags = new ChangeTrackingDictionary<string, string>();
AddressSpace = new ChangeTrackingList<string>();
DnsServers = new ChangeTrackingList<string>();
Subnets = new ChangeTrackingList<SubnetResourceSettings>();
ResourceType = "Microsoft.Network/virtualNetworks";
}
/// <summary> Initializes a new instance of VirtualNetworkResourceSettings. </summary>
/// <param name="resourceType"> The resource type. For example, the value can be Microsoft.Compute/virtualMachines. </param>
/// <param name="targetResourceName"> Gets or sets the target Resource name. </param>
/// <param name="tags"> Gets or sets the Resource tags. </param>
/// <param name="enableDdosProtection">
/// Gets or sets a value indicating whether gets or sets whether the
/// DDOS protection should be switched on.
/// </param>
/// <param name="addressSpace"> Gets or sets the address prefixes for the virtual network. </param>
/// <param name="dnsServers">
/// Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
/// deployed in the virtual network.
/// </param>
/// <param name="subnets"> Gets or sets List of subnets in a VirtualNetwork. </param>
internal VirtualNetworkResourceSettings(string resourceType, string targetResourceName, IDictionary<string, string> tags, bool? enableDdosProtection, IList<string> addressSpace, IList<string> dnsServers, IList<SubnetResourceSettings> subnets) : base(resourceType, targetResourceName)
{
Tags = tags;
EnableDdosProtection = enableDdosProtection;
AddressSpace = addressSpace;
DnsServers = dnsServers;
Subnets = subnets;
ResourceType = resourceType ?? "Microsoft.Network/virtualNetworks";
}
/// <summary> Gets or sets the Resource tags. </summary>
public IDictionary<string, string> Tags { get; }
/// <summary>
/// Gets or sets a value indicating whether gets or sets whether the
/// DDOS protection should be switched on.
/// </summary>
public bool? EnableDdosProtection { get; set; }
/// <summary> Gets or sets the address prefixes for the virtual network. </summary>
public IList<string> AddressSpace { get; }
/// <summary>
/// Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
/// deployed in the virtual network.
/// </summary>
public IList<string> DnsServers { get; }
/// <summary> Gets or sets List of subnets in a VirtualNetwork. </summary>
public IList<SubnetResourceSettings> Subnets { get; }
}
}