| | 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 determine how the connectivity check will be performed. </summary> |
| | 13 | | public partial class ConnectivityParameters |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ConnectivityParameters. </summary> |
| | 16 | | /// <param name="source"> The source of the connection. </param> |
| | 17 | | /// <param name="destination"> The destination of connection. </param> |
| 4 | 18 | | public ConnectivityParameters(ConnectivitySource source, ConnectivityDestination destination) |
| | 19 | | { |
| 4 | 20 | | if (source == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(source)); |
| | 23 | | } |
| 4 | 24 | | if (destination == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(destination)); |
| | 27 | | } |
| | 28 | |
|
| 4 | 29 | | Source = source; |
| 4 | 30 | | Destination = destination; |
| 4 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> Initializes a new instance of ConnectivityParameters. </summary> |
| | 34 | | /// <param name="source"> The source of the connection. </param> |
| | 35 | | /// <param name="destination"> The destination of connection. </param> |
| | 36 | | /// <param name="protocol"> Network protocol. </param> |
| | 37 | | /// <param name="protocolConfiguration"> Configuration of the protocol. </param> |
| | 38 | | /// <param name="preferredIPVersion"> Preferred IP version of the connection. </param> |
| 0 | 39 | | internal ConnectivityParameters(ConnectivitySource source, ConnectivityDestination destination, Protocol? protoc |
| | 40 | | { |
| 0 | 41 | | Source = source; |
| 0 | 42 | | Destination = destination; |
| 0 | 43 | | Protocol = protocol; |
| 0 | 44 | | ProtocolConfiguration = protocolConfiguration; |
| 0 | 45 | | PreferredIPVersion = preferredIPVersion; |
| 0 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> The source of the connection. </summary> |
| 8 | 49 | | public ConnectivitySource Source { get; } |
| | 50 | | /// <summary> The destination of connection. </summary> |
| 8 | 51 | | public ConnectivityDestination Destination { get; } |
| | 52 | | /// <summary> Network protocol. </summary> |
| 0 | 53 | | public Protocol? Protocol { get; set; } |
| | 54 | | /// <summary> Configuration of the protocol. </summary> |
| 0 | 55 | | public ProtocolConfiguration ProtocolConfiguration { get; set; } |
| | 56 | | /// <summary> Preferred IP version of the connection. </summary> |
| 0 | 57 | | public IPVersion? PreferredIPVersion { get; set; } |
| | 58 | | } |
| | 59 | | } |