| | 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 | | /// Input to create KB. |
| | 20 | | /// </summary> |
| | 21 | | public partial class CreateKbInputDTO |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the CreateKbInputDTO class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public CreateKbInputDTO() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the CreateKbInputDTO class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="qnaList">List of QNA to be added to the index. Ids are |
| | 35 | | /// generated by the service and should be omitted.</param> |
| | 36 | | /// <param name="urls">List of URLs to be added to |
| | 37 | | /// knowledgebase.</param> |
| | 38 | | /// <param name="files">List of files to be added to |
| | 39 | | /// knowledgebase.</param> |
| 0 | 40 | | public CreateKbInputDTO(IList<QnADTO> qnaList = default(IList<QnADTO>), IList<string> urls = default(IList<strin |
| | 41 | | { |
| 0 | 42 | | QnaList = qnaList; |
| 0 | 43 | | Urls = urls; |
| 0 | 44 | | Files = files; |
| | 45 | | CustomInit(); |
| 0 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | 50 | | /// </summary> |
| | 51 | | partial void CustomInit(); |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets list of QNA to be added to the index. Ids are |
| | 55 | | /// generated by the service and should be omitted. |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "qnaList")] |
| 0 | 58 | | public IList<QnADTO> QnaList { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets list of URLs to be added to knowledgebase. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "urls")] |
| 0 | 64 | | public IList<string> Urls { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets list of files to be added to knowledgebase. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "files")] |
| 0 | 70 | | public IList<FileDTO> Files { get; set; } |
| | 71 | |
|
| | 72 | | } |
| | 73 | | } |