Skip to content

Commit 21856fc

Browse files
author
dragonfly91
committed
[RS Backup] Fixing 7349803 (documentation fixes) for Item in Cmdlet Layer
1 parent a052122 commit 21856fc

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/Cmdlets/Item/DisableAzureRmRecoveryServicesBackupProtection.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,25 @@
2828
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
2929
{
3030
/// <summary>
31-
/// Enable Azure Backup protection
31+
/// Disable protection of an item protected by the recovery services vault.
32+
/// Returns the corresponding job created in the service to track this operation.
3233
/// </summary>
3334
[Cmdlet(VerbsLifecycle.Disable, "AzureRmRecoveryServicesBackupProtection"),
3435
OutputType(typeof(JobBase))]
3536
public class DisableAzureRmRecoveryServicesBackupProtection : RecoveryServicesBackupCmdletBase
3637
{
38+
/// <summary>
39+
/// The protected item whose protection needs to be disabled.
40+
/// </summary>
3741
[Parameter(Position = 1, Mandatory = true, HelpMessage = ParamHelpMsgs.Item.ProtectedItem,
3842
ValueFromPipeline = true)]
3943
[ValidateNotNullOrEmpty]
4044
public ItemBase Item { get; set; }
4145

46+
/// <summary>
47+
/// If this option is used, all the data backed up for this item will
48+
/// also be deleted and restoring the data will not be possible.
49+
/// </summary>
4250
[Parameter(Position = 2, Mandatory = false,
4351
HelpMessage = ParamHelpMsgs.Item.RemoveProtectionOption)]
4452
public SwitchParameter RemoveRecoveryPoints
@@ -47,6 +55,9 @@ public SwitchParameter RemoveRecoveryPoints
4755
set { DeleteBackupData = value; }
4856
}
4957

58+
/// <summary>
59+
/// Prevents the confirmation dialog when specified.
60+
/// </summary>
5061
[Parameter(Mandatory = false, HelpMessage = ParamHelpMsgs.Item.ForceOption)]
5162
public SwitchParameter Force { get; set; }
5263

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/Cmdlets/Item/EnableAzureRmRecoveryServicesBackupProtection.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
2929
{
3030
/// <summary>
31-
/// Enable Azure Backup protection
31+
/// Enable protection of an item with the recovery services vault.
32+
/// Returns the corresponding job created in the service to track this operation.
3233
/// </summary>
3334
[Cmdlet(VerbsLifecycle.Enable, "AzureRmRecoveryServicesBackupProtection",
3435
DefaultParameterSetName = AzureVMComputeParameterSet), OutputType(typeof(JobBase))]
@@ -38,26 +39,41 @@ public class EnableAzureRmRecoveryServicesBackupProtection : RecoveryServicesBac
3839
internal const string AzureVMComputeParameterSet = "AzureVMComputeEnableProtection";
3940
internal const string ModifyProtectionParameterSet = "ModifyProtection";
4041

42+
/// <summary>
43+
/// Policy to be associated with this item as part of the protection operation.
44+
/// </summary>
4145
[Parameter(Position = 1, Mandatory = true, HelpMessage = ParamHelpMsgs.Policy.ProtectionPolicy)]
4246
[ValidateNotNullOrEmpty]
4347
public PolicyBase Policy { get; set; }
4448

49+
/// <summary>
50+
/// Name of the Azure VM whose representative item needs to be protected.
51+
/// </summary>
4552
[Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true,
4653
ParameterSetName = AzureVMClassicComputeParameterSet, HelpMessage = ParamHelpMsgs.Item.AzureVMName)]
4754
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true,
4855
ParameterSetName = AzureVMComputeParameterSet, HelpMessage = ParamHelpMsgs.Item.AzureVMName)]
4956
public string Name { get; set; }
5057

58+
/// <summary>
59+
/// Service name of the classic Azure VM whose representative item needs to be protected.
60+
/// </summary>
5161
[Parameter(Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true,
5262
ParameterSetName = AzureVMClassicComputeParameterSet,
5363
HelpMessage = ParamHelpMsgs.Item.AzureVMServiceName)]
5464
public string ServiceName { get; set; }
5565

66+
/// <summary>
67+
/// Resource group name of the compute Azure VM whose representative item needs to be protected.
68+
/// </summary>
5669
[Parameter(Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true,
5770
ParameterSetName = AzureVMComputeParameterSet,
5871
HelpMessage = ParamHelpMsgs.Item.AzureVMResourceGroupName)]
5972
public string ResourceGroupName { get; set; }
6073

74+
/// <summary>
75+
/// Item whose protection needs to be modified.
76+
/// </summary>
6177
[Parameter(Position = 4, Mandatory = true, ParameterSetName = ModifyProtectionParameterSet,
6278
HelpMessage = ParamHelpMsgs.Item.ProtectedItem, ValueFromPipeline = true)]
6379
[ValidateNotNullOrEmpty]

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/Cmdlets/Item/GetAzureRmRecoveryServicesBackupItem.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
2525
{
2626
/// <summary>
27-
/// Get list of items
27+
/// Get list of items associated with the recovery services vault
28+
/// according to the filters passed via the cmdlet parameters.
2829
/// </summary>
2930
[Cmdlet(VerbsCommon.Get, "AzureRmRecoveryServicesBackupItem",
3031
DefaultParameterSetName = GetItemsForContainerParamSet), OutputType(typeof(ItemBase),
@@ -34,28 +35,46 @@ public class GetAzureRmRecoveryServicesBackupItem : RecoveryServicesBackupCmdlet
3435
internal const string GetItemsForContainerParamSet = "GetItemsForContainer";
3536
internal const string GetItemsForVaultParamSet = "GetItemsForVault";
3637

38+
/// <summary>
39+
/// When this option is specified, only those items which belong to this container will be returned.
40+
/// </summary>
3741
[Parameter(Mandatory = true, Position = 1, HelpMessage = ParamHelpMsgs.Item.Container,
3842
ParameterSetName = GetItemsForContainerParamSet)]
3943
[ValidateNotNullOrEmpty]
4044
public ContainerBase Container { get; set; }
4145

46+
/// <summary>
47+
/// Backup management type of the items to be returned.
48+
/// </summary>
4249
[Parameter(Mandatory = true, Position = 1, HelpMessage = ParamHelpMsgs.Common.BackupManagementType,
4350
ParameterSetName = GetItemsForVaultParamSet)]
4451
[ValidateNotNullOrEmpty]
4552
public BackupManagementType BackupManagementType { get; set; }
4653

54+
/// <summary>
55+
/// Friendly name of the item to be returned.
56+
/// </summary>
4757
[Parameter(Mandatory = false, Position = 2, HelpMessage = ParamHelpMsgs.Item.AzureVMName)]
4858
[ValidateNotNullOrEmpty]
4959
public string Name { get; set; }
5060

61+
/// <summary>
62+
/// Status of protection of the item to be returned.
63+
/// </summary>
5164
[Parameter(Mandatory = false, Position = 3, HelpMessage = ParamHelpMsgs.Item.ProtectionStatus)]
5265
[ValidateNotNullOrEmpty]
5366
public ItemProtectionStatus ProtectionStatus { get; set; }
5467

68+
/// <summary>
69+
/// State of protection of the item to be returned.
70+
/// </summary>
5571
[Parameter(Mandatory = false, Position = 4, HelpMessage = ParamHelpMsgs.Item.Status)]
5672
[ValidateNotNullOrEmpty]
5773
public ItemProtectionState ProtectionState { get; set; }
5874

75+
/// <summary>
76+
/// Workload type of the item to be returned.
77+
/// </summary>
5978
[Parameter(Mandatory = true, Position = 5, HelpMessage = ParamHelpMsgs.Common.WorkloadType)]
6079
[ValidateNotNullOrEmpty]
6180
public WorkloadType WorkloadType { get; set; }

0 commit comments

Comments
 (0)