| | 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 | | /// PathContentInfo |
| | 11 | | /// </summary> |
| | 12 | | public class PathContentInfo |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// An hash of the request content. This header is only returned for "Flush" operation. |
| | 16 | | /// This header is returned so that the client can check for message content integrity. |
| | 17 | | /// This header refers to the content of the request, not actual file content. |
| | 18 | | /// </summary> |
| 0 | 19 | | public string ContentHash { get; internal set; } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// An HTTP entity tag associated with the file or directory. |
| | 23 | | /// </summary> |
| 0 | 24 | | public ETag ETag { get; internal set; } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// The data and time the file or directory was last modified |
| | 28 | | /// Write operations on the file or directory update the last modified time. |
| | 29 | | /// </summary> |
| 0 | 30 | | public DateTimeOffset LastModified { get; internal set; } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Indicates that the service supports requests for partial file content. |
| | 34 | | /// </summary> |
| 0 | 35 | | public string AcceptRanges { get; internal set; } |
| | 36 | |
|
| | 37 | | /// <summary> |
| | 38 | | /// If the Cache-Control request header has previously been set for the resource, that value is returned in this |
| | 39 | | /// </summary> |
| 0 | 40 | | public string CacheControl { get; internal set; } |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// If the Content-Disposition request header has previously been set for the resource, that value is returned i |
| | 44 | | /// </summary> |
| 0 | 45 | | public string ContentDisposition { get; internal set; } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// If the Content-Encoding request header has previously been set for the resource, that value is returned in t |
| | 49 | | /// </summary> |
| 0 | 50 | | public string ContentEncoding { get; internal set; } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// If the Content-Language request header has previously been set for the resource, that value is returned in t |
| | 54 | | /// </summary> |
| 0 | 55 | | public string ContentLanguage { get; internal set; } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// The size of the resource in bytes. |
| | 59 | | /// </summary> |
| 0 | 60 | | public long ContentLength { get; internal set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Indicates the range of bytes returned in the event that the client requested a subset of the file by |
| | 64 | | /// setting the Range request header. |
| | 65 | | /// </summary> |
| 0 | 66 | | public string ContentRange { get; internal set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// The content type specified for the resource. If no content type was specified, the default content |
| | 70 | | /// type is application/octet-stream. |
| | 71 | | /// </summary> |
| 0 | 72 | | public string ContentType { get; internal set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Metadata for the path |
| | 76 | | /// </summary> |
| 0 | 77 | | public IDictionary<string, string> Metadata { get; internal set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Prevent direct instantiation of PathContentInfo instances. |
| | 81 | | /// You can use DataLakeModelFactory.PathContentInfo instead. |
| | 82 | | /// </summary> |
| 0 | 83 | | internal PathContentInfo() { } |
| | 84 | | } |
| | 85 | | } |