| | 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 | |
|
| | 10 | | namespace Azure.ResourceManager.Network.Models |
| | 11 | | { |
| | 12 | | /// <summary> Parameters to compare with network configuration. </summary> |
| | 13 | | public partial class NetworkConfigurationDiagnosticProfile |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of NetworkConfigurationDiagnosticProfile. </summary> |
| | 16 | | /// <param name="direction"> The direction of the traffic. </param> |
| | 17 | | /// <param name="protocol"> Protocol to be verified on. Accepted values are '*', TCP, UDP. </param> |
| | 18 | | /// <param name="source"> Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag. </par |
| | 19 | | /// <param name="destination"> Traffic destination. Accepted values are: '*', IP Address/CIDR, Service |
| | 20 | | /// <param name="destinationPort"> Traffic destination port. Accepted values are '*' and a single port |
| 0 | 21 | | public NetworkConfigurationDiagnosticProfile(Direction direction, string protocol, string source, string destina |
| | 22 | | { |
| 0 | 23 | | if (protocol == null) |
| | 24 | | { |
| 0 | 25 | | throw new ArgumentNullException(nameof(protocol)); |
| | 26 | | } |
| 0 | 27 | | if (source == null) |
| | 28 | | { |
| 0 | 29 | | throw new ArgumentNullException(nameof(source)); |
| | 30 | | } |
| 0 | 31 | | if (destination == null) |
| | 32 | | { |
| 0 | 33 | | throw new ArgumentNullException(nameof(destination)); |
| | 34 | | } |
| 0 | 35 | | if (destinationPort == null) |
| | 36 | | { |
| 0 | 37 | | throw new ArgumentNullException(nameof(destinationPort)); |
| | 38 | | } |
| | 39 | |
|
| 0 | 40 | | Direction = direction; |
| 0 | 41 | | Protocol = protocol; |
| 0 | 42 | | Source = source; |
| 0 | 43 | | Destination = destination; |
| 0 | 44 | | DestinationPort = destinationPort; |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> The direction of the traffic. </summary> |
| 0 | 48 | | public Direction Direction { get; set; } |
| | 49 | | /// <summary> Protocol to be verified on. Accepted values are '*', TCP, UDP. </summary> |
| 0 | 50 | | public string Protocol { get; set; } |
| | 51 | | /// <summary> Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag. </summary> |
| 0 | 52 | | public string Source { get; set; } |
| | 53 | | /// <summary> Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag. </summary> |
| 0 | 54 | | public string Destination { get; set; } |
| | 55 | | /// <summary> Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65 |
| 0 | 56 | | public string DestinationPort { get; set; } |
| | 57 | | } |
| | 58 | | } |