| | 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 | | /// Specifies how the Batch service responds to a particular exit |
| | 18 | | /// condition. |
| | 19 | | /// </summary> |
| | 20 | | public partial class ExitOptions |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the ExitOptions class. |
| | 24 | | /// </summary> |
| 3199 | 25 | | public ExitOptions() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 3199 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the ExitOptions class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="jobAction">An action to take on the Job containing the |
| | 34 | | /// Task, if the Task completes with the given exit condition and the |
| | 35 | | /// Job's onTaskFailed property is |
| | 36 | | /// 'performExitOptionsJobAction'.</param> |
| | 37 | | /// <param name="dependencyAction">An action that the Batch service |
| | 38 | | /// performs on Tasks that depend on this Task.</param> |
| 0 | 39 | | public ExitOptions(JobAction? jobAction = default(JobAction?), DependencyAction? dependencyAction = default(Depe |
| | 40 | | { |
| 0 | 41 | | JobAction = jobAction; |
| 0 | 42 | | DependencyAction = dependencyAction; |
| | 43 | | CustomInit(); |
| 0 | 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 an action to take on the Job containing the Task, if |
| | 53 | | /// the Task completes with the given exit condition and the Job's |
| | 54 | | /// onTaskFailed property is 'performExitOptionsJobAction'. |
| | 55 | | /// </summary> |
| | 56 | | /// <remarks> |
| | 57 | | /// The default is none for exit code 0 and terminate for all other |
| | 58 | | /// exit conditions. If the Job's onTaskFailed property is noaction, |
| | 59 | | /// then specifying this property returns an error and the add Task |
| | 60 | | /// request fails with an invalid property value error; if you are |
| | 61 | | /// calling the REST API directly, the HTTP status code is 400 (Bad |
| | 62 | | /// Request). Possible values include: 'none', 'disable', 'terminate' |
| | 63 | | /// </remarks> |
| | 64 | | [JsonProperty(PropertyName = "jobAction")] |
| 7343 | 65 | | public JobAction? JobAction { get; set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets an action that the Batch service performs on Tasks |
| | 69 | | /// that depend on this Task. |
| | 70 | | /// </summary> |
| | 71 | | /// <remarks> |
| | 72 | | /// Possible values are 'satisfy' (allowing dependent tasks to |
| | 73 | | /// progress) and 'block' (dependent tasks continue to wait). Batch |
| | 74 | | /// does not yet support cancellation of dependent tasks. Possible |
| | 75 | | /// values include: 'satisfy', 'block' |
| | 76 | | /// </remarks> |
| | 77 | | [JsonProperty(PropertyName = "dependencyAction")] |
| 7362 | 78 | | public DependencyAction? DependencyAction { get; set; } |
| | 79 | |
|
| | 80 | | } |
| | 81 | | } |