| | 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 source of the connection. </summary> |
| | 13 | | public partial class ConnectivitySource |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ConnectivitySource. </summary> |
| | 16 | | /// <param name="resourceId"> The ID of the resource from which a connectivity check will be initiated. </param> |
| 4 | 17 | | public ConnectivitySource(string resourceId) |
| | 18 | | { |
| 4 | 19 | | if (resourceId == null) |
| | 20 | | { |
| 0 | 21 | | throw new ArgumentNullException(nameof(resourceId)); |
| | 22 | | } |
| | 23 | |
|
| 4 | 24 | | ResourceId = resourceId; |
| 4 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> Initializes a new instance of ConnectivitySource. </summary> |
| | 28 | | /// <param name="resourceId"> The ID of the resource from which a connectivity check will be initiated. </param> |
| | 29 | | /// <param name="port"> The source port from which a connectivity check will be performed. </param> |
| 0 | 30 | | internal ConnectivitySource(string resourceId, int? port) |
| | 31 | | { |
| 0 | 32 | | ResourceId = resourceId; |
| 0 | 33 | | Port = port; |
| 0 | 34 | | } |
| | 35 | |
|
| | 36 | | /// <summary> The ID of the resource from which a connectivity check will be initiated. </summary> |
| 8 | 37 | | public string ResourceId { get; } |
| | 38 | | /// <summary> The source port from which a connectivity check will be performed. </summary> |
| 0 | 39 | | public int? Port { get; set; } |
| | 40 | | } |
| | 41 | | } |