| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Batch.Protocol.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// The number of Compute Nodes in each Compute Node state. |
| | 18 | | /// </summary> |
| | 19 | | public partial class NodeCounts |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the NodeCounts class. |
| | 23 | | /// </summary> |
| 2 | 24 | | public NodeCounts() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the NodeCounts class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="creating">The number of Compute Nodes in the creating |
| | 33 | | /// state.</param> |
| | 34 | | /// <param name="idle">The number of Compute Nodes in the idle |
| | 35 | | /// state.</param> |
| | 36 | | /// <param name="offline">The number of Compute Nodes in the offline |
| | 37 | | /// state.</param> |
| | 38 | | /// <param name="preempted">The number of Compute Nodes in the |
| | 39 | | /// preempted state.</param> |
| | 40 | | /// <param name="rebooting">The count of Compute Nodes in the rebooting |
| | 41 | | /// state.</param> |
| | 42 | | /// <param name="reimaging">The number of Compute Nodes in the |
| | 43 | | /// reimaging state.</param> |
| | 44 | | /// <param name="running">The number of Compute Nodes in the running |
| | 45 | | /// state.</param> |
| | 46 | | /// <param name="starting">The number of Compute Nodes in the starting |
| | 47 | | /// state.</param> |
| | 48 | | /// <param name="startTaskFailed">The number of Compute Nodes in the |
| | 49 | | /// startTaskFailed state.</param> |
| | 50 | | /// <param name="leavingPool">The number of Compute Nodes in the |
| | 51 | | /// leavingPool state.</param> |
| | 52 | | /// <param name="unknown">The number of Compute Nodes in the unknown |
| | 53 | | /// state.</param> |
| | 54 | | /// <param name="unusable">The number of Compute Nodes in the unusable |
| | 55 | | /// state.</param> |
| | 56 | | /// <param name="waitingForStartTask">The number of Compute Nodes in |
| | 57 | | /// the waitingForStartTask state.</param> |
| | 58 | | /// <param name="total">The total number of Compute Nodes.</param> |
| 0 | 59 | | public NodeCounts(int creating, int idle, int offline, int preempted, int rebooting, int reimaging, int running, |
| | 60 | | { |
| 0 | 61 | | Creating = creating; |
| 0 | 62 | | Idle = idle; |
| 0 | 63 | | Offline = offline; |
| 0 | 64 | | Preempted = preempted; |
| 0 | 65 | | Rebooting = rebooting; |
| 0 | 66 | | Reimaging = reimaging; |
| 0 | 67 | | Running = running; |
| 0 | 68 | | Starting = starting; |
| 0 | 69 | | StartTaskFailed = startTaskFailed; |
| 0 | 70 | | LeavingPool = leavingPool; |
| 0 | 71 | | Unknown = unknown; |
| 0 | 72 | | Unusable = unusable; |
| 0 | 73 | | WaitingForStartTask = waitingForStartTask; |
| 0 | 74 | | Total = total; |
| | 75 | | CustomInit(); |
| 0 | 76 | | } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// An initialization method that performs custom operations like setting defaults |
| | 80 | | /// </summary> |
| | 81 | | partial void CustomInit(); |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets the number of Compute Nodes in the creating state. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "creating")] |
| 3 | 87 | | public int Creating { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the number of Compute Nodes in the idle state. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "idle")] |
| 0 | 93 | | public int Idle { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets the number of Compute Nodes in the offline state. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "offline")] |
| 0 | 99 | | public int Offline { get; set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets or sets the number of Compute Nodes in the preempted state. |
| | 103 | | /// </summary> |
| | 104 | | [JsonProperty(PropertyName = "preempted")] |
| 3 | 105 | | public int Preempted { get; set; } |
| | 106 | |
|
| | 107 | | /// <summary> |
| | 108 | | /// Gets or sets the count of Compute Nodes in the rebooting state. |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "rebooting")] |
| 3 | 111 | | public int Rebooting { get; set; } |
| | 112 | |
|
| | 113 | | /// <summary> |
| | 114 | | /// Gets or sets the number of Compute Nodes in the reimaging state. |
| | 115 | | /// </summary> |
| | 116 | | [JsonProperty(PropertyName = "reimaging")] |
| 0 | 117 | | public int Reimaging { get; set; } |
| | 118 | |
|
| | 119 | | /// <summary> |
| | 120 | | /// Gets or sets the number of Compute Nodes in the running state. |
| | 121 | | /// </summary> |
| | 122 | | [JsonProperty(PropertyName = "running")] |
| 3 | 123 | | public int Running { get; set; } |
| | 124 | |
|
| | 125 | | /// <summary> |
| | 126 | | /// Gets or sets the number of Compute Nodes in the starting state. |
| | 127 | | /// </summary> |
| | 128 | | [JsonProperty(PropertyName = "starting")] |
| 0 | 129 | | public int Starting { get; set; } |
| | 130 | |
|
| | 131 | | /// <summary> |
| | 132 | | /// Gets or sets the number of Compute Nodes in the startTaskFailed |
| | 133 | | /// state. |
| | 134 | | /// </summary> |
| | 135 | | [JsonProperty(PropertyName = "startTaskFailed")] |
| 0 | 136 | | public int StartTaskFailed { get; set; } |
| | 137 | |
|
| | 138 | | /// <summary> |
| | 139 | | /// Gets or sets the number of Compute Nodes in the leavingPool state. |
| | 140 | | /// </summary> |
| | 141 | | [JsonProperty(PropertyName = "leavingPool")] |
| 4 | 142 | | public int LeavingPool { get; set; } |
| | 143 | |
|
| | 144 | | /// <summary> |
| | 145 | | /// Gets or sets the number of Compute Nodes in the unknown state. |
| | 146 | | /// </summary> |
| | 147 | | [JsonProperty(PropertyName = "unknown")] |
| 0 | 148 | | public int Unknown { get; set; } |
| | 149 | |
|
| | 150 | | /// <summary> |
| | 151 | | /// Gets or sets the number of Compute Nodes in the unusable state. |
| | 152 | | /// </summary> |
| | 153 | | [JsonProperty(PropertyName = "unusable")] |
| 3 | 154 | | public int Unusable { get; set; } |
| | 155 | |
|
| | 156 | | /// <summary> |
| | 157 | | /// Gets or sets the number of Compute Nodes in the waitingForStartTask |
| | 158 | | /// state. |
| | 159 | | /// </summary> |
| | 160 | | [JsonProperty(PropertyName = "waitingForStartTask")] |
| 0 | 161 | | public int WaitingForStartTask { get; set; } |
| | 162 | |
|
| | 163 | | /// <summary> |
| | 164 | | /// Gets or sets the total number of Compute Nodes. |
| | 165 | | /// </summary> |
| | 166 | | [JsonProperty(PropertyName = "total")] |
| 3 | 167 | | public int Total { get; set; } |
| | 168 | |
|
| | 169 | | } |
| | 170 | | } |