| | 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 | | /// Response schema for CreateKb operation. |
| | 20 | | /// </summary> |
| | 21 | | public partial class KnowledgebaseDTO |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the KnowledgebaseDTO class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public KnowledgebaseDTO() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the KnowledgebaseDTO class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="id">Unique id that identifies a knowledgebase.</param> |
| | 35 | | /// <param name="hostName">URL host name at which the knowledgebase is |
| | 36 | | /// hosted.</param> |
| | 37 | | /// <param name="lastAccessedTimestamp">Time stamp at which the |
| | 38 | | /// knowledgebase was last accessed (UTC).</param> |
| | 39 | | /// <param name="lastChangedTimestamp">Time stamp at which the |
| | 40 | | /// knowledgebase was last modified (UTC).</param> |
| | 41 | | /// <param name="lastPublishedTimestamp">Time stamp at which the |
| | 42 | | /// knowledgebase was last published (UTC).</param> |
| | 43 | | /// <param name="name">Friendly name of the knowledgebase.</param> |
| | 44 | | /// <param name="userId">User who created / owns the |
| | 45 | | /// knowledgebase.</param> |
| | 46 | | /// <param name="urls">URL sources from which Q-A were extracted and |
| | 47 | | /// added to the knowledgebase.</param> |
| | 48 | | /// <param name="sources">Custom sources from which Q-A were extracted |
| | 49 | | /// or explicitly added to the knowledgebase.</param> |
| 0 | 50 | | public KnowledgebaseDTO(string id = default(string), string hostName = default(string), string lastAccessedTimes |
| | 51 | | { |
| 0 | 52 | | Id = id; |
| 0 | 53 | | HostName = hostName; |
| 0 | 54 | | LastAccessedTimestamp = lastAccessedTimestamp; |
| 0 | 55 | | LastChangedTimestamp = lastChangedTimestamp; |
| 0 | 56 | | LastPublishedTimestamp = lastPublishedTimestamp; |
| 0 | 57 | | Name = name; |
| 0 | 58 | | UserId = userId; |
| 0 | 59 | | Urls = urls; |
| 0 | 60 | | Sources = sources; |
| | 61 | | CustomInit(); |
| 0 | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// An initialization method that performs custom operations like setting defaults |
| | 66 | | /// </summary> |
| | 67 | | partial void CustomInit(); |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets unique id that identifies a knowledgebase. |
| | 71 | | /// </summary> |
| | 72 | | [JsonProperty(PropertyName = "id")] |
| 0 | 73 | | public string Id { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets URL host name at which the knowledgebase is hosted. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "hostName")] |
| 0 | 79 | | public string HostName { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets time stamp at which the knowledgebase was last |
| | 83 | | /// accessed (UTC). |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "lastAccessedTimestamp")] |
| 0 | 86 | | public string LastAccessedTimestamp { get; set; } |
| | 87 | |
|
| | 88 | | /// <summary> |
| | 89 | | /// Gets or sets time stamp at which the knowledgebase was last |
| | 90 | | /// modified (UTC). |
| | 91 | | /// </summary> |
| | 92 | | [JsonProperty(PropertyName = "lastChangedTimestamp")] |
| 0 | 93 | | public string LastChangedTimestamp { get; set; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets or sets time stamp at which the knowledgebase was last |
| | 97 | | /// published (UTC). |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "lastPublishedTimestamp")] |
| 0 | 100 | | public string LastPublishedTimestamp { get; set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets or sets friendly name of the knowledgebase. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "name")] |
| 0 | 106 | | public string Name { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets user who created / owns the knowledgebase. |
| | 110 | | /// </summary> |
| | 111 | | [JsonProperty(PropertyName = "userId")] |
| 0 | 112 | | public string UserId { get; set; } |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets or sets URL sources from which Q-A were extracted and added to |
| | 116 | | /// the knowledgebase. |
| | 117 | | /// </summary> |
| | 118 | | [JsonProperty(PropertyName = "urls")] |
| 0 | 119 | | public IList<string> Urls { get; set; } |
| | 120 | |
|
| | 121 | | /// <summary> |
| | 122 | | /// Gets or sets custom sources from which Q-A were extracted or |
| | 123 | | /// explicitly added to the knowledgebase. |
| | 124 | | /// </summary> |
| | 125 | | [JsonProperty(PropertyName = "sources")] |
| 0 | 126 | | public IList<string> Sources { get; set; } |
| | 127 | |
|
| | 128 | | } |
| | 129 | | } |