| | 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 | | /// Details about the execution of a <see cref="CloudJob.JobReleaseTask">Job Release task</see> on a compute node. |
| | 22 | | /// </summary> |
| | 23 | | public partial class JobReleaseTaskExecutionInformation : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 501 | 27 | | internal JobReleaseTaskExecutionInformation(Models.JobReleaseTaskExecutionInformation protocolObject) |
| | 28 | | { |
| 742 | 29 | | this.ContainerInformation = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ContainerInfo, o => n |
| 501 | 30 | | this.EndTime = protocolObject.EndTime; |
| 501 | 31 | | this.ExitCode = protocolObject.ExitCode; |
| 737 | 32 | | this.FailureInformation = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.FailureInfo, o => new T |
| 501 | 33 | | this.Result = UtilitiesInternal.MapNullableEnum<Models.TaskExecutionResult, Common.TaskExecutionResult>(prot |
| 501 | 34 | | this.StartTime = protocolObject.StartTime; |
| 501 | 35 | | this.State = UtilitiesInternal.MapEnum<Models.JobReleaseTaskState, Common.JobReleaseTaskState>(protocolObjec |
| 501 | 36 | | this.TaskRootDirectory = protocolObject.TaskRootDirectory; |
| 501 | 37 | | this.TaskRootDirectoryUrl = protocolObject.TaskRootDirectoryUrl; |
| 501 | 38 | | } |
| | 39 | |
|
| | 40 | | #endregion Constructors |
| | 41 | |
|
| | 42 | | #region JobReleaseTaskExecutionInformation |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// Gets information about the container under which the task is executing. |
| | 46 | | /// </summary> |
| | 47 | | /// <remarks> |
| | 48 | | /// This property is set only if the task runs in a container context. |
| | 49 | | /// </remarks> |
| 500 | 50 | | public TaskContainerExecutionInformation ContainerInformation { get; } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// Gets the time at which the task completed. |
| | 54 | | /// </summary> |
| | 55 | | /// <remarks> |
| | 56 | | /// This property is only returned if the task is in the <see cref="Common.JobReleaseTaskState.Completed"/> stat |
| | 57 | | /// </remarks> |
| 500 | 58 | | public DateTime? EndTime { get; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets the exit code of the program specified on the task command line. |
| | 62 | | /// </summary> |
| | 63 | | /// <remarks> |
| | 64 | | /// This property is only returned if the task is in the <see cref="Common.JobReleaseTaskState.Completed"/> stat |
| | 65 | | /// The exit code for a process reflects the specific convention implemented by the application developer for th |
| | 66 | | /// process. If you use the exit code value to make decisions in your code, be sure that you know the exit code |
| | 67 | | /// used by the application process. Note that the exit code may also be generated by the compute node operating |
| | 68 | | /// system, such as when a process is forcibly terminated. |
| | 69 | | /// </remarks> |
| 500 | 70 | | public int? ExitCode { get; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets information describing the task failure, if any. |
| | 74 | | /// </summary> |
| | 75 | | /// <remarks> |
| | 76 | | /// This property is set only if the task is in the <see cref="Common.JobReleaseTaskState.Completed"/> state and |
| | 77 | | /// encountered a failure. |
| | 78 | | /// </remarks> |
| 500 | 79 | | public TaskFailureInformation FailureInformation { get; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets the result of the task execution. |
| | 83 | | /// </summary> |
| | 84 | | /// <remarks> |
| | 85 | | /// If the value is <see cref="Common.TaskExecutionResult.Failure" />, then the details of the failure can be fo |
| | 86 | | /// in the <see cref="FailureInformation" /> property. |
| | 87 | | /// </remarks> |
| 500 | 88 | | public Common.TaskExecutionResult? Result { get; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets the time at which the task started running. Note that every time the task is restarted, this value is u |
| | 92 | | /// </summary> |
| 500 | 93 | | public DateTime StartTime { get; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets the current state of the task. |
| | 97 | | /// </summary> |
| | 98 | | /// <remarks> |
| | 99 | | /// Running means the task is currently running. Completed means the task has completed. The Completed state inc |
| | 100 | | /// the case where the task exits successfully with exit code 0 and the cases where the system fails to start th |
| | 101 | | /// task process due to scheduling errors or the retry limit has reached after numerous task failures. |
| | 102 | | /// </remarks> |
| 500 | 103 | | public Common.JobReleaseTaskState State { get; } |
| | 104 | |
|
| | 105 | | /// <summary> |
| | 106 | | /// Gets the root directory of the Job Release task on the compute node. You can use this path to retrieve files |
| | 107 | | /// created by the task, such as log files. |
| | 108 | | /// </summary> |
| 500 | 109 | | public string TaskRootDirectory { get; } |
| | 110 | |
|
| | 111 | | /// <summary> |
| | 112 | | /// Gets the URL to the root directory of the Job Release task on the compute node. |
| | 113 | | /// </summary> |
| 500 | 114 | | public string TaskRootDirectoryUrl { get; } |
| | 115 | |
|
| | 116 | | #endregion // JobReleaseTaskExecutionInformation |
| | 117 | |
|
| | 118 | | #region IPropertyMetadata |
| | 119 | |
|
| | 120 | | bool IModifiable.HasBeenModified |
| | 121 | | { |
| | 122 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 123 | | get { return false; } |
| | 124 | | } |
| | 125 | |
|
| | 126 | | bool IReadOnly.IsReadOnly |
| | 127 | | { |
| 0 | 128 | | get { return true; } |
| | 129 | | set |
| | 130 | | { |
| | 131 | | // This class is compile time readonly already |
| 501 | 132 | | } |
| | 133 | | } |
| | 134 | |
|
| | 135 | | #endregion // IPropertyMetadata |
| | 136 | | } |
| | 137 | | } |