| | 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.Network.Models |
| | 13 | | { |
| | 14 | | /// <summary> List of available countries with details. </summary> |
| | 15 | | public partial class AvailableProvidersList |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of AvailableProvidersList. </summary> |
| | 18 | | /// <param name="countries"> List of available countries. </param> |
| 0 | 19 | | internal AvailableProvidersList(IEnumerable<AvailableProvidersListCountry> countries) |
| | 20 | | { |
| 0 | 21 | | if (countries == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(countries)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | Countries = countries.ToArray(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> Initializes a new instance of AvailableProvidersList. </summary> |
| | 30 | | /// <param name="countries"> List of available countries. </param> |
| 0 | 31 | | internal AvailableProvidersList(IReadOnlyList<AvailableProvidersListCountry> countries) |
| | 32 | | { |
| 0 | 33 | | Countries = countries ?? new List<AvailableProvidersListCountry>(); |
| 0 | 34 | | } |
| | 35 | |
|
| | 36 | | /// <summary> List of available countries. </summary> |
| 0 | 37 | | public IReadOnlyList<AvailableProvidersListCountry> Countries { get; } |
| | 38 | | } |
| | 39 | | } |