-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MigrationStatusDetails.cs
82 lines (76 loc) · 4.81 KB
/
MigrationStatusDetails.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
70
71
72
73
74
75
76
77
78
79
80
81
82
// 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.DataMigration.Models
{
/// <summary> Detailed status of current migration. </summary>
public partial class MigrationStatusDetails
{
/// <summary> Initializes a new instance of MigrationStatusDetails. </summary>
internal MigrationStatusDetails()
{
ActiveBackupSets = new ChangeTrackingList<SqlBackupSetInfo>();
InvalidFiles = new ChangeTrackingList<string>();
FileUploadBlockingErrors = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of MigrationStatusDetails. </summary>
/// <param name="migrationState"> Current State of Migration. </param>
/// <param name="fullBackupSetInfo"> Details of full backup set. </param>
/// <param name="lastRestoredBackupSetInfo"> Last applied backup set information. </param>
/// <param name="activeBackupSets"> Backup sets that are currently active. </param>
/// <param name="invalidFiles"> Files that are not valid backup files. </param>
/// <param name="blobContainerName"> Name of blob container. </param>
/// <param name="isFullBackupRestored"> Whether full backup has been applied to the target database or not. </param>
/// <param name="restoreBlockingReason"> Restore blocking reason, if any. </param>
/// <param name="completeRestoreErrorMessage"> Complete restore error message, if any. </param>
/// <param name="fileUploadBlockingErrors"> File upload blocking errors, if any. </param>
/// <param name="currentRestoringFilename"> File name that is currently being restored. </param>
/// <param name="lastRestoredFilename"> Last restored file name. </param>
/// <param name="pendingLogBackupsCount"> Total pending log backups. </param>
internal MigrationStatusDetails(string migrationState, SqlBackupSetInfo fullBackupSetInfo, SqlBackupSetInfo lastRestoredBackupSetInfo, IReadOnlyList<SqlBackupSetInfo> activeBackupSets, IReadOnlyList<string> invalidFiles, string blobContainerName, bool? isFullBackupRestored, string restoreBlockingReason, string completeRestoreErrorMessage, IReadOnlyList<string> fileUploadBlockingErrors, string currentRestoringFilename, string lastRestoredFilename, int? pendingLogBackupsCount)
{
MigrationState = migrationState;
FullBackupSetInfo = fullBackupSetInfo;
LastRestoredBackupSetInfo = lastRestoredBackupSetInfo;
ActiveBackupSets = activeBackupSets;
InvalidFiles = invalidFiles;
BlobContainerName = blobContainerName;
IsFullBackupRestored = isFullBackupRestored;
RestoreBlockingReason = restoreBlockingReason;
CompleteRestoreErrorMessage = completeRestoreErrorMessage;
FileUploadBlockingErrors = fileUploadBlockingErrors;
CurrentRestoringFilename = currentRestoringFilename;
LastRestoredFilename = lastRestoredFilename;
PendingLogBackupsCount = pendingLogBackupsCount;
}
/// <summary> Current State of Migration. </summary>
public string MigrationState { get; }
/// <summary> Details of full backup set. </summary>
public SqlBackupSetInfo FullBackupSetInfo { get; }
/// <summary> Last applied backup set information. </summary>
public SqlBackupSetInfo LastRestoredBackupSetInfo { get; }
/// <summary> Backup sets that are currently active. </summary>
public IReadOnlyList<SqlBackupSetInfo> ActiveBackupSets { get; }
/// <summary> Files that are not valid backup files. </summary>
public IReadOnlyList<string> InvalidFiles { get; }
/// <summary> Name of blob container. </summary>
public string BlobContainerName { get; }
/// <summary> Whether full backup has been applied to the target database or not. </summary>
public bool? IsFullBackupRestored { get; }
/// <summary> Restore blocking reason, if any. </summary>
public string RestoreBlockingReason { get; }
/// <summary> Complete restore error message, if any. </summary>
public string CompleteRestoreErrorMessage { get; }
/// <summary> File upload blocking errors, if any. </summary>
public IReadOnlyList<string> FileUploadBlockingErrors { get; }
/// <summary> File name that is currently being restored. </summary>
public string CurrentRestoringFilename { get; }
/// <summary> Last restored file name. </summary>
public string LastRestoredFilename { get; }
/// <summary> Total pending log backups. </summary>
public int? PendingLogBackupsCount { get; }
}
}