-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
DpmProtectedItem.cs
65 lines (59 loc) · 4.99 KB
/
DpmProtectedItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.RecoveryServicesBackup.Models
{
/// <summary> Additional information on Backup engine specific backup item. </summary>
public partial class DpmProtectedItem : BackupGenericProtectedItem
{
/// <summary> Initializes a new instance of <see cref="DpmProtectedItem"/>. </summary>
public DpmProtectedItem()
{
ProtectedItemType = "DPMProtectedItem";
}
/// <summary> Initializes a new instance of <see cref="DpmProtectedItem"/>. </summary>
/// <param name="protectedItemType"> backup item type. </param>
/// <param name="backupManagementType"> Type of backup management for the backed up item. </param>
/// <param name="workloadType"> Type of workload this item represents. </param>
/// <param name="containerName"> Unique name of container. </param>
/// <param name="sourceResourceId"> ARM ID of the resource to be backed up. </param>
/// <param name="policyId"> ID of the backup policy with which this item is backed up. </param>
/// <param name="lastRecoverOn"> Timestamp when the last (latest) backup copy was created for this backup item. </param>
/// <param name="backupSetName"> Name of the backup set the backup item belongs to. </param>
/// <param name="createMode"> Create mode to indicate recovery of existing soft deleted data source or creation of new data source. </param>
/// <param name="deferredDeletedOn"> Time for deferred deletion in UTC. </param>
/// <param name="isScheduledForDeferredDelete"> Flag to identify whether the DS is scheduled for deferred delete. </param>
/// <param name="deferredDeleteTimeRemaining"> Time remaining before the DS marked for deferred delete is permanently deleted. </param>
/// <param name="isDeferredDeleteScheduleUpcoming"> Flag to identify whether the deferred deleted DS is to be purged soon. </param>
/// <param name="isRehydrate"> Flag to identify that deferred deleted DS is to be moved into Pause state. </param>
/// <param name="resourceGuardOperationRequests"> ResourceGuardOperationRequests on which LAC check will be performed. </param>
/// <param name="isArchiveEnabled"> Flag to identify whether datasource is protected in archive. </param>
/// <param name="policyName"> Name of the policy used for protection. </param>
/// <param name="softDeleteRetentionPeriodInDays"> Soft delete retention period in days. </param>
/// <param name="vaultId"> ID of the vault which protects this item. </param>
/// <param name="friendlyName"> Friendly name of the managed item. </param>
/// <param name="backupEngineName"> Backup Management server protecting this backup item. </param>
/// <param name="protectionState"> Protection state of the backup engine. </param>
/// <param name="extendedInfo"> Extended info of the backup item. </param>
internal DpmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList<string> resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, string friendlyName, string backupEngineName, ProtectedItemState? protectionState, DpmProtectedItemExtendedInfo extendedInfo) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId)
{
FriendlyName = friendlyName;
BackupEngineName = backupEngineName;
ProtectionState = protectionState;
ExtendedInfo = extendedInfo;
ProtectedItemType = protectedItemType ?? "DPMProtectedItem";
}
/// <summary> Friendly name of the managed item. </summary>
public string FriendlyName { get; set; }
/// <summary> Backup Management server protecting this backup item. </summary>
public string BackupEngineName { get; set; }
/// <summary> Protection state of the backup engine. </summary>
public ProtectedItemState? ProtectionState { get; set; }
/// <summary> Extended info of the backup item. </summary>
public DpmProtectedItemExtendedInfo ExtendedInfo { get; set; }
}
}