| | 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 | | /// The results and errors from an execution of a Pool autoscale formula. |
| | 18 | | /// </summary> |
| | 19 | | public partial class AutoScaleRun |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the AutoScaleRun class. |
| | 23 | | /// </summary> |
| 518 | 24 | | public AutoScaleRun() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 518 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the AutoScaleRun class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="timestamp">The time at which the autoscale formula was |
| | 33 | | /// last evaluated.</param> |
| | 34 | | /// <param name="results">The final values of all variables used in the |
| | 35 | | /// evaluation of the autoscale formula.</param> |
| | 36 | | /// <param name="error">Details of the error encountered evaluating the |
| | 37 | | /// autoscale formula on the Pool, if the evaluation was |
| | 38 | | /// unsuccessful.</param> |
| 0 | 39 | | public AutoScaleRun(System.DateTime timestamp, string results = default(string), AutoScaleRunError error = defau |
| | 40 | | { |
| 0 | 41 | | Timestamp = timestamp; |
| 0 | 42 | | Results = results; |
| 0 | 43 | | Error = error; |
| | 44 | | CustomInit(); |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// An initialization method that performs custom operations like setting defaults |
| | 49 | | /// </summary> |
| | 50 | | partial void CustomInit(); |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// Gets or sets the time at which the autoscale formula was last |
| | 54 | | /// evaluated. |
| | 55 | | /// </summary> |
| | 56 | | [JsonProperty(PropertyName = "timestamp")] |
| 1307 | 57 | | public System.DateTime Timestamp { get; set; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets or sets the final values of all variables used in the |
| | 61 | | /// evaluation of the autoscale formula. |
| | 62 | | /// </summary> |
| | 63 | | /// <remarks> |
| | 64 | | /// Each variable value is returned in the form $variable=value, and |
| | 65 | | /// variables are separated by semicolons. |
| | 66 | | /// </remarks> |
| | 67 | | [JsonProperty(PropertyName = "results")] |
| 1296 | 68 | | public string Results { get; set; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets or sets details of the error encountered evaluating the |
| | 72 | | /// autoscale formula on the Pool, if the evaluation was unsuccessful. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "error")] |
| 1291 | 75 | | public AutoScaleRunError Error { get; set; } |
| | 76 | |
|
| | 77 | | } |
| | 78 | | } |