@@ -21,40 +21,40 @@ namespace Microsoft.Azure.Commands.Network.Models
21
21
public class PSAzureFirewallPolicyApplicationRule : PSAzureFirewallPolicyRule
22
22
{
23
23
24
- [ JsonProperty ( Order = 3 ) ]
25
- public List < string > sourceAddresses { get ; set ; }
24
+ [ JsonProperty ( Order = 3 , PropertyName = "sourceAddresses" ) ]
25
+ public List < string > SourceAddresses { get ; set ; }
26
26
27
- [ JsonProperty ( Order = 4 ) ]
28
- public List < string > targetFqdns { get ; set ; }
27
+ [ JsonProperty ( Order = 4 , PropertyName = "targetFqdns" ) ]
28
+ public List < string > TargetFqdns { get ; set ; }
29
29
30
- [ JsonProperty ( Order = 5 ) ]
31
- public List < string > fqdnTags { get ; set ; }
30
+ [ JsonProperty ( Order = 5 , PropertyName = "fqdnTags" ) ]
31
+ public List < string > FqdnTags { get ; set ; }
32
32
33
- [ JsonProperty ( Order = 6 ) ]
34
- public List < PSAzureFirewallPolicyApplicationRuleProtocol > protocols { get ; set ; }
33
+ [ JsonProperty ( Order = 6 , PropertyName = "protocols" ) ]
34
+ public List < PSAzureFirewallPolicyApplicationRuleProtocol > Protocols { get ; set ; }
35
35
36
36
[ JsonIgnore ]
37
37
public string ProtocolsText
38
38
{
39
- get { return JsonConvert . SerializeObject ( protocols , Formatting . Indented ) ; }
39
+ get { return JsonConvert . SerializeObject ( Protocols , Formatting . Indented ) ; }
40
40
}
41
41
42
42
[ JsonIgnore ]
43
43
public string SourceAddressesText
44
44
{
45
- get { return JsonConvert . SerializeObject ( sourceAddresses , Formatting . Indented ) ; }
45
+ get { return JsonConvert . SerializeObject ( SourceAddresses , Formatting . Indented ) ; }
46
46
}
47
47
48
48
[ JsonIgnore ]
49
49
public string TargetFqdnsText
50
50
{
51
- get { return JsonConvert . SerializeObject ( targetFqdns , Formatting . Indented ) ; }
51
+ get { return JsonConvert . SerializeObject ( TargetFqdns , Formatting . Indented ) ; }
52
52
}
53
53
54
54
[ JsonIgnore ]
55
55
public string FqdnTagsText
56
56
{
57
- get { return JsonConvert . SerializeObject ( fqdnTags , Formatting . Indented ) ; }
57
+ get { return JsonConvert . SerializeObject ( FqdnTags , Formatting . Indented ) ; }
58
58
}
59
59
60
60
public void AddProtocol ( string protocolType , uint port = 0 )
@@ -63,7 +63,7 @@ public void AddProtocol(string protocolType, uint port = 0)
63
63
64
64
var protocol = PSAzureFirewallPolicyApplicationRuleProtocol . MapUserInputToApplicationRuleProtocol ( stringToMap ) ;
65
65
66
- ( this . protocols ?? ( this . protocols = new List < PSAzureFirewallPolicyApplicationRuleProtocol > ( ) ) ) . Add ( protocol ) ;
66
+ ( this . Protocols ?? ( this . Protocols = new List < PSAzureFirewallPolicyApplicationRuleProtocol > ( ) ) ) . Add ( protocol ) ;
67
67
}
68
68
}
69
69
}
0 commit comments