| | 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.ResourceManager.Compute.Models |
| | 13 | | { |
| | 14 | | /// <summary> The List Snapshots operation response. </summary> |
| | 15 | | public partial class SnapshotList |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of SnapshotList. </summary> |
| | 18 | | /// <param name="value"> A list of snapshots. </param> |
| 0 | 19 | | internal SnapshotList(IEnumerable<Snapshot> value) |
| | 20 | | { |
| 0 | 21 | | if (value == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(value)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | Value = value.ToArray(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> Initializes a new instance of SnapshotList. </summary> |
| | 30 | | /// <param name="value"> A list of snapshots. </param> |
| | 31 | | /// <param name="nextLink"> The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the |
| 12 | 32 | | internal SnapshotList(IReadOnlyList<Snapshot> value, string nextLink) |
| | 33 | | { |
| 12 | 34 | | Value = value ?? new List<Snapshot>(); |
| 12 | 35 | | NextLink = nextLink; |
| 12 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> A list of snapshots. </summary> |
| 12 | 39 | | public IReadOnlyList<Snapshot> Value { get; } |
| | 40 | | /// <summary> The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of s |
| 12 | 41 | | public string NextLink { get; } |
| | 42 | | } |
| | 43 | | } |