-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
PageBlobOpenWriteOptions.cs
43 lines (37 loc) · 1.48 KB
/
PageBlobOpenWriteOptions.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Azure.Storage.Blobs.Specialized;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Optional parameters for Page Blob Open Write.
/// </summary>
public class PageBlobOpenWriteOptions
{
/// <summary>
/// The size of the buffer to use. Default is 4 MB,
/// max is 4 MB. Must be a increment of 512. See <see cref="PageBlobClient.PageBlobMaxUploadPagesBytes"/>.
/// </summary>
public long? BufferSize { get; set; }
/// <summary>
/// Access conditions used to open the write stream.
/// </summary>
public PageBlobRequestConditions OpenConditions { get; set; }
/// <summary>
/// Optional <see cref="IProgress{Long}"/> to provide
/// progress updates about data transfers.
/// </summary>
public IProgress<long> ProgressHandler { get; set; }
/// <summary>
/// Required if overwrite is set to true, or the underlying
/// Page Blob is being created for the first time.
/// Specifies the size of the new Page Blob.
/// </summary>
public long? Size { get; set; }
/// <summary>
/// Optional override settings for this client's <see cref="BlobClientOptions.TransferValidation"/> settings.
/// </summary>
public UploadTransferValidationOptions TransferValidation { get; set; }
}
}