|  |  | 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 |  |     /// A reference to an Azure Virtual Machines Marketplace Image and additional information about the Image. | 
|  |  | 22 |  |     /// </summary> | 
|  |  | 23 |  |     public partial class ImageInformation : IPropertyMetadata | 
|  |  | 24 |  |     { | 
|  |  | 25 |  |         #region Constructors | 
|  |  | 26 |  |  | 
|  | 1001 | 27 |  |         internal ImageInformation(Models.ImageInformation protocolObject) | 
|  |  | 28 |  |         { | 
|  | 1001 | 29 |  |             this.BatchSupportEndOfLife = protocolObject.BatchSupportEndOfLife; | 
|  | 1514 | 30 |  |             this.Capabilities = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Capabilities, o => o.ToList() | 
|  | 1478 | 31 |  |             this.ImageReference = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ImageReference, o => new Im | 
|  | 1001 | 32 |  |             this.NodeAgentSkuId = protocolObject.NodeAgentSKUId; | 
|  | 1001 | 33 |  |             this.OSType = UtilitiesInternal.MapNullableEnum<Models.OSType, Common.OSType>(protocolObject.OsType); | 
|  | 1001 | 34 |  |             this.VerificationType = UtilitiesInternal.MapNullableEnum<Models.VerificationType, Common.VerificationType>( | 
|  | 1001 | 35 |  |         } | 
|  |  | 36 |  |  | 
|  |  | 37 |  |         #endregion Constructors | 
|  |  | 38 |  |  | 
|  |  | 39 |  |         #region ImageInformation | 
|  |  | 40 |  |  | 
|  |  | 41 |  |         /// <summary> | 
|  |  | 42 |  |         /// Gets the time when the Azure Batch service will stop accepting create pool requests for the Image. | 
|  |  | 43 |  |         /// </summary> | 
|  | 1001 | 44 |  |         public DateTime? BatchSupportEndOfLife { get; } | 
|  |  | 45 |  |  | 
|  |  | 46 |  |         /// <summary> | 
|  |  | 47 |  |         /// Gets the capabilities or features which the Image supports. | 
|  |  | 48 |  |         /// </summary> | 
|  |  | 49 |  |         /// <remarks> | 
|  |  | 50 |  |         /// Not every capability of the Image is listed. Capabilities in this list are considered of special interest an | 
|  |  | 51 |  |         /// are generally related to integration with other features in the Azure Batch service. | 
|  |  | 52 |  |         /// </remarks> | 
|  | 1001 | 53 |  |         public IReadOnlyList<string> Capabilities { get; } | 
|  |  | 54 |  |  | 
|  |  | 55 |  |         /// <summary> | 
|  |  | 56 |  |         /// Gets the reference to the Azure Virtual Machine's Marketplace Image. | 
|  |  | 57 |  |         /// </summary> | 
|  | 1001 | 58 |  |         public ImageReference ImageReference { get; } | 
|  |  | 59 |  |  | 
|  |  | 60 |  |         /// <summary> | 
|  |  | 61 |  |         /// Gets the ID of the node agent SKU which the Image supports | 
|  |  | 62 |  |         /// </summary> | 
|  | 1001 | 63 |  |         public string NodeAgentSkuId { get; } | 
|  |  | 64 |  |  | 
|  |  | 65 |  |         /// <summary> | 
|  |  | 66 |  |         /// Gets the type of operating system (e.g. Windows or Linux) of the Image. | 
|  |  | 67 |  |         /// </summary> | 
|  | 1001 | 68 |  |         public Common.OSType? OSType { get; } | 
|  |  | 69 |  |  | 
|  |  | 70 |  |         /// <summary> | 
|  |  | 71 |  |         /// Gets whether the Azure Batch service actively verifies that the Image is compatible with the associated Node | 
|  |  | 72 |  |         /// Agent SKU. | 
|  |  | 73 |  |         /// </summary> | 
|  | 1001 | 74 |  |         public Common.VerificationType? VerificationType { get; } | 
|  |  | 75 |  |  | 
|  |  | 76 |  |         #endregion // ImageInformation | 
|  |  | 77 |  |  | 
|  |  | 78 |  |         #region IPropertyMetadata | 
|  |  | 79 |  |  | 
|  |  | 80 |  |         bool IModifiable.HasBeenModified | 
|  |  | 81 |  |         { | 
|  |  | 82 |  |             //This class is compile time readonly so it cannot have been modified | 
|  | 0 | 83 |  |             get { return false; } | 
|  |  | 84 |  |         } | 
|  |  | 85 |  |  | 
|  |  | 86 |  |         bool IReadOnly.IsReadOnly | 
|  |  | 87 |  |         { | 
|  | 0 | 88 |  |             get { return true; } | 
|  |  | 89 |  |             set | 
|  |  | 90 |  |             { | 
|  |  | 91 |  |                 // This class is compile time readonly already | 
|  | 1 | 92 |  |             } | 
|  |  | 93 |  |         } | 
|  |  | 94 |  |  | 
|  |  | 95 |  |         #endregion // IPropertyMetadata | 
|  |  | 96 |  |     } | 
|  |  | 97 |  | } |