| | 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 | | /// The Task counts for a Job. |
| | 18 | | /// </summary> |
| | 19 | | public partial class TaskCounts |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the TaskCounts class. |
| | 23 | | /// </summary> |
| 1 | 24 | | public TaskCounts() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 1 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the TaskCounts class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="active">The number of Tasks in the active |
| | 33 | | /// state.</param> |
| | 34 | | /// <param name="running">The number of Tasks in the running or |
| | 35 | | /// preparing state.</param> |
| | 36 | | /// <param name="completed">The number of Tasks in the completed |
| | 37 | | /// state.</param> |
| | 38 | | /// <param name="succeeded">The number of Tasks which succeeded. A Task |
| | 39 | | /// succeeds if its result (found in the executionInfo property) is |
| | 40 | | /// 'success'.</param> |
| | 41 | | /// <param name="failed">The number of Tasks which failed. A Task fails |
| | 42 | | /// if its result (found in the executionInfo property) is |
| | 43 | | /// 'failure'.</param> |
| 0 | 44 | | public TaskCounts(int active, int running, int completed, int succeeded, int failed) |
| | 45 | | { |
| 0 | 46 | | Active = active; |
| 0 | 47 | | Running = running; |
| 0 | 48 | | Completed = completed; |
| 0 | 49 | | Succeeded = succeeded; |
| 0 | 50 | | Failed = failed; |
| | 51 | | CustomInit(); |
| 0 | 52 | | } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// An initialization method that performs custom operations like setting defaults |
| | 56 | | /// </summary> |
| | 57 | | partial void CustomInit(); |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets or sets the number of Tasks in the active state. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "active")] |
| 2 | 63 | | public int Active { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets the number of Tasks in the running or preparing state. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "running")] |
| 2 | 69 | | public int Running { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the number of Tasks in the completed state. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "completed")] |
| 2 | 75 | | public int Completed { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets the number of Tasks which succeeded. A Task succeeds |
| | 79 | | /// if its result (found in the executionInfo property) is 'success'. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "succeeded")] |
| 2 | 82 | | public int Succeeded { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets the number of Tasks which failed. A Task fails if its |
| | 86 | | /// result (found in the executionInfo property) is 'failure'. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "failed")] |
| 2 | 89 | | public int Failed { get; set; } |
| | 90 | |
|
| | 91 | | } |
| | 92 | | } |