| | 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 | | /// Contains information about the execution of a Job in the Azure Batch |
| | 18 | | /// service. |
| | 19 | | /// </summary> |
| | 20 | | public partial class JobExecutionInformation |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the JobExecutionInformation class. |
| | 24 | | /// </summary> |
| 516 | 25 | | public JobExecutionInformation() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 516 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the JobExecutionInformation class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="startTime">The start time of the Job.</param> |
| | 34 | | /// <param name="endTime">The completion time of the Job.</param> |
| | 35 | | /// <param name="poolId">The ID of the Pool to which this Job is |
| | 36 | | /// assigned.</param> |
| | 37 | | /// <param name="schedulingError">Details of any error encountered by |
| | 38 | | /// the service in starting the Job.</param> |
| | 39 | | /// <param name="terminateReason">A string describing the reason the |
| | 40 | | /// Job ended.</param> |
| 0 | 41 | | public JobExecutionInformation(System.DateTime startTime, System.DateTime? endTime = default(System.DateTime?), |
| | 42 | | { |
| 0 | 43 | | StartTime = startTime; |
| 0 | 44 | | EndTime = endTime; |
| 0 | 45 | | PoolId = poolId; |
| 0 | 46 | | SchedulingError = schedulingError; |
| 0 | 47 | | TerminateReason = terminateReason; |
| | 48 | | CustomInit(); |
| 0 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | 53 | | /// </summary> |
| | 54 | | partial void CustomInit(); |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets the start time of the Job. |
| | 58 | | /// </summary> |
| | 59 | | /// <remarks> |
| | 60 | | /// This is the time at which the Job was created. |
| | 61 | | /// </remarks> |
| | 62 | | [JsonProperty(PropertyName = "startTime")] |
| 1295 | 63 | | public System.DateTime StartTime { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets the completion time of the Job. |
| | 67 | | /// </summary> |
| | 68 | | /// <remarks> |
| | 69 | | /// This property is set only if the Job is in the completed state. |
| | 70 | | /// </remarks> |
| | 71 | | [JsonProperty(PropertyName = "endTime")] |
| 1297 | 72 | | public System.DateTime? EndTime { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets or sets the ID of the Pool to which this Job is assigned. |
| | 76 | | /// </summary> |
| | 77 | | /// <remarks> |
| | 78 | | /// This element contains the actual Pool where the Job is assigned. |
| | 79 | | /// When you get Job details from the service, they also contain a |
| | 80 | | /// poolInfo element, which contains the Pool configuration data from |
| | 81 | | /// when the Job was added or updated. That poolInfo element may also |
| | 82 | | /// contain a poolId element. If it does, the two IDs are the same. If |
| | 83 | | /// it does not, it means the Job ran on an auto Pool, and this |
| | 84 | | /// property contains the ID of that auto Pool. |
| | 85 | | /// </remarks> |
| | 86 | | [JsonProperty(PropertyName = "poolId")] |
| 1298 | 87 | | public string PoolId { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets details of any error encountered by the service in |
| | 91 | | /// starting the Job. |
| | 92 | | /// </summary> |
| | 93 | | /// <remarks> |
| | 94 | | /// This property is not set if there was no error starting the Job. |
| | 95 | | /// </remarks> |
| | 96 | | [JsonProperty(PropertyName = "schedulingError")] |
| 1311 | 97 | | public JobSchedulingError SchedulingError { get; set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets or sets a string describing the reason the Job ended. |
| | 101 | | /// </summary> |
| | 102 | | /// <remarks> |
| | 103 | | /// This property is set only if the Job is in the completed state. If |
| | 104 | | /// the Batch service terminates the Job, it sets the reason as |
| | 105 | | /// follows: JMComplete - the Job Manager Task completed, and |
| | 106 | | /// killJobOnCompletion was set to true. MaxWallClockTimeExpiry - the |
| | 107 | | /// Job reached its maxWallClockTime constraint. TerminateJobSchedule - |
| | 108 | | /// the Job ran as part of a schedule, and the schedule terminated. |
| | 109 | | /// AllTasksComplete - the Job's onAllTasksComplete attribute is set to |
| | 110 | | /// terminatejob, and all Tasks in the Job are complete. TaskFailed - |
| | 111 | | /// the Job's onTaskFailure attribute is set to |
| | 112 | | /// performExitOptionsJobAction, and a Task in the Job failed with an |
| | 113 | | /// exit condition that specified a jobAction of terminatejob. Any |
| | 114 | | /// other string is a user-defined reason specified in a call to the |
| | 115 | | /// 'Terminate a Job' operation. |
| | 116 | | /// </remarks> |
| | 117 | | [JsonProperty(PropertyName = "terminateReason")] |
| 1286 | 118 | | public string TerminateReason { get; set; } |
| | 119 | |
|
| | 120 | | } |
| | 121 | | } |