| | 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 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models |
| | 8 | | { |
| | 9 | | using Microsoft.Rest; |
| | 10 | | using Newtonsoft.Json; |
| | 11 | | using System.Collections; |
| | 12 | | using System.Collections.Generic; |
| | 13 | | using System.Linq; |
| | 14 | |
|
| | 15 | | /// <summary> |
| | 16 | | /// Defines the characteristics of content found in an image. |
| | 17 | | /// </summary> |
| | 18 | | public partial class ImageTagsModule |
| | 19 | | { |
| | 20 | | /// <summary> |
| | 21 | | /// Initializes a new instance of the ImageTagsModule class. |
| | 22 | | /// </summary> |
| 2 | 23 | | public ImageTagsModule() |
| | 24 | | { |
| | 25 | | CustomInit(); |
| 2 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the ImageTagsModule class. |
| | 30 | | /// </summary> |
| | 31 | | /// <param name="value">A list of tags that describe the |
| | 32 | | /// characteristics of the content found in the image. For example, if |
| | 33 | | /// the image is of a musical artist, the list might include Female, |
| | 34 | | /// Dress, and Music to indicate the person is female music artist |
| | 35 | | /// that's wearing a dress.</param> |
| 0 | 36 | | public ImageTagsModule(IList<InsightsTag> value) |
| | 37 | | { |
| 0 | 38 | | Value = value; |
| | 39 | | CustomInit(); |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// An initialization method that performs custom operations like setting defaults |
| | 44 | | /// </summary> |
| | 45 | | partial void CustomInit(); |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// Gets or sets a list of tags that describe the characteristics of |
| | 49 | | /// the content found in the image. For example, if the image is of a |
| | 50 | | /// musical artist, the list might include Female, Dress, and Music to |
| | 51 | | /// indicate the person is female music artist that's wearing a dress. |
| | 52 | | /// </summary> |
| | 53 | | [JsonProperty(PropertyName = "value")] |
| 4 | 54 | | public IList<InsightsTag> Value { get; set; } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Validate the object. |
| | 58 | | /// </summary> |
| | 59 | | /// <exception cref="ValidationException"> |
| | 60 | | /// Thrown if validation fails |
| | 61 | | /// </exception> |
| | 62 | | public virtual void Validate() |
| | 63 | | { |
| 0 | 64 | | if (Value == null) |
| | 65 | | { |
| 0 | 66 | | throw new ValidationException(ValidationRules.CannotBeNull, "Value"); |
| | 67 | | } |
| 0 | 68 | | } |
| | 69 | | } |
| | 70 | | } |