| | 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 | | /// A range of Task IDs that a Task can depend on. All Tasks with IDs in |
| | 18 | | /// the range must complete successfully before the dependent Task can be |
| | 19 | | /// scheduled. |
| | 20 | | /// </summary> |
| | 21 | | /// <remarks> |
| | 22 | | /// The start and end of the range are inclusive. For example, if a range |
| | 23 | | /// has start 9 and end 12, then it represents Tasks '9', '10', '11' and |
| | 24 | | /// '12'. |
| | 25 | | /// </remarks> |
| | 26 | | public partial class TaskIdRange |
| | 27 | | { |
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the TaskIdRange class. |
| | 30 | | /// </summary> |
| 450 | 31 | | public TaskIdRange() |
| | 32 | | { |
| | 33 | | CustomInit(); |
| 450 | 34 | | } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// Initializes a new instance of the TaskIdRange class. |
| | 38 | | /// </summary> |
| | 39 | | /// <param name="start">The first Task ID in the range.</param> |
| | 40 | | /// <param name="end">The last Task ID in the range.</param> |
| 1479 | 41 | | public TaskIdRange(int start, int end) |
| | 42 | | { |
| 1479 | 43 | | Start = start; |
| 1479 | 44 | | End = end; |
| | 45 | | CustomInit(); |
| 1479 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | 50 | | /// </summary> |
| | 51 | | partial void CustomInit(); |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets the first Task ID in the range. |
| | 55 | | /// </summary> |
| | 56 | | [JsonProperty(PropertyName = "start")] |
| 5708 | 57 | | public int Start { get; set; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets or sets the last Task ID in the range. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "end")] |
| 5714 | 63 | | public int End { get; set; } |
| | 64 | |
|
| | 65 | | } |
| | 66 | | } |