-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ManagedRuleSetDefinition.cs
65 lines (58 loc) · 2.91 KB
/
ManagedRuleSetDefinition.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
63
64
65
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Cdn.Models
{
/// <summary> Describes a managed rule set definition. </summary>
public partial class ManagedRuleSetDefinition : ResourceData
{
/// <summary> Initializes a new instance of ManagedRuleSetDefinition. </summary>
public ManagedRuleSetDefinition()
{
RuleGroups = new ChangeTrackingList<ManagedRuleGroupDefinition>();
}
/// <summary> Initializes a new instance of ManagedRuleSetDefinition. </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="sku"> The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. </param>
/// <param name="provisioningState"> Provisioning state of the managed rule set. </param>
/// <param name="ruleSetType"> Type of the managed rule set. </param>
/// <param name="ruleSetVersion"> Version of the managed rule set type. </param>
/// <param name="ruleGroups"> Rule groups of the managed rule set. </param>
internal ManagedRuleSetDefinition(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CdnSku sku, string provisioningState, string ruleSetType, string ruleSetVersion, IReadOnlyList<ManagedRuleGroupDefinition> ruleGroups) : base(id, name, resourceType, systemData)
{
Sku = sku;
ProvisioningState = provisioningState;
RuleSetType = ruleSetType;
RuleSetVersion = ruleSetVersion;
RuleGroups = ruleGroups;
}
/// <summary> The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. </summary>
internal CdnSku Sku { get; set; }
/// <summary> Name of the pricing tier. </summary>
public CdnSkuName? SkuName
{
get => Sku is null ? default : Sku.Name;
set
{
if (Sku is null)
Sku = new CdnSku();
Sku.Name = value;
}
}
/// <summary> Provisioning state of the managed rule set. </summary>
public string ProvisioningState { get; }
/// <summary> Type of the managed rule set. </summary>
public string RuleSetType { get; }
/// <summary> Version of the managed rule set type. </summary>
public string RuleSetVersion { get; }
/// <summary> Rule groups of the managed rule set. </summary>
public IReadOnlyList<ManagedRuleGroupDefinition> RuleGroups { get; }
}
}