-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
PageBlobCreateOptions.cs
61 lines (53 loc) · 2.36 KB
/
PageBlobCreateOptions.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
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 creating an Page Blob.
/// </summary>
public class PageBlobCreateOptions
{
/// <summary>
/// Optional user-controlled value that you can use to track requests.
/// The value of the SequenceNumber must be between
/// 0 and 2^63 - 1. The default value is 0.
/// </summary>
public long? SequenceNumber { get; set; }
/// <summary>
/// Optional standard HTTP header properties that can be set for the
/// new page blob.
/// </summary>
public BlobHttpHeaders HttpHeaders { get; set; }
/// <summary>
/// Optional <see cref="PageBlobRequestConditions"/> to add
/// conditions on the creation of this new page blob.
/// </summary>
public PageBlobRequestConditions Conditions { get; set; }
/// <summary>
/// Optional custom metadata to set for this page blob.
/// </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 append 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="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; }
}
}