| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using Metadata = System.Collections.Generic.IDictionary<string, string>; |
| | 6 | | using Tags = System.Collections.Generic.IDictionary<string, string>; |
| | 7 | |
|
| | 8 | | namespace Azure.Storage.Blobs.Models |
| | 9 | | { |
| | 10 | | /// <summary> |
| | 11 | | /// Optional paratmers for uploading to a Blob. |
| | 12 | | /// </summary> |
| | 13 | | public class BlobUploadOptions |
| | 14 | | { |
| | 15 | | /// <summary> |
| | 16 | | /// Optional standard HTTP header properties that can be set for the |
| | 17 | | /// new append blob. |
| | 18 | | /// </summary> |
| 6716 | 19 | | public BlobHttpHeaders HttpHeaders { get; set; } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// Optional custom metadata to set for this append blob. |
| | 23 | | /// </summary> |
| 6716 | 24 | | public Metadata Metadata { get; set; } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Options tags to set for this block blob. |
| | 28 | | /// </summary> |
| 2232 | 29 | | public Tags Tags { get; set; } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Optional <see cref="BlobRequestConditions"/> to add |
| | 33 | | /// conditions on the upload of this Block Blob. |
| | 34 | | /// </summary> |
| 7860 | 35 | | public BlobRequestConditions Conditions { get; set; } |
| | 36 | |
|
| | 37 | | /// <summary> |
| | 38 | | /// Optional <see cref="IProgress{Long}"/> to provide |
| | 39 | | /// progress updates about data transfers. |
| | 40 | | /// </summary> |
| 6652 | 41 | | public IProgress<long> ProgressHandler { get; set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Optional <see cref="AccessTier"/> to set on the |
| | 45 | | /// Block Blob. |
| | 46 | | /// </summary> |
| 6716 | 47 | | public AccessTier? AccessTier { get; set; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Optional <see cref="StorageTransferOptions"/> to configure |
| | 51 | | /// parallel transfer behavior. |
| | 52 | | /// </summary> |
| 4872 | 53 | | public StorageTransferOptions TransferOptions { get; set; } |
| | 54 | | } |
| | 55 | | } |