| | 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 task counts for a job. |
| | 22 | | /// </summary> |
| | 23 | | public partial class TaskCounts : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 1 | 27 | | internal TaskCounts(Models.TaskCounts protocolObject) |
| | 28 | | { |
| 1 | 29 | | this.Active = protocolObject.Active; |
| 1 | 30 | | this.Completed = protocolObject.Completed; |
| 1 | 31 | | this.Failed = protocolObject.Failed; |
| 1 | 32 | | this.Running = protocolObject.Running; |
| 1 | 33 | | this.Succeeded = protocolObject.Succeeded; |
| 1 | 34 | | } |
| | 35 | |
|
| | 36 | | #endregion Constructors |
| | 37 | |
|
| | 38 | | #region TaskCounts |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// Gets the number of tasks in the active state. |
| | 42 | | /// </summary> |
| 1 | 43 | | public int Active { get; } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// Gets the number of tasks in the completed state. |
| | 47 | | /// </summary> |
| 1 | 48 | | public int Completed { get; } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets the number of tasks which failed. A task fails if its result (found in the executionInfo property) is ' |
| | 52 | | /// </summary> |
| 1 | 53 | | public int Failed { get; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets the number of tasks in the running or preparing state. |
| | 57 | | /// </summary> |
| 1 | 58 | | public int Running { get; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets the number of tasks which succeeded. A task succeeds if its result (found in the executionInfo property |
| | 62 | | /// is 'success'. |
| | 63 | | /// </summary> |
| 1 | 64 | | public int Succeeded { get; } |
| | 65 | |
|
| | 66 | | #endregion // TaskCounts |
| | 67 | |
|
| | 68 | | #region IPropertyMetadata |
| | 69 | |
|
| | 70 | | bool IModifiable.HasBeenModified |
| | 71 | | { |
| | 72 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 73 | | get { return false; } |
| | 74 | | } |
| | 75 | |
|
| | 76 | | bool IReadOnly.IsReadOnly |
| | 77 | | { |
| 0 | 78 | | get { return true; } |
| | 79 | | set |
| | 80 | | { |
| | 81 | | // This class is compile time readonly already |
| 1 | 82 | | } |
| | 83 | | } |
| | 84 | |
|
| | 85 | | #endregion // IPropertyMetadata |
| | 86 | | } |
| | 87 | | } |