Skip to content

Commit

Permalink
Merge pull request #27 from AzCiS/sanmah
Browse files Browse the repository at this point in the history
Setting correct parameters as mandatory and reordering them.
  • Loading branch information
parvezah committed Mar 24, 2015
2 parents e93d2d2 + 489c835 commit a97cd9f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public class StartAzureStorSimpleBackupCloneJob : StorSimpleCmdletBase
[Parameter(Mandatory = true, Position = 3, ValueFromPipeline = true, HelpMessage = StorSimpleCmdletHelpMessage.SnapshotToClone)]
[ValidateNotNull]
public Snapshot Snapshot { get; set; }

[Parameter(Mandatory = true, Position = 4, HelpMessage = StorSimpleCmdletHelpMessage.CloneVolumeName)]
[ValidateNotNullOrEmpty]
public string CloneVolumeName { get; set; }

[Parameter(Mandatory = false, Position = 4, ValueFromPipeline = true, HelpMessage = StorSimpleCmdletHelpMessage.VolumeAcrList)]
[Parameter(Mandatory = false, Position = 5, ValueFromPipeline = true, HelpMessage = StorSimpleCmdletHelpMessage.VolumeAcrList)]
[ValidateNotNull]
public List<AccessControlRecord> TargetAccessControlRecords { get; set; }

[Parameter(Mandatory = false, Position = 5, HelpMessage = StorSimpleCmdletHelpMessage.CloneVolumeName)]
[ValidateNotNullOrEmpty]
public string CloneVolumeName { get; set; }

[Parameter(Mandatory = false, Position = 6, HelpMessage = StorSimpleCmdletHelpMessage.Force)]
public SwitchParameter Force { get; set; }

Expand Down

0 comments on commit a97cd9f

Please sign in to comment.