| | 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 | | /// Information about a Task failure. |
| | 20 | | /// </summary> |
| | 21 | | public partial class TaskFailureInformation |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the TaskFailureInformation class. |
| | 25 | | /// </summary> |
| 1491 | 26 | | public TaskFailureInformation() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 1491 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the TaskFailureInformation class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="category">The category of the Task error.</param> |
| | 35 | | /// <param name="code">An identifier for the Task error. Codes are |
| | 36 | | /// invariant and are intended to be consumed programmatically.</param> |
| | 37 | | /// <param name="message">A message describing the Task error, intended |
| | 38 | | /// to be suitable for display in a user interface.</param> |
| | 39 | | /// <param name="details">A list of additional details related to the |
| | 40 | | /// error.</param> |
| 0 | 41 | | public TaskFailureInformation(ErrorCategory category, string code = default(string), string message = default(st |
| | 42 | | { |
| 0 | 43 | | Category = category; |
| 0 | 44 | | Code = code; |
| 0 | 45 | | Message = message; |
| 0 | 46 | | Details = details; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets the category of the Task error. |
| | 57 | | /// </summary> |
| | 58 | | /// <remarks> |
| | 59 | | /// Possible values include: 'userError', 'serverError' |
| | 60 | | /// </remarks> |
| | 61 | | [JsonProperty(PropertyName = "category")] |
| 3733 | 62 | | public ErrorCategory Category { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets an identifier for the Task error. Codes are invariant |
| | 66 | | /// and are intended to be consumed programmatically. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "code")] |
| 3720 | 69 | | public string Code { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets a message describing the Task error, intended to be |
| | 73 | | /// suitable for display in a user interface. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "message")] |
| 3741 | 76 | | public string Message { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets a list of additional details related to the error. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "details")] |
| 3741 | 82 | | public IList<NameValuePair> Details { get; set; } |
| | 83 | |
|
| | 84 | | } |
| | 85 | | } |