Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the PacketCaptureParameters class.
 /// </summary>
 /// <param name="target">The ID of the targeted resource, only VM is
 /// currently supported.</param>
 /// <param name="bytesToCapturePerPacket">Number of bytes captured per
 /// packet, the remaining bytes are truncated.</param>
 /// <param name="totalBytesPerSession">Maximum size of the capture
 /// output.</param>
 /// <param name="timeLimitInSeconds">Maximum duration of the capture
 /// session in seconds.</param>
 public PacketCaptureParameters(string target, PacketCaptureStorageLocation storageLocation, int?bytesToCapturePerPacket = default(int?), int?totalBytesPerSession = default(int?), int?timeLimitInSeconds = default(int?), IList <PacketCaptureFilter> filters = default(IList <PacketCaptureFilter>))
 {
     Target = target;
     BytesToCapturePerPacket = bytesToCapturePerPacket;
     TotalBytesPerSession    = totalBytesPerSession;
     TimeLimitInSeconds      = timeLimitInSeconds;
     StorageLocation         = storageLocation;
     Filters = filters;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the PacketCaptureResult class.
 /// </summary>
 /// <param name="target">The ID of the targeted resource, only VM is
 /// currently supported.</param>
 /// <param name="name">Name of the packet capture session.</param>
 /// <param name="id">ID of the packet capture operation.</param>
 /// <param name="bytesToCapturePerPacket">Number of bytes captured per
 /// packet, the remaining bytes are truncated.</param>
 /// <param name="totalBytesPerSession">Maximum size of the capture
 /// output.</param>
 /// <param name="timeLimitInSeconds">Maximum duration of the capture
 /// session in seconds.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// packet capture session. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 public PacketCaptureResult(string target, PacketCaptureStorageLocation storageLocation, string name = default(string), string id = default(string), string etag = default(string), int?bytesToCapturePerPacket = default(int?), int?totalBytesPerSession = default(int?), int?timeLimitInSeconds = default(int?), IList <PacketCaptureFilter> filters = default(IList <PacketCaptureFilter>), string provisioningState = default(string))
 {
     Name   = name;
     Id     = id;
     Etag   = etag;
     Target = target;
     BytesToCapturePerPacket = bytesToCapturePerPacket;
     TotalBytesPerSession    = totalBytesPerSession;
     TimeLimitInSeconds      = timeLimitInSeconds;
     StorageLocation         = storageLocation;
     Filters           = filters;
     ProvisioningState = provisioningState;
     CustomInit();
 }