-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
Copy pathWorkloadRecoveryPoint.cs
57 lines (51 loc) · 3.61 KB
/
WorkloadRecoveryPoint.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
// 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>
/// Workload specific recovery point, specifically encapsulates full/diff recovery point
/// Please note <see cref="WorkloadRecoveryPoint"/> 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="WorkloadPointInTimeRecoveryPoint"/>, <see cref="WorkloadSapHanaPointInTimeRecoveryPoint"/>, <see cref="WorkloadSapHanaRecoveryPoint"/>, <see cref="WorkloadSqlPointInTimeRecoveryPoint"/> and <see cref="WorkloadSqlRecoveryPoint"/>.
/// </summary>
public partial class WorkloadRecoveryPoint : BackupGenericRecoveryPoint
{
/// <summary> Initializes a new instance of <see cref="WorkloadRecoveryPoint"/>. </summary>
public WorkloadRecoveryPoint()
{
RecoveryPointTierDetails = new ChangeTrackingList<RecoveryPointTierInformationV2>();
RecoveryPointMoveReadinessInfo = new ChangeTrackingDictionary<string, RecoveryPointMoveReadinessInfo>();
ObjectType = "AzureWorkloadRecoveryPoint";
}
/// <summary> Initializes a new instance of <see cref="WorkloadRecoveryPoint"/>. </summary>
/// <param name="objectType"> This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. </param>
/// <param name="recoveryPointCreatedOn"> UTC time at which recovery point was created. </param>
/// <param name="restorePointType"> Type of restore point. </param>
/// <param name="recoveryPointTierDetails"> Recovery point tier information. </param>
/// <param name="recoveryPointMoveReadinessInfo"> Eligibility of RP to be moved to another tier. </param>
/// <param name="recoveryPointProperties"> Properties of Recovery Point. </param>
internal WorkloadRecoveryPoint(string objectType, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList<RecoveryPointTierInformationV2> recoveryPointTierDetails, IDictionary<string, RecoveryPointMoveReadinessInfo> recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType)
{
RecoveryPointCreatedOn = recoveryPointCreatedOn;
RestorePointType = restorePointType;
RecoveryPointTierDetails = recoveryPointTierDetails;
RecoveryPointMoveReadinessInfo = recoveryPointMoveReadinessInfo;
RecoveryPointProperties = recoveryPointProperties;
ObjectType = objectType ?? "AzureWorkloadRecoveryPoint";
}
/// <summary> UTC time at which recovery point was created. </summary>
public DateTimeOffset? RecoveryPointCreatedOn { get; set; }
/// <summary> Type of restore point. </summary>
public RestorePointType? RestorePointType { get; set; }
/// <summary> Recovery point tier information. </summary>
public IList<RecoveryPointTierInformationV2> RecoveryPointTierDetails { get; }
/// <summary> Eligibility of RP to be moved to another tier. </summary>
public IDictionary<string, RecoveryPointMoveReadinessInfo> RecoveryPointMoveReadinessInfo { get; }
/// <summary> Properties of Recovery Point. </summary>
public RecoveryPointProperties RecoveryPointProperties { get; set; }
}
}