-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
DataBoxCopyProgress.cs
103 lines (97 loc) · 6.23 KB
/
DataBoxCopyProgress.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure;
using Azure.Core;
namespace Azure.ResourceManager.DataBox.Models
{
/// <summary> Copy progress. </summary>
public partial class DataBoxCopyProgress
{
/// <summary> Initializes a new instance of DataBoxCopyProgress. </summary>
internal DataBoxCopyProgress()
{
Actions = new ChangeTrackingList<CustomerResolutionCode>();
}
/// <summary> Initializes a new instance of DataBoxCopyProgress. </summary>
/// <param name="storageAccountName"> Name of the storage account. This will be empty for data account types other than storage account. </param>
/// <param name="transferType"> Transfer type of data. </param>
/// <param name="dataAccountType"> Data Account Type. </param>
/// <param name="accountId"> Id of the account where the data needs to be uploaded. </param>
/// <param name="bytesProcessed"> To indicate bytes transferred. </param>
/// <param name="totalBytesToProcess"> Total amount of data to be processed by the job. </param>
/// <param name="filesProcessed"> Number of files processed. </param>
/// <param name="totalFilesToProcess"> Total files to process. </param>
/// <param name="invalidFilesProcessed"> Number of files not adhering to azure naming conventions which were processed by automatic renaming. </param>
/// <param name="invalidFileBytesUploaded"> Total amount of data not adhering to azure naming conventions which were processed by automatic renaming. </param>
/// <param name="renamedContainerCount"> Number of folders not adhering to azure naming conventions which were processed by automatic renaming. </param>
/// <param name="filesErroredOut"> Number of files which could not be copied. </param>
/// <param name="directoriesErroredOut"> To indicate directories errored out in the job. </param>
/// <param name="invalidDirectoriesProcessed"> To indicate directories renamed. </param>
/// <param name="isEnumerationInProgress">
/// To indicate if enumeration of data is in progress.
/// Until this is true, the TotalBytesToProcess may not be valid.
/// </param>
/// <param name="error"> Error, if any, in the stage. </param>
/// <param name="actions"> Available actions on the job. </param>
internal DataBoxCopyProgress(string storageAccountName, DataBoxJobTransferType? transferType, DataAccountType? dataAccountType, ResourceIdentifier accountId, long? bytesProcessed, long? totalBytesToProcess, long? filesProcessed, long? totalFilesToProcess, long? invalidFilesProcessed, long? invalidFileBytesUploaded, long? renamedContainerCount, long? filesErroredOut, long? directoriesErroredOut, long? invalidDirectoriesProcessed, bool? isEnumerationInProgress, ResponseError error, IReadOnlyList<CustomerResolutionCode> actions)
{
StorageAccountName = storageAccountName;
TransferType = transferType;
DataAccountType = dataAccountType;
AccountId = accountId;
BytesProcessed = bytesProcessed;
TotalBytesToProcess = totalBytesToProcess;
FilesProcessed = filesProcessed;
TotalFilesToProcess = totalFilesToProcess;
InvalidFilesProcessed = invalidFilesProcessed;
InvalidFileBytesUploaded = invalidFileBytesUploaded;
RenamedContainerCount = renamedContainerCount;
FilesErroredOut = filesErroredOut;
DirectoriesErroredOut = directoriesErroredOut;
InvalidDirectoriesProcessed = invalidDirectoriesProcessed;
IsEnumerationInProgress = isEnumerationInProgress;
Error = error;
Actions = actions;
}
/// <summary> Name of the storage account. This will be empty for data account types other than storage account. </summary>
public string StorageAccountName { get; }
/// <summary> Transfer type of data. </summary>
public DataBoxJobTransferType? TransferType { get; }
/// <summary> Data Account Type. </summary>
public DataAccountType? DataAccountType { get; }
/// <summary> Id of the account where the data needs to be uploaded. </summary>
public ResourceIdentifier AccountId { get; }
/// <summary> To indicate bytes transferred. </summary>
public long? BytesProcessed { get; }
/// <summary> Total amount of data to be processed by the job. </summary>
public long? TotalBytesToProcess { get; }
/// <summary> Number of files processed. </summary>
public long? FilesProcessed { get; }
/// <summary> Total files to process. </summary>
public long? TotalFilesToProcess { get; }
/// <summary> Number of files not adhering to azure naming conventions which were processed by automatic renaming. </summary>
public long? InvalidFilesProcessed { get; }
/// <summary> Total amount of data not adhering to azure naming conventions which were processed by automatic renaming. </summary>
public long? InvalidFileBytesUploaded { get; }
/// <summary> Number of folders not adhering to azure naming conventions which were processed by automatic renaming. </summary>
public long? RenamedContainerCount { get; }
/// <summary> Number of files which could not be copied. </summary>
public long? FilesErroredOut { get; }
/// <summary> To indicate directories errored out in the job. </summary>
public long? DirectoriesErroredOut { get; }
/// <summary> To indicate directories renamed. </summary>
public long? InvalidDirectoriesProcessed { get; }
/// <summary>
/// To indicate if enumeration of data is in progress.
/// Until this is true, the TotalBytesToProcess may not be valid.
/// </summary>
public bool? IsEnumerationInProgress { get; }
/// <summary> Error, if any, in the stage. </summary>
public ResponseError Error { get; }
/// <summary> Available actions on the job. </summary>
public IReadOnlyList<CustomerResolutionCode> Actions { get; }
}
}