| | | 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 | | /// Contains information about an application in an Azure Batch account. |
| | | 22 | | /// </summary> |
| | | 23 | | public partial class ApplicationSummary : IPropertyMetadata |
| | | 24 | | { |
| | | 25 | | #region Constructors |
| | | 26 | | |
| | 14 | 27 | | internal ApplicationSummary(Models.ApplicationSummary protocolObject) |
| | | 28 | | { |
| | 14 | 29 | | this.DisplayName = protocolObject.DisplayName; |
| | 14 | 30 | | this.Id = protocolObject.Id; |
| | 26 | 31 | | this.Versions = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Versions, o => o.ToList().AsReadO |
| | 14 | 32 | | } |
| | | 33 | | |
| | | 34 | | #endregion Constructors |
| | | 35 | | |
| | | 36 | | #region ApplicationSummary |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets the display name of the application. |
| | | 40 | | /// </summary> |
| | 5 | 41 | | public string DisplayName { get; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets the id of the application. |
| | | 45 | | /// </summary> |
| | 9 | 46 | | public string Id { get; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets a readonly list of available versions of the application. |
| | | 50 | | /// </summary> |
| | 6 | 51 | | public IReadOnlyList<string> Versions { get; } |
| | | 52 | | |
| | | 53 | | #endregion // ApplicationSummary |
| | | 54 | | |
| | | 55 | | #region IPropertyMetadata |
| | | 56 | | |
| | | 57 | | bool IModifiable.HasBeenModified |
| | | 58 | | { |
| | | 59 | | //This class is compile time readonly so it cannot have been modified |
| | 0 | 60 | | get { return false; } |
| | | 61 | | } |
| | | 62 | | |
| | | 63 | | bool IReadOnly.IsReadOnly |
| | | 64 | | { |
| | 0 | 65 | | get { return true; } |
| | | 66 | | set |
| | | 67 | | { |
| | | 68 | | // This class is compile time readonly already |
| | 1 | 69 | | } |
| | | 70 | | } |
| | | 71 | | |
| | | 72 | | #endregion // IPropertyMetadata |
| | | 73 | | } |
| | | 74 | | } |