| | 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.Models |
| | 13 | | { |
| | 14 | | /// <summary> Contains a batch of document write actions to send to the index. </summary> |
| | 15 | | internal partial class IndexBatch |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of IndexBatch. </summary> |
| | 18 | | /// <param name="actions"> The actions in the batch. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="actions"/> is null. </exception> |
| 0 | 20 | | public IndexBatch(IEnumerable<IndexAction> actions) |
| | 21 | | { |
| 0 | 22 | | if (actions == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(actions)); |
| | 25 | | } |
| | 26 | |
|
| 0 | 27 | | Actions = actions.ToList(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> The actions in the batch. </summary> |
| 0 | 31 | | public IList<IndexAction> Actions { get; } |
| | 32 | | } |
| | 33 | | } |