< Summary

Class:Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models.KnowledgeRequest
Assembly:Microsoft.Azure.CognitiveServices.Search.BingVisualSearch
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\Models\KnowledgeRequest.cs
Covered lines:4
Uncovered lines:2
Coverable lines:6
Total lines:50
Line coverage:66.6% (4 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_Filters()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\Models\KnowledgeRequest.cs

#LineLine coverage
 1// <auto-generated>
 2// Code generated by Microsoft (R) AutoRest Code Generator.
 3// Changes may cause incorrect behavior and will be lost if the code is
 4// regenerated.
 5// </auto-generated>
 6
 7namespace Microsoft.Azure.CognitiveServices.Search.VisualSearch.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Linq;
 11
 12    /// <summary>
 13    /// A JSON object containing information about the request, such as filters
 14    /// for the resulting actions.
 15    /// </summary>
 16    public partial class KnowledgeRequest
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the KnowledgeRequest class.
 20        /// </summary>
 021        public KnowledgeRequest()
 22        {
 23            CustomInit();
 024        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the KnowledgeRequest class.
 28        /// </summary>
 29        /// <param name="filters">A key-value object consisting of filters that
 30        /// may be specified to limit the results returned by the API.</param>
 231        public KnowledgeRequest(Filters filters = default(Filters))
 32        {
 233            Filters = filters;
 34            CustomInit();
 235        }
 36
 37        /// <summary>
 38        /// An initialization method that performs custom operations like setting defaults
 39        /// </summary>
 40        partial void CustomInit();
 41
 42        /// <summary>
 43        /// Gets or sets a key-value object consisting of filters that may be
 44        /// specified to limit the results returned by the API.
 45        /// </summary>
 46        [JsonProperty(PropertyName = "filters")]
 447        public Filters Filters { get; set; }
 48
 49    }
 50}

Methods/Properties

.ctor()
.ctor(...)
get_Filters()