String Not Null or Empty Validators

This commit is contained in:
Wes Carroll
2019-04-16 22:46:21 -04:00
parent ed225024a6
commit 8ec3293ff4
31 changed files with 145 additions and 4 deletions
@@ -6,15 +6,18 @@ function Start-ZertoFailoverTest {
HelpMessage = "Name of VPG to failover test",
Mandatory = $true
)]
[ValidateNotNullOrEmpty()]
[string]$vpgName,
[Parameter(
HelpMessage = "The identifier of the checkpoint to use for testing. If unspecified, the latest checkpoint will be used."
)]
[ValidateNotNullOrEmpty()]
[Alias("checkpointId")]
[string]$checkpointIdentifier,
[Parameter(
HelpMessage = "The name(s) of the VMs within the selected VPG you wish to test. If unspecified, all VMs in the VPG will be tested."
)]
[ValidateNotNullOrEmpty()]
[string[]]$vmName
)