| | 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 enabling automatic scaling on a Pool. |
| | 18 | | /// </summary> |
| | 19 | | public partial class PoolEnableAutoScaleParameter |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the PoolEnableAutoScaleParameter |
| | 23 | | /// class. |
| | 24 | | /// </summary> |
| 0 | 25 | | public PoolEnableAutoScaleParameter() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the PoolEnableAutoScaleParameter |
| | 32 | | /// class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="autoScaleFormula">The formula for the desired number |
| | 35 | | /// of Compute Nodes in the Pool.</param> |
| | 36 | | /// <param name="autoScaleEvaluationInterval">The time interval at |
| | 37 | | /// which to automatically adjust the Pool size according to the |
| | 38 | | /// autoscale formula.</param> |
| 1 | 39 | | public PoolEnableAutoScaleParameter(string autoScaleFormula = default(string), System.TimeSpan? autoScaleEvaluat |
| | 40 | | { |
| 1 | 41 | | AutoScaleFormula = autoScaleFormula; |
| 1 | 42 | | AutoScaleEvaluationInterval = autoScaleEvaluationInterval; |
| | 43 | | CustomInit(); |
| 1 | 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 the formula for the desired number of Compute Nodes in |
| | 53 | | /// the Pool. |
| | 54 | | /// </summary> |
| | 55 | | /// <remarks> |
| | 56 | | /// The formula is checked for validity before it is applied to the |
| | 57 | | /// Pool. If the formula is not valid, the Batch service rejects the |
| | 58 | | /// request with detailed error information. For more information about |
| | 59 | | /// specifying this formula, see Automatically scale Compute Nodes in |
| | 60 | | /// an Azure Batch Pool |
| | 61 | | /// (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). |
| | 62 | | /// </remarks> |
| | 63 | | [JsonProperty(PropertyName = "autoScaleFormula")] |
| 0 | 64 | | public string AutoScaleFormula { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the time interval at which to automatically adjust the |
| | 68 | | /// Pool size according to the autoscale formula. |
| | 69 | | /// </summary> |
| | 70 | | /// <remarks> |
| | 71 | | /// The default value is 15 minutes. The minimum and maximum value are |
| | 72 | | /// 5 minutes and 168 hours respectively. If you specify a value less |
| | 73 | | /// than 5 minutes or greater than 168 hours, the Batch service rejects |
| | 74 | | /// the request with an invalid property value error; if you are |
| | 75 | | /// calling the REST API directly, the HTTP status code is 400 (Bad |
| | 76 | | /// Request). If you specify a new interval, then the existing |
| | 77 | | /// autoscale evaluation schedule will be stopped and a new autoscale |
| | 78 | | /// evaluation schedule will be started, with its starting time being |
| | 79 | | /// the time when this request was issued. |
| | 80 | | /// </remarks> |
| | 81 | | [JsonProperty(PropertyName = "autoScaleEvaluationInterval")] |
| 0 | 82 | | public System.TimeSpan? AutoScaleEvaluationInterval { get; set; } |
| | 83 | |
|
| | 84 | | } |
| | 85 | | } |