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,19 +6,23 @@ function Start-ZertoCloneVpg {
HelpMessage = "Name of the VPG you wish to clone.",
Mandatory = $true
)]
[ValidateNotNullOrEmpty()]
[string]$vpgName,
[Parameter(
HelpMessage = "The identifier of the checkpoint to use for cloning. If unspecified, the latest checkpoint will be used."
)]
[ValidateNotNullOrEmpty()]
[Alias("checkpointId")]
[string]$checkpointIdentifier,
[Parameter(
HelpMessage = "The datastore name where the clone is to be created. If unspecified, will auto select the datastore with the most free space."
)]
[ValidateNotNullOrEmpty()]
[string]$datastoreName,
[Parameter(
HelpMessage = "The name(s) of the VMs you wish to clone. If unspecified, all VMs in the VPG will be cloned."
)]
[ValidateNotNullOrEmpty()]
[string[]]$vmName
)