| | 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.Analytics.Synapse.Artifacts.Models |
| | 13 | | { |
| | 14 | | /// <summary> A list of dataset resources. </summary> |
| | 15 | | public partial class DatasetListResponse |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of DatasetListResponse. </summary> |
| | 18 | | /// <param name="value"> List of datasets. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| 0 | 20 | | internal DatasetListResponse(IEnumerable<DatasetResource> value) |
| | 21 | | { |
| 0 | 22 | | if (value == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(value)); |
| | 25 | | } |
| | 26 | |
|
| 0 | 27 | | Value = value.ToList(); |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> Initializes a new instance of DatasetListResponse. </summary> |
| | 31 | | /// <param name="value"> List of datasets. </param> |
| | 32 | | /// <param name="nextLink"> The link to the next page of results, if any remaining results exist. </param> |
| 0 | 33 | | internal DatasetListResponse(IReadOnlyList<DatasetResource> value, string nextLink) |
| | 34 | | { |
| 0 | 35 | | Value = value; |
| 0 | 36 | | NextLink = nextLink; |
| 0 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> List of datasets. </summary> |
| 0 | 40 | | public IReadOnlyList<DatasetResource> Value { get; } |
| | 41 | | /// <summary> The link to the next page of results, if any remaining results exist. </summary> |
| 0 | 42 | | public string NextLink { get; } |
| | 43 | | } |
| | 44 | | } |