| | 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 response received from the Azure Batch service. |
| | 20 | | /// </summary> |
| | 21 | | public partial class BatchError |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the BatchError class. |
| | 25 | | /// </summary> |
| 1 | 26 | | public BatchError() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 1 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the BatchError class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="code">An identifier for the error. Codes are invariant |
| | 35 | | /// and are intended to be consumed programmatically.</param> |
| | 36 | | /// <param name="message">A message describing the error, intended to |
| | 37 | | /// be suitable for display in a user interface.</param> |
| | 38 | | /// <param name="values">A collection of key-value pairs containing |
| | 39 | | /// additional details about the error.</param> |
| 2 | 40 | | public BatchError(string code = default(string), ErrorMessage message = default(ErrorMessage), IList<BatchErrorD |
| | 41 | | { |
| 2 | 42 | | Code = code; |
| 2 | 43 | | Message = message; |
| 2 | 44 | | Values = values; |
| | 45 | | CustomInit(); |
| 2 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | 50 | | /// </summary> |
| | 51 | | partial void CustomInit(); |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets an identifier for the error. Codes are invariant and |
| | 55 | | /// are intended to be consumed programmatically. |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "code")] |
| 6 | 58 | | public string Code { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets a message describing the error, intended to be |
| | 62 | | /// suitable for display in a user interface. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "message")] |
| 6 | 65 | | public ErrorMessage Message { get; set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets a collection of key-value pairs containing additional |
| | 69 | | /// details about the error. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "values")] |
| 5 | 72 | | public IList<BatchErrorDetail> Values { get; set; } |
| | 73 | |
|
| | 74 | | } |
| | 75 | | } |