/// <summary>
 /// Gives the sas-url to download the configurations for vpn-sites in a
 /// resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='virtualWANName'>
 /// The name of the VirtualWAN for which configuration of all vpn-sites is
 /// needed.
 /// </param>
 /// <param name='request'>
 /// Parameters supplied to download vpn-sites configuration.
 /// </param>
 public static void BeginDownload(this IVpnSitesConfigurationOperations operations, string resourceGroupName, string virtualWANName, GetVpnSitesConfigurationRequest request)
 {
     operations.BeginDownloadAsync(resourceGroupName, virtualWANName, request).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gives the sas-url to download the configurations for vpn-sites in a
 /// resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='virtualWANName'>
 /// The name of the VirtualWAN for which configuration of all vpn-sites is
 /// needed.
 /// </param>
 /// <param name='request'>
 /// Parameters supplied to download vpn-sites configuration.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DownloadAsync(this IVpnSitesConfigurationOperations operations, string resourceGroupName, string virtualWANName, GetVpnSitesConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DownloadWithHttpMessagesAsync(resourceGroupName, virtualWANName, request, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }