/// <summary>
 /// The Begin Creating Virtual network Gateway operation creates a new
 /// network gateway.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations.
 /// </param>
 /// <param name='networkName'>
 /// Required. The name of the virtual network for this gateway.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Creating Virtual Network
 /// Gateway operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<GatewayOperationResponse> BeginCreatingVirtualNetworkGatewayAsync(this IGatewayOperations operations, string networkName, VirtualNetworkGatewayCreateParameters parameters)
 {
     return operations.BeginCreatingVirtualNetworkGatewayAsync(networkName, parameters, CancellationToken.None);
 }
 // Brooklyn Co-existance new APIs
 public GatewayGetOperationStatusResponse CreateVirtualNetworkGateway(string virtualNetworkSiteName, VirtualNetworkGatewayCreateParameters parameters)
 {
     return gatewayClient.CreateVirtualNetworkGateway(virtualNetworkSiteName, parameters);
 }
 /// <summary>
 /// The Begin Creating Virtual network Gateway operation creates a new
 /// network gateway.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations.
 /// </param>
 /// <param name='networkName'>
 /// Required. The name of the virtual network for this gateway.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Creating Virtual Network
 /// Gateway operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static GatewayOperationResponse BeginCreatingVirtualNetworkGateway(this IGatewayOperations operations, string networkName, VirtualNetworkGatewayCreateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IGatewayOperations)s).BeginCreatingVirtualNetworkGatewayAsync(networkName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }