/// <summary>
 /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual
 /// network gateway connection shared key for passed virtual network gateway
 /// connection 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='virtualNetworkGatewayConnectionName'>
 /// The virtual network gateway connection name.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Begin Set Virtual Network Gateway connection
 /// Shared key operation throughNetwork resource provider.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConnectionSharedKey> BeginSetSharedKeyAsync(this IVirtualNetworkGatewayConnectionsOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionSharedKey parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginSetSharedKeyWithHttpMessagesAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }