| | 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 Availability Set operation response. </summary> |
| | 15 | | public partial class AvailabilitySetListResult |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of AvailabilitySetListResult. </summary> |
| | 18 | | /// <param name="value"> The list of availability sets. </param> |
| 0 | 19 | | internal AvailabilitySetListResult(IEnumerable<AvailabilitySet> 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 AvailabilitySetListResult. </summary> |
| | 30 | | /// <param name="value"> The list of availability sets. </param> |
| | 31 | | /// <param name="nextLink"> The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to |
| 12 | 32 | | internal AvailabilitySetListResult(IReadOnlyList<AvailabilitySet> value, string nextLink) |
| | 33 | | { |
| 12 | 34 | | Value = value ?? new List<AvailabilitySet>(); |
| 12 | 35 | | NextLink = nextLink; |
| 12 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> The list of availability sets. </summary> |
| 12 | 39 | | public IReadOnlyList<AvailabilitySet> Value { get; } |
| | 40 | | /// <summary> The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the nex |
| 12 | 41 | | public string NextLink { get; } |
| | 42 | | } |
| | 43 | | } |