-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
GenericProtectionPolicy.cs
45 lines (39 loc) · 2.47 KB
/
GenericProtectionPolicy.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
// 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 GenericProtectionPolicy : BackupGenericProtectionPolicy
{
/// <summary> Initializes a new instance of <see cref="GenericProtectionPolicy"/>. </summary>
public GenericProtectionPolicy()
{
SubProtectionPolicy = new ChangeTrackingList<SubProtectionPolicy>();
BackupManagementType = "GenericProtectionPolicy";
}
/// <summary> Initializes a new instance of <see cref="GenericProtectionPolicy"/>. </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="subProtectionPolicy"> List of sub-protection policies which includes schedule and retention. </param>
/// <param name="timeZone"> TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". </param>
/// <param name="fabricName"> Name of this policy's fabric. </param>
internal GenericProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList<string> resourceGuardOperationRequests, IList<SubProtectionPolicy> subProtectionPolicy, string timeZone, string fabricName) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests)
{
SubProtectionPolicy = subProtectionPolicy;
TimeZone = timeZone;
FabricName = fabricName;
BackupManagementType = backupManagementType ?? "GenericProtectionPolicy";
}
/// <summary> List of sub-protection policies which includes schedule and retention. </summary>
public IList<SubProtectionPolicy> SubProtectionPolicy { get; }
/// <summary> TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". </summary>
public string TimeZone { get; set; }
/// <summary> Name of this policy's fabric. </summary>
public string FabricName { get; set; }
}
}