-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
PageBlobUploadPagesFromUriOptions.cs
42 lines (37 loc) · 1.78 KB
/
PageBlobUploadPagesFromUriOptions.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Storage.Blobs.Specialized;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Optional parameters for <see cref="PageBlobClient.UploadPagesFromUri(System.Uri, HttpRange, HttpRange, PageBlobUploadPagesFromUriOptions, System.Threading.CancellationToken)"/>.
/// </summary>
public class PageBlobUploadPagesFromUriOptions
{
/// <summary>
/// Optional MD5 hash of the page block content from the
/// sourceUri. This hash is used to verify the
/// integrity of the block during transport of the data from the Uri.
/// When this hash is specified, the storage service compares the hash
/// of the content that has arrived from the sourceUri
/// with this value. Note that this md5 hash is not stored with the
/// blob. If the two hashes do not match, the operation will fail
/// with a <see cref="RequestFailedException"/>.
/// </summary>
public byte[] SourceContentHash { get; set; }
/// <summary>
/// Optional <see cref="AppendBlobRequestConditions"/> to add
/// conditions on the copying of data to this page blob.
/// </summary>
public PageBlobRequestConditions DestinationConditions { get; set; }
/// <summary>
/// Optional <see cref="AppendBlobRequestConditions"/> to add
/// conditions on the copying of data from this source blob.
/// </summary>
public PageBlobRequestConditions SourceConditions { get; set; }
/// <summary>
/// Optional. Source authentication used to access the source blob.
/// </summary>
public HttpAuthorization SourceAuthentication { get; set; }
}
}