| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | /// <summary> Output field mapping for a skill. </summary> |
| | 13 | | public partial class OutputFieldMappingEntry |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of OutputFieldMappingEntry. </summary> |
| | 16 | | /// <param name="name"> The name of the output defined by the skill. </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> |
| 12 | 18 | | public OutputFieldMappingEntry(string name) |
| | 19 | | { |
| 12 | 20 | | if (name == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(name)); |
| | 23 | | } |
| | 24 | |
|
| 12 | 25 | | Name = name; |
| 12 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of OutputFieldMappingEntry. </summary> |
| | 29 | | /// <param name="name"> The name of the output defined by the skill. </param> |
| | 30 | | /// <param name="targetName"> The target name of the output. It is optional and default to name. </param> |
| 32 | 31 | | internal OutputFieldMappingEntry(string name, string targetName) |
| | 32 | | { |
| 32 | 33 | | Name = name; |
| 32 | 34 | | TargetName = targetName; |
| 32 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> The name of the output defined by the skill. </summary> |
| 126 | 38 | | public string Name { get; set; } |
| | 39 | | /// <summary> The target name of the output. It is optional and default to name. </summary> |
| 148 | 40 | | public string TargetName { get; set; } |
| | 41 | | } |
| | 42 | | } |