|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. See License.txt in the project root for license information. | 
|  |  | 3 |  | // | 
|  |  | 4 |  | // Code generated by Microsoft (R) AutoRest Code Generator. | 
|  |  | 5 |  | // Changes may cause incorrect behavior and will be lost if the code is | 
|  |  | 6 |  | // regenerated. | 
|  |  | 7 |  |  | 
|  |  | 8 |  | // | 
|  |  | 9 |  | // This file was autogenerated by a tool. | 
|  |  | 10 |  | // Do not modify it. | 
|  |  | 11 |  | // | 
|  |  | 12 |  |  | 
|  |  | 13 |  | namespace Microsoft.Azure.Batch | 
|  |  | 14 |  | { | 
|  |  | 15 |  |     using Models = Microsoft.Azure.Batch.Protocol.Models; | 
|  |  | 16 |  |     using System; | 
|  |  | 17 |  |     using System.Collections.Generic; | 
|  |  | 18 |  |     using System.Linq; | 
|  |  | 19 |  |  | 
|  |  | 20 |  |     /// <summary> | 
|  |  | 21 |  |     /// The properties of a file on a compute node. | 
|  |  | 22 |  |     /// </summary> | 
|  |  | 23 |  |     public partial class FileProperties : IPropertyMetadata | 
|  |  | 24 |  |     { | 
|  |  | 25 |  |         #region Constructors | 
|  |  | 26 |  |  | 
|  | 7 | 27 |  |         internal FileProperties(Models.FileProperties protocolObject) | 
|  |  | 28 |  |         { | 
|  | 7 | 29 |  |             this.ContentLength = protocolObject.ContentLength; | 
|  | 7 | 30 |  |             this.ContentType = protocolObject.ContentType; | 
|  | 7 | 31 |  |             this.CreationTime = protocolObject.CreationTime; | 
|  | 7 | 32 |  |             this.FileMode = protocolObject.FileMode; | 
|  | 7 | 33 |  |             this.LastModified = protocolObject.LastModified; | 
|  | 7 | 34 |  |         } | 
|  |  | 35 |  |  | 
|  |  | 36 |  |         #endregion Constructors | 
|  |  | 37 |  |  | 
|  |  | 38 |  |         #region FileProperties | 
|  |  | 39 |  |  | 
|  |  | 40 |  |         /// <summary> | 
|  |  | 41 |  |         /// Gets the length of the file. | 
|  |  | 42 |  |         /// </summary> | 
|  | 3 | 43 |  |         public long ContentLength { get; } | 
|  |  | 44 |  |  | 
|  |  | 45 |  |         /// <summary> | 
|  |  | 46 |  |         /// Gets the content type of the file. | 
|  |  | 47 |  |         /// </summary> | 
|  | 1 | 48 |  |         public string ContentType { get; } | 
|  |  | 49 |  |  | 
|  |  | 50 |  |         /// <summary> | 
|  |  | 51 |  |         /// Gets the file creation time. | 
|  |  | 52 |  |         /// </summary> | 
|  | 1 | 53 |  |         public DateTime? CreationTime { get; } | 
|  |  | 54 |  |  | 
|  |  | 55 |  |         /// <summary> | 
|  |  | 56 |  |         /// Gets the permission attribute for the file. | 
|  |  | 57 |  |         /// </summary> | 
|  |  | 58 |  |         /// <remarks> | 
|  |  | 59 |  |         /// This property will be returned only for Linux nodes. | 
|  |  | 60 |  |         /// </remarks> | 
|  | 1 | 61 |  |         public string FileMode { get; } | 
|  |  | 62 |  |  | 
|  |  | 63 |  |         /// <summary> | 
|  |  | 64 |  |         /// Gets the time at which the file was last modified. | 
|  |  | 65 |  |         /// </summary> | 
|  | 1 | 66 |  |         public DateTime LastModified { get; } | 
|  |  | 67 |  |  | 
|  |  | 68 |  |         #endregion // FileProperties | 
|  |  | 69 |  |  | 
|  |  | 70 |  |         #region IPropertyMetadata | 
|  |  | 71 |  |  | 
|  |  | 72 |  |         bool IModifiable.HasBeenModified | 
|  |  | 73 |  |         { | 
|  |  | 74 |  |             //This class is compile time readonly so it cannot have been modified | 
|  | 0 | 75 |  |             get { return false; } | 
|  |  | 76 |  |         } | 
|  |  | 77 |  |  | 
|  |  | 78 |  |         bool IReadOnly.IsReadOnly | 
|  |  | 79 |  |         { | 
|  | 0 | 80 |  |             get { return true; } | 
|  |  | 81 |  |             set | 
|  |  | 82 |  |             { | 
|  |  | 83 |  |                 // This class is compile time readonly already | 
|  | 1 | 84 |  |             } | 
|  |  | 85 |  |         } | 
|  |  | 86 |  |  | 
|  |  | 87 |  |         #endregion // IPropertyMetadata | 
|  |  | 88 |  |     } | 
|  |  | 89 |  | } |