| | 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.HDInsight.Job.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Gets or sets the object containing the job status information. |
| | 18 | | /// </summary> |
| | 19 | | public partial class Status |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the Status class. |
| | 23 | | /// </summary> |
| 164 | 24 | | public Status() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 164 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the Status class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="cleanupProgress">The progress made on the |
| | 33 | | /// cleanup.</param> |
| | 34 | | /// <param name="failureInfo">The information about any failures that |
| | 35 | | /// have occurred.</param> |
| | 36 | | /// <param name="finishTime">The time at which the job completed. It is |
| | 37 | | /// an integer in milliseconds, as a Unix timestamp relative to |
| | 38 | | /// 1/1/1970 00:00:00.</param> |
| | 39 | | /// <param name="historyFile">The history file of the job.</param> |
| | 40 | | /// <param name="jobACLs">The ACLs of the job.</param> |
| | 41 | | /// <param name="jobComplete">Whether or not the job has |
| | 42 | | /// completed.</param> |
| | 43 | | /// <param name="jobFile">The job configuration file.</param> |
| | 44 | | /// <param name="jobId">The full ID of the job.</param> |
| | 45 | | /// <param name="jobID">The ID of the job.</param> |
| | 46 | | /// <param name="jobName">The user-specified job name.</param> |
| | 47 | | /// <param name="jobPriority">The priority of the job.</param> |
| | 48 | | /// <param name="mapProgress">The progress made on the maps.</param> |
| | 49 | | /// <param name="neededMem">The amount of memory needed for the |
| | 50 | | /// job.</param> |
| | 51 | | /// <param name="numReservedSlots">The number of slots |
| | 52 | | /// reserved.</param> |
| | 53 | | /// <param name="numUsedSlots">The number of slots used for the |
| | 54 | | /// job.</param> |
| | 55 | | /// <param name="priority">The priority of the job.</param> |
| | 56 | | /// <param name="queue">The job queue name.</param> |
| | 57 | | /// <param name="reduceProgress">The progress made on the |
| | 58 | | /// reduces.</param> |
| | 59 | | /// <param name="reservedMem">The amount of memory reserved for the |
| | 60 | | /// job.</param> |
| | 61 | | /// <param name="retired">Whether or not the job has been retired. |
| | 62 | | /// </param> |
| | 63 | | /// <param name="runState">The current state of the job.</param> |
| | 64 | | /// <param name="schedulingInfo">The information about the scheduling |
| | 65 | | /// of the job.</param> |
| | 66 | | /// <param name="setupProgress">The progress made on the setup.</param> |
| | 67 | | /// <param name="startTime">The time at which the job started. It is an |
| | 68 | | /// integer in milliseconds, as a Unix timestamp relative to 1/1/1970 |
| | 69 | | /// 00:00:00.</param> |
| | 70 | | /// <param name="state">The state of the job.</param> |
| | 71 | | /// <param name="trackingUrl">The link to the web-ui for details of the |
| | 72 | | /// job.</param> |
| | 73 | | /// <param name="uber">Whether job running in uber mode.</param> |
| | 74 | | /// <param name="usedMem">The amount of memory used by the job.</param> |
| | 75 | | /// <param name="username">The userid of the person who submitted the |
| | 76 | | /// job.</param> |
| 0 | 77 | | public Status(double? cleanupProgress = default(double?), string failureInfo = default(string), long? finishTime |
| | 78 | | { |
| 0 | 79 | | CleanupProgress = cleanupProgress; |
| 0 | 80 | | FailureInfo = failureInfo; |
| 0 | 81 | | FinishTime = finishTime; |
| 0 | 82 | | HistoryFile = historyFile; |
| 0 | 83 | | JobACLs = jobACLs; |
| 0 | 84 | | JobComplete = jobComplete; |
| 0 | 85 | | JobFile = jobFile; |
| 0 | 86 | | JobId = jobId; |
| 0 | 87 | | JobID = jobID; |
| 0 | 88 | | JobName = jobName; |
| 0 | 89 | | JobPriority = jobPriority; |
| 0 | 90 | | MapProgress = mapProgress; |
| 0 | 91 | | NeededMem = neededMem; |
| 0 | 92 | | NumReservedSlots = numReservedSlots; |
| 0 | 93 | | NumUsedSlots = numUsedSlots; |
| 0 | 94 | | Priority = priority; |
| 0 | 95 | | Queue = queue; |
| 0 | 96 | | ReduceProgress = reduceProgress; |
| 0 | 97 | | ReservedMem = reservedMem; |
| 0 | 98 | | Retired = retired; |
| 0 | 99 | | RunState = runState; |
| 0 | 100 | | SchedulingInfo = schedulingInfo; |
| 0 | 101 | | SetupProgress = setupProgress; |
| 0 | 102 | | StartTime = startTime; |
| 0 | 103 | | State = state; |
| 0 | 104 | | TrackingUrl = trackingUrl; |
| 0 | 105 | | Uber = uber; |
| 0 | 106 | | UsedMem = usedMem; |
| 0 | 107 | | Username = username; |
| | 108 | | CustomInit(); |
| 0 | 109 | | } |
| | 110 | |
|
| | 111 | | /// <summary> |
| | 112 | | /// An initialization method that performs custom operations like setting defaults |
| | 113 | | /// </summary> |
| | 114 | | partial void CustomInit(); |
| | 115 | |
|
| | 116 | | /// <summary> |
| | 117 | | /// Gets or sets the progress made on the cleanup. |
| | 118 | | /// </summary> |
| | 119 | | [JsonProperty(PropertyName = "cleanupProgress")] |
| 0 | 120 | | public double? CleanupProgress { get; set; } |
| | 121 | |
|
| | 122 | | /// <summary> |
| | 123 | | /// Gets or sets the information about any failures that have occurred. |
| | 124 | | /// </summary> |
| | 125 | | [JsonProperty(PropertyName = "failureInfo")] |
| 0 | 126 | | public string FailureInfo { get; set; } |
| | 127 | |
|
| | 128 | | /// <summary> |
| | 129 | | /// Gets or sets the time at which the job completed. It is an integer |
| | 130 | | /// in milliseconds, as a Unix timestamp relative to 1/1/1970 00:00:00. |
| | 131 | | /// </summary> |
| | 132 | | [JsonProperty(PropertyName = "finishTime")] |
| 0 | 133 | | public long? FinishTime { get; set; } |
| | 134 | |
|
| | 135 | | /// <summary> |
| | 136 | | /// Gets or sets the history file of the job. |
| | 137 | | /// </summary> |
| | 138 | | [JsonProperty(PropertyName = "historyFile")] |
| 0 | 139 | | public string HistoryFile { get; set; } |
| | 140 | |
|
| | 141 | | /// <summary> |
| | 142 | | /// Gets or sets the ACLs of the job. |
| | 143 | | /// </summary> |
| | 144 | | [JsonProperty(PropertyName = "jobACLs")] |
| 328 | 145 | | public object JobACLs { get; set; } |
| | 146 | |
|
| | 147 | | /// <summary> |
| | 148 | | /// Gets or sets whether or not the job has completed. |
| | 149 | | /// </summary> |
| | 150 | | [JsonProperty(PropertyName = "jobComplete")] |
| 190 | 151 | | public bool? JobComplete { get; set; } |
| | 152 | |
|
| | 153 | | /// <summary> |
| | 154 | | /// Gets or sets the job configuration file. |
| | 155 | | /// </summary> |
| | 156 | | [JsonProperty(PropertyName = "jobFile")] |
| 0 | 157 | | public string JobFile { get; set; } |
| | 158 | |
|
| | 159 | | /// <summary> |
| | 160 | | /// Gets or sets the full ID of the job. |
| | 161 | | /// </summary> |
| | 162 | | [JsonProperty(PropertyName = "jobId")] |
| 0 | 163 | | public string JobId { get; set; } |
| | 164 | |
|
| | 165 | | /// <summary> |
| | 166 | | /// Gets or sets the ID of the job. |
| | 167 | | /// </summary> |
| | 168 | | [JsonProperty(PropertyName = "jobID")] |
| 328 | 169 | | public JobID JobID { get; set; } |
| | 170 | |
|
| | 171 | | /// <summary> |
| | 172 | | /// Gets or sets the user-specified job name. |
| | 173 | | /// </summary> |
| | 174 | | [JsonProperty(PropertyName = "jobName")] |
| 0 | 175 | | public string JobName { get; set; } |
| | 176 | |
|
| | 177 | | /// <summary> |
| | 178 | | /// Gets or sets the priority of the job. |
| | 179 | | /// </summary> |
| | 180 | | [JsonProperty(PropertyName = "jobPriority")] |
| 0 | 181 | | public string JobPriority { get; set; } |
| | 182 | |
|
| | 183 | | /// <summary> |
| | 184 | | /// Gets or sets the progress made on the maps. |
| | 185 | | /// </summary> |
| | 186 | | [JsonProperty(PropertyName = "mapProgress")] |
| 0 | 187 | | public double? MapProgress { get; set; } |
| | 188 | |
|
| | 189 | | /// <summary> |
| | 190 | | /// Gets or sets the amount of memory needed for the job. |
| | 191 | | /// </summary> |
| | 192 | | [JsonProperty(PropertyName = "neededMem")] |
| 0 | 193 | | public long? NeededMem { get; set; } |
| | 194 | |
|
| | 195 | | /// <summary> |
| | 196 | | /// Gets or sets the number of slots reserved. |
| | 197 | | /// </summary> |
| | 198 | | [JsonProperty(PropertyName = "numReservedSlots")] |
| 0 | 199 | | public int? NumReservedSlots { get; set; } |
| | 200 | |
|
| | 201 | | /// <summary> |
| | 202 | | /// Gets or sets the number of slots used for the job. |
| | 203 | | /// </summary> |
| | 204 | | [JsonProperty(PropertyName = "numUsedSlots")] |
| 0 | 205 | | public int? NumUsedSlots { get; set; } |
| | 206 | |
|
| | 207 | | /// <summary> |
| | 208 | | /// Gets or sets the priority of the job. |
| | 209 | | /// </summary> |
| | 210 | | [JsonProperty(PropertyName = "priority")] |
| 0 | 211 | | public string Priority { get; set; } |
| | 212 | |
|
| | 213 | | /// <summary> |
| | 214 | | /// Gets or sets the job queue name. |
| | 215 | | /// </summary> |
| | 216 | | [JsonProperty(PropertyName = "queue")] |
| 0 | 217 | | public string Queue { get; set; } |
| | 218 | |
|
| | 219 | | /// <summary> |
| | 220 | | /// Gets or sets the progress made on the reduces. |
| | 221 | | /// </summary> |
| | 222 | | [JsonProperty(PropertyName = "reduceProgress")] |
| 0 | 223 | | public double? ReduceProgress { get; set; } |
| | 224 | |
|
| | 225 | | /// <summary> |
| | 226 | | /// Gets or sets the amount of memory reserved for the job. |
| | 227 | | /// </summary> |
| | 228 | | [JsonProperty(PropertyName = "reservedMem")] |
| 0 | 229 | | public long? ReservedMem { get; set; } |
| | 230 | |
|
| | 231 | | /// <summary> |
| | 232 | | /// Gets or sets whether or not the job has been retired. |
| | 233 | | /// </summary> |
| | 234 | | [JsonProperty(PropertyName = "retired")] |
| 0 | 235 | | public bool? Retired { get; set; } |
| | 236 | |
|
| | 237 | | /// <summary> |
| | 238 | | /// Gets or sets the current state of the job. |
| | 239 | | /// </summary> |
| | 240 | | [JsonProperty(PropertyName = "runState")] |
| 0 | 241 | | public int? RunState { get; set; } |
| | 242 | |
|
| | 243 | | /// <summary> |
| | 244 | | /// Gets or sets the information about the scheduling of the job. |
| | 245 | | /// </summary> |
| | 246 | | [JsonProperty(PropertyName = "schedulingInfo")] |
| 0 | 247 | | public string SchedulingInfo { get; set; } |
| | 248 | |
|
| | 249 | | /// <summary> |
| | 250 | | /// Gets or sets the progress made on the setup. |
| | 251 | | /// </summary> |
| | 252 | | [JsonProperty(PropertyName = "setupProgress")] |
| 0 | 253 | | public double? SetupProgress { get; set; } |
| | 254 | |
|
| | 255 | | /// <summary> |
| | 256 | | /// Gets or sets the time at which the job started. It is an integer in |
| | 257 | | /// milliseconds, as a Unix timestamp relative to 1/1/1970 00:00:00. |
| | 258 | | /// </summary> |
| | 259 | | [JsonProperty(PropertyName = "startTime")] |
| 0 | 260 | | public long? StartTime { get; set; } |
| | 261 | |
|
| | 262 | | /// <summary> |
| | 263 | | /// Gets or sets the state of the job. |
| | 264 | | /// </summary> |
| | 265 | | [JsonProperty(PropertyName = "state")] |
| 166 | 266 | | public string State { get; set; } |
| | 267 | |
|
| | 268 | | /// <summary> |
| | 269 | | /// Gets or sets the link to the web-ui for details of the job. |
| | 270 | | /// </summary> |
| | 271 | | [JsonProperty(PropertyName = "trackingUrl")] |
| 0 | 272 | | public string TrackingUrl { get; set; } |
| | 273 | |
|
| | 274 | | /// <summary> |
| | 275 | | /// Gets or sets whether job running in uber mode. |
| | 276 | | /// </summary> |
| | 277 | | [JsonProperty(PropertyName = "uber")] |
| 0 | 278 | | public bool? Uber { get; set; } |
| | 279 | |
|
| | 280 | | /// <summary> |
| | 281 | | /// Gets or sets the amount of memory used by the job. |
| | 282 | | /// </summary> |
| | 283 | | [JsonProperty(PropertyName = "usedMem")] |
| 0 | 284 | | public long? UsedMem { get; set; } |
| | 285 | |
|
| | 286 | | /// <summary> |
| | 287 | | /// Gets or sets the userid of the person who submitted the job. |
| | 288 | | /// </summary> |
| | 289 | | [JsonProperty(PropertyName = "username")] |
| 0 | 290 | | public string Username { get; set; } |
| | 291 | |
|
| | 292 | | } |
| | 293 | | } |