Example #1
0
 /// <summary>
 /// Creates or updates a Tap configuration in the specified NetworkInterface.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='networkInterfaceName'>
 /// The name of the network interface.
 /// </param>
 /// <param name='tapConfigurationName'>
 /// The name of the tap configuration.
 /// </param>
 /// <param name='tapConfigurationParameters'>
 /// Parameters supplied to the create or update tap configuration operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NetworkInterfaceTapConfigurationInner> BeginCreateOrUpdateAsync(this INetworkInterfaceTapConfigurationsOperations operations, string resourceGroupName, string networkInterfaceName, string tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, tapConfigurationParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }