| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// PATCH body schema for Update operation in Update Kb |
| | 20 | | /// </summary> |
| | 21 | | public partial class UpdateKbContentsDTO |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the UpdateKbContentsDTO class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public UpdateKbContentsDTO() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the UpdateKbContentsDTO class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="name">Friendly name for the knowledgebase.</param> |
| | 35 | | /// <param name="qnaList">List of Q-A (UpdateQnaDTO) to be added to the |
| | 36 | | /// knowledgebase.</param> |
| | 37 | | /// <param name="urls">List of existing URLs to be refreshed. The |
| | 38 | | /// content will be extracted again and re-indexed.</param> |
| 0 | 39 | | public UpdateKbContentsDTO(string name = default(string), IList<UpdateQnaDTO> qnaList = default(IList<UpdateQnaD |
| | 40 | | { |
| 0 | 41 | | Name = name; |
| 0 | 42 | | QnaList = qnaList; |
| 0 | 43 | | Urls = urls; |
| | 44 | | CustomInit(); |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// An initialization method that performs custom operations like setting defaults |
| | 49 | | /// </summary> |
| | 50 | | partial void CustomInit(); |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// Gets or sets friendly name for the knowledgebase. |
| | 54 | | /// </summary> |
| | 55 | | [JsonProperty(PropertyName = "name")] |
| 0 | 56 | | public string Name { get; set; } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets or sets list of Q-A (UpdateQnaDTO) to be added to the |
| | 60 | | /// knowledgebase. |
| | 61 | | /// </summary> |
| | 62 | | [JsonProperty(PropertyName = "qnaList")] |
| 0 | 63 | | public IList<UpdateQnaDTO> QnaList { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets list of existing URLs to be refreshed. The content |
| | 67 | | /// will be extracted again and re-indexed. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "urls")] |
| 0 | 70 | | public IList<string> Urls { get; set; } |
| | 71 | |
|
| | 72 | | } |
| | 73 | | } |