-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AdaptiveNetworkHardeningData.cs
48 lines (42 loc) · 2.5 KB
/
AdaptiveNetworkHardeningData.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
// 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;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.SecurityCenter.Models;
namespace Azure.ResourceManager.SecurityCenter
{
/// <summary> A class representing the AdaptiveNetworkHardening data model. </summary>
public partial class AdaptiveNetworkHardeningData : ResourceData
{
/// <summary> Initializes a new instance of AdaptiveNetworkHardeningData. </summary>
public AdaptiveNetworkHardeningData()
{
Rules = new ChangeTrackingList<RecommendedSecurityRule>();
EffectiveNetworkSecurityGroups = new ChangeTrackingList<EffectiveNetworkSecurityGroups>();
}
/// <summary> Initializes a new instance of AdaptiveNetworkHardeningData. </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="rules"> The security rules which are recommended to be effective on the VM. </param>
/// <param name="rulesCalculatedOn"> The UTC time on which the rules were calculated. </param>
/// <param name="effectiveNetworkSecurityGroups"> The Network Security Groups effective on the network interfaces of the protected resource. </param>
internal AdaptiveNetworkHardeningData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList<RecommendedSecurityRule> rules, DateTimeOffset? rulesCalculatedOn, IList<EffectiveNetworkSecurityGroups> effectiveNetworkSecurityGroups) : base(id, name, resourceType, systemData)
{
Rules = rules;
RulesCalculatedOn = rulesCalculatedOn;
EffectiveNetworkSecurityGroups = effectiveNetworkSecurityGroups;
}
/// <summary> The security rules which are recommended to be effective on the VM. </summary>
public IList<RecommendedSecurityRule> Rules { get; }
/// <summary> The UTC time on which the rules were calculated. </summary>
public DateTimeOffset? RulesCalculatedOn { get; set; }
/// <summary> The Network Security Groups effective on the network interfaces of the protected resource. </summary>
public IList<EffectiveNetworkSecurityGroups> EffectiveNetworkSecurityGroups { get; }
}
}