-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BlobUploadOptions.cs
81 lines (70 loc) · 3.3 KB
/
BlobUploadOptions.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Metadata = System.Collections.Generic.IDictionary<string, string>;
using Tags = System.Collections.Generic.IDictionary<string, string>;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Optional parameters for uploading to a Blob.
/// </summary>
public class BlobUploadOptions
{
/// <summary>
/// Optional standard HTTP header properties that can be set for the
/// new append blob.
/// </summary>
public BlobHttpHeaders HttpHeaders { get; set; }
/// <summary>
/// Optional custom metadata to set for this append blob.
/// For a sample code to set the metadata, see <see href="https://github.com/Azure/azure-sdk-for-net/blob/47ea075bca473fe6e9928ff9893fbaa8a552f3a5/sdk/storage/Azure.Storage.Blobs/samples/Sample03_Migrations.cs#L630">this </see>article.
/// </summary>
#pragma warning disable CA2227 // Collection properties should be readonly
public Metadata Metadata { get; set; }
#pragma warning restore CA2227 // Collection properties should be readonly
/// <summary>
/// Options tags to set for this block blob.
/// </summary>
#pragma warning disable CA2227 // Collection properties should be readonly
public Tags Tags { get; set; }
#pragma warning restore CA2227 // Collection properties should be readonly
/// <summary>
/// Optional <see cref="BlobRequestConditions"/> to add
/// conditions on the upload of this Block Blob.
/// </summary>
public BlobRequestConditions Conditions { get; set; }
/// <summary>
/// Optional <see cref="IProgress{Long}"/> to provide
/// progress updates about data transfers.
/// </summary>
public IProgress<long> ProgressHandler { get; set; }
/// <summary>
/// Optional <see cref="AccessTier"/> to set on the
/// Block Blob.
/// </summary>
public AccessTier? AccessTier { get; set; }
/// <summary>
/// Optional <see cref="StorageTransferOptions"/> to configure
/// parallel transfer behavior.
/// </summary>
public StorageTransferOptions TransferOptions { get; set; }
/// <summary>
/// Optional <see cref="BlobImmutabilityPolicy"/> to set on the blob.
/// Note that is parameter is only applicable to a blob within a container that
/// has immutable storage with versioning enabled.
/// </summary>
public BlobImmutabilityPolicy ImmutabilityPolicy { get; set; }
/// <summary>
/// Optional. Indicates if a legal hold should be placed on the blob.
/// Note that is parameter is only applicable to a blob within a container that
/// has immutable storage with versioning enabled.
/// </summary>
public bool? LegalHold { get; set; }
/// <summary>
/// Optional override settings for this client's <see cref="BlobClientOptions.TransferValidation"/> settings.
/// This operation does not allow <see cref="UploadTransferValidationOptions.PrecalculatedChecksum"/>
/// to be set.
/// </summary>
public UploadTransferValidationOptions TransferValidation { get; set; }
}
}