| | 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 encountered by a Compute Node. |
| | 20 | | /// </summary> |
| | 21 | | public partial class ComputeNodeError |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the ComputeNodeError class. |
| | 25 | | /// </summary> |
| 2226 | 26 | | public ComputeNodeError() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2226 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the ComputeNodeError class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="code">An identifier for the Compute Node error. Codes |
| | 35 | | /// are invariant and are intended to be consumed |
| | 36 | | /// programmatically.</param> |
| | 37 | | /// <param name="message">A message describing the Compute Node error, |
| | 38 | | /// intended to be suitable for display in a user interface.</param> |
| | 39 | | /// <param name="errorDetails">The list of additional error details |
| | 40 | | /// related to the Compute Node error.</param> |
| 0 | 41 | | public ComputeNodeError(string code = default(string), string message = default(string), IList<NameValuePair> er |
| | 42 | | { |
| 0 | 43 | | Code = code; |
| 0 | 44 | | Message = message; |
| 0 | 45 | | ErrorDetails = errorDetails; |
| | 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 Compute Node error. Codes are |
| | 56 | | /// invariant and are intended to be consumed programmatically. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "code")] |
| 5547 | 59 | | public string Code { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets a message describing the Compute Node error, intended |
| | 63 | | /// to be suitable for display in a user interface. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "message")] |
| 5550 | 66 | | public string Message { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets the list of additional error details related to the |
| | 70 | | /// Compute Node error. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "errorDetails")] |
| 5538 | 73 | | public IList<NameValuePair> ErrorDetails { get; set; } |
| | 74 | |
|
| | 75 | | } |
| | 76 | | } |