-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BlobStates.cs
59 lines (51 loc) · 1.88 KB
/
BlobStates.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Specifies states to be used to determine the blobs that will be included
/// when using the <see cref="BlobContainerClient.GetBlobsAsync"/> and
/// <see cref="BlobContainerClient.GetBlobsByHierarchyAsync"/>
/// operations.
/// </summary>
[Flags]
public enum BlobStates
{
/// <summary>
/// Default flag specifying that no flags are set in <see cref="BlobStates"/>.
/// </summary>
None = 0,
/// <summary>
/// Flag specifying that the blob's snapshots should be
/// included. Snapshots are listed from oldest to newest.
/// </summary>
Snapshots = 1,
/// <summary>
/// Flag specifying that blobs for which blocks have
/// been uploaded, but which have not been committed using
/// <see cref="Specialized.BlockBlobClient.CommitBlockListAsync(System.Collections.Generic.IEnumerable{string}, CommitBlockListOptions, System.Threading.CancellationToken)"/> should be
/// included.
/// </summary>
Uncommitted = 2,
/// <summary>
/// Flag specifying that soft deleted blobs should be
/// included in the response.
/// </summary>
Deleted = 4,
/// <summary>
/// Flag specifying that the blob's version should be
/// included. Versions are listed from oldest to newest.
/// </summary>
Version = 8,
/// <summary>
/// Flag specifying to list blobs that were deleted with
/// versioning enabled.
/// </summary>
DeletedWithVersions = 16,
/// <summary>
/// Flag specifying that blobs of all states should be included.
/// </summary>
All = ~None
}
}