| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | |
| | | 7 | | namespace Azure.Storage.Files.DataLake.Models |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// Properties of a file system. |
| | | 11 | | /// </summary> |
| | | 12 | | public class FileSystemProperties |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Returns the <see cref="DateTimeOffset"/> the file system was last modified. Any operation that modifies the |
| | | 16 | | /// file system, including an update of the file systems's metadata or properties, changes the last-modified |
| | | 17 | | /// time of the file system. |
| | | 18 | | /// </summary> |
| | 0 | 19 | | public DateTimeOffset LastModified { get; internal set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// <see cref="LeaseStatus"/> of the file system. |
| | | 23 | | /// </summary> |
| | 19930 | 24 | | public DataLakeLeaseStatus? LeaseStatus { get; internal set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// <see cref="LeaseState"/> of the file system. |
| | | 28 | | /// </summary> |
| | 19930 | 29 | | public DataLakeLeaseState? LeaseState { get; internal set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// <see cref="DataLakeLeaseDuration"/> of the file system. |
| | | 33 | | /// </summary> |
| | 0 | 34 | | public DataLakeLeaseDuration? LeaseDuration { get; internal set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// <see cref="PublicAccessType"/> of the file system. |
| | | 38 | | /// </summary> |
| | 19934 | 39 | | public PublicAccessType? PublicAccess { get; internal set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Version 2017-11-09 and newer. Indicates whether the file system has an immutability policy set on it. |
| | | 43 | | /// Value is true if there is a policy set, false otherwise. |
| | | 44 | | /// </summary> |
| | 0 | 45 | | public bool? HasImmutabilityPolicy { get; internal set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Version 2017-11-09 and newer. Indicates whether the file system has a legal hold. |
| | | 49 | | /// Value is true if there is one or more legal hold(s), false otherwise. |
| | | 50 | | /// </summary> |
| | 0 | 51 | | public bool? HasLegalHold { get; internal set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// The ETag contains a value that you can use to perform operations conditionally on the file system. |
| | | 55 | | /// If the request service version is 2011-08-18 or newer, the ETag value will be in quotes. |
| | | 56 | | /// </summary> |
| | 19926 | 57 | | public ETag ETag { get; internal set; } |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// The file systems's metadata. |
| | | 61 | | /// </summary> |
| | 19934 | 62 | | public IDictionary<string, string> Metadata { get; internal set; } |
| | | 63 | | |
| | | 64 | | /// <summary> |
| | | 65 | | /// Prevent direct instantiation of FileSystemProperties instances. |
| | | 66 | | /// You can use BlobsModelFactory.FileSystemProperties instead. |
| | | 67 | | /// </summary> |
| | 39844 | 68 | | internal FileSystemProperties() { } |
| | | 69 | | } |
| | | 70 | | } |