| | 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 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | |
|
| | 12 | | namespace Azure.Search.Documents.Indexes.Models |
| | 13 | | { |
| | 14 | | /// <summary> Response from a List SynonymMaps request. If successful, it includes the full definitions of all synon |
| | 15 | | internal partial class ListSynonymMapsResult |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of ListSynonymMapsResult. </summary> |
| | 18 | | /// <param name="synonymMaps"> The synonym maps in the Search service. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="synonymMaps"/> is null. </exception> |
| 0 | 20 | | internal ListSynonymMapsResult(IEnumerable<SynonymMap> synonymMaps) |
| | 21 | | { |
| 0 | 22 | | if (synonymMaps == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(synonymMaps)); |
| | 25 | | } |
| | 26 | |
|
| 0 | 27 | | SynonymMaps = synonymMaps.ToList(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of ListSynonymMapsResult. </summary> |
| | 31 | | /// <param name="synonymMaps"> The synonym maps in the Search service. </param> |
| 2 | 32 | | internal ListSynonymMapsResult(IReadOnlyList<SynonymMap> synonymMaps) |
| | 33 | | { |
| 2 | 34 | | SynonymMaps = synonymMaps; |
| 2 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> The synonym maps in the Search service. </summary> |
| 2 | 38 | | public IReadOnlyList<SynonymMap> SynonymMaps { get; } |
| | 39 | | } |
| | 40 | | } |