| | 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 | | /// Update Body schema to represent context to be updated |
| | 20 | | /// </summary> |
| | 21 | | public partial class UpdateContextDTO |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the UpdateContextDTO class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public UpdateContextDTO() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the UpdateContextDTO class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="promptsToDelete">List of prompts associated with qna |
| | 35 | | /// to be deleted</param> |
| | 36 | | /// <param name="promptsToAdd">List of prompts to be added to the |
| | 37 | | /// qna.</param> |
| | 38 | | /// <param name="isContextOnly">To mark if a prompt is relevant only |
| | 39 | | /// with a previous question or not. |
| | 40 | | /// true - Do not include this QnA as search result for queries without |
| | 41 | | /// context |
| | 42 | | /// false - ignores context and includes this QnA in search |
| | 43 | | /// result</param> |
| 0 | 44 | | public UpdateContextDTO(IList<int?> promptsToDelete = default(IList<int?>), IList<PromptDTO> promptsToAdd = defa |
| | 45 | | { |
| 0 | 46 | | PromptsToDelete = promptsToDelete; |
| 0 | 47 | | PromptsToAdd = promptsToAdd; |
| 0 | 48 | | IsContextOnly = isContextOnly; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets list of prompts associated with qna to be deleted |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "promptsToDelete")] |
| 0 | 61 | | public IList<int?> PromptsToDelete { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets list of prompts to be added to the qna. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "promptsToAdd")] |
| 0 | 67 | | public IList<PromptDTO> PromptsToAdd { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets to mark if a prompt is relevant only with a previous |
| | 71 | | /// question or not. |
| | 72 | | /// true - Do not include this QnA as search result for queries without |
| | 73 | | /// context |
| | 74 | | /// false - ignores context and includes this QnA in search result |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "isContextOnly")] |
| 0 | 77 | | public bool? IsContextOnly { get; set; } |
| | 78 | |
|
| | 79 | | } |
| | 80 | | } |