/// <summary>
 /// The New Border Gateway Protocol Peering operation creates a new
 /// Border Gateway Protocol Peering
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IBorderGatewayProtocolPeeringOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required. The service key representing the relationship between
 /// Azure and the customer.
 /// </param>
 /// <param name='accessType'>
 /// Required. Whether the peering is private or public.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the New Border Gateway Protocol
 /// Peering operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static ExpressRouteOperationResponse BeginNew(this IBorderGatewayProtocolPeeringOperations operations, string serviceKey, BgpPeeringAccessType accessType, BorderGatewayProtocolPeeringNewParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IBorderGatewayProtocolPeeringOperations)s).BeginNewAsync(serviceKey, accessType, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// The New Border Gateway Protocol Peering operation creates a new
 /// Border Gateway Protocol Peering
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IBorderGatewayProtocolPeeringOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required. The service key representing the relationship between
 /// Azure and the customer.
 /// </param>
 /// <param name='accessType'>
 /// Required. Whether the peering is private or public.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the New Border Gateway Protocol
 /// Peering operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<ExpressRouteOperationResponse> BeginNewAsync(this IBorderGatewayProtocolPeeringOperations operations, string serviceKey, BgpPeeringAccessType accessType, BorderGatewayProtocolPeeringNewParameters parameters)
 {
     return operations.BeginNewAsync(serviceKey, accessType, parameters, CancellationToken.None);
 }