| | 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.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A skill for merging two or more strings into a single unified string, |
| | 20 | | /// with an optional user-defined delimiter separating each component part. |
| | 21 | | /// <see |
| | 22 | | /// href="https://docs.microsoft.com/azure/search/cognitive-search-skill-textmerger" |
| | 23 | | /// /> |
| | 24 | | /// </summary> |
| | 25 | | [Newtonsoft.Json.JsonObject("#Microsoft.Skills.Text.MergeSkill")] |
| | 26 | | public partial class MergeSkill : Skill |
| | 27 | | { |
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the MergeSkill class. |
| | 30 | | /// </summary> |
| 4 | 31 | | public MergeSkill() |
| | 32 | | { |
| | 33 | | CustomInit(); |
| 4 | 34 | | } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// Initializes a new instance of the MergeSkill class. |
| | 38 | | /// </summary> |
| | 39 | | /// <param name="inputs">Inputs of the skills could be a column in the |
| | 40 | | /// source data set, or the output of an upstream skill.</param> |
| | 41 | | /// <param name="outputs">The output of a skill is either a field in a |
| | 42 | | /// search index, or a value that can be consumed as an input by |
| | 43 | | /// another skill.</param> |
| | 44 | | /// <param name="name">The name of the skill which uniquely identifies |
| | 45 | | /// it within the skillset. A skill with no name defined will be given |
| | 46 | | /// a default name of its 1-based index in the skills array, prefixed |
| | 47 | | /// with the character '#'.</param> |
| | 48 | | /// <param name="description">The description of the skill which |
| | 49 | | /// describes the inputs, outputs, and usage of the skill.</param> |
| | 50 | | /// <param name="context">Represents the level at which operations take |
| | 51 | | /// place, such as the document root or document content (for example, |
| | 52 | | /// /document or /document/content). The default is /document.</param> |
| | 53 | | /// <param name="insertPreTag">The tag indicates the start of the |
| | 54 | | /// merged text. By default, the tag is an empty space.</param> |
| | 55 | | /// <param name="insertPostTag">The tag indicates the end of the merged |
| | 56 | | /// text. By default, the tag is an empty space.</param> |
| | 57 | | public MergeSkill(IList<InputFieldMappingEntry> inputs, IList<OutputFieldMappingEntry> outputs, string name = de |
| 4 | 58 | | : base(inputs, outputs, name, description, context) |
| | 59 | | { |
| 4 | 60 | | InsertPreTag = insertPreTag; |
| 4 | 61 | | InsertPostTag = insertPostTag; |
| | 62 | | CustomInit(); |
| 4 | 63 | | } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// An initialization method that performs custom operations like setting defaults |
| | 67 | | /// </summary> |
| | 68 | | partial void CustomInit(); |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets or sets the tag indicates the start of the merged text. By |
| | 72 | | /// default, the tag is an empty space. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "insertPreTag")] |
| 22 | 75 | | public string InsertPreTag { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets the tag indicates the end of the merged text. By |
| | 79 | | /// default, the tag is an empty space. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "insertPostTag")] |
| 22 | 82 | | public string InsertPostTag { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Validate the object. |
| | 86 | | /// </summary> |
| | 87 | | /// <exception cref="Rest.ValidationException"> |
| | 88 | | /// Thrown if validation fails |
| | 89 | | /// </exception> |
| | 90 | | public override void Validate() |
| | 91 | | { |
| 4 | 92 | | base.Validate(); |
| 4 | 93 | | } |
| | 94 | | } |
| | 95 | | } |