Skip to content

Commit 7ae15ff

Browse files
Update vnet gateway properties
1 parent 47e820c commit 7ae15ff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

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

+1-1
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 long Asn { get; set; }
69+
public uint Asn { get; set; }
7070

7171
[Parameter(
7272
Mandatory = false,

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

+1-1
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 long Asn { get; set; }
46+
public uint Asn { get; set; }
4747

4848
[Parameter(
4949
Mandatory = false,

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

+1-1
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 long Asn { get; set; }
136+
public uint Asn { get; set; }
137137

138138
[Parameter(
139139
Mandatory = false,

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

+1-1
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 long Asn { get; set; }
79+
public uint Asn { get; set; }
8080

8181
[Parameter(
8282
Mandatory = false,

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

+2-2
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 int KeyLength { get; set; }
47+
public uint KeyLength { get; set; }
4848

4949
[Parameter(
5050
Mandatory = false,
@@ -69,7 +69,7 @@ public override void Execute()
6969
private string ResetVirtualNetworkGatewayConnectionSharedKey()
7070
{
7171
var vnetGatewayConnectionSharedKey = new PSConnectionResetSharedKey();
72-
vnetGatewayConnectionSharedKey.KeyLength = KeyLength;
72+
vnetGatewayConnectionSharedKey.KeyLength = (int)KeyLength;
7373

7474
// Map to the sdk object
7575
var vnetGatewayConnectionSharedKeyModel = Mapper.Map<MNM.ConnectionResetSharedKey>(vnetGatewayConnectionSharedKey);

0 commit comments

Comments
 (0)