-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
DevTestLabSubnetOverride.cs
62 lines (55 loc) · 3.53 KB
/
DevTestLabSubnetOverride.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
// 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> Property overrides on a subnet of a virtual network. </summary>
public partial class DevTestLabSubnetOverride
{
/// <summary> Initializes a new instance of DevTestLabSubnetOverride. </summary>
public DevTestLabSubnetOverride()
{
}
/// <summary> Initializes a new instance of DevTestLabSubnetOverride. </summary>
/// <param name="resourceId"> The resource ID of the subnet. </param>
/// <param name="labSubnetName"> The name given to the subnet within the lab. </param>
/// <param name="useInVmCreationPermission"> Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). </param>
/// <param name="usePublicIPAddressPermission"> Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). </param>
/// <param name="sharedPublicIPAddressConfiguration"> Properties that virtual machines on this subnet will share. </param>
/// <param name="virtualNetworkPoolName"> The virtual network pool associated with this subnet. </param>
internal DevTestLabSubnetOverride(ResourceIdentifier resourceId, string labSubnetName, DevTestLabUsagePermissionType? useInVmCreationPermission, DevTestLabUsagePermissionType? usePublicIPAddressPermission, SubnetSharedPublicIPAddressConfiguration sharedPublicIPAddressConfiguration, string virtualNetworkPoolName)
{
ResourceId = resourceId;
LabSubnetName = labSubnetName;
UseInVmCreationPermission = useInVmCreationPermission;
UsePublicIPAddressPermission = usePublicIPAddressPermission;
SharedPublicIPAddressConfiguration = sharedPublicIPAddressConfiguration;
VirtualNetworkPoolName = virtualNetworkPoolName;
}
/// <summary> The resource ID of the subnet. </summary>
public ResourceIdentifier ResourceId { get; set; }
/// <summary> The name given to the subnet within the lab. </summary>
public string LabSubnetName { get; set; }
/// <summary> Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny). </summary>
public DevTestLabUsagePermissionType? UseInVmCreationPermission { get; set; }
/// <summary> Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny). </summary>
public DevTestLabUsagePermissionType? UsePublicIPAddressPermission { get; set; }
/// <summary> Properties that virtual machines on this subnet will share. </summary>
internal SubnetSharedPublicIPAddressConfiguration SharedPublicIPAddressConfiguration { get; set; }
/// <summary> Backend ports that virtual machines on this subnet are allowed to expose. </summary>
public IList<DevTestLabPort> SharedPublicIPAddressAllowedPorts
{
get
{
if (SharedPublicIPAddressConfiguration is null)
SharedPublicIPAddressConfiguration = new SubnetSharedPublicIPAddressConfiguration();
return SharedPublicIPAddressConfiguration.AllowedPorts;
}
}
/// <summary> The virtual network pool associated with this subnet. </summary>
public string VirtualNetworkPoolName { get; set; }
}
}