| | | 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> Parameters to get network configuration diagnostic. </summary> |
| | | 15 | | public partial class NetworkConfigurationDiagnosticParameters |
| | | 16 | | { |
| | | 17 | | /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticParameters. </summary> |
| | | 18 | | /// <param name="targetResourceId"> The ID of the target resource to perform network configuration diagnostic. V |
| | | 19 | | /// <param name="profiles"> List of network configuration diagnostic profiles. </param> |
| | 0 | 20 | | public NetworkConfigurationDiagnosticParameters(string targetResourceId, IEnumerable<NetworkConfigurationDiagnos |
| | | 21 | | { |
| | 0 | 22 | | if (targetResourceId == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(targetResourceId)); |
| | | 25 | | } |
| | 0 | 26 | | if (profiles == null) |
| | | 27 | | { |
| | 0 | 28 | | throw new ArgumentNullException(nameof(profiles)); |
| | | 29 | | } |
| | | 30 | | |
| | 0 | 31 | | TargetResourceId = targetResourceId; |
| | 0 | 32 | | Profiles = profiles.ToList(); |
| | 0 | 33 | | } |
| | | 34 | | |
| | | 35 | | /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticParameters. </summary> |
| | | 36 | | /// <param name="targetResourceId"> The ID of the target resource to perform network configuration diagnostic. V |
| | | 37 | | /// <param name="verbosityLevel"> Verbosity level. </param> |
| | | 38 | | /// <param name="profiles"> List of network configuration diagnostic profiles. </param> |
| | 0 | 39 | | internal NetworkConfigurationDiagnosticParameters(string targetResourceId, VerbosityLevel? verbosityLevel, IList |
| | | 40 | | { |
| | 0 | 41 | | TargetResourceId = targetResourceId; |
| | 0 | 42 | | VerbosityLevel = verbosityLevel; |
| | 0 | 43 | | Profiles = profiles ?? new List<NetworkConfigurationDiagnosticProfile>(); |
| | 0 | 44 | | } |
| | | 45 | | |
| | | 46 | | /// <summary> The ID of the target resource to perform network configuration diagnostic. Valid options are VM, N |
| | 0 | 47 | | public string TargetResourceId { get; } |
| | | 48 | | /// <summary> Verbosity level. </summary> |
| | 0 | 49 | | public VerbosityLevel? VerbosityLevel { get; set; } |
| | | 50 | | /// <summary> List of network configuration diagnostic profiles. </summary> |
| | 0 | 51 | | public IList<NetworkConfigurationDiagnosticProfile> Profiles { get; } |
| | | 52 | | } |
| | | 53 | | } |