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