|   |  | 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 changing the size of a Pool. | 
|   |  | 18 |  |     /// </summary> | 
|   |  | 19 |  |     public partial class PoolResizeParameter | 
|   |  | 20 |  |     { | 
|   |  | 21 |  |         /// <summary> | 
|   |  | 22 |  |         /// Initializes a new instance of the PoolResizeParameter class. | 
|   |  | 23 |  |         /// </summary> | 
|   | 0 | 24 |  |         public PoolResizeParameter() | 
|   |  | 25 |  |         { | 
|   |  | 26 |  |             CustomInit(); | 
|   | 0 | 27 |  |         } | 
|   |  | 28 |  |  | 
|   |  | 29 |  |         /// <summary> | 
|   |  | 30 |  |         /// Initializes a new instance of the PoolResizeParameter class. | 
|   |  | 31 |  |         /// </summary> | 
|   |  | 32 |  |         /// <param name="targetDedicatedNodes">The desired number of dedicated | 
|   |  | 33 |  |         /// Compute Nodes in the Pool.</param> | 
|   |  | 34 |  |         /// <param name="targetLowPriorityNodes">The desired number of | 
|   |  | 35 |  |         /// low-priority Compute Nodes in the Pool.</param> | 
|   |  | 36 |  |         /// <param name="resizeTimeout">The timeout for allocation of Nodes to | 
|   |  | 37 |  |         /// the Pool or removal of Compute Nodes from the Pool.</param> | 
|   |  | 38 |  |         /// <param name="nodeDeallocationOption">Determines what to do with a | 
|   |  | 39 |  |         /// Compute Node and its running task(s) if the Pool size is | 
|   |  | 40 |  |         /// decreasing.</param> | 
|   | 1 | 41 |  |         public PoolResizeParameter(int? targetDedicatedNodes = default(int?), int? targetLowPriorityNodes = default(int? | 
|   |  | 42 |  |         { | 
|   | 1 | 43 |  |             TargetDedicatedNodes = targetDedicatedNodes; | 
|   | 1 | 44 |  |             TargetLowPriorityNodes = targetLowPriorityNodes; | 
|   | 1 | 45 |  |             ResizeTimeout = resizeTimeout; | 
|   | 1 | 46 |  |             NodeDeallocationOption = nodeDeallocationOption; | 
|   |  | 47 |  |             CustomInit(); | 
|   | 1 | 48 |  |         } | 
|   |  | 49 |  |  | 
|   |  | 50 |  |         /// <summary> | 
|   |  | 51 |  |         /// An initialization method that performs custom operations like setting defaults | 
|   |  | 52 |  |         /// </summary> | 
|   |  | 53 |  |         partial void CustomInit(); | 
|   |  | 54 |  |  | 
|   |  | 55 |  |         /// <summary> | 
|   |  | 56 |  |         /// Gets or sets the desired number of dedicated Compute Nodes in the | 
|   |  | 57 |  |         /// Pool. | 
|   |  | 58 |  |         /// </summary> | 
|   |  | 59 |  |         [JsonProperty(PropertyName = "targetDedicatedNodes")] | 
|   | 0 | 60 |  |         public int? TargetDedicatedNodes { get; set; } | 
|   |  | 61 |  |  | 
|   |  | 62 |  |         /// <summary> | 
|   |  | 63 |  |         /// Gets or sets the desired number of low-priority Compute Nodes in | 
|   |  | 64 |  |         /// the Pool. | 
|   |  | 65 |  |         /// </summary> | 
|   |  | 66 |  |         [JsonProperty(PropertyName = "targetLowPriorityNodes")] | 
|   | 0 | 67 |  |         public int? TargetLowPriorityNodes { get; set; } | 
|   |  | 68 |  |  | 
|   |  | 69 |  |         /// <summary> | 
|   |  | 70 |  |         /// Gets or sets the timeout for allocation of Nodes to the Pool or | 
|   |  | 71 |  |         /// removal of Compute Nodes from the Pool. | 
|   |  | 72 |  |         /// </summary> | 
|   |  | 73 |  |         /// <remarks> | 
|   |  | 74 |  |         /// The default value is 15 minutes. The minimum value is 5 minutes. If | 
|   |  | 75 |  |         /// you specify a value less than 5 minutes, the Batch service returns | 
|   |  | 76 |  |         /// an error; if you are calling the REST API directly, the HTTP status | 
|   |  | 77 |  |         /// code is 400 (Bad Request). | 
|   |  | 78 |  |         /// </remarks> | 
|   |  | 79 |  |         [JsonProperty(PropertyName = "resizeTimeout")] | 
|   | 0 | 80 |  |         public System.TimeSpan? ResizeTimeout { get; set; } | 
|   |  | 81 |  |  | 
|   |  | 82 |  |         /// <summary> | 
|   |  | 83 |  |         /// Gets or sets determines what to do with a Compute Node and its | 
|   |  | 84 |  |         /// running task(s) if the Pool size is decreasing. | 
|   |  | 85 |  |         /// </summary> | 
|   |  | 86 |  |         /// <remarks> | 
|   |  | 87 |  |         /// The default value is requeue. Possible values include: 'requeue', | 
|   |  | 88 |  |         /// 'terminate', 'taskCompletion', 'retainedData' | 
|   |  | 89 |  |         /// </remarks> | 
|   |  | 90 |  |         [JsonProperty(PropertyName = "nodeDeallocationOption")] | 
|   | 0 | 91 |  |         public ComputeNodeDeallocationOption? NodeDeallocationOption { get; set; } | 
|   |  | 92 |  |  | 
|   |  | 93 |  |     } | 
|   |  | 94 |  | } |