| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// An error that occurred when executing or evaluating a Pool autoscale |
| | 20 | | /// formula. |
| | 21 | | /// </summary> |
| | 22 | | public partial class AutoScaleRunError |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the AutoScaleRunError class. |
| | 26 | | /// </summary> |
| 259 | 27 | | public AutoScaleRunError() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 259 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the AutoScaleRunError class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="code">An identifier for the autoscale error. Codes are |
| | 36 | | /// invariant and are intended to be consumed programmatically.</param> |
| | 37 | | /// <param name="message">A message describing the autoscale error, |
| | 38 | | /// intended to be suitable for display in a user interface.</param> |
| | 39 | | /// <param name="values">A list of additional error details related to |
| | 40 | | /// the autoscale error.</param> |
| 0 | 41 | | public AutoScaleRunError(string code = default(string), string message = default(string), IList<NameValuePair> v |
| | 42 | | { |
| 0 | 43 | | Code = code; |
| 0 | 44 | | Message = message; |
| 0 | 45 | | Values = values; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets or sets an identifier for the autoscale error. Codes are |
| | 56 | | /// invariant and are intended to be consumed programmatically. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "code")] |
| 640 | 59 | | public string Code { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets a message describing the autoscale error, intended to |
| | 63 | | /// be suitable for display in a user interface. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "message")] |
| 642 | 66 | | public string Message { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets a list of additional error details related to the |
| | 70 | | /// autoscale error. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "values")] |
| 640 | 73 | | public IList<NameValuePair> Values { get; set; } |
| | 74 | |
|
| | 75 | | } |
| | 76 | | } |