| | 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 number of nodes in each node state. |
| | 22 | | /// </summary> |
| | 23 | | public partial class NodeCounts : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 2 | 27 | | internal NodeCounts(Models.NodeCounts protocolObject) |
| | 28 | | { |
| 2 | 29 | | this.Creating = protocolObject.Creating; |
| 2 | 30 | | this.Idle = protocolObject.Idle; |
| 2 | 31 | | this.LeavingPool = protocolObject.LeavingPool; |
| 2 | 32 | | this.Offline = protocolObject.Offline; |
| 2 | 33 | | this.Preempted = protocolObject.Preempted; |
| 2 | 34 | | this.Rebooting = protocolObject.Rebooting; |
| 2 | 35 | | this.Reimaging = protocolObject.Reimaging; |
| 2 | 36 | | this.Running = protocolObject.Running; |
| 2 | 37 | | this.Starting = protocolObject.Starting; |
| 2 | 38 | | this.StartTaskFailed = protocolObject.StartTaskFailed; |
| 2 | 39 | | this.Total = protocolObject.Total; |
| 2 | 40 | | this.Unknown = protocolObject.Unknown; |
| 2 | 41 | | this.Unusable = protocolObject.Unusable; |
| 2 | 42 | | this.WaitingForStartTask = protocolObject.WaitingForStartTask; |
| 2 | 43 | | } |
| | 44 | |
|
| | 45 | | #endregion Constructors |
| | 46 | |
|
| | 47 | | #region NodeCounts |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Creating" />. |
| | 51 | | /// </summary> |
| 1 | 52 | | public int Creating { get; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Idle" />. |
| | 56 | | /// </summary> |
| 1 | 57 | | public int Idle { get; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.LeavingPool" />. |
| | 61 | | /// </summary> |
| 1 | 62 | | public int LeavingPool { get; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Offline" />. |
| | 66 | | /// </summary> |
| 1 | 67 | | public int Offline { get; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Preempted" />. |
| | 71 | | /// </summary> |
| 1 | 72 | | public int Preempted { get; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Rebooting" />. |
| | 76 | | /// </summary> |
| 1 | 77 | | public int Rebooting { get; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Reimaging" />. |
| | 81 | | /// </summary> |
| 1 | 82 | | public int Reimaging { get; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Running" />. |
| | 86 | | /// </summary> |
| 1 | 87 | | public int Running { get; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Starting" />. |
| | 91 | | /// </summary> |
| 1 | 92 | | public int Starting { get; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.StartTaskFailed" />. |
| | 96 | | /// </summary> |
| 1 | 97 | | public int StartTaskFailed { get; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets the total number of nodes. |
| | 101 | | /// </summary> |
| 1 | 102 | | public int Total { get; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Unknown" />. |
| | 106 | | /// </summary> |
| 1 | 107 | | public int Unknown { get; } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.Unusable" />. |
| | 111 | | /// </summary> |
| 1 | 112 | | public int Unusable { get; } |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets the number of nodes in <see cref="Common.ComputeNodeState.WaitingForStartTask" />. |
| | 116 | | /// </summary> |
| 1 | 117 | | public int WaitingForStartTask { get; } |
| | 118 | |
|
| | 119 | | #endregion // NodeCounts |
| | 120 | |
|
| | 121 | | #region IPropertyMetadata |
| | 122 | |
|
| | 123 | | bool IModifiable.HasBeenModified |
| | 124 | | { |
| | 125 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 126 | | get { return false; } |
| | 127 | | } |
| | 128 | |
|
| | 129 | | bool IReadOnly.IsReadOnly |
| | 130 | | { |
| 0 | 131 | | get { return true; } |
| | 132 | | set |
| | 133 | | { |
| | 134 | | // This class is compile time readonly already |
| 2 | 135 | | } |
| | 136 | | } |
| | 137 | |
|
| | 138 | | #endregion // IPropertyMetadata |
| | 139 | | } |
| | 140 | | } |