-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
LoggingRule.cs
52 lines (45 loc) · 1.97 KB
/
LoggingRule.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ProviderHub.Models
{
/// <summary> The LoggingRule. </summary>
public partial class LoggingRule
{
/// <summary> Initializes a new instance of <see cref="LoggingRule"/>. </summary>
/// <param name="action"></param>
/// <param name="direction"></param>
/// <param name="detailLevel"></param>
/// <exception cref="ArgumentNullException"> <paramref name="action"/> is null. </exception>
public LoggingRule(string action, LoggingDirection direction, LoggingDetail detailLevel)
{
Argument.AssertNotNull(action, nameof(action));
Action = action;
Direction = direction;
DetailLevel = detailLevel;
}
/// <summary> Initializes a new instance of <see cref="LoggingRule"/>. </summary>
/// <param name="action"></param>
/// <param name="direction"></param>
/// <param name="detailLevel"></param>
/// <param name="hiddenPropertyPaths"></param>
internal LoggingRule(string action, LoggingDirection direction, LoggingDetail detailLevel, LoggingHiddenPropertyPaths hiddenPropertyPaths)
{
Action = action;
Direction = direction;
DetailLevel = detailLevel;
HiddenPropertyPaths = hiddenPropertyPaths;
}
/// <summary> Gets or sets the action. </summary>
public string Action { get; set; }
/// <summary> Gets or sets the direction. </summary>
public LoggingDirection Direction { get; set; }
/// <summary> Gets or sets the detail level. </summary>
public LoggingDetail DetailLevel { get; set; }
/// <summary> Gets or sets the hidden property paths. </summary>
public LoggingHiddenPropertyPaths HiddenPropertyPaths { get; set; }
}
}