| | 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 | | /// The execution information for a job schedule. |
| | 22 | | /// </summary> |
| | 23 | | public partial class JobScheduleExecutionInformation : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 500 | 27 | | internal JobScheduleExecutionInformation(Models.JobScheduleExecutionInformation protocolObject) |
| | 28 | | { |
| 500 | 29 | | this.EndTime = protocolObject.EndTime; |
| 500 | 30 | | this.NextRunTime = protocolObject.NextRunTime; |
| 757 | 31 | | this.RecentJob = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.RecentJob, o => new RecentJob(o) |
| 500 | 32 | | } |
| | 33 | |
|
| | 34 | | #endregion Constructors |
| | 35 | |
|
| | 36 | | #region JobScheduleExecutionInformation |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Gets the completion time of the job schedule. This property is only returned for completed job schedules. |
| | 40 | | /// </summary> |
| 500 | 41 | | public DateTime? EndTime { get; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets the time at which the next job will be scheduled under this job schedule. This property is only returne |
| | 45 | | /// for active job schedules. |
| | 46 | | /// </summary> |
| 500 | 47 | | public DateTime? NextRunTime { get; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the information about the most recent job under the job schedule. Note that this element is only return |
| | 51 | | /// if the job schedule contains at least one job under it. |
| | 52 | | /// </summary> |
| 500 | 53 | | public RecentJob RecentJob { get; } |
| | 54 | |
|
| | 55 | | #endregion // JobScheduleExecutionInformation |
| | 56 | |
|
| | 57 | | #region IPropertyMetadata |
| | 58 | |
|
| | 59 | | bool IModifiable.HasBeenModified |
| | 60 | | { |
| | 61 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 62 | | get { return false; } |
| | 63 | | } |
| | 64 | |
|
| | 65 | | bool IReadOnly.IsReadOnly |
| | 66 | | { |
| 0 | 67 | | get { return true; } |
| | 68 | | set |
| | 69 | | { |
| | 70 | | // This class is compile time readonly already |
| 500 | 71 | | } |
| | 72 | | } |
| | 73 | |
|
| | 74 | | #endregion // IPropertyMetadata |
| | 75 | | } |
| | 76 | | } |