| | 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 exit codes and how the Batch service should respond to exit |
| | 18 | | /// codes within that range. |
| | 19 | | /// </summary> |
| | 20 | | public partial class ExitCodeRangeMapping |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the ExitCodeRangeMapping class. |
| | 24 | | /// </summary> |
| 1667 | 25 | | public ExitCodeRangeMapping() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 1667 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the ExitCodeRangeMapping class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="start">The first exit code in the range.</param> |
| | 34 | | /// <param name="end">The last exit code in the range.</param> |
| | 35 | | /// <param name="exitOptions">How the Batch service should respond if |
| | 36 | | /// the Task exits with an exit code in the range start to end |
| | 37 | | /// (inclusive).</param> |
| 1 | 38 | | public ExitCodeRangeMapping(int start, int end, ExitOptions exitOptions) |
| | 39 | | { |
| 1 | 40 | | Start = start; |
| 1 | 41 | | End = end; |
| 1 | 42 | | ExitOptions = exitOptions; |
| | 43 | | CustomInit(); |
| 1 | 44 | | } |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// An initialization method that performs custom operations like setting defaults |
| | 48 | | /// </summary> |
| | 49 | | partial void CustomInit(); |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// Gets or sets the first exit code in the range. |
| | 53 | | /// </summary> |
| | 54 | | [JsonProperty(PropertyName = "start")] |
| 3931 | 55 | | public int Start { get; set; } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the last exit code in the range. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "end")] |
| 3935 | 61 | | public int End { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets how the Batch service should respond if the Task exits |
| | 65 | | /// with an exit code in the range start to end (inclusive). |
| | 66 | | /// </summary> |
| | 67 | | [JsonProperty(PropertyName = "exitOptions")] |
| 3937 | 68 | | public ExitOptions ExitOptions { get; set; } |
| | 69 | |
|
| | 70 | | } |
| | 71 | | } |