-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BlobAppendInfo.cs
68 lines (57 loc) · 3.21 KB
/
BlobAppendInfo.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// BlobAppendInfo.
/// </summary>
public class BlobAppendInfo
{
/// <summary>
/// The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes.
/// </summary>
public ETag ETag { get; internal set; }
/// <summary>
/// Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob.
/// </summary>
public DateTimeOffset LastModified { get; internal set; }
/// <summary>
/// If the blob has an MD5 hash and this operation is to read the full blob, this response header is returned so that the client can check for message content integrity.
/// </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>
/// This header is returned so that the client can check for message content integrity. The value of this header is computed by the Blob service; it is not necessarily the same value specified in the request headers.
/// </summary>
#pragma warning disable CA1819 // Properties should not return arrays
public byte[] ContentCrc64 { get; internal set; }
#pragma warning restore CA1819 // Properties should not return arrays
/// <summary>
/// This response header is returned only for append operations. It returns the offset at which the block was committed, in bytes.
/// </summary>
public string BlobAppendOffset { get; internal set; }
/// <summary>
/// The number of committed blocks present in the blob. This header is returned only for append blobs.
/// </summary>
public int BlobCommittedBlockCount { get; internal set; }
/// <summary>
/// The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise.
/// </summary>
public bool IsServerEncrypted { get; internal set; }
/// <summary>
/// The SHA-256 hash of the encryption key used to encrypt the block. This header is only returned when the block was encrypted with a customer-provided key.
/// </summary>
public string EncryptionKeySha256 { get; internal set; }
/// <summary>
/// Returns the name of the encryption scope used to encrypt the blob contents and application metadata. Note that the absence of this header implies use of the default account encryption scope.
/// </summary>
public string EncryptionScope { get; internal set; }
/// <summary>
/// Prevent direct instantiation of BlobAppendInfo instances.
/// You can use BlobsModelFactory.BlobAppendInfo instead.
/// </summary>
internal BlobAppendInfo() { }
}
}