| | 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 | | /// Statistics related to pool usage data. |
| | 22 | | /// </summary> |
| | 23 | | public partial class UsageStatistics : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 278 | 27 | | internal UsageStatistics(Models.UsageStatistics protocolObject) |
| | 28 | | { |
| 278 | 29 | | this.DedicatedCoreTime = protocolObject.DedicatedCoreTime; |
| 278 | 30 | | this.LastUpdateTime = protocolObject.LastUpdateTime; |
| 278 | 31 | | this.StartTime = protocolObject.StartTime; |
| 278 | 32 | | } |
| | 33 | |
|
| | 34 | | #endregion Constructors |
| | 35 | |
|
| | 36 | | #region UsageStatistics |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Gets the aggregated wall-clock time of the dedicated compute nodes being part of the pool. |
| | 40 | | /// </summary> |
| 277 | 41 | | public TimeSpan DedicatedCoreTime { get; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets the time at which the statistics were last updated. All statistics are limited to the range between <se |
| | 45 | | /// cref="StartTime"/> and this value. |
| | 46 | | /// </summary> |
| 277 | 47 | | public DateTime LastUpdateTime { get; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the start time of the time range covered by the statistics. |
| | 51 | | /// </summary> |
| 277 | 52 | | public DateTime StartTime { get; } |
| | 53 | |
|
| | 54 | | #endregion // UsageStatistics |
| | 55 | |
|
| | 56 | | #region IPropertyMetadata |
| | 57 | |
|
| | 58 | | bool IModifiable.HasBeenModified |
| | 59 | | { |
| | 60 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 61 | | get { return false; } |
| | 62 | | } |
| | 63 | |
|
| | 64 | | bool IReadOnly.IsReadOnly |
| | 65 | | { |
| 0 | 66 | | get { return true; } |
| | 67 | | set |
| | 68 | | { |
| | 69 | | // This class is compile time readonly already |
| 278 | 70 | | } |
| | 71 | | } |
| | 72 | |
|
| | 73 | | #endregion // IPropertyMetadata |
| | 74 | | } |
| | 75 | | } |