-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BlobLease.cs
42 lines (36 loc) · 1.46 KB
/
BlobLease.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 System;
using Azure;
using Azure.Storage.Blobs.Models;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// BlobLease.
/// </summary>
public class BlobLease
{
/// <summary>
/// The ETag contains a value that you can use to perform operations conditionally. If the request version is 2011-08-18 or newer, the ETag value will be in quotes.
/// </summary>
public ETag ETag { get; internal set; }
/// <summary>
/// Returns the date and time the container was last modified. Any operation that modifies the blob, including an update of the blob's metadata or properties, changes the last-modified time of the blob.
/// </summary>
public DateTimeOffset LastModified { get; internal set; }
/// <summary>
/// Uniquely identifies a container's or blob's lease
/// </summary>
public string LeaseId { get; internal set; }
/// <summary>
/// Gets the approximate time remaining in the lease period, in
/// seconds. This is only provided when breaking a lease.
/// </summary>
public int? LeaseTime { get; internal set; }
/// <summary>
/// Prevent direct instantiation of BlobLease instances.
/// You can use BlobsModelFactory.BlobLease instead.
/// </summary>
internal BlobLease() { }
}
}