Skip to content

Commit 87b1070

Browse files
Merge pull request #6 from akshaysngupta/preview
Type related changes
2 parents 759c7da + 65de3d2 commit 87b1070

17 files changed

+38
-29
lines changed

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendHttpSettings/AzureApplicationGatewayBackendHttpSettingsBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class AzureApplicationGatewayBackendHttpSettingsBase : NetworkBaseCmdlet
5050
Mandatory = false,
5151
HelpMessage = "Request Timeout. Default value 30 seconds.")]
5252
[ValidateNotNullOrEmpty]
53-
public uint RequestTimeout { get; set; }
53+
public int RequestTimeout { get; set; }
5454

5555

5656
[Parameter(

src/ResourceManager/Network/Commands.Network/ApplicationGateway/ConnectionDraining/AzureApplicationGatewayConnectionDrainingBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class AzureApplicationGatewayConnectionDrainingBase : NetworkBaseCmdlet
2828
Mandatory = true,
2929
HelpMessage = "The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.")]
3030
[ValidateNotNullOrEmpty]
31-
public uint DrainTimeoutInSec { get; set; }
31+
public int DrainTimeoutInSec { get; set; }
3232

3333
public override void ExecuteCmdlet()
3434
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/HttpListener/AzureApplicationGatewayHttpListenerBase.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Network.Models;
16+
using System;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.Network
@@ -106,7 +107,15 @@ public PSApplicationGatewayHttpListener NewObject()
106107
httpListener.Name = this.Name;
107108
httpListener.Protocol = this.Protocol;
108109
httpListener.HostName = this.HostName;
109-
httpListener.RequireServerNameIndication = this.RequireServerNameIndication;
110+
111+
if(string.Equals(this.RequireServerNameIndication,"true", StringComparison.OrdinalIgnoreCase))
112+
{
113+
httpListener.RequireServerNameIndication = true;
114+
}
115+
else if(string.Equals(this.RequireServerNameIndication, "false", StringComparison.OrdinalIgnoreCase))
116+
{
117+
httpListener.RequireServerNameIndication = false;
118+
}
110119

111120
if (!string.IsNullOrEmpty(this.FrontendIPConfigurationId))
112121
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/Probe/AzureApplicationGatewayProbeConfigBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ public class AzureApplicationGatewayProbeConfigBase : NetworkBaseCmdlet
4949
Mandatory = true,
5050
HelpMessage = "Probe interval in seconds. This is the time interval between two consecutive probes")]
5151
[ValidateNotNullOrEmpty]
52-
public uint Interval { get; set; }
52+
public int Interval { get; set; }
5353

5454
[Parameter(
5555
Mandatory = true,
5656
HelpMessage = "Probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period")]
5757
[ValidateNotNullOrEmpty]
58-
public uint Timeout { get; set; }
58+
public int Timeout { get; set; }
5959

6060
[Parameter(
6161
Mandatory = true,
6262
HelpMessage = "Probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold")]
6363
[ValidateNotNullOrEmpty]
64-
public uint UnhealthyThreshold { get; set; }
64+
public int UnhealthyThreshold { get; set; }
6565

6666
[Parameter(
6767
Mandatory = false,
@@ -72,7 +72,7 @@ public class AzureApplicationGatewayProbeConfigBase : NetworkBaseCmdlet
7272
Mandatory = false,
7373
HelpMessage = "Minimum number of servers that are always marked healthy. Default value is 0")]
7474
[ValidateRange(0, int.MaxValue)]
75-
public uint MinServers { get; set; }
75+
public int MinServers { get; set; }
7676

7777
[Parameter(
7878
Mandatory = false,

src/ResourceManager/Network/Commands.Network/Common/NetworkResourceManagerProfile.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,18 +395,18 @@ public static void Initialize()
395395
});
396396
cfg.CreateMap<CNM.PSApplicationGatewayPathRule, MNM.ApplicationGatewayPathRule>();
397397
cfg.CreateMap<CNM.PSApplicationGatewayUrlPathMap, MNM.ApplicationGatewayUrlPathMap>();
398-
cfg.CreateMap<CNM.PSApplicationGatewayProbe, MNM.ApplicationGatewayProbe>();
399398
cfg.CreateMap<CNM.PSApplicationGatewayProbeHealthResponseMatch, MNM.ApplicationGatewayProbeHealthResponseMatch>();
399+
cfg.CreateMap<CNM.PSApplicationGatewayProbe, MNM.ApplicationGatewayProbe>();
400400
cfg.CreateMap<CNM.PSApplicationGatewayBackendAddress, MNM.ApplicationGatewayBackendAddress>();
401401
cfg.CreateMap<CNM.PSApplicationGatewayBackendAddressPool, MNM.ApplicationGatewayBackendAddressPool>();
402402
cfg.CreateMap<CNM.PSApplicationGatewayBackendHttpSettings, MNM.ApplicationGatewayBackendHttpSettings>();
403403
cfg.CreateMap<CNM.PSApplicationGatewayFrontendIPConfiguration, MNM.ApplicationGatewayFrontendIPConfiguration>();
404404
cfg.CreateMap<CNM.PSApplicationGatewayFrontendPort, MNM.ApplicationGatewayFrontendPort>();
405+
cfg.CreateMap<CNM.PSApplicationGatewaySslCertificate, MNM.ApplicationGatewaySslCertificate>();
405406
cfg.CreateMap<CNM.PSApplicationGatewayHttpListener, MNM.ApplicationGatewayHttpListener>();
406407
cfg.CreateMap<CNM.PSApplicationGatewayIPConfiguration, MNM.ApplicationGatewayIPConfiguration>();
407408
cfg.CreateMap<CNM.PSApplicationGatewayRequestRoutingRule, MNM.ApplicationGatewayRequestRoutingRule>();
408409
cfg.CreateMap<CNM.PSApplicationGatewayRedirectConfiguration, MNM.ApplicationGatewayRedirectConfiguration>();
409-
cfg.CreateMap<CNM.PSApplicationGatewaySslCertificate, MNM.ApplicationGatewaySslCertificate>();
410410
cfg.CreateMap<CNM.PSApplicationGatewayAuthenticationCertificate, MNM.ApplicationGatewayAuthenticationCertificate>();
411411
cfg.CreateMap<CNM.PSBackendAddressPool, MNM.BackendAddressPool>();
412412
cfg.CreateMap<CNM.PSApplicationGatewayBackendHealth, MNM.ApplicationGatewayBackendHealth>();
@@ -435,18 +435,18 @@ public static void Initialize()
435435
});
436436
cfg.CreateMap<MNM.ApplicationGatewayPathRule, CNM.PSApplicationGatewayPathRule>();
437437
cfg.CreateMap<MNM.ApplicationGatewayUrlPathMap, CNM.PSApplicationGatewayUrlPathMap>();
438-
cfg.CreateMap<MNM.ApplicationGatewayProbe, CNM.PSApplicationGatewayProbe>();
439438
cfg.CreateMap<MNM.ApplicationGatewayProbeHealthResponseMatch, CNM.PSApplicationGatewayProbeHealthResponseMatch>();
439+
cfg.CreateMap<MNM.ApplicationGatewayProbe, CNM.PSApplicationGatewayProbe>();
440440
cfg.CreateMap<MNM.ApplicationGatewayBackendAddress, CNM.PSApplicationGatewayBackendAddress>();
441441
cfg.CreateMap<MNM.ApplicationGatewayBackendAddressPool, CNM.PSApplicationGatewayBackendAddressPool>();
442442
cfg.CreateMap<MNM.ApplicationGatewayBackendHttpSettings, CNM.PSApplicationGatewayBackendHttpSettings>();
443443
cfg.CreateMap<MNM.ApplicationGatewayFrontendIPConfiguration, CNM.PSApplicationGatewayFrontendIPConfiguration>();
444+
cfg.CreateMap<MNM.ApplicationGatewaySslCertificate, CNM.PSApplicationGatewaySslCertificate>();
444445
cfg.CreateMap<MNM.ApplicationGatewayFrontendPort, CNM.PSApplicationGatewayFrontendPort>();
445446
cfg.CreateMap<MNM.ApplicationGatewayHttpListener, CNM.PSApplicationGatewayHttpListener>();
446447
cfg.CreateMap<MNM.ApplicationGatewayIPConfiguration, CNM.PSApplicationGatewayIPConfiguration>();
447448
cfg.CreateMap<MNM.ApplicationGatewayRequestRoutingRule, CNM.PSApplicationGatewayRequestRoutingRule>();
448449
cfg.CreateMap<MNM.ApplicationGatewayRedirectConfiguration, CNM.PSApplicationGatewayRedirectConfiguration>();
449-
cfg.CreateMap<MNM.ApplicationGatewaySslCertificate, CNM.PSApplicationGatewaySslCertificate>();
450450
cfg.CreateMap<MNM.ApplicationGatewayAuthenticationCertificate, CNM.PSApplicationGatewayAuthenticationCertificate>();
451451
cfg.CreateMap<MNM.BackendAddressPool, CNM.PSBackendAddressPool>();
452452
cfg.CreateMap<MNM.ApplicationGatewayBackendHealth, CNM.PSApplicationGatewayBackendHealth>();

src/ResourceManager/Network/Commands.Network/LocalNetworkGateway/NewAzureLocalNetworkGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class NewAzureLocalNetworkGatewayCommand : LocalNetworkGatewayBaseCmdlet
6666
Mandatory = false,
6767
ValueFromPipelineByPropertyName = true,
6868
HelpMessage = "The local network gateway's ASN")]
69-
public uint Asn { get; set; }
69+
public long Asn { get; set; }
7070

7171
[Parameter(
7272
Mandatory = false,

src/ResourceManager/Network/Commands.Network/LocalNetworkGateway/UpdateAzureLocalNetworkGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class SetAzureLocalNetworkGatewayCommand : LocalNetworkGatewayBaseCmdlet
4343
Mandatory = false,
4444
ValueFromPipelineByPropertyName = true,
4545
HelpMessage = "The local network gateway's ASN")]
46-
public uint Asn { get; set; }
46+
public long Asn { get; set; }
4747

4848
[Parameter(
4949
Mandatory = false,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class PSApplicationGatewayBackendHttpSettings : PSChildResource
2323
public int Port { get; set; }
2424
public string Protocol { get; set; }
2525
public string CookieBasedAffinity { get; set; }
26-
public uint RequestTimeout { get; set; }
26+
public int RequestTimeout { get; set; }
2727
public PSApplicationGatewayConnectionDraining ConnectionDraining { get; set; }
2828
public PSResourceId Probe { get; set; }
2929
public List<PSResourceId> AuthenticationCertificates { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ namespace Microsoft.Azure.Commands.Network.Models
1818
public class PSApplicationGatewayConnectionDraining
1919
{
2020
public bool Enabled { get; set; }
21-
public uint DrainTimeoutInSec { get; set; }
21+
public int DrainTimeoutInSec { get; set; }
2222
}
2323
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class PSApplicationGatewayHttpListener : PSChildResource
2424
public string Protocol { get; set; }
2525
public string HostName { get; set; }
2626
public PSResourceId SslCertificate { get; set; }
27-
public string RequireServerNameIndication { get; set; }
27+
public bool RequireServerNameIndication { get; set; }
2828
public string ProvisioningState { get; set; }
2929
public string Type { get; set; }
3030

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ public class PSApplicationGatewayProbe : PSChildResource
2222
public string Protocol { get; set; }
2323
public string Host { get; set; }
2424
public string Path { get; set; }
25-
public uint Interval { get; set; }
26-
public uint Timeout { get; set; }
27-
public uint UnhealthyThreshold { get; set; }
25+
public int? Interval { get; set; }
26+
public int? Timeout { get; set; }
27+
public int? UnhealthyThreshold { get; set; }
2828
public bool? PickHostNameFromBackendHttpSettings { get; set; }
29-
public uint? MinServers { get; set; }
29+
public int? MinServers { get; set; }
3030
public PSApplicationGatewayProbeHealthResponseMatch Match { get; set; }
3131
public string ProvisioningState { get; set; }
3232
public string Type { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ namespace Microsoft.Azure.Commands.Network.Models
1616
{
1717
public class PSConnectionResetSharedKey
1818
{
19-
public uint KeyLength { get; set; }
19+
public int KeyLength { get; set; }
2020
}
2121
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public class PSIpFlowVerify
2020
public string Direction { get; set; }
2121
public string LocalIPAddress { get; set; }
2222
public string LocalPort { get; set; }
23-
public uint Protocol { get; set; }
24-
public uint RemoteIPAddress { get; set; }
25-
public uint RemotePort { get; set; }
23+
public int Protocol { get; set; }
24+
public int RemoteIPAddress { get; set; }
25+
public int RemotePort { get; set; }
2626
public string TargetNicResourceId { get; set; }
2727
public string TargetResourceId { get; set; }
2828
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
public partial class PSVirtualNetworkUsage
44
{
55
public string Id { get; set; }
6-
public long CurrentValue { get; set; }
7-
public long Limit { get; set; }
6+
public double CurrentValue { get; set; }
7+
public double Limit { get; set; }
88
public string Unit { get; set; }
99
public PSUsageName Name { get; set; }
1010
}

src/ResourceManager/Network/Commands.Network/VirtualNetworkGateway/NewAzureVirtualNetworkGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public class NewAzureVirtualNetworkGatewayCommand : VirtualNetworkGatewayBaseCmd
133133
Mandatory = false,
134134
ValueFromPipelineByPropertyName = true,
135135
HelpMessage = "The virtual network gateway's ASN for BGP over VPN")]
136-
public uint Asn { get; set; }
136+
public long Asn { get; set; }
137137

138138
[Parameter(
139139
Mandatory = false,

src/ResourceManager/Network/Commands.Network/VirtualNetworkGateway/UpdateAzureVirtualNetworkGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class SetAzureVirtualNetworkGatewayCommand : VirtualNetworkGatewayBaseCmd
7676
Mandatory = false,
7777
ValueFromPipelineByPropertyName = true,
7878
HelpMessage = "The virtual network gateway's ASN, used to set up BGP sessions inside IPsec tunnels")]
79-
public uint Asn { get; set; }
79+
public long Asn { get; set; }
8080

8181
[Parameter(
8282
Mandatory = false,

src/ResourceManager/Network/Commands.Network/VirtualNetworkGatewayConnection/ResetAzureVirtualNetworkGatewayConnectionSharedKeyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class ResetAzureVirtualNetworkGatewayConnectionSharedKeyCommand : Virtual
4444
ValueFromPipelineByPropertyName = true,
4545
HelpMessage = "The virtual network connection reset shared key length")]
4646
[ValidateNotNullOrEmpty]
47-
public uint KeyLength { get; set; }
47+
public int KeyLength { get; set; }
4848

4949
[Parameter(
5050
Mandatory = false,

0 commit comments

Comments
 (0)