-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
BackupGenericProtectionPolicy.cs
44 lines (38 loc) · 2.51 KB
/
BackupGenericProtectionPolicy.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.RecoveryServicesBackup.Models
{
/// <summary>
/// Base class for backup policy. Workload-specific backup policies are derived from this class.
/// Please note <see cref="BackupGenericProtectionPolicy"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="IaasVmProtectionPolicy"/>, <see cref="SqlProtectionPolicy"/>, <see cref="FileShareProtectionPolicy"/>, <see cref="VmWorkloadProtectionPolicy"/>, <see cref="GenericProtectionPolicy"/> and <see cref="MabProtectionPolicy"/>.
/// </summary>
public abstract partial class BackupGenericProtectionPolicy
{
/// <summary> Initializes a new instance of <see cref="BackupGenericProtectionPolicy"/>. </summary>
protected BackupGenericProtectionPolicy()
{
ResourceGuardOperationRequests = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of <see cref="BackupGenericProtectionPolicy"/>. </summary>
/// <param name="protectedItemsCount"> Number of items associated with this policy. </param>
/// <param name="backupManagementType"> This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. </param>
/// <param name="resourceGuardOperationRequests"> ResourceGuard Operation Requests. </param>
internal BackupGenericProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList<string> resourceGuardOperationRequests)
{
ProtectedItemsCount = protectedItemsCount;
BackupManagementType = backupManagementType;
ResourceGuardOperationRequests = resourceGuardOperationRequests;
}
/// <summary> Number of items associated with this policy. </summary>
public int? ProtectedItemsCount { get; set; }
/// <summary> This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. </summary>
internal string BackupManagementType { get; set; }
/// <summary> ResourceGuard Operation Requests. </summary>
public IList<string> ResourceGuardOperationRequests { get; }
}
}