Skip to content

Commit 41f9854

Browse files
test pcase
1 parent 160ff3e commit 41f9854

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/Network/Network/AzureFirewallPolicy/ApplicationRuleCondition/NewAzureFirewallPolicyApplicationRuleCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public override void Execute()
7777
var applicationRule = new PSAzureFirewallPolicyApplicationRule
7878
{
7979
name = this.Name,
80-
sourceAddresses = this.SourceAddress?.ToList(),
81-
protocols = protocolsAsWeExpectThem,
82-
targetFqdns = this.TargetFqdn?.ToList(),
83-
fqdnTags = this.FqdnTag?.ToList(),
80+
SourceAddresses = this.SourceAddress?.ToList(),
81+
Protocols = protocolsAsWeExpectThem,
82+
TargetFqdns = this.TargetFqdn?.ToList(),
83+
FqdnTags = this.FqdnTag?.ToList(),
8484
ruleType = "ApplicationRuleCondition"
8585
};
8686
WriteObject(applicationRule);

src/Network/Network/Models/AzureFirewallPolicy/PSAzureFirewallPolicyApplicationRule.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,40 @@ namespace Microsoft.Azure.Commands.Network.Models
2121
public class PSAzureFirewallPolicyApplicationRule : PSAzureFirewallPolicyRule
2222
{
2323

24-
[JsonProperty(Order = 3)]
25-
public List<string> sourceAddresses { get; set; }
24+
[JsonProperty(Order = 3, PropertyName = "sourceAddresses")]
25+
public List<string> SourceAddresses { get; set; }
2626

27-
[JsonProperty(Order = 4)]
28-
public List<string> targetFqdns { get; set; }
27+
[JsonProperty(Order = 4, PropertyName = "targetFqdns")]
28+
public List<string> TargetFqdns { get; set; }
2929

30-
[JsonProperty(Order = 5)]
31-
public List<string> fqdnTags { get; set; }
30+
[JsonProperty(Order = 5, PropertyName = "fqdnTags")]
31+
public List<string> FqdnTags { get; set; }
3232

33-
[JsonProperty(Order = 6)]
34-
public List<PSAzureFirewallPolicyApplicationRuleProtocol> protocols { get; set; }
33+
[JsonProperty(Order = 6, PropertyName = "protocols")]
34+
public List<PSAzureFirewallPolicyApplicationRuleProtocol> Protocols { get; set; }
3535

3636
[JsonIgnore]
3737
public string ProtocolsText
3838
{
39-
get { return JsonConvert.SerializeObject(protocols, Formatting.Indented); }
39+
get { return JsonConvert.SerializeObject(Protocols, Formatting.Indented); }
4040
}
4141

4242
[JsonIgnore]
4343
public string SourceAddressesText
4444
{
45-
get { return JsonConvert.SerializeObject(sourceAddresses, Formatting.Indented); }
45+
get { return JsonConvert.SerializeObject(SourceAddresses, Formatting.Indented); }
4646
}
4747

4848
[JsonIgnore]
4949
public string TargetFqdnsText
5050
{
51-
get { return JsonConvert.SerializeObject(targetFqdns, Formatting.Indented); }
51+
get { return JsonConvert.SerializeObject(TargetFqdns, Formatting.Indented); }
5252
}
5353

5454
[JsonIgnore]
5555
public string FqdnTagsText
5656
{
57-
get { return JsonConvert.SerializeObject(fqdnTags, Formatting.Indented); }
57+
get { return JsonConvert.SerializeObject(FqdnTags, Formatting.Indented); }
5858
}
5959

6060
public void AddProtocol(string protocolType, uint port = 0)
@@ -63,7 +63,7 @@ public void AddProtocol(string protocolType, uint port = 0)
6363

6464
var protocol = PSAzureFirewallPolicyApplicationRuleProtocol.MapUserInputToApplicationRuleProtocol(stringToMap);
6565

66-
(this.protocols ?? (this.protocols = new List<PSAzureFirewallPolicyApplicationRuleProtocol>())).Add(protocol);
66+
(this.Protocols ?? (this.Protocols = new List<PSAzureFirewallPolicyApplicationRuleProtocol>())).Add(protocol);
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)