| | | 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.CognitiveServices.Knowledge.QnAMaker.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// An object containing more specific information about the error. As per |
| | | 18 | | /// Microsoft One API guidelines - |
| | | 19 | | /// https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class InnerErrorModel |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the InnerErrorModel class. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public InnerErrorModel() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 0 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the InnerErrorModel class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="code">A more specific error code than was provided by |
| | | 35 | | /// the containing error.</param> |
| | | 36 | | /// <param name="innerError">An object containing more specific |
| | | 37 | | /// information than the current object about the error.</param> |
| | 0 | 38 | | public InnerErrorModel(string code = default(string), InnerErrorModel innerError = default(InnerErrorModel)) |
| | | 39 | | { |
| | 0 | 40 | | Code = code; |
| | 0 | 41 | | InnerError = innerError; |
| | | 42 | | CustomInit(); |
| | 0 | 43 | | } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | | 47 | | /// </summary> |
| | | 48 | | partial void CustomInit(); |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// Gets or sets a more specific error code than was provided by the |
| | | 52 | | /// containing error. |
| | | 53 | | /// </summary> |
| | | 54 | | [JsonProperty(PropertyName = "code")] |
| | 0 | 55 | | public string Code { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets an object containing more specific information than |
| | | 59 | | /// the current object about the error. |
| | | 60 | | /// </summary> |
| | | 61 | | [JsonProperty(PropertyName = "innerError")] |
| | 0 | 62 | | public InnerErrorModel InnerError { get; set; } |
| | | 63 | | |
| | | 64 | | } |
| | | 65 | | } |