/
BlobItemProperties.cs
217 lines (176 loc) · 6.07 KB
/
BlobItemProperties.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Azure.Storage.Blobs.Models;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Properties of a blob.
/// </summary>
public class BlobItemProperties
{
/// <summary>
/// Last-Modified.
/// </summary>
public DateTimeOffset? LastModified { get; internal set; }
/// <summary>
/// Size in bytes.
/// </summary>
public long? ContentLength { get; internal set; }
/// <summary>
/// Content-Type.
/// </summary>
public string ContentType { get; internal set; }
/// <summary>
/// Content-Encoding.
/// </summary>
public string ContentEncoding { get; internal set; }
/// <summary>
/// Content-Language.
/// </summary>
public string ContentLanguage { get; internal set; }
/// <summary>
/// Content-MD5.
/// </summary>
#pragma warning disable CA1819 // Properties should not return arrays
public byte[] ContentHash { get; internal set; }
#pragma warning restore CA1819 // Properties should not return arrays
/// <summary>
/// Content-Disposition.
/// </summary>
public string ContentDisposition { get; internal set; }
/// <summary>
/// Cache-Control.
/// </summary>
public string CacheControl { get; internal set; }
/// <summary>
/// BlobSequenceNumber.
/// </summary>
public long? BlobSequenceNumber { get; internal set; }
/// <summary>
/// BlobType.
/// </summary>
public BlobType? BlobType { get; internal set; }
/// <summary>
/// LeaseStatus,
/// </summary>
public LeaseStatus? LeaseStatus { get; internal set; }
/// <summary>
/// LeaseState
/// </summary>
public LeaseState? LeaseState { get; internal set; }
/// <summary>
/// LeaseDuration.
/// </summary>
public LeaseDurationType? LeaseDuration { get; internal set; }
/// <summary>
/// CopyId.
/// </summary>
public string CopyId { get; internal set; }
/// <summary>
/// CopyStatus.
/// </summary>
public CopyStatus? CopyStatus { get; internal set; }
/// <summary>
/// CopySource.
/// </summary>
public Uri CopySource { get; internal set; }
/// <summary>
/// CopyProgress.
/// </summary>
public string CopyProgress { get; internal set; }
/// <summary>
/// CopyStatusDescription.
/// </summary>
public string CopyStatusDescription { get; internal set; }
/// <summary>
/// ServerEncrypted.
/// </summary>
public bool? ServerEncrypted { get; internal set; }
/// <summary>
/// IncrementalCopy.
/// </summary>
public bool? IncrementalCopy { get; internal set; }
/// <summary>
/// DestinationSnapshot.
/// </summary>
public string DestinationSnapshot { get; internal set; }
/// <summary>
/// RemainingRetentionDays.
/// </summary>
public int? RemainingRetentionDays { get; internal set; }
/// <summary>
/// AccessTier.
/// </summary>
public AccessTier? AccessTier { get; internal set; }
/// <summary>
/// AccessTierInferred.
/// </summary>
public bool AccessTierInferred { get; internal set; }
/// <summary>
/// ArchiveStatus.
/// </summary>
public ArchiveStatus? ArchiveStatus { get; internal set; }
/// <summary>
/// CustomerProvidedKeySha256.
/// </summary>
public string CustomerProvidedKeySha256 { get; internal set; }
/// <summary>
/// The name of the encryption scope under which the blob is encrypted.
/// </summary>
public string EncryptionScope { get; internal set; }
/// <summary>
/// TagCount
/// </summary>
public long? TagCount { get; internal set; }
/// <summary>
/// Expiry-Time.
/// </summary>
public DateTimeOffset? ExpiresOn { get; internal set; }
/// <summary>
/// Sealed.
/// </summary>
public bool? IsSealed { get; internal set; }
/// <summary>
/// If an object is in rehydrate pending state then this header is returned with priority of rehydrate. Valid values are High and Standard.
/// </summary>
public RehydratePriority? RehydratePriority { get; internal set; }
/// <summary>
/// LastAccessTime.
/// </summary>
public DateTimeOffset? LastAccessedOn { get; internal set; }
/// <summary>
/// ETag.
/// </summary>
public ETag? ETag { get; internal set; }
/// <summary>
/// CreatedOn.
/// </summary>
public DateTimeOffset? CreatedOn { get; internal set; }
/// <summary>
/// CopyCompletedOn.
/// </summary>
public DateTimeOffset? CopyCompletedOn { get; internal set; }
/// <summary>
/// DeletedOn;
/// </summary>
public DateTimeOffset? DeletedOn { get; internal set; }
/// <summary>
/// AccessTierChangedOn.
/// </summary>
public DateTimeOffset? AccessTierChangedOn { get; internal set; }
/// <summary>
/// The <see cref="BlobImmutabilityPolicy"/> associated with the blob.
/// </summary>
public BlobImmutabilityPolicy ImmutabilityPolicy { get; internal set; }
/// <summary>
/// Indicates if the blob has a legal hold.
/// </summary>
public bool HasLegalHold { get; internal set; }
/// <summary>
/// Prevent direct instantiation of BlobItemProperties instances.
/// You can use BlobsModelFactory.BlobItemProperties instead.
/// </summary>
internal BlobItemProperties() { }
}
}