-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
ConnectionFromIPNotAllowed.cs
46 lines (39 loc) · 2.51 KB
/
ConnectionFromIPNotAllowed.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
// 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.SecurityCenter.Models
{
/// <summary> Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation. </summary>
public partial class ConnectionFromIPNotAllowed : AllowlistCustomAlertRule
{
/// <summary> Initializes a new instance of <see cref="ConnectionFromIPNotAllowed"/>. </summary>
/// <param name="isEnabled"> Status of the custom alert. </param>
/// <param name="allowlistValues"> The values to allow. The format of the values depends on the rule type. </param>
/// <exception cref="ArgumentNullException"> <paramref name="allowlistValues"/> is null. </exception>
public ConnectionFromIPNotAllowed(bool isEnabled, IEnumerable<string> allowlistValues) : base(isEnabled, allowlistValues)
{
Argument.AssertNotNull(allowlistValues, nameof(allowlistValues));
RuleType = "ConnectionFromIpNotAllowed";
}
/// <summary> Initializes a new instance of <see cref="ConnectionFromIPNotAllowed"/>. </summary>
/// <param name="displayName"> The display name of the custom alert. </param>
/// <param name="description"> The description of the custom alert. </param>
/// <param name="isEnabled"> Status of the custom alert. </param>
/// <param name="ruleType"> The type of the custom alert rule. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="valueType"> The value type of the items in the list. </param>
/// <param name="allowlistValues"> The values to allow. The format of the values depends on the rule type. </param>
internal ConnectionFromIPNotAllowed(string displayName, string description, bool isEnabled, string ruleType, IDictionary<string, BinaryData> serializedAdditionalRawData, SecurityValueType? valueType, IList<string> allowlistValues) : base(displayName, description, isEnabled, ruleType, serializedAdditionalRawData, valueType, allowlistValues)
{
RuleType = ruleType ?? "ConnectionFromIpNotAllowed";
}
/// <summary> Initializes a new instance of <see cref="ConnectionFromIPNotAllowed"/> for deserialization. </summary>
internal ConnectionFromIPNotAllowed()
{
}
}
}