| | 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 | | /// How the Batch service should respond if a Task exits with a particular |
| | 18 | | /// exit code. |
| | 19 | | /// </summary> |
| | 20 | | public partial class ExitCodeMapping |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the ExitCodeMapping class. |
| | 24 | | /// </summary> |
| 1669 | 25 | | public ExitCodeMapping() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 1669 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the ExitCodeMapping class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="code">A process exit code.</param> |
| | 34 | | /// <param name="exitOptions">How the Batch service should respond if |
| | 35 | | /// the Task exits with this exit code.</param> |
| 1 | 36 | | public ExitCodeMapping(int code, ExitOptions exitOptions) |
| | 37 | | { |
| 1 | 38 | | Code = code; |
| 1 | 39 | | ExitOptions = exitOptions; |
| | 40 | | CustomInit(); |
| 1 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// An initialization method that performs custom operations like setting defaults |
| | 45 | | /// </summary> |
| | 46 | | partial void CustomInit(); |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets or sets a process exit code. |
| | 50 | | /// </summary> |
| | 51 | | [JsonProperty(PropertyName = "code")] |
| 3913 | 52 | | public int Code { get; set; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets how the Batch service should respond if the Task exits |
| | 56 | | /// with this exit code. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "exitOptions")] |
| 3904 | 59 | | public ExitOptions ExitOptions { get; set; } |
| | 60 | |
|
| | 61 | | } |
| | 62 | | } |