| | 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 Release Task on a |
| | 18 | | /// Compute Node. |
| | 19 | | /// </summary> |
| | 20 | | public partial class JobReleaseTaskExecutionInformation |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the |
| | 24 | | /// JobReleaseTaskExecutionInformation class. |
| | 25 | | /// </summary> |
| 501 | 26 | | public JobReleaseTaskExecutionInformation() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 501 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the |
| | 33 | | /// JobReleaseTaskExecutionInformation class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="startTime">The time at which the Task started |
| | 36 | | /// running.</param> |
| | 37 | | /// <param name="state">The current state of the Job Release Task on |
| | 38 | | /// the Compute Node.</param> |
| | 39 | | /// <param name="endTime">The time at which the Job Release Task |
| | 40 | | /// completed.</param> |
| | 41 | | /// <param name="taskRootDirectory">The root directory of the Job |
| | 42 | | /// Release Task on the Compute Node. You can use this path to retrieve |
| | 43 | | /// files created by the Task, such as log files.</param> |
| | 44 | | /// <param name="taskRootDirectoryUrl">The URL to the root directory of |
| | 45 | | /// the Job Release Task on the Compute Node.</param> |
| | 46 | | /// <param name="exitCode">The exit code of the program specified on |
| | 47 | | /// the Task command line.</param> |
| | 48 | | /// <param name="containerInfo">Information about the container under |
| | 49 | | /// which the Task is executing.</param> |
| | 50 | | /// <param name="failureInfo">Information describing the Task failure, |
| | 51 | | /// if any.</param> |
| | 52 | | /// <param name="result">The result of the Task execution.</param> |
| 0 | 53 | | public JobReleaseTaskExecutionInformation(System.DateTime startTime, JobReleaseTaskState state, System.DateTime? |
| | 54 | | { |
| 0 | 55 | | StartTime = startTime; |
| 0 | 56 | | EndTime = endTime; |
| 0 | 57 | | State = state; |
| 0 | 58 | | TaskRootDirectory = taskRootDirectory; |
| 0 | 59 | | TaskRootDirectoryUrl = taskRootDirectoryUrl; |
| 0 | 60 | | ExitCode = exitCode; |
| 0 | 61 | | ContainerInfo = containerInfo; |
| 0 | 62 | | FailureInfo = failureInfo; |
| 0 | 63 | | Result = result; |
| | 64 | | CustomInit(); |
| 0 | 65 | | } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// An initialization method that performs custom operations like setting defaults |
| | 69 | | /// </summary> |
| | 70 | | partial void CustomInit(); |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets the time at which the Task started running. |
| | 74 | | /// </summary> |
| | 75 | | /// <remarks> |
| | 76 | | /// If the Task has been restarted or retried, this is the most recent |
| | 77 | | /// time at which the Task started running. |
| | 78 | | /// </remarks> |
| | 79 | | [JsonProperty(PropertyName = "startTime")] |
| 1265 | 80 | | public System.DateTime StartTime { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the time at which the Job Release Task completed. |
| | 84 | | /// </summary> |
| | 85 | | /// <remarks> |
| | 86 | | /// This property is set only if the Task is in the Completed state. |
| | 87 | | /// </remarks> |
| | 88 | | [JsonProperty(PropertyName = "endTime")] |
| 1243 | 89 | | public System.DateTime? EndTime { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets the current state of the Job Release Task on the |
| | 93 | | /// Compute Node. |
| | 94 | | /// </summary> |
| | 95 | | /// <remarks> |
| | 96 | | /// Possible values include: 'running', 'completed' |
| | 97 | | /// </remarks> |
| | 98 | | [JsonProperty(PropertyName = "state")] |
| 1257 | 99 | | public JobReleaseTaskState State { get; set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets or sets the root directory of the Job Release Task on the |
| | 103 | | /// Compute Node. You can use this path to retrieve files created by |
| | 104 | | /// the Task, such as log files. |
| | 105 | | /// </summary> |
| | 106 | | [JsonProperty(PropertyName = "taskRootDirectory")] |
| 1245 | 107 | | public string TaskRootDirectory { get; set; } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// Gets or sets the URL to the root directory of the Job Release Task |
| | 111 | | /// on the Compute Node. |
| | 112 | | /// </summary> |
| | 113 | | [JsonProperty(PropertyName = "taskRootDirectoryUrl")] |
| 1251 | 114 | | public string TaskRootDirectoryUrl { get; set; } |
| | 115 | |
|
| | 116 | | /// <summary> |
| | 117 | | /// Gets or sets the exit code of the program specified on the Task |
| | 118 | | /// command line. |
| | 119 | | /// </summary> |
| | 120 | | /// <remarks> |
| | 121 | | /// This parameter is returned only if the Task is in the completed |
| | 122 | | /// state. The exit code for a process reflects the specific convention |
| | 123 | | /// implemented by the application developer for that process. If you |
| | 124 | | /// use the exit code value to make decisions in your code, be sure |
| | 125 | | /// that you know the exit code convention used by the application |
| | 126 | | /// process. Note that the exit code may also be generated by the |
| | 127 | | /// Compute Node operating system, such as when a process is forcibly |
| | 128 | | /// terminated. |
| | 129 | | /// </remarks> |
| | 130 | | [JsonProperty(PropertyName = "exitCode")] |
| 1237 | 131 | | public int? ExitCode { get; set; } |
| | 132 | |
|
| | 133 | | /// <summary> |
| | 134 | | /// Gets or sets information about the container under which the Task |
| | 135 | | /// is executing. |
| | 136 | | /// </summary> |
| | 137 | | /// <remarks> |
| | 138 | | /// This property is set only if the Task runs in a container context. |
| | 139 | | /// </remarks> |
| | 140 | | [JsonProperty(PropertyName = "containerInfo")] |
| 1241 | 141 | | public TaskContainerExecutionInformation ContainerInfo { get; set; } |
| | 142 | |
|
| | 143 | | /// <summary> |
| | 144 | | /// Gets or sets information describing the Task failure, if any. |
| | 145 | | /// </summary> |
| | 146 | | /// <remarks> |
| | 147 | | /// This property is set only if the Task is in the completed state and |
| | 148 | | /// encountered a failure. |
| | 149 | | /// </remarks> |
| | 150 | | [JsonProperty(PropertyName = "failureInfo")] |
| 1236 | 151 | | public TaskFailureInformation FailureInfo { get; set; } |
| | 152 | |
|
| | 153 | | /// <summary> |
| | 154 | | /// Gets or sets the result of the Task execution. |
| | 155 | | /// </summary> |
| | 156 | | /// <remarks> |
| | 157 | | /// If the value is 'failed', then the details of the failure can be |
| | 158 | | /// found in the failureInfo property. Possible values include: |
| | 159 | | /// 'success', 'failure' |
| | 160 | | /// </remarks> |
| | 161 | | [JsonProperty(PropertyName = "result")] |
| 1256 | 162 | | public TaskExecutionResult? Result { get; set; } |
| | 163 | |
|
| | 164 | | } |
| | 165 | | } |