| | 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 | | /// Information about a Task running on a Compute Node. |
| | 18 | | /// </summary> |
| | 19 | | public partial class TaskInformation |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the TaskInformation class. |
| | 23 | | /// </summary> |
| 2182 | 24 | | public TaskInformation() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2182 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the TaskInformation class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="taskState">The current state of the Task.</param> |
| | 33 | | /// <param name="taskUrl">The URL of the Task.</param> |
| | 34 | | /// <param name="jobId">The ID of the Job to which the Task |
| | 35 | | /// belongs.</param> |
| | 36 | | /// <param name="taskId">The ID of the Task.</param> |
| | 37 | | /// <param name="subtaskId">The ID of the subtask if the Task is a |
| | 38 | | /// multi-instance Task.</param> |
| | 39 | | /// <param name="executionInfo">Information about the execution of the |
| | 40 | | /// Task.</param> |
| 0 | 41 | | public TaskInformation(TaskState taskState, string taskUrl = default(string), string jobId = default(string), st |
| | 42 | | { |
| 0 | 43 | | TaskUrl = taskUrl; |
| 0 | 44 | | JobId = jobId; |
| 0 | 45 | | TaskId = taskId; |
| 0 | 46 | | SubtaskId = subtaskId; |
| 0 | 47 | | TaskState = taskState; |
| 0 | 48 | | ExecutionInfo = executionInfo; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the URL of the Task. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "taskUrl")] |
| 5448 | 61 | | public string TaskUrl { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the ID of the Job to which the Task belongs. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "jobId")] |
| 5465 | 67 | | public string JobId { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets the ID of the Task. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "taskId")] |
| 5436 | 73 | | public string TaskId { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the ID of the subtask if the Task is a multi-instance |
| | 77 | | /// Task. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "subtaskId")] |
| 5461 | 80 | | public int? SubtaskId { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the current state of the Task. |
| | 84 | | /// </summary> |
| | 85 | | /// <remarks> |
| | 86 | | /// Possible values include: 'active', 'preparing', 'running', |
| | 87 | | /// 'completed' |
| | 88 | | /// </remarks> |
| | 89 | | [JsonProperty(PropertyName = "taskState")] |
| 5439 | 90 | | public TaskState TaskState { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets information about the execution of the Task. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "executionInfo")] |
| 5416 | 96 | | public TaskExecutionInformation ExecutionInfo { get; set; } |
| | 97 | |
|
| | 98 | | } |
| | 99 | | } |