| | 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- or document-level indexing error. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ItemError |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ItemError class. |
| | 23 | | /// </summary> |
| 8 | 24 | | public ItemError() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 8 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ItemError class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="key">The key of the item for which indexing |
| | 33 | | /// failed.</param> |
| | 34 | | /// <param name="errorMessage">The message describing the error that |
| | 35 | | /// occurred while processing the item.</param> |
| | 36 | | /// <param name="statusCode">The status code indicating why the |
| | 37 | | /// indexing operation failed. Possible values include: 400 for a |
| | 38 | | /// malformed input document, 404 for document not found, 409 for a |
| | 39 | | /// version conflict, 422 when the index is temporarily unavailable, or |
| | 40 | | /// 503 for when the service is too busy.</param> |
| | 41 | | /// <param name="name">The name of the source at which the error |
| | 42 | | /// originated. For example, this could refer to a particular skill in |
| | 43 | | /// the attached skillset. This may not be always available.</param> |
| | 44 | | /// <param name="details">Additional, verbose details about the error |
| | 45 | | /// to assist in debugging the indexer. This may not be always |
| | 46 | | /// available.</param> |
| | 47 | | /// <param name="documentationLink">A link to a troubleshooting guide |
| | 48 | | /// for these classes of errors. This may not be always |
| | 49 | | /// available.</param> |
| 0 | 50 | | public ItemError(string key = default(string), string errorMessage = default(string), int statusCode = default(i |
| | 51 | | { |
| 0 | 52 | | Key = key; |
| 0 | 53 | | ErrorMessage = errorMessage; |
| 0 | 54 | | StatusCode = statusCode; |
| 0 | 55 | | Name = name; |
| 0 | 56 | | Details = details; |
| 0 | 57 | | DocumentationLink = documentationLink; |
| | 58 | | CustomInit(); |
| 0 | 59 | | } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// An initialization method that performs custom operations like setting defaults |
| | 63 | | /// </summary> |
| | 64 | | partial void CustomInit(); |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets the key of the item for which indexing failed. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "key")] |
| 12 | 70 | | public string Key { get; private set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets the message describing the error that occurred while |
| | 74 | | /// processing the item. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "errorMessage")] |
| 12 | 77 | | public string ErrorMessage { get; private set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets the status code indicating why the indexing operation failed. |
| | 81 | | /// Possible values include: 400 for a malformed input document, 404 |
| | 82 | | /// for document not found, 409 for a version conflict, 422 when the |
| | 83 | | /// index is temporarily unavailable, or 503 for when the service is |
| | 84 | | /// too busy. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "statusCode")] |
| 0 | 87 | | public int StatusCode { get; private set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets the name of the source at which the error originated. For |
| | 91 | | /// example, this could refer to a particular skill in the attached |
| | 92 | | /// skillset. This may not be always available. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "name")] |
| 12 | 95 | | public string Name { get; private set; } |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Gets additional, verbose details about the error to assist in |
| | 99 | | /// debugging the indexer. This may not be always available. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "details")] |
| 12 | 102 | | public string Details { get; private set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets a link to a troubleshooting guide for these classes of errors. |
| | 106 | | /// This may not be always available. |
| | 107 | | /// </summary> |
| | 108 | | [JsonProperty(PropertyName = "documentationLink")] |
| 12 | 109 | | public string DocumentationLink { get; private set; } |
| | 110 | |
|
| | 111 | | } |
| | 112 | | } |