| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | 3 | | // |
| | 4 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 5 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 6 | | // regenerated. |
| | 7 | |
|
| | 8 | | // |
| | 9 | | // This file was autogenerated by a tool. |
| | 10 | | // Do not modify it. |
| | 11 | | // |
| | 12 | |
|
| | 13 | | namespace Microsoft.Azure.Batch |
| | 14 | | { |
| | 15 | | using Models = Microsoft.Azure.Batch.Protocol.Models; |
| | 16 | | using System; |
| | 17 | | using System.Collections.Generic; |
| | 18 | | using System.Linq; |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// The results and errors from an evaluation or execution of a pool autoscale formula. |
| | 22 | | /// </summary> |
| | 23 | | public partial class AutoScaleRun : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 518 | 27 | | internal AutoScaleRun(Models.AutoScaleRun protocolObject) |
| | 28 | | { |
| 776 | 29 | | this.Error = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Error, o => new AutoScaleRunError(o) |
| 518 | 30 | | this.Results = protocolObject.Results; |
| 518 | 31 | | this.Timestamp = protocolObject.Timestamp; |
| 518 | 32 | | } |
| | 33 | |
|
| | 34 | | #endregion Constructors |
| | 35 | |
|
| | 36 | | #region AutoScaleRun |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Gets details of the error encountered evaluating the autoscale formula on the pool, if the evaluation was un |
| | 40 | | /// </summary> |
| 520 | 41 | | public AutoScaleRunError Error { get; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets the final values of all variables used in the evaluation of the autoscale formula. Each variable value |
| | 45 | | /// returned in the form $variable=value, and variables are separated by semicolons. |
| | 46 | | /// </summary> |
| 516 | 47 | | public string Results { get; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the time at which the autoscale formula was last evaluated. |
| | 51 | | /// </summary> |
| 516 | 52 | | public DateTime Timestamp { get; } |
| | 53 | |
|
| | 54 | | #endregion // AutoScaleRun |
| | 55 | |
|
| | 56 | | #region IPropertyMetadata |
| | 57 | |
|
| | 58 | | bool IModifiable.HasBeenModified |
| | 59 | | { |
| | 60 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 61 | | get { return false; } |
| | 62 | | } |
| | 63 | |
|
| | 64 | | bool IReadOnly.IsReadOnly |
| | 65 | | { |
| 0 | 66 | | get { return true; } |
| | 67 | | set |
| | 68 | | { |
| | 69 | | // This class is compile time readonly already |
| 518 | 70 | | } |
| | 71 | | } |
| | 72 | |
|
| | 73 | | #endregion // IPropertyMetadata |
| | 74 | | } |
| | 75 | | } |