-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
UriPathMatchCondition.cs
53 lines (47 loc) · 2.47 KB
/
UriPathMatchCondition.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Cdn.Models
{
/// <summary> Defines the parameters for UrlPath match conditions. </summary>
public partial class UriPathMatchCondition
{
/// <summary> Initializes a new instance of UriPathMatchCondition. </summary>
/// <param name="conditionType"></param>
/// <param name="uriPathOperator"> Describes operator to be matched. </param>
public UriPathMatchCondition(UriPathMatchConditionType conditionType, UriPathOperator uriPathOperator)
{
ConditionType = conditionType;
UriPathOperator = uriPathOperator;
MatchValues = new ChangeTrackingList<string>();
Transforms = new ChangeTrackingList<PreTransformCategory>();
}
/// <summary> Initializes a new instance of UriPathMatchCondition. </summary>
/// <param name="conditionType"></param>
/// <param name="uriPathOperator"> Describes operator to be matched. </param>
/// <param name="negateCondition"> Describes if this is negate condition or not. </param>
/// <param name="matchValues"> The match value for the condition of the delivery rule. </param>
/// <param name="transforms"> List of transforms. </param>
internal UriPathMatchCondition(UriPathMatchConditionType conditionType, UriPathOperator uriPathOperator, bool? negateCondition, IList<string> matchValues, IList<PreTransformCategory> transforms)
{
ConditionType = conditionType;
UriPathOperator = uriPathOperator;
NegateCondition = negateCondition;
MatchValues = matchValues;
Transforms = transforms;
}
/// <summary> Gets or sets the condition type. </summary>
public UriPathMatchConditionType ConditionType { get; set; }
/// <summary> Describes operator to be matched. </summary>
public UriPathOperator UriPathOperator { get; set; }
/// <summary> Describes if this is negate condition or not. </summary>
public bool? NegateCondition { get; set; }
/// <summary> The match value for the condition of the delivery rule. </summary>
public IList<string> MatchValues { get; }
/// <summary> List of transforms. </summary>
public IList<PreTransformCategory> Transforms { get; }
}
}