| | 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> Azure reachability report details. </summary> |
| | 15 | | public partial class AzureReachabilityReport |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of AzureReachabilityReport. </summary> |
| | 18 | | /// <param name="aggregationLevel"> The aggregation level of Azure reachability report. Can be Country, State or |
| | 19 | | /// <param name="providerLocation"> Parameters that define a geographic location. </param> |
| | 20 | | /// <param name="reachabilityReport"> List of Azure reachability report items. </param> |
| 0 | 21 | | internal AzureReachabilityReport(string aggregationLevel, AzureReachabilityReportLocation providerLocation, IEnu |
| | 22 | | { |
| 0 | 23 | | if (aggregationLevel == null) |
| | 24 | | { |
| 0 | 25 | | throw new ArgumentNullException(nameof(aggregationLevel)); |
| | 26 | | } |
| 0 | 27 | | if (providerLocation == null) |
| | 28 | | { |
| 0 | 29 | | throw new ArgumentNullException(nameof(providerLocation)); |
| | 30 | | } |
| 0 | 31 | | if (reachabilityReport == null) |
| | 32 | | { |
| 0 | 33 | | throw new ArgumentNullException(nameof(reachabilityReport)); |
| | 34 | | } |
| | 35 | |
|
| 0 | 36 | | AggregationLevel = aggregationLevel; |
| 0 | 37 | | ProviderLocation = providerLocation; |
| 0 | 38 | | ReachabilityReport = reachabilityReport.ToArray(); |
| 0 | 39 | | } |
| | 40 | |
|
| | 41 | | /// <summary> Initializes a new instance of AzureReachabilityReport. </summary> |
| | 42 | | /// <param name="aggregationLevel"> The aggregation level of Azure reachability report. Can be Country, State or |
| | 43 | | /// <param name="providerLocation"> Parameters that define a geographic location. </param> |
| | 44 | | /// <param name="reachabilityReport"> List of Azure reachability report items. </param> |
| 0 | 45 | | internal AzureReachabilityReport(string aggregationLevel, AzureReachabilityReportLocation providerLocation, IRea |
| | 46 | | { |
| 0 | 47 | | AggregationLevel = aggregationLevel; |
| 0 | 48 | | ProviderLocation = providerLocation; |
| 0 | 49 | | ReachabilityReport = reachabilityReport ?? new List<AzureReachabilityReportItem>(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> The aggregation level of Azure reachability report. Can be Country, State or City. </summary> |
| 0 | 53 | | public string AggregationLevel { get; } |
| | 54 | | /// <summary> Parameters that define a geographic location. </summary> |
| 0 | 55 | | public AzureReachabilityReportLocation ProviderLocation { get; } |
| | 56 | | /// <summary> List of Azure reachability report items. </summary> |
| 0 | 57 | | public IReadOnlyList<AzureReachabilityReportItem> ReachabilityReport { get; } |
| | 58 | | } |
| | 59 | | } |