| | 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.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Represents an item-level warning. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ItemWarning |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ItemWarning class. |
| | 23 | | /// </summary> |
| 4 | 24 | | public ItemWarning() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 4 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ItemWarning class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="key">The key of the item which generated a |
| | 33 | | /// warning.</param> |
| | 34 | | /// <param name="message">The message describing the warning that |
| | 35 | | /// occurred while processing the item.</param> |
| | 36 | | /// <param name="name">The name of the source at which the warning |
| | 37 | | /// originated. For example, this could refer to a particular skill in |
| | 38 | | /// the attached skillset. This may not be always available.</param> |
| | 39 | | /// <param name="details">Additional, verbose details about the warning |
| | 40 | | /// to assist in debugging the indexer. This may not be always |
| | 41 | | /// available.</param> |
| | 42 | | /// <param name="documentationLink">A link to a troubleshooting guide |
| | 43 | | /// for these classes of warnings. This may not be always |
| | 44 | | /// available.</param> |
| 0 | 45 | | public ItemWarning(string key = default(string), string message = default(string), string name = default(string) |
| | 46 | | { |
| 0 | 47 | | Key = key; |
| 0 | 48 | | Message = message; |
| 0 | 49 | | Name = name; |
| 0 | 50 | | Details = details; |
| 0 | 51 | | DocumentationLink = documentationLink; |
| | 52 | | CustomInit(); |
| 0 | 53 | | } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// An initialization method that performs custom operations like setting defaults |
| | 57 | | /// </summary> |
| | 58 | | partial void CustomInit(); |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets the key of the item which generated a warning. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "key")] |
| 6 | 64 | | public string Key { get; private set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets the message describing the warning that occurred while |
| | 68 | | /// processing the item. |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "message")] |
| 6 | 71 | | public string Message { get; private set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets the name of the source at which the warning originated. For |
| | 75 | | /// example, this could refer to a particular skill in the attached |
| | 76 | | /// skillset. This may not be always available. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "name")] |
| 6 | 79 | | public string Name { get; private set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets additional, verbose details about the warning to assist in |
| | 83 | | /// debugging the indexer. This may not be always available. |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "details")] |
| 6 | 86 | | public string Details { get; private set; } |
| | 87 | |
|
| | 88 | | /// <summary> |
| | 89 | | /// Gets a link to a troubleshooting guide for these classes of |
| | 90 | | /// warnings. This may not be always available. |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "documentationLink")] |
| 6 | 93 | | public string DocumentationLink { get; private set; } |
| | 94 | |
|
| | 95 | | } |
| | 96 | | } |