| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.Storage.Files.DataLake.Models |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Lease. |
| | 10 | | /// </summary> |
| | 11 | | public class DataLakeLease |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// The ETag contains a value that you can use to perform operations conditionally. |
| | 15 | | /// If the request service version is 2011-08-18 or newer, the ETag value will be in quotes. |
| | 16 | | /// </summary> |
| 0 | 17 | | public ETag ETag { get; internal set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Returns the date and time the file system or path was last modified. |
| | 21 | | /// Any operation that modifies the file system or path, including an update of the its metadata or properties, |
| | 22 | | /// changes the last-modified time of the filesystem or path.. |
| | 23 | | /// </summary> |
| 0 | 24 | | public DateTimeOffset LastModified { get; internal set; } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Uniquely identifies a file system's or path's lease. |
| | 28 | | /// </summary> |
| 1040 | 29 | | public string LeaseId { get; internal set; } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Gets the approximate time remaining in the lease period, in |
| | 33 | | /// seconds. This is only provided when breaking a lease. |
| | 34 | | /// </summary> |
| 0 | 35 | | public int? LeaseTime { get; internal set; } |
| | 36 | |
|
| | 37 | | /// <summary> |
| | 38 | | /// Prevent direct instantiation of Lease instances. |
| | 39 | | /// You can use DataLakeModelFactory.Lease instead. |
| | 40 | | /// </summary> |
| 1584 | 41 | | internal DataLakeLease() { } |
| | 42 | | } |
| | 43 | | } |