| | | 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 Indexers request. If successful, it includes the full definitions of all indexers |
| | | 15 | | internal partial class ListIndexersResult |
| | | 16 | | { |
| | | 17 | | /// <summary> Initializes a new instance of ListIndexersResult. </summary> |
| | | 18 | | /// <param name="indexers"> The indexers in the Search service. </param> |
| | | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="indexers"/> is null. </exception> |
| | 0 | 20 | | internal ListIndexersResult(IEnumerable<SearchIndexer> indexers) |
| | | 21 | | { |
| | 0 | 22 | | if (indexers == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(indexers)); |
| | | 25 | | } |
| | | 26 | | |
| | 0 | 27 | | Indexers = indexers.ToList(); |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> Initializes a new instance of ListIndexersResult. </summary> |
| | | 31 | | /// <param name="indexers"> The indexers in the Search service. </param> |
| | 0 | 32 | | internal ListIndexersResult(IReadOnlyList<SearchIndexer> indexers) |
| | | 33 | | { |
| | 0 | 34 | | Indexers = indexers; |
| | 0 | 35 | | } |
| | | 36 | | |
| | | 37 | | /// <summary> The indexers in the Search service. </summary> |
| | 0 | 38 | | public IReadOnlyList<SearchIndexer> Indexers { get; } |
| | | 39 | | } |
| | | 40 | | } |