Skip to content

Commit dc84ff3

Browse files
committed
Mark parameter names as mandatory
1 parent 52b12b7 commit dc84ff3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class GetAzureRmVirtualNetworkGatewayConnectionVpnDeviceConfigScript : Vi
2727
{
2828
[Alias("ResourceName")]
2929
[Parameter(
30-
Mandatory = false,
30+
Mandatory = true,
3131
ValueFromPipelineByPropertyName = true,
3232
HelpMessage = "The resource name of the connection for which the configuration is to be generated.")]
3333
[ValidateNotNullOrEmpty]
@@ -41,21 +41,21 @@ public class GetAzureRmVirtualNetworkGatewayConnectionVpnDeviceConfigScript : Vi
4141
public virtual string ResourceGroupName { get; set; }
4242

4343
[Parameter(
44-
Mandatory = false,
44+
Mandatory = true,
4545
ValueFromPipelineByPropertyName = true,
4646
HelpMessage = "Name of the VPN device vendor.")]
4747
[ValidateNotNullOrEmpty]
4848
public string DeviceVendor { get; set; }
4949

5050
[Parameter(
51-
Mandatory = false,
51+
Mandatory = true,
5252
ValueFromPipelineByPropertyName = true,
5353
HelpMessage = "Name of the VPN device model/family.")]
5454
[ValidateNotNullOrEmpty]
5555
public string DeviceFamily { get; set; }
5656

5757
[Parameter(
58-
Mandatory = false,
58+
Mandatory = true,
5959
ValueFromPipelineByPropertyName = true,
6060
HelpMessage = "Firmware version of the VPN device.")]
6161
[ValidateNotNullOrEmpty]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class GetAzureRmVirtualNetworkGatewaySupportedVpnDevice : VirtualNetworkG
2222
{
2323
[Alias("ResourceName")]
2424
[Parameter(
25-
Mandatory = false,
25+
Mandatory = true,
2626
ValueFromPipelineByPropertyName = true,
2727
HelpMessage = "The resource name.")]
2828
[ValidateNotNullOrEmpty]

0 commit comments

Comments
 (0)