Skip to content

Commit 01d0588

Browse files
committed
Merge pull request #596 from DeepakRajendranMsft/ReorderChildOutput
Reorder child resource output
2 parents 9ad69a4 + 62c859e commit 01d0588

File tree

9 files changed

+66
-1
lines changed

9 files changed

+66
-1
lines changed

src/ResourceManager/Network/Commands.Network/Models/PSBackendAddressPool.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ namespace Microsoft.Azure.Commands.Network.Models
2121

2222
public class PSBackendAddressPool : PSChildResource
2323
{
24+
[JsonProperty(Order = 1)]
2425
public List<PSResourceId> BackendIpConfigurations { get; set; }
2526

27+
[JsonProperty(Order = 1)]
2628
public List<PSResourceId> LoadBalancingRules { get; set; }
2729

30+
[JsonProperty(Order = 1)]
2831
public string ProvisioningState { get; set; }
2932

3033
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSFrontendIpConfiguration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,25 @@ namespace Microsoft.Azure.Commands.Network.Models
2121

2222
public class PSFrontendIPConfiguration : PSChildResource
2323
{
24+
[JsonProperty(Order = 1)]
2425
public string PrivateIpAddress { get; set; }
2526

27+
[JsonProperty(Order = 1)]
2628
public string PrivateIpAllocationMethod { get; set; }
2729

30+
[JsonProperty(Order = 1)]
2831
public PSResourceId Subnet { get; set; }
2932

33+
[JsonProperty(Order = 1)]
3034
public PSResourceId PublicIpAddress { get; set; }
3135

36+
[JsonProperty(Order = 1)]
3237
public List<PSResourceId> InboundNatRules { get; set; }
3338

39+
[JsonProperty(Order = 1)]
3440
public List<PSResourceId> LoadBalancingRules { get; set; }
3541

42+
[JsonProperty(Order = 1)]
3643
public string ProvisioningState { get; set; }
3744

3845
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSInboundNatRule.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,28 @@ namespace Microsoft.Azure.Commands.Network.Models
1919

2020
public class PSInboundNatRule : PSChildResource
2121
{
22+
[JsonProperty(Order = 1)]
2223
public PSResourceId FrontendIPConfiguration { get; set; }
2324

25+
[JsonProperty(Order = 1)]
2426
public PSResourceId BackendIPConfiguration { get; set; }
2527

28+
[JsonProperty(Order = 1)]
2629
public string Protocol { get; set; }
2730

31+
[JsonProperty(Order = 1)]
2832
public int FrontendPort { get; set; }
2933

34+
[JsonProperty(Order = 1)]
3035
public int BackendPort { get; set; }
3136

37+
[JsonProperty(Order = 1)]
3238
public int? IdleTimeoutInMinutes { get; set; }
3339

40+
[JsonProperty(Order = 1)]
3441
public bool EnableFloatingIP { get; set; }
3542

43+
[JsonProperty(Order = 1)]
3644
public string ProvisioningState { get; set; }
3745

3846
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSLoadBalancingRule.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,34 @@ namespace Microsoft.Azure.Commands.Network.Models
1919

2020
public class PSLoadBalancingRule : PSChildResource
2121
{
22+
[JsonProperty(Order = 1)]
2223
public PSResourceId FrontendIPConfiguration { get; set; }
2324

25+
[JsonProperty(Order = 1)]
2426
public PSResourceId BackendAddressPool { get; set; }
2527

28+
[JsonProperty(Order = 1)]
2629
public PSResourceId Probe { get; set; }
2730

31+
[JsonProperty(Order = 1)]
2832
public string Protocol { get; set; }
2933

34+
[JsonProperty(Order = 1)]
3035
public int FrontendPort { get; set; }
3136

37+
[JsonProperty(Order = 1)]
3238
public int BackendPort { get; set; }
3339

40+
[JsonProperty(Order = 1)]
3441
public int? IdleTimeoutInMinutes { get; set; }
3542

43+
[JsonProperty(Order = 1)]
3644
public string LoadDistribution { get; set; }
3745

46+
[JsonProperty(Order = 1)]
3847
public bool EnableFloatingIP { get; set; }
3948

49+
[JsonProperty(Order = 1)]
4050
public string ProvisioningState { get; set; }
4151

4252
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSNetworkInterfaceIpConfiguration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,25 @@ namespace Microsoft.Azure.Commands.Network.Models
2020

2121
public class PSNetworkInterfaceIpConfiguration : PSChildResource
2222
{
23+
[JsonProperty(Order = 1)]
2324
public string PrivateIpAddress { get; set; }
2425

26+
[JsonProperty(Order = 1)]
2527
public string PrivateIpAllocationMethod { get; set; }
2628

29+
[JsonProperty(Order = 1)]
2730
public PSResourceId Subnet { get; set; }
2831

32+
[JsonProperty(Order = 1)]
2933
public PSResourceId PublicIpAddress { get; set; }
3034

35+
[JsonProperty(Order = 1)]
3136
public List<PSResourceId> LoadBalancerBackendAddressPools { get; set; }
3237

38+
[JsonProperty(Order = 1)]
3339
public List<PSResourceId> LoadBalancerInboundNatRules { get; set; }
3440

41+
[JsonProperty(Order = 1)]
3542
public string ProvisioningState { get; set; }
3643

3744
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSProbe.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,25 @@ namespace Microsoft.Azure.Commands.Network.Models
2121

2222
public class PSProbe : PSChildResource
2323
{
24+
[JsonProperty(Order = 1)]
2425
public List<PSResourceId> LoadBalancingRules { get; set; }
2526

27+
[JsonProperty(Order = 1)]
2628
public string Protocol { get; set; }
2729

30+
[JsonProperty(Order = 1)]
2831
public int Port { get; set; }
2932

33+
[JsonProperty(Order = 1)]
3034
public int IntervalInSeconds { get; set; }
3135

36+
[JsonProperty(Order = 1)]
3237
public int NumberOfProbes { get; set; }
3338

39+
[JsonProperty(Order = 1)]
3440
public string RequestPath { get; set; }
3541

42+
[JsonProperty(Order = 1)]
3643
public string ProvisioningState { get; set; }
3744

3845
[JsonIgnore]

src/ResourceManager/Network/Commands.Network/Models/PSRoute.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@
1515

1616
namespace Microsoft.Azure.Commands.Network.Models
1717
{
18+
using Newtonsoft.Json;
19+
1820
public class PSRoute : PSChildResource
1921
{
22+
[JsonProperty(Order = 1)]
2023
public string AddressPrefix { get; set; }
21-
24+
25+
[JsonProperty(Order = 1)]
2226
public string NextHopType { get; set; }
2327

28+
[JsonProperty(Order = 1)]
2429
public string NextHopIpAddress { get; set; }
2530

31+
[JsonProperty(Order = 1)]
2632
public string ProvisioningState { get; set; }
2733
}
2834
}

src/ResourceManager/Network/Commands.Network/Models/PSSecurityRule.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,38 @@
1515

1616
namespace Microsoft.Azure.Commands.Network.Models
1717
{
18+
using Newtonsoft.Json;
19+
1820
public class PSSecurityRule : PSChildResource
1921
{
22+
[JsonProperty(Order = 1)]
2023
public string Description { get; set; }
2124

25+
[JsonProperty(Order = 1)]
2226
public string Protocol { get; set; }
2327

28+
[JsonProperty(Order = 1)]
2429
public string SourcePortRange { get; set; }
2530

31+
[JsonProperty(Order = 1)]
2632
public string DestinationPortRange { get; set; }
2733

34+
[JsonProperty(Order = 1)]
2835
public string SourceAddressPrefix { get; set; }
2936

37+
[JsonProperty(Order = 1)]
3038
public string DestinationAddressPrefix { get; set; }
3139

40+
[JsonProperty(Order = 1)]
3241
public string Access { get; set; }
3342

43+
[JsonProperty(Order = 1)]
3444
public int Priority { get; set; }
3545

46+
[JsonProperty(Order = 1)]
3647
public string Direction { get; set; }
3748

49+
[JsonProperty(Order = 1)]
3850
public string ProvisioningState { get; set; }
3951
}
4052
}

src/ResourceManager/Network/Commands.Network/Models/PSSubnet.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,19 @@ namespace Microsoft.Azure.Commands.Network.Models
2020

2121
public class PSSubnet : PSChildResource
2222
{
23+
[JsonProperty(Order = 1)]
2324
public string AddressPrefix { get; set; }
2425

26+
[JsonProperty(Order = 1)]
2527
public List<PSResourceId> IpConfigurations { get; set; }
2628

29+
[JsonProperty(Order = 1)]
2730
public PSResourceId NetworkSecurityGroup { get; set; }
2831

32+
[JsonProperty(Order = 1)]
2933
public PSResourceId RouteTable { get; set; }
3034

35+
[JsonProperty(Order = 1)]
3136
public string ProvisioningState { get; set; }
3237

3338
[JsonIgnore]

0 commit comments

Comments
 (0)