| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Network.Models |
| | 11 | | { |
| | 12 | | /// <summary> Defines a managed rule group override setting. </summary> |
| | 13 | | public partial class ManagedRuleOverride |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ManagedRuleOverride. </summary> |
| | 16 | | /// <param name="ruleId"> Identifier for the managed rule. </param> |
| 0 | 17 | | public ManagedRuleOverride(string ruleId) |
| | 18 | | { |
| 0 | 19 | | if (ruleId == null) |
| | 20 | | { |
| 0 | 21 | | throw new ArgumentNullException(nameof(ruleId)); |
| | 22 | | } |
| | 23 | |
|
| 0 | 24 | | RuleId = ruleId; |
| 0 | 25 | | State = "Disabled"; |
| 0 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of ManagedRuleOverride. </summary> |
| | 29 | | /// <param name="ruleId"> Identifier for the managed rule. </param> |
| | 30 | | /// <param name="state"> The state of the managed rule. Defaults to Disabled if not specified. </param> |
| 0 | 31 | | internal ManagedRuleOverride(string ruleId, string state) |
| | 32 | | { |
| 0 | 33 | | RuleId = ruleId; |
| 0 | 34 | | State = state; |
| 0 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> Identifier for the managed rule. </summary> |
| 0 | 38 | | public string RuleId { get; set; } |
| | 39 | | /// <summary> The state of the managed rule. Defaults to Disabled if not specified. </summary> |
| 0 | 40 | | public string State { get; set; } |
| | 41 | | } |
| | 42 | | } |