/// <summary> /// The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy /// for P2S client of virtual network gateway in the specified resource group /// through Network resource provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='virtualNetworkGatewayName'> /// The name of the virtual network gateway. /// </param> /// <param name='vpnclientIpsecParams'> /// Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual /// Network Gateway P2S client operation through Network resource provider. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VpnClientIPsecParametersInner> BeginSetVpnclientIpsecParametersAsync(this IVirtualNetworkGatewaysOperations operations, string resourceGroupName, string virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginSetVpnclientIpsecParametersWithHttpMessagesAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }