| | 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 | |
|
| | 11 | | namespace Azure.ResourceManager.Network.Models |
| | 12 | | { |
| | 13 | | /// <summary> Parameters that define the create packet capture operation. </summary> |
| | 14 | | public partial class PacketCapture |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of PacketCapture. </summary> |
| | 17 | | /// <param name="target"> The ID of the targeted resource, only VM is currently supported. </param> |
| | 18 | | /// <param name="storageLocation"> The storage location for a packet capture session. </param> |
| 4 | 19 | | public PacketCapture(string target, PacketCaptureStorageLocation storageLocation) |
| | 20 | | { |
| 4 | 21 | | if (target == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(target)); |
| | 24 | | } |
| 4 | 25 | | if (storageLocation == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(storageLocation)); |
| | 28 | | } |
| | 29 | |
|
| 4 | 30 | | Target = target; |
| 4 | 31 | | StorageLocation = storageLocation; |
| 4 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Initializes a new instance of PacketCapture. </summary> |
| | 35 | | /// <param name="target"> The ID of the targeted resource, only VM is currently supported. </param> |
| | 36 | | /// <param name="bytesToCapturePerPacket"> Number of bytes captured per packet, the remaining bytes are truncate |
| | 37 | | /// <param name="totalBytesPerSession"> Maximum size of the capture output. </param> |
| | 38 | | /// <param name="timeLimitInSeconds"> Maximum duration of the capture session in seconds. </param> |
| | 39 | | /// <param name="storageLocation"> The storage location for a packet capture session. </param> |
| | 40 | | /// <param name="filters"> A list of packet capture filters. </param> |
| 0 | 41 | | internal PacketCapture(string target, int? bytesToCapturePerPacket, int? totalBytesPerSession, int? timeLimitInS |
| | 42 | | { |
| 0 | 43 | | Target = target; |
| 0 | 44 | | BytesToCapturePerPacket = bytesToCapturePerPacket; |
| 0 | 45 | | TotalBytesPerSession = totalBytesPerSession; |
| 0 | 46 | | TimeLimitInSeconds = timeLimitInSeconds; |
| 0 | 47 | | StorageLocation = storageLocation; |
| 0 | 48 | | Filters = filters; |
| 0 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> The ID of the targeted resource, only VM is currently supported. </summary> |
| 16 | 52 | | public string Target { get; } |
| | 53 | | /// <summary> Number of bytes captured per packet, the remaining bytes are truncated. </summary> |
| 0 | 54 | | public int? BytesToCapturePerPacket { get; set; } |
| | 55 | | /// <summary> Maximum size of the capture output. </summary> |
| 0 | 56 | | public int? TotalBytesPerSession { get; set; } |
| | 57 | | /// <summary> Maximum duration of the capture session in seconds. </summary> |
| 0 | 58 | | public int? TimeLimitInSeconds { get; set; } |
| | 59 | | /// <summary> The storage location for a packet capture session. </summary> |
| 16 | 60 | | public PacketCaptureStorageLocation StorageLocation { get; } |
| | 61 | | /// <summary> A list of packet capture filters. </summary> |
| 0 | 62 | | public IList<PacketCaptureFilter> Filters { get; set; } |
| | 63 | | } |
| | 64 | | } |