Skip to content

Commit e8359f0

Browse files
committed
Adding positional Params for GetPolicyObjects
1 parent 7ec00ca commit e8359f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesBackupRetentionPolicyObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
2626
[Cmdlet(VerbsCommon.Get, "AzureRmRecoveryServicesBackupRetentionPolicyObject"), OutputType(typeof(AzureRmRecoveryServicesBackupRetentionPolicyBase))]
2727
public class GetAzureRmRecoveryServicesBackupRetentionPolicyObject : RecoveryServicesBackupCmdletBase
2828
{
29-
[Parameter(Mandatory = true, HelpMessage = ParamHelpMsg.Common.WorkloadType)]
29+
[Parameter(Mandatory = true, Position = 0, HelpMessage = ParamHelpMsg.Common.WorkloadType)]
3030
[ValidateNotNullOrEmpty]
3131
public WorkloadType WorkloadType { get; set; }
3232

33-
[Parameter(Mandatory = false, HelpMessage = ParamHelpMsg.Common.BackupManagementType)]
33+
[Parameter(Mandatory = false, Position = 1, HelpMessage = ParamHelpMsg.Common.BackupManagementType)]
3434
[ValidateNotNullOrEmpty]
3535
public BackupManagementType? BackupManagementType { get; set; }
3636

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/Cmdlets/ProtectionPolicy/GetAzureRmRecoveryServicesSchedulePolicyObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
2626
[Cmdlet(VerbsCommon.Get, "AzureRmRecoveryServicesBackupSchedulePolicyObject"), OutputType(typeof(AzureRmRecoveryServicesBackupSchedulePolicyBase))]
2727
public class GetAzureRmRecoveryServicesBackupSchedulePolicyObject : RecoveryServicesBackupCmdletBase
2828
{
29-
[Parameter(Mandatory = true, HelpMessage = ParamHelpMsg.Common.WorkloadType)]
29+
[Parameter(Mandatory = true, Position = 0, HelpMessage = ParamHelpMsg.Common.WorkloadType)]
3030
[ValidateNotNullOrEmpty]
3131
public WorkloadType WorkloadType { get; set; }
3232

33-
[Parameter(Mandatory = false, HelpMessage = ParamHelpMsg.Common.BackupManagementType)]
33+
[Parameter(Mandatory = false, Position = 1, HelpMessage = ParamHelpMsg.Common.BackupManagementType)]
3434
[ValidateNotNullOrEmpty]
3535
public BackupManagementType? BackupManagementType { get; set; }
3636

0 commit comments

Comments
 (0)