| | 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 | | /// Options for disabling scheduling on a Compute Node. |
| | 18 | | /// </summary> |
| | 19 | | public partial class NodeDisableSchedulingParameter |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the NodeDisableSchedulingParameter |
| | 23 | | /// class. |
| | 24 | | /// </summary> |
| 0 | 25 | | public NodeDisableSchedulingParameter() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the NodeDisableSchedulingParameter |
| | 32 | | /// class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="nodeDisableSchedulingOption">What to do with currently |
| | 35 | | /// running Tasks when disabling Task scheduling on the Compute |
| | 36 | | /// Node.</param> |
| 0 | 37 | | public NodeDisableSchedulingParameter(DisableComputeNodeSchedulingOption? nodeDisableSchedulingOption = default( |
| | 38 | | { |
| 0 | 39 | | NodeDisableSchedulingOption = nodeDisableSchedulingOption; |
| | 40 | | CustomInit(); |
| 0 | 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 what to do with currently running Tasks when disabling |
| | 50 | | /// Task scheduling on the Compute Node. |
| | 51 | | /// </summary> |
| | 52 | | /// <remarks> |
| | 53 | | /// The default value is requeue. Possible values include: 'requeue', |
| | 54 | | /// 'terminate', 'taskCompletion' |
| | 55 | | /// </remarks> |
| | 56 | | [JsonProperty(PropertyName = "nodeDisableSchedulingOption")] |
| 0 | 57 | | public DisableComputeNodeSchedulingOption? NodeDisableSchedulingOption { get; set; } |
| | 58 | |
|
| | 59 | | } |
| | 60 | | } |