| | 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 that define the IP flow to be verified. </summary> |
| | 13 | | public partial class VerificationIPFlowParameters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of VerificationIPFlowParameters. </summary> |
| | 16 | | /// <param name="targetResourceId"> The ID of the target resource to perform next-hop on. </param> |
| | 17 | | /// <param name="direction"> The direction of the packet represented as a 5-tuple. </param> |
| | 18 | | /// <param name="protocol"> Protocol to be verified on. </param> |
| | 19 | | /// <param name="localPort"> The local port. Acceptable values are a single integer in the range (0-65535). Supp |
| | 20 | | /// <param name="remotePort"> The remote port. Acceptable values are a single integer in the range (0-65535). Su |
| | 21 | | /// <param name="localIPAddress"> The local IP address. Acceptable values are valid IPv4 addresses. </param> |
| | 22 | | /// <param name="remoteIPAddress"> The remote IP address. Acceptable values are valid IPv4 addresses. </param> |
| 0 | 23 | | public VerificationIPFlowParameters(string targetResourceId, Direction direction, IpFlowProtocol protocol, strin |
| | 24 | | { |
| 0 | 25 | | if (targetResourceId == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(targetResourceId)); |
| | 28 | | } |
| 0 | 29 | | if (localPort == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(localPort)); |
| | 32 | | } |
| 0 | 33 | | if (remotePort == null) |
| | 34 | | { |
| 0 | 35 | | throw new ArgumentNullException(nameof(remotePort)); |
| | 36 | | } |
| 0 | 37 | | if (localIPAddress == null) |
| | 38 | | { |
| 0 | 39 | | throw new ArgumentNullException(nameof(localIPAddress)); |
| | 40 | | } |
| 0 | 41 | | if (remoteIPAddress == null) |
| | 42 | | { |
| 0 | 43 | | throw new ArgumentNullException(nameof(remoteIPAddress)); |
| | 44 | | } |
| | 45 | |
|
| 0 | 46 | | TargetResourceId = targetResourceId; |
| 0 | 47 | | Direction = direction; |
| 0 | 48 | | Protocol = protocol; |
| 0 | 49 | | LocalPort = localPort; |
| 0 | 50 | | RemotePort = remotePort; |
| 0 | 51 | | LocalIPAddress = localIPAddress; |
| 0 | 52 | | RemoteIPAddress = remoteIPAddress; |
| 0 | 53 | | } |
| | 54 | |
|
| | 55 | | /// <summary> Initializes a new instance of VerificationIPFlowParameters. </summary> |
| | 56 | | /// <param name="targetResourceId"> The ID of the target resource to perform next-hop on. </param> |
| | 57 | | /// <param name="direction"> The direction of the packet represented as a 5-tuple. </param> |
| | 58 | | /// <param name="protocol"> Protocol to be verified on. </param> |
| | 59 | | /// <param name="localPort"> The local port. Acceptable values are a single integer in the range (0-65535). Supp |
| | 60 | | /// <param name="remotePort"> The remote port. Acceptable values are a single integer in the range (0-65535). Su |
| | 61 | | /// <param name="localIPAddress"> The local IP address. Acceptable values are valid IPv4 addresses. </param> |
| | 62 | | /// <param name="remoteIPAddress"> The remote IP address. Acceptable values are valid IPv4 addresses. </param> |
| | 63 | | /// <param name="targetNicResourceId"> The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any |
| 0 | 64 | | internal VerificationIPFlowParameters(string targetResourceId, Direction direction, IpFlowProtocol protocol, str |
| | 65 | | { |
| 0 | 66 | | TargetResourceId = targetResourceId; |
| 0 | 67 | | Direction = direction; |
| 0 | 68 | | Protocol = protocol; |
| 0 | 69 | | LocalPort = localPort; |
| 0 | 70 | | RemotePort = remotePort; |
| 0 | 71 | | LocalIPAddress = localIPAddress; |
| 0 | 72 | | RemoteIPAddress = remoteIPAddress; |
| 0 | 73 | | TargetNicResourceId = targetNicResourceId; |
| 0 | 74 | | } |
| | 75 | |
|
| | 76 | | /// <summary> The ID of the target resource to perform next-hop on. </summary> |
| 0 | 77 | | public string TargetResourceId { get; } |
| | 78 | | /// <summary> The direction of the packet represented as a 5-tuple. </summary> |
| 0 | 79 | | public Direction Direction { get; } |
| | 80 | | /// <summary> Protocol to be verified on. </summary> |
| 0 | 81 | | public IpFlowProtocol Protocol { get; } |
| | 82 | | /// <summary> The local port. Acceptable values are a single integer in the range (0-65535). Support for * for t |
| 0 | 83 | | public string LocalPort { get; } |
| | 84 | | /// <summary> The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for |
| 0 | 85 | | public string RemotePort { get; } |
| | 86 | | /// <summary> The local IP address. Acceptable values are valid IPv4 addresses. </summary> |
| 0 | 87 | | public string LocalIPAddress { get; } |
| | 88 | | /// <summary> The remote IP address. Acceptable values are valid IPv4 addresses. </summary> |
| 0 | 89 | | public string RemoteIPAddress { get; } |
| | 90 | | /// <summary> The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parame |
| 0 | 91 | | public string TargetNicResourceId { get; set; } |
| | 92 | | } |
| | 93 | | } |