| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Specifies any dependencies of a Task. Any Task that is explicitly |
| | 20 | | /// specified or within a dependency range must complete before the |
| | 21 | | /// dependant Task will be scheduled. |
| | 22 | | /// </summary> |
| | 23 | | public partial class TaskDependencies |
| | 24 | | { |
| | 25 | | /// <summary> |
| | 26 | | /// Initializes a new instance of the TaskDependencies class. |
| | 27 | | /// </summary> |
| 808 | 28 | | public TaskDependencies() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 808 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the TaskDependencies class. |
| | 35 | | /// </summary> |
| | 36 | | /// <param name="taskIds">The list of Task IDs that this Task depends |
| | 37 | | /// on. All Tasks in this list must complete successfully before the |
| | 38 | | /// dependent Task can be scheduled.</param> |
| | 39 | | /// <param name="taskIdRanges">The list of Task ID ranges that this |
| | 40 | | /// Task depends on. All Tasks in all ranges must complete successfully |
| | 41 | | /// before the dependent Task can be scheduled.</param> |
| 0 | 42 | | public TaskDependencies(IList<string> taskIds = default(IList<string>), IList<TaskIdRange> taskIdRanges = defaul |
| | 43 | | { |
| 0 | 44 | | TaskIds = taskIds; |
| 0 | 45 | | TaskIdRanges = taskIdRanges; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets the list of Task IDs that this Task depends on. All |
| | 56 | | /// Tasks in this list must complete successfully before the dependent |
| | 57 | | /// Task can be scheduled. |
| | 58 | | /// </summary> |
| | 59 | | /// <remarks> |
| | 60 | | /// The taskIds collection is limited to 64000 characters total (i.e. |
| | 61 | | /// the combined length of all Task IDs). If the taskIds collection |
| | 62 | | /// exceeds the maximum length, the Add Task request fails with error |
| | 63 | | /// code TaskDependencyListTooLong. In this case consider using Task ID |
| | 64 | | /// ranges instead. |
| | 65 | | /// </remarks> |
| | 66 | | [JsonProperty(PropertyName = "taskIds")] |
| 1790 | 67 | | public IList<string> TaskIds { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets the list of Task ID ranges that this Task depends on. |
| | 71 | | /// All Tasks in all ranges must complete successfully before the |
| | 72 | | /// dependent Task can be scheduled. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "taskIdRanges")] |
| 1810 | 75 | | public IList<TaskIdRange> TaskIdRanges { get; set; } |
| | 76 | |
|
| | 77 | | } |
| | 78 | | } |