| | 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 | | /// An error that occurred when executing or evaluating a pool autoscale formula. |
| | 22 | | /// </summary> |
| | 23 | | public partial class AutoScaleRunError : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 259 | 27 | | internal AutoScaleRunError(Models.AutoScaleRunError protocolObject) |
| | 28 | | { |
| 259 | 29 | | this.Code = protocolObject.Code; |
| 259 | 30 | | this.Message = protocolObject.Message; |
| 259 | 31 | | this.Values = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Values); |
| 259 | 32 | | } |
| | 33 | |
|
| | 34 | | #endregion Constructors |
| | 35 | |
|
| | 36 | | #region AutoScaleRunError |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Gets a code for the autoscale error. See <see cref="Common.BatchErrorCodeStrings"/> for possible values. |
| | 40 | | /// </summary> |
| 259 | 41 | | public string Code { get; } |
| | 42 | |
|
| | 43 | | /// <summary> |
| | 44 | | /// Gets a message describing the autoscale error, intended to be suitable for display in a user interface. |
| | 45 | | /// </summary> |
| 259 | 46 | | public string Message { get; } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets a list of additional error details related to the autoscale error. |
| | 50 | | /// </summary> |
| 260 | 51 | | public IReadOnlyList<NameValuePair> Values { get; } |
| | 52 | |
|
| | 53 | | #endregion // AutoScaleRunError |
| | 54 | |
|
| | 55 | | #region IPropertyMetadata |
| | 56 | |
|
| | 57 | | bool IModifiable.HasBeenModified |
| | 58 | | { |
| | 59 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 60 | | get { return false; } |
| | 61 | | } |
| | 62 | |
|
| | 63 | | bool IReadOnly.IsReadOnly |
| | 64 | | { |
| 0 | 65 | | get { return true; } |
| | 66 | | set |
| | 67 | | { |
| | 68 | | // This class is compile time readonly already |
| 259 | 69 | | } |
| | 70 | | } |
| | 71 | |
|
| | 72 | | #endregion // IPropertyMetadata |
| | 73 | | } |
| | 74 | | } |