< Summary

Class:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.KnowledgebaseDTO
Assembly:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\KnowledgebaseDTO.cs
Covered lines:0
Uncovered lines:22
Coverable lines:22
Total lines:129
Line coverage:0% (0 of 22)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_HostName()-0%100%
get_LastAccessedTimestamp()-0%100%
get_LastChangedTimestamp()-0%100%
get_LastPublishedTimestamp()-0%100%
get_Name()-0%100%
get_UserId()-0%100%
get_Urls()-0%100%
get_Sources()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\KnowledgebaseDTO.cs

#LineLine coverage
 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
 11namespace 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>
 026        public KnowledgebaseDTO()
 27        {
 28            CustomInit();
 029        }
 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>
 050        public KnowledgebaseDTO(string id = default(string), string hostName = default(string), string lastAccessedTimes
 51        {
 052            Id = id;
 053            HostName = hostName;
 054            LastAccessedTimestamp = lastAccessedTimestamp;
 055            LastChangedTimestamp = lastChangedTimestamp;
 056            LastPublishedTimestamp = lastPublishedTimestamp;
 057            Name = name;
 058            UserId = userId;
 059            Urls = urls;
 060            Sources = sources;
 61            CustomInit();
 062        }
 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")]
 073        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")]
 079        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")]
 086        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")]
 093        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")]
 0100        public string LastPublishedTimestamp { get; set; }
 101
 102        /// <summary>
 103        /// Gets or sets friendly name of the knowledgebase.
 104        /// </summary>
 105        [JsonProperty(PropertyName = "name")]
 0106        public string Name { get; set; }
 107
 108        /// <summary>
 109        /// Gets or sets user who created / owns the knowledgebase.
 110        /// </summary>
 111        [JsonProperty(PropertyName = "userId")]
 0112        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")]
 0119        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")]
 0126        public IList<string> Sources { get; set; }
 127
 128    }
 129}