| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Batch.Protocol.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The properties of a file on a Compute Node. |
| | 18 | | /// </summary> |
| | 19 | | public partial class FileProperties |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the FileProperties class. |
| | 23 | | /// </summary> |
| 13 | 24 | | public FileProperties() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 13 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the FileProperties class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="lastModified">The time at which the file was last |
| | 33 | | /// modified.</param> |
| | 34 | | /// <param name="contentLength">The length of the file.</param> |
| | 35 | | /// <param name="creationTime">The file creation time.</param> |
| | 36 | | /// <param name="contentType">The content type of the file.</param> |
| | 37 | | /// <param name="fileMode">The file mode attribute in octal |
| | 38 | | /// format.</param> |
| 0 | 39 | | public FileProperties(System.DateTime lastModified, long contentLength, System.DateTime? creationTime = default( |
| | 40 | | { |
| 0 | 41 | | CreationTime = creationTime; |
| 0 | 42 | | LastModified = lastModified; |
| 0 | 43 | | ContentLength = contentLength; |
| 0 | 44 | | ContentType = contentType; |
| 0 | 45 | | FileMode = fileMode; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets the file creation time. |
| | 56 | | /// </summary> |
| | 57 | | /// <remarks> |
| | 58 | | /// The creation time is not returned for files on Linux Compute Nodes. |
| | 59 | | /// </remarks> |
| | 60 | | [JsonProperty(PropertyName = "creationTime")] |
| 19 | 61 | | public System.DateTime? CreationTime { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the time at which the file was last modified. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "lastModified")] |
| 20 | 67 | | public System.DateTime LastModified { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets the length of the file. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "contentLength")] |
| 19 | 73 | | public long ContentLength { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the content type of the file. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "contentType")] |
| 19 | 79 | | public string ContentType { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets the file mode attribute in octal format. |
| | 83 | | /// </summary> |
| | 84 | | /// <remarks> |
| | 85 | | /// The file mode is returned only for files on Linux Compute Nodes. |
| | 86 | | /// </remarks> |
| | 87 | | [JsonProperty(PropertyName = "fileMode")] |
| 20 | 88 | | public string FileMode { get; set; } |
| | 89 | |
|
| | 90 | | } |
| | 91 | | } |