| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using Metadata = System.Collections.Generic.IDictionary<string, string>; |
| | 6 | |
|
| | 7 | | namespace Azure.Storage.Files.DataLake.Models |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Optional parameters for uploading to a Data Lake file. |
| | 11 | | /// </summary> |
| | 12 | | public class DataLakeFileUploadOptions |
| | 13 | | { |
| | 14 | | /// <summary> |
| | 15 | | /// Optional standard HTTP header properties that can be set for the file. |
| | 16 | | /// </summary> |
| 552 | 17 | | public PathHttpHeaders HttpHeaders { get; set; } |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Optional custom metadata to set for this file. |
| | 21 | | /// </summary> |
| 200 | 22 | | public Metadata Metadata { get; set; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access |
| | 26 | | /// permissions for the file owner, the file owning group, and others. Each class may be granted read, |
| | 27 | | /// write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit |
| | 28 | | /// octal notation (e.g. 0766) are supported. |
| | 29 | | /// </summary> |
| 224 | 30 | | public string Permissions { get; set; } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Optional and only valid if Hierarchical Namespace is enabled for the account. |
| | 34 | | /// When creating a file or directory and the parent folder does not have a default ACL, |
| | 35 | | /// the umask restricts the permissions of the file or directory to be created. The resulting |
| | 36 | | /// permission is given by p bitwise-and ^u, where p is the permission and u is the umask. For example, |
| | 37 | | /// if p is 0777 and u is 0057, then the resulting permission is 0720. The default permission is |
| | 38 | | /// 0777 for a directory and 0666 for a file. The default umask is 0027. The umask must be specified |
| | 39 | | /// in 4-digit octal notation (e.g. 0766). |
| | 40 | | /// </summary> |
| 224 | 41 | | public string Umask { get; set; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Optional <see cref="DataLakeRequestConditions"/> to apply to the request. |
| | 45 | | /// </summary> |
| 1408 | 46 | | public DataLakeRequestConditions Conditions { get; set; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Optional <see cref="IProgress{Long}"/> to provide progress updates about data transfers. |
| | 50 | | /// </summary> |
| 320 | 51 | | public IProgress<long> ProgressHandler { get; set; } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Optional <see cref="StorageTransferOptions"/> to configure |
| | 55 | | /// parallel transfer behavior. |
| | 56 | | /// </summary> |
| 320 | 57 | | public StorageTransferOptions TransferOptions { get; set; } |
| | 58 | | } |
| | 59 | | } |