< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Search.BingVisualSearch\src\Generated\Models\ImageRelatedSearchesAction.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.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    /// <summary>
 15    /// Defines an related search action.
 16    /// </summary>
 17    public partial class ImageRelatedSearchesAction : ImageAction
 18    {
 19        /// <summary>
 20        /// Initializes a new instance of the ImageRelatedSearchesAction class.
 21        /// </summary>
 422        public ImageRelatedSearchesAction()
 23        {
 24            CustomInit();
 425        }
 26
 27        /// <summary>
 28        /// Initializes a new instance of the ImageRelatedSearchesAction class.
 29        /// </summary>
 30        /// <param name="id">A String identifier.</param>
 31        /// <param name="readLink">The URL that returns this resource. To use
 32        /// the URL, append query parameters as appropriate and include the
 33        /// Ocp-Apim-Subscription-Key header.</param>
 34        /// <param name="webSearchUrl">The URL to Bing's search result for this
 35        /// item.</param>
 36        /// <param name="name">The name of the thing represented by this
 37        /// object.</param>
 38        /// <param name="url">The URL to get more information about the thing
 39        /// represented by this object.</param>
 40        /// <param name="image">An image of the item.</param>
 41        /// <param name="description">A short description of the item.</param>
 42        /// <param name="alternateName">An alias for the item.</param>
 43        /// <param name="bingId">An ID that uniquely identifies this
 44        /// item.</param>
 45        /// <param name="thumbnailUrl">The URL to a thumbnail of the
 46        /// item.</param>
 47        /// <param name="provider">The source of the creative work.</param>
 48        /// <param name="datePublished">The date on which the CreativeWork was
 49        /// published.</param>
 50        /// <param name="text">Text content of this creative work.</param>
 51        /// <param name="result">The result produced in the action.</param>
 52        /// <param name="displayName">A display name for the action.</param>
 53        /// <param name="isTopAction">A Boolean representing whether this
 54        /// result is the top action.</param>
 55        /// <param name="serviceUrl">Use this URL to get additional data to
 56        /// determine how to take the appropriate action. For example, the
 57        /// serviceUrl might return JSON along with an image URL.</param>
 58        /// <param name="actionType">A string representing the type of
 59        /// action.</param>
 60        /// <param name="data">A list of queries related to the image.</param>
 61        public ImageRelatedSearchesAction(string id = default(string), string readLink = default(string), string webSear
 062            : base(id, readLink, webSearchUrl, name, url, image, description, alternateName, bingId, thumbnailUrl, provi
 63        {
 064            Data = data;
 65            CustomInit();
 066        }
 67
 68        /// <summary>
 69        /// An initialization method that performs custom operations like setting defaults
 70        /// </summary>
 71        partial void CustomInit();
 72
 73        /// <summary>
 74        /// Gets a list of queries related to the image.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "data")]
 077        public RelatedSearchesModule Data { get; private set; }
 78
 79    }
 80}

Methods/Properties

.ctor()
.ctor(...)
get_Data()