| | 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 | | /// Information about the execution of an Azure Batch job. |
| | 22 | | /// </summary> |
| | 23 | | public partial class JobExecutionInformation : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 516 | 27 | | internal JobExecutionInformation(Models.JobExecutionInformation protocolObject) |
| | 28 | | { |
| 516 | 29 | | this.EndTime = protocolObject.EndTime; |
| 516 | 30 | | this.PoolId = protocolObject.PoolId; |
| 796 | 31 | | this.SchedulingError = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new |
| 516 | 32 | | this.StartTime = protocolObject.StartTime; |
| 516 | 33 | | this.TerminateReason = protocolObject.TerminateReason; |
| 516 | 34 | | } |
| | 35 | |
|
| | 36 | | #endregion Constructors |
| | 37 | |
|
| | 38 | | #region JobExecutionInformation |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// Gets the completion time of this job. |
| | 42 | | /// </summary> |
| 516 | 43 | | public DateTime? EndTime { get; } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// Gets the pool Id of this job. |
| | 47 | | /// </summary> |
| 516 | 48 | | public string PoolId { get; } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets the error encountered by the Batch service in scheduling the job. |
| | 52 | | /// </summary> |
| 516 | 53 | | public JobSchedulingError SchedulingError { get; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets the creation time of the job. |
| | 57 | | /// </summary> |
| 516 | 58 | | public DateTime StartTime { get; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets the reason for job moving to completed state. |
| | 62 | | /// </summary> |
| 516 | 63 | | public string TerminateReason { get; } |
| | 64 | |
|
| | 65 | | #endregion // JobExecutionInformation |
| | 66 | |
|
| | 67 | | #region IPropertyMetadata |
| | 68 | |
|
| | 69 | | bool IModifiable.HasBeenModified |
| | 70 | | { |
| | 71 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 72 | | get { return false; } |
| | 73 | | } |
| | 74 | |
|
| | 75 | | bool IReadOnly.IsReadOnly |
| | 76 | | { |
| 0 | 77 | | get { return true; } |
| | 78 | | set |
| | 79 | | { |
| | 80 | | // This class is compile time readonly already |
| 516 | 81 | | } |
| | 82 | | } |
| | 83 | |
|
| | 84 | | #endregion // IPropertyMetadata |
| | 85 | | } |
| | 86 | | } |