-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BlobContainerProperties.cs
104 lines (87 loc) · 2.94 KB
/
BlobContainerProperties.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Properties of a container.
/// </summary>
public class BlobContainerProperties
{
/// <summary>
/// Last-Modified.
/// </summary>
public DateTimeOffset LastModified { 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>
/// PublicAccess.
/// </summary>
public PublicAccessType? PublicAccess { get; internal set; }
/// <summary>
/// HasImmutabilityPolicy.
/// </summary>
public bool? HasImmutabilityPolicy { get; internal set; }
/// <summary>
/// HasLegalHold.
/// </summary>
public bool? HasLegalHold { get; internal set; }
/// <summary>
/// DefaultEncryptionScope.
/// </summary>
public string DefaultEncryptionScope { get; internal set; }
/// <summary>
/// DenyEncryptionScopeOverride.
/// </summary>
public bool? PreventEncryptionScopeOverride { get; internal set; }
/// <summary>
/// DeletedTime.
/// </summary>
public DateTimeOffset? DeletedOn { get; internal set; }
/// <summary>
/// RemainingRetentionDays.
/// </summary>
public int? RemainingRetentionDays { get; internal set; }
/// <summary>
/// ETag.
/// </summary>
public ETag ETag { get; internal set; }
/// <summary>
/// Metadata.
/// </summary>
public IDictionary<string, string> Metadata { get; internal set; }
/// <summary>
/// If immutable storage with vesrioning is enabled on this container.
/// </summary>
public bool HasImmutableStorageWithVersioning { get; internal set; }
/// <summary>
/// Creates a new BlobContainerProperties instance.
/// </summary>
internal BlobContainerProperties()
: this(false)
{
}
/// <summary>
/// Creates a new BlobContainerProperties instance.
/// </summary>
/// <param name="skipInitialization">Whether to skip initializing nested objects.</param>
internal BlobContainerProperties(bool skipInitialization)
{
if (!skipInitialization)
{
Metadata = new System.Collections.Generic.Dictionary<string, string>(System.StringComparer.OrdinalIgnoreCase);
}
}
}
}