Skip to content

Commit c96d190

Browse files
committed
fix analysis issue, remove progress action
1 parent 0bf2cfb commit c96d190

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

src/RecoveryServices/RecoveryServices.Backup/Cmdlets/Item/RedoAzureRmRecoveryServicesBackupProtection.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,13 @@
1414

1515
using Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models;
1616
using Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ProviderModel;
17-
using Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS;
1817
using Microsoft.Azure.Commands.RecoveryServices.Backup.Helpers;
1918
using Microsoft.Azure.Commands.RecoveryServices.Backup.Properties;
2019
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
21-
using Microsoft.Rest.Azure.OData;
22-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2320
using Newtonsoft.Json;
2421
using System;
2522
using System.Collections.Generic;
26-
using System.Linq;
2723
using System.Management.Automation;
28-
using ServiceClientModel = Microsoft.Azure.Management.RecoveryServices.Backup.Models;
29-
3024

3125
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
3226
{
@@ -49,7 +43,7 @@ public class RedoAzureRmRecoveryServicesBackupProtection : RSBackupVaultCmdletBa
4943
[ValidateNotNullOrEmpty]
5044
public PolicyBase TargetPolicy { get; set; }
5145

52-
[Parameter(Position = 4, Mandatory = false, HelpMessage = ParamHelpMsgs.Item.SuspendBackupOption)]
46+
[Parameter(Mandatory = false, HelpMessage = ParamHelpMsgs.Item.SuspendBackupOption)]
5347
public SwitchParameter RetainRecoveryPointsAsPerPolicy { get; set; }
5448

5549
[Parameter(Mandatory = false, HelpMessage = ParamHelpMsgs.ResourceGuard.AuxiliaryAccessToken, ValueFromPipeline = false)]

src/RecoveryServices/RecoveryServices/help/Redo-AzRecoveryServicesBackupProtection.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ Reconfigures backup protection for a protected item to another Recovery Services
1515
```
1616
Redo-AzRecoveryServicesBackupProtection [-Item] <ItemBase> [-TargetVaultId] <String>
1717
[-TargetPolicy] <PolicyBase> [-RetainRecoveryPointsAsPerPolicy] [-Force] [-VaultId <String>]
18-
[-DefaultProfile <IAzureContextContainer>] [-SecureToken <SecureString>] [-ProgressAction <ActionPreference>]
19-
[-WhatIf] [-Confirm] [<CommonParameters>]
18+
[-DefaultProfile <IAzureContextContainer>] [-SecureToken <SecureString>] [-WhatIf] [-Confirm] [<CommonParameters>]
2019
```
2120

2221
## DESCRIPTION
@@ -111,21 +110,6 @@ Accept pipeline input: True (ByValue)
111110
Accept wildcard characters: False
112111
```
113112
114-
### -ProgressAction
115-
Specifies how progress is displayed during the operation. Accepts values such as 'SilentlyContinue', 'Continue', or 'Stop'.
116-
117-
```yaml
118-
Type: System.Management.Automation.ActionPreference
119-
Parameter Sets: (All)
120-
Aliases: proga
121-
122-
Required: False
123-
Position: Named
124-
Default value: None
125-
Accept pipeline input: False
126-
Accept wildcard characters: False
127-
```
128-
129113
### -RetainRecoveryPointsAsPerPolicy
130114
If this option is used, all the recovery points for this item will expire as per the retention policy.
131115
@@ -135,7 +119,7 @@ Parameter Sets: (All)
135119
Aliases:
136120

137121
Required: False
138-
Position: 4
122+
Position: Named
139123
Default value: None
140124
Accept pipeline input: False
141125
Accept wildcard characters: False

0 commit comments

Comments
 (0)