| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Options for removing Compute Nodes from a Pool. |
| | 20 | | /// </summary> |
| | 21 | | public partial class NodeRemoveParameter |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the NodeRemoveParameter class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public NodeRemoveParameter() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the NodeRemoveParameter class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="nodeList">A list containing the IDs of the Compute |
| | 35 | | /// Nodes to be removed from the specified Pool.</param> |
| | 36 | | /// <param name="resizeTimeout">The timeout for removal of Compute |
| | 37 | | /// Nodes to the Pool.</param> |
| | 38 | | /// <param name="nodeDeallocationOption">Determines what to do with a |
| | 39 | | /// Compute Node and its running task(s) after it has been selected for |
| | 40 | | /// deallocation.</param> |
| 2 | 41 | | public NodeRemoveParameter(IList<string> nodeList, System.TimeSpan? resizeTimeout = default(System.TimeSpan?), C |
| | 42 | | { |
| 2 | 43 | | NodeList = nodeList; |
| 2 | 44 | | ResizeTimeout = resizeTimeout; |
| 2 | 45 | | NodeDeallocationOption = nodeDeallocationOption; |
| | 46 | | CustomInit(); |
| 2 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets a list containing the IDs of the Compute Nodes to be |
| | 56 | | /// removed from the specified Pool. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "nodeList")] |
| 0 | 59 | | public IList<string> NodeList { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets the timeout for removal of Compute Nodes to the Pool. |
| | 63 | | /// </summary> |
| | 64 | | /// <remarks> |
| | 65 | | /// The default value is 15 minutes. The minimum value is 5 minutes. If |
| | 66 | | /// you specify a value less than 5 minutes, the Batch service returns |
| | 67 | | /// an error; if you are calling the REST API directly, the HTTP status |
| | 68 | | /// code is 400 (Bad Request). |
| | 69 | | /// </remarks> |
| | 70 | | [JsonProperty(PropertyName = "resizeTimeout")] |
| 0 | 71 | | public System.TimeSpan? ResizeTimeout { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets determines what to do with a Compute Node and its |
| | 75 | | /// running task(s) after it has been selected for deallocation. |
| | 76 | | /// </summary> |
| | 77 | | /// <remarks> |
| | 78 | | /// The default value is requeue. Possible values include: 'requeue', |
| | 79 | | /// 'terminate', 'taskCompletion', 'retainedData' |
| | 80 | | /// </remarks> |
| | 81 | | [JsonProperty(PropertyName = "nodeDeallocationOption")] |
| 0 | 82 | | public ComputeNodeDeallocationOption? NodeDeallocationOption { get; set; } |
| | 83 | |
|
| | 84 | | } |
| | 85 | | } |