-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VmWorkloadProtectionPolicy.cs
49 lines (43 loc) · 2.78 KB
/
VmWorkloadProtectionPolicy.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
// 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> Azure VM (Mercury) workload-specific backup policy. </summary>
public partial class VmWorkloadProtectionPolicy : BackupGenericProtectionPolicy
{
/// <summary> Initializes a new instance of <see cref="VmWorkloadProtectionPolicy"/>. </summary>
public VmWorkloadProtectionPolicy()
{
SubProtectionPolicy = new ChangeTrackingList<SubProtectionPolicy>();
BackupManagementType = "AzureWorkload";
}
/// <summary> Initializes a new instance of <see cref="VmWorkloadProtectionPolicy"/>. </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>
/// <param name="workLoadType"> Type of workload for the backup management. </param>
/// <param name="settings"> Common settings for the backup management. </param>
/// <param name="subProtectionPolicy"> List of sub-protection policies which includes schedule and retention. </param>
/// <param name="doesMakePolicyConsistent"> Fix the policy inconsistency. </param>
internal VmWorkloadProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList<string> resourceGuardOperationRequests, BackupWorkloadType? workLoadType, BackupCommonSettings settings, IList<SubProtectionPolicy> subProtectionPolicy, bool? doesMakePolicyConsistent) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests)
{
WorkLoadType = workLoadType;
Settings = settings;
SubProtectionPolicy = subProtectionPolicy;
DoesMakePolicyConsistent = doesMakePolicyConsistent;
BackupManagementType = backupManagementType ?? "AzureWorkload";
}
/// <summary> Type of workload for the backup management. </summary>
public BackupWorkloadType? WorkLoadType { get; set; }
/// <summary> Common settings for the backup management. </summary>
public BackupCommonSettings Settings { get; set; }
/// <summary> List of sub-protection policies which includes schedule and retention. </summary>
public IList<SubProtectionPolicy> SubProtectionPolicy { get; }
/// <summary> Fix the policy inconsistency. </summary>
public bool? DoesMakePolicyConsistent { get; set; }
}
}