/// <summary>
 /// Gets Network Configuration Diagnostic data to help customers understand and
 /// debug network behavior. It provides detailed information on what security
 /// rules were applied to a specified traffic flow and the result of evaluating
 /// these rules. Customers must provide details of a flow like source,
 /// destination, protocol, etc. The API returns whether traffic was allowed or
 /// denied, the rules evaluated for the specified flow and the evaluation
 /// results.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='networkWatcherName'>
 /// The name of the network watcher.
 /// </param>
 /// <param name='parameters'>
 /// Parameters to get network configuration diagnostic.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NetworkConfigurationDiagnosticResponseInner> GetNetworkConfigurationDiagnosticAsync(this INetworkWatchersOperations operations, string resourceGroupName, string networkWatcherName, NetworkConfigurationDiagnosticParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetNetworkConfigurationDiagnosticWithHttpMessagesAsync(resourceGroupName, networkWatcherName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }