-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BackupRecoveryPointBasedRestoreContent.cs
69 lines (61 loc) · 4.64 KB
/
BackupRecoveryPointBasedRestoreContent.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
66
67
68
69
// 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.DataProtectionBackup.Models
{
/// <summary>
/// Azure backup recoveryPoint based restore request
/// Please note <see cref="BackupRecoveryPointBasedRestoreContent"/> 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="BackupRestoreWithRehydrationContent"/>.
/// </summary>
public partial class BackupRecoveryPointBasedRestoreContent : BackupRestoreContent
{
/// <summary> Initializes a new instance of <see cref="BackupRecoveryPointBasedRestoreContent"/>. </summary>
/// <param name="restoreTargetInfo">
/// Gets or sets the restore target information.
/// Please note <see cref="RestoreTargetInfoBase"/> 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="ItemLevelRestoreTargetInfo"/>, <see cref="RestoreFilesTargetInfo"/> and <see cref="RestoreTargetInfo"/>.
/// </param>
/// <param name="sourceDataStoreType"> Gets or sets the type of the source data store. </param>
/// <param name="recoveryPointId"></param>
/// <exception cref="ArgumentNullException"> <paramref name="restoreTargetInfo"/> or <paramref name="recoveryPointId"/> is null. </exception>
public BackupRecoveryPointBasedRestoreContent(RestoreTargetInfoBase restoreTargetInfo, SourceDataStoreType sourceDataStoreType, string recoveryPointId) : base(restoreTargetInfo, sourceDataStoreType)
{
Argument.AssertNotNull(restoreTargetInfo, nameof(restoreTargetInfo));
Argument.AssertNotNull(recoveryPointId, nameof(recoveryPointId));
RecoveryPointId = recoveryPointId;
ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest";
}
/// <summary> Initializes a new instance of <see cref="BackupRecoveryPointBasedRestoreContent"/>. </summary>
/// <param name="objectType"></param>
/// <param name="restoreTargetInfo">
/// Gets or sets the restore target information.
/// Please note <see cref="RestoreTargetInfoBase"/> 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="ItemLevelRestoreTargetInfo"/>, <see cref="RestoreFilesTargetInfo"/> and <see cref="RestoreTargetInfo"/>.
/// </param>
/// <param name="sourceDataStoreType"> Gets or sets the type of the source data store. </param>
/// <param name="sourceResourceId"> Fully qualified Azure Resource Manager ID of the datasource which is being recovered. </param>
/// <param name="resourceGuardOperationRequests"> ResourceGuardOperationRequests on which LAC check will be performed. </param>
/// <param name="identityDetails">
/// Contains information of the Identity Details for the BI.
/// If it is null, default will be considered as System Assigned.
/// </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="recoveryPointId"></param>
internal BackupRecoveryPointBasedRestoreContent(string objectType, RestoreTargetInfoBase restoreTargetInfo, SourceDataStoreType sourceDataStoreType, ResourceIdentifier sourceResourceId, IList<string> resourceGuardOperationRequests, DataProtectionIdentityDetails identityDetails, IDictionary<string, BinaryData> serializedAdditionalRawData, string recoveryPointId) : base(objectType, restoreTargetInfo, sourceDataStoreType, sourceResourceId, resourceGuardOperationRequests, identityDetails, serializedAdditionalRawData)
{
RecoveryPointId = recoveryPointId;
ObjectType = objectType ?? "AzureBackupRecoveryPointBasedRestoreRequest";
}
/// <summary> Initializes a new instance of <see cref="BackupRecoveryPointBasedRestoreContent"/> for deserialization. </summary>
internal BackupRecoveryPointBasedRestoreContent()
{
}
/// <summary> Gets the recovery point id. </summary>
public string RecoveryPointId { get; }
}
}